search for: photo_basenam

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

Did you mean: photo_basename
2006 May 16
0
Image format gotcha
...on a Mac (OS 10.4.6), so it might be OS-specific. You might have to change the ps command -- 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")...