How GhostScript is used

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
PRAVEEN
Posts: 1
Joined: 2012-03-16T10:31:03-07:00
Authentication code: 8675308

How GhostScript is used

Post by PRAVEEN »

Hello,

I'm really new working with ImageMagick 6.7.5 and we're trying to utilize GhostScript 8.63 through the delegates.xml file on a Unix server, to convert a PDF to PNG files. However, though we've confirmed that we're changing the only delegates.xml file in the path ( -debug configure ), it seems that no matter what we put in the gs command for our situation (decode="pdf" encode="png") there is no change to the output file.

Our current delegates.xml line we're trying to use is:

<delegate decode="pdf" encode="png" mode="bi" command=""gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 "-sDEVICE=png16m" "-sOutputFile=%o" "-f%i""/>

When I run "convert -list configure", I get the output:

...
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath= --with-wmf=no --with-perl=no
...

Is the "--with-gslib=no " telling me that no GhostScript delegates lib will be used? If so, how can I turn this on so that the delegates.xml will be utilized for the PDF to PNG conversion?

Thanks
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How GhostScript is used

Post by fmw42 »

I am not an expert on all this, but I think you need to edit your ./configure file and put --with-gslib. I do that in my ./configure file. see http://www.imagemagick.org/script/advan ... #configure
Post Reply