Imagemagick, Snow Leopard, and PDF Conversion

Difficulties with Imagemagick and Snow Leopard.

Imagemagick was installed using an install script here here . Everything builds and installs correctly. Imagemagick behaves fine for all commands (which I can find) except when trying to convert PDF. For example,

$ convert my.pdf my.jpg
Segmetation Fault

      

I thought it might be ghostscript and tried to run the command which Imagegick delegate too (via the -verbose option)

$ convert -verbose spec/fixtures/documents/upload_test_file.pdf test.jpg
"gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pnmraw" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72"  "-sOutputFile=/var/folders/Xz/Xz6TDr0DFQaV5J1F7Ndamk+++TM/-Tmp-/magick-4zvJXfSz" "-f/var/folders/Xz/Xz6TDr0DFQaV5J1F7Ndamk+++TM/-Tmp-/magick-O7a9fDyp" "-f/var/folders/Xz/Xz6TDr0DFQaV5J1F7Ndamk+++TM/-Tmp-/magick-rBEzLUsx"
Segmentation fault
$ "gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pnmraw" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72"  "-sOutputFile=my.jpg" "-fmy.pdf"

      

And it works. It creates the pnmrow file as intended.

I'm not sure where to go from here, has anyone else seen this or seen it and solved it?

+2


source to share


1 answer


me too.

$ identify issue7.pdf 
Segmentation fault

      

It looks like the imagemagick team is aware of the problem and it should be fixed in version 6.5.5-8.



UPDATE: Actually - the MacPorts package uses a newer version of ImageMagick from 9/16/09. Try to self-update and then update php5-imagick.

sudo port selfupdate
sudo port upgrade php5-imagick

      

This fixed the problem for me.

+1


source







All Articles