Cody Frederick
2 post(s)
|
I’m having issues reading a file into RMagick / ImageMagick using the following statement:
img = Magick::Image.read(full_photo_path).first
The exception that I receive is “NoDecodeDelegateForThisImageFormat”. After researching it a bit I ran into the ImageMagick ‘identify’ command and executed it to list the available formats (using ‘indentify -list format’). However, the only format listed is ”* native blob support”. Any help would be greatly appreciated.
Configuration: Ubuntu 8.04 RM Install 1.1.0
|
mark
7 post(s)
|
spcoder,
Sorry for delay. I’ve reproduced your issue and have forwarded the full description to the development team for help.
It is likely related to a combination of path and environment variables.
I’ll follow up as soon I have something useful.
Thanks, Mark
|
mark
7 post(s)
|
spcoder, If you update the ImageMagick env variables in ~/rminstall-1.1-0/scripts/setenv.sh to read as the following, it will enable the libraries:
- IMAGEMAGICK ENV #####
export MAGICK_HOME=”/opt/rminstall-1.1-0/common” export MAGICK_CONFIGURE_PATH=”/opt/rminstall-1.1-0/common/lib/ImageMagick-6.3.6/config:/opt/rminstall-1.1-0/common/share/ImageMagick-6.3.6/config” export MAGICK_CODER_MODULE_PATH=”/opt/rminstall-1.1-0/common/lib/ImageMagick-6.3.6/modules-Q16/coders/”
I get a large set of formats returned after making this updating and re-exporting these, when running your test command: $ identify -list format
Best, Mark
|
Cody Frederick
2 post(s)
|
That worked!!
It looks like the setenv.sh that came with the package was pointing to an older version of ImageMagick.
Thanks again!!
|