Displaying 1 result from an estimated 1 matches for "displaythumbs_directory".
2006 Apr 24
0
ImageMagick and EXIF Data
...( it''s a rough model, but it works for now):
require ''RMagick''
class Image < ActiveRecord::Base
DIRECTORY = ''public/uploaded_images''
THUMBDIRECTORY = ''public/thumbs''
DISPLAY_DIRECTORY = ''/public/uploaded_images/''
DISPLAYTHUMBS_DIRECTORY = ''/public/thumbs/''
after_save :process
after_destroy :cleanup
def file_data=(file_data)
@file_data = file_data
write_attribute ''extension'',
file_data.original_filename.split(''.'').last.downcase
write_attribute("content_type...