Displaying 1 result from an estimated 1 matches for "make_image_workfil".
Did you mean:
make_image_workfile
2006 May 16
0
Image format gotcha
...#39;''')
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("#{photo_basename(pic_file_name)}.MPC").first
img.strip!.change_geometry("640x512") { |cols, rows, img|
img.resize!(cols, rows)
}
img.write("#{photo_basename(pic_file_name)}_work.JPG") { self.quality
= 50 }
img = nil
GC...