Just to clarify what's happening here: att_fu will use ImageScience
(if available) before Rmagick. Since ImageScience is available on
Heroku, it uses that. If you're using Rmagick geometry strings in your
application.yml (which CE does by default), then you need to also tell
att_fu explicitly to use Rmagick, like this (notice the processor
option):
photo:
missing_thumb: '/images/icon_missing_thumb.png'
missing_medium: "/images/icon_missing_medium.png"
attachment_fu_options:
resize_to: "465>"
min_size: 1
max_size: 3
thumbnails: {thumb: "c100x100!", medium: "c290x320!", large:
"664>"}
storage: 's3'
processor: 'rmagick'
content_type: ['image/jpg', 'image/jpeg', 'image/pjpeg', 'image/
gif', 'image/png', 'image/x-png']
This is better than modifying att_fu's default processors directly.
On Oct 29, 3:50 pm, SS <
stoyan.stoitch...@gmail.com> wrote:
> I figured it out after hours and hours!
> I'm glad that I found out what is happening,
> because anyone else that is deploying CE on Heroku may come across the
> same issue if relying on Rmagick gem.
>
> The reason why my application was working locally but didn't work on
> the server is because I'm using Rmagick gem and I don't have
> ImageScience.
> Therefore, in the /lib/technoweenie/attachment_fu.rb I had to change
> the order of the default image processor
>
> from:
> @@default_processors = %w(ImageScience <b>Rmagick</b> MiniMagick Gd2
> CoreImage)
>
> to:
> @@default_processors = %w(<b>Rmagick</b> ImageScience MiniMagick Gd2
> CoreImage)
>
> So that Heroku uses Rmagick as the default image processing as long as
> it's found. Also, I found this resource valuable when solving the
> problem:
>
>
http://www.themomorohoax.com/2009/01/29/invalid-geometry-format-geome...