views:

685

answers:

2

Having difficulties with Imagemagick and Snow Leopard.

Imagemagick was installed using the install script from here here. Everything builds and installs correctly. Imagemagick behave normally for all commands (that I can find) except when trying to convert a PDF. For example,

$ convert my.pdf my.jpg
Segmetation Fault

I thought it may be ghostscript and tried to run the command that Imagegick delegates 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 its supposed to.

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

+1  A: 

I'm dealing with the same problem here.

A: 

me too.

$ identify issue7.pdf 
Segmentation fault

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 the newer version of ImageMagick as of 9/16/09. Try doing a self update and then upgrading php5-imagick.

sudo port selfupdate
sudo port upgrade php5-imagick

This fixed the problem for me.

Devon