search for: pic_file_nam

Displaying 1 result from an estimated 1 matches for "pic_file_nam".

Did you mean: pic_file_name
2006 May 16
0
Image format gotcha
...- what you''re interested in is virtual memory allocation. --Al Evans ----- #!/usr/bin/env ruby require ''RMagick'' include Magick # name of original photo without extension def photo_basename(name) name.gsub(/\.\w+$/i, '''') end def make_image_cache(pic_file_name) img = Image.read(pic_file_name).first img.strip!.change_geometry("1024x1024") { |cols, rows, img| img.resize!(cols, rows) } img.write("#{photo_basename(pic_file_name)}.MPC") img = nil GC.start end def make_image_workfile(pic_file_name) img = Image.read(&quot...