How does delegates.xml parses an entry

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
guysoft
Posts: 12
Joined: 2014-08-25T03:34:17-07:00
Authentication code: 6789

How does delegates.xml parses an entry

Post by guysoft »

Hey all,
I have the following line in delegates.xml that converts a pdf to a png (for easy reading I turned escaped quotation to quotations):

Code: Select all

"gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s"
I want to take the parameters I have in my convert command, and run this command of debugging purposes, so I can change it, for example, to include the flags -dNumRenderingThreads=4 and -dNOGC.

What should I replace all the %s strings with? How can I find what is in there? The header of delegates.xml does not explain what is done with "ps:alpha" decoders.

This is the convert command I use:

Code: Select all

convert  -density 200  /tmp/input.pdf[0] -quality 100 output.png
Post Reply