Page 1 of 1

Getting Imagemagick to recognise Ghostscript as a delegate

Posted: 2011-06-30T04:13:24-07:00
by littleninja
Hi!

I'm really hoping someone can help as I'm tearing my hair out!!! I have imagmagick installed fine, version 6.7.0-9 and ghostscript 8.71 on my ubuntu server. I'm not great at ssh stuff but I'm learning and have been doing ok!! I'm trying to convert PDF to PNG using php and shell_exec. This all worked absolutely fine and then suddenly stopped working. Yesterday was a day full of googling and reinstalling and editing delegates.xml etc. etc. but nothings worked!!!

If I run

Code: Select all

convert -list configure
it doesn't show gs as a delegate which I'm thinking is the problem but I've followed every bit of advice on the web with no success!!! I've no idea why it's stopped working or how to get it working again but would really appreciate some help. I've read others posts on here as well and have tried changing the delegates.xml file to the path of gs and then installing it again but nothing makes any difference. Ther error I'm getting when i run this (within a simple php file):

Code: Select all

convert http://my.domain.com/test.pdf test.png 2>&1
is:

Code: Select all

convert: no decode delegate for this image format `//my.domain.com/test.pdf' @ error/constitute.c/ReadImage/532.
convert: missing an image filename `test.png' @ error/convert.c/ConvertImageCommand/3015.
...which is why im onto the delegates line of investigation. Any suggestions as to what to do to fix this would be so greatly appreciated you wouldn't believe.

Thanks! (In advance, hopefully!)

Re: Getting Imagemagick to recognise Ghostscript as a delega

Posted: 2011-06-30T17:05:45-07:00
by fmw42
First I am not a unix guru. But from experience, this is what I would try.

Find out if and where you have both IM convert and Ghostscript.

type the following commands

which convert

which gs

convert --version

gs --version

Are they in the same general path? If not that could be a problem. How did you install them? Did you install from source? Did you use any special ./configure options?

At worst remove both. Install ghostscript and look at its config.log and see if there are errors as well as what is reported on the command line. Then install IM and watch the ./configure information at the terminal and see if it recognizes Ghostscript or look in the IM config.log file and see if there are errors.