search for: num_images

Displaying 3 results from an estimated 3 matches for "num_images".

Did you mean: kvm_images
2006 Jan 12
0
Testing ''create'' from multipart/form-data submission
...rrently i''m using a small binary string to simulate this but for thoroughness i want to provide the test with a path to an image on my filesystem and have it populate the db correctly...any idea what the syntax for posting a form this way is?? (current code below) def test_create num_images = Image.count post(:create, {:image => { ''item_id'' => 203, ''primary_image'' => 0, ''data_orig'' => ''01010101'', ''data_medium'' => ''010...
2003 Nov 10
5
picture organizer -- need a bit of help
While trying to develop a little wxruby program, I have some difficulties, namely: 1. I want to read all kind of graphic files, (mainly jpg, png and tiff is enough...) But, the current implementation seems to deal only with bmps and currently there is no way to call ::wxInitAllImageHandlers. 2. I think DnD is required in my case: I want to drop filenames on a TreeCtrl. I will try to add
2004 Jan 08
3
pictorG
...if xscale>=yscale thm_h=(h/xscale+0.5).to_i else thm_w=(w/yscale+0.5).to_i end img.rescale(thm_w,thm_h) dir,fn=thm_name filename Dir.mkdir(dir) unless FileTest.directory? dir img.save_file dir+"/"+fn, BITMAP_TYPE_JPEG end def show_list list num_images=list.length log_status ''Removing images'' @imageList.remove_all clear_all list.each_with_index{|fn,i| insert_item i,fn,i } Thread.new { Thread.current.priority=-1 list.each_with_index{|fn,i| log_status "Generating thumbnails #{i+1}/#{...