Rmagick Fails To Manipulate PNG

Posted by Tyler DeWitt on Stack Overflow See other posts from Stack Overflow or by Tyler DeWitt
Published on 2012-10-23T04:43:18Z Indexed on 2012/10/23 5:03 UTC
Read the original article Hit count: 297

Following the Railscast episode on CarrierWave:

I installed ImageMagick on Mountain Lion via homebrew, exported the following path:

export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig:$PKG_CONFIG_PATH"

Symlinked the following:

ln -s /usr/local/include/ImageMagick/wand /usr/local/include/wand
ln -s /usr/local/include/ImageMagick/magick /usr/local/include/magick

And installed rmagick via bundler.

In my uploader I have the following:

include CarrierWave::RMagick
version :thumb do
     process :resize_to_limit => [85, 85]
end

Which creates thumbnails just fine, but not for png files. I've tried a handful of png images and it always fails with this error:

 Failed to manipulate with rmagick, maybe it is not an image? Original Error: no decode delegate for this image format `<path>/public/uploads/tmp/20121022-2133-9885-3333/thumb_cat_vs_internet.png' @ error/constitute.c/ReadImage/544

jpeg images work just fine.

EDIT

identify -list format | grep -i png returns nothing, indicating the png decode delegate is probably missing. Now what?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about imagemagick