with the following asset.rb model :
has_attachment :content_type => :image, :storage => :file_system, :processor => 'Rmagick', :path_prefix => '/public/assets/', :size => 0.kilobytes..100000.kilobytes, :max_size => 10.megabytes, :resize_to => '580x400>', :thumbnails => { :panorama_cropped => '580x400!', :panorama => '580x400>', :medium => '250x150>', :medium_cropped => '250x150!', :thumb => '75x60!' }
and rmagick's attachment_fu processor hacked like this :
def resize_image(img, size) size = size.first if size.is_a?(Array) && size.length == 1 && !size.first.is_a?(Fixnum) if size.is_a?(Fixnum) || (size.is_a?(Array) && size.first.is_a?(Fixnum)) size = [size, size] if size.is_a?(Fixnum) img.crop_resized!(*size) else img.change_geometry(size.to_s) { |cols, rows, image| image.crop_resized!(cols, rows) } end self.temp_path = write_to_temp_file(img.to_blob) end
i get everything working as expected on my local machine, that is to say, even if a have a 300x200 image, i get a 580x400 panorama_cropped image as set up in the model.
putting it the server, if the image fits in a 580x400 sizes, nothin is done for this panorama_cropped setup, and i just get the original format for this, as from the above would be 300x200.
i might have to do with the way the environnement has been set, but I just can't figure out exactly from here it could come.
thanks a lot for any help about it.