After spending days on this issue and looking all over the internet for answers, I'm completely stuck and need help getting ImageMagick/RMagick to work on the Bitnami Ubuntu 12.04 image with Ruby on Rails (I'm using Apache and Passenger, if that matters).
The following is the error I'm getting in my logs when I try to use RMagick to read a JPG image file:
no decode delegate for this image format '/opt/bitnami/projects/myproject/tmp/image.jpg' @ error/constitute.c/ReadImage/532
This also happens with every other image type I throw at it. I've tried everything I could find on this topic, from reinstalling ImageMagick, attempting to install delegates, to modifying configuration files, but nothing is working.
When I go to the command line and run
$ identify test.jpg
or
$ convert test.jpg test.png
it works just fine. So I can only conclude that there's something wrong with my rails app not being able to access the proper ImageMagick libraries.
I've also looked at the setenv.sh script, but the ImageMagick environment variable paths look fine. Although, the one odd thing is that the MAGICK_CODER_MODULE_PATH
points to /opt/bitnami/common/lib/ImageMagick-6.7.5/modules-Q16/coders
which is empty. But I don't know if that's a problem since the identify
and convert
commands work fine.
So can anyone help? At this point, I'm stuck and unsure what could be wrong.
I should also mention that I don't have any issues on my Ubuntu 12.04 development machine, so it's not an application specific error, but something with the image that isn't configured right.