Page 1 of 1

Precedence

Posted: 2007-09-21T11:41:25-07:00
by elcorazon
What is the order of precedence with commands for convert? If I use the following command:

convert -density 216 filename.pdf -resize 900 -sharpen 2 -resample 72 filename.jpg

is the order resize, sharpen then resample (left to right)?

Re: Precedence

Posted: 2007-09-21T13:24:57-07:00
by magick
Options are processed in order left to right. See http://magick.imagemagick.org/script/co ... essing.php for a discussion. about command line processing.

Re: Precedence

Posted: 2007-09-21T14:18:13-07:00
by elcorazon
magick wrote:Options are processed in order left to right. See http://magick.imagemagick.org/script/co ... essing.php for a discussion. about command line processing.
Thanks thats what I figured. So in this command line:

convert -density 216 filename.pdf -resize 900 -sharpen 2 -resample 72 filename.jpg

Would I get better results if I put the -resize 900 before the .pdf file? What I am trying to do is end up with the best looking 300 pixel wide jpg that is text, coming from a pdf file.

Re: Precedence

Posted: 2007-09-24T20:30:20-07:00
by anthony
You still need to read in the image BEFORE resizing it!!!!


The -density is not a operator, it just saves the value for later use, in this case when reading in the image. the resize is an operator and gets applied immediately after the image is read in.