Catalyst and image libraries
Posted in imagemagick, catalyst Wed, 19 Jul 2006 04:05:00 GMT
I just migrated my Catalyst app to use GD instead of ImageMagick based on some reported compatibility issues.
- Chris Laco reported Apache2/mod_perl2 would core dump with ImageMagick (on FreeBSD). He moved to FastCGI+ImageMagick first and is now using FastCGI+Imager. ImageMagick has been reported to work with Mason+Apache1.x+mod_perl1.3.
- Andreas Marienborg reported on #catalyst IRC that Imager doesn't work with Catalyst+PAR and has moved to GD.
- Someone on #rubyonrails IRC mentioned having problems with RMagick and was looking to migrate to ruby-gd
Wanting the best of all worlds, I moved to GD which also has a smaller memory footprint than ImageMagick. I ended up writing my own wrapper for Lincoln Stein's GD module using the Image::Magick API (drop-in replacement for a very limited set of functionality) though something like Image::Thumbnail, which provides a uniform interface to GD, ImageMagick and Imager, is probably better for general use.
Thanks to Chris and Andreas for their reporting issues. Hopefully I'll be all set with GD.