ImageMagick extend canvas with transparent background

Use this instead: convert \ input.png \ -background none \ -gravity center \ -extent 100×100 \ output.png Note well: The order of the parameters is significant! (To convince yourself, just put -background none at the end of the parameters instead of the start…) Updated: Thanks to @jesmith who noticed that the commandline I originally provided … Read more

ImageMagick / RMagick – Can’t install RMagick 2.13.1. Can’t find Magick-config

I was getting the same error and it got resolved after installing the libmagick9-dev library on ubuntu 11. Update (Thanks to the commenters – Dec. 2012) $ sudo apt-get install libmagickwand-dev or $ sudo apt-get install graphicsmagick-libmagick-dev-compat for ubuntu 12 $ sudo apt-get install libmagickwand-dev or $ sudo apt-get install libmagick9-dev for ubuntu 11 or … Read more

Error installing Rmagick on Mountain Lion

It appears it’s a problem reported on the Homebrew github repo (https://github.com/mxcl/homebrew/issues/16625) blaming rmagick itself not supporting newer versions of imagemagick. On that same issue (https://github.com/mxcl/homebrew/issues/16625#issuecomment-11519383), you can find this link: https://coderwall.com/p/wnomjg which actually worked for me. This is what he does: cd /usr/local/Cellar/imagemagick/6.8.0-10/lib ln -s libMagick++-Q16.7.dylib libMagick++.dylib ln -s libMagickCore-Q16.7.dylib libMagickCore.dylib ln -s libMagickWand-Q16.7.dylib … Read more

ImageMagick not authorized to convert PDF to an image

emcconville is correct. More specifically edit the Imagemagick policy.xml file to uncomment this line: <!– <policy domain=”module” rights=”none” pattern=”{PS,PDF,XPS}” /> –> And change it from rights=”none” to rights=”read|write” <policy domain=”module” rights=”read|write” pattern=”{PS,PDF,XPS}” /> This was a recent addition to the policy.xml file, I believe, due to a security flaw found in the Ghostscript delegate. I … Read more

ImageMagick no decode delegate

I had this error when rendering an image using DragonFly in Rails. This happened after I upgraded to Lion (ImageMagick was installed using Brew). I reinstalled ImageMagick, jpeg, libtiff and jasper (reinstalling ImageMagick wasn’t enough by itself). brew uninstall imagemagick jpeg libtiff jasper brew install imagemagick Prior to that, running identify -list format and jpeg … Read more