Image Science is a small plugin that does just the stuff you need from RMagick, without all the weight that RMagick brings with it. It uses FreeImage to do the manipulations. (By the way, the MacPorts installation of that completely failed on my Leopard Mac, I advise you compile it by hand.)I was getting these kind of errors from my dev site:
Not nice. Curiously everything worked fine on the production system. A bit of digging in the code was required. Image Science uses a gem called RubyInline to allow it to compile and install C extensions to Ruby on the fly. And RubyInline places these extensions in a directory called “.ruby_inline”. It chooses this directory from either the environment setting INLINEDIR, or if that isn’t set then HOME.And there is the problem – my dev system was running as apache which does not have a home directory.I added this kind of code:
if RAILS_ENV == "development"?? ENV['INLINEDIR'] = RAILS_ROOT + "/tmp"end
And I made sure that tmp in my rails dir was writeable by apache (but do not make it world writable, that won’t work either).