Page 1 of 1

Order of Parameters for convert

Posted: 2006-06-22T11:35:01-07:00
by elisegev
I have noticed that some parameters should be put before the input file and some parameters are after the input file. Something like this:

convert –density 144 file1.pdf file1.jpg

In this example this will not work:

convert file1.pdf –density 144 file1.jpg

On the other hand, other parameters can be put after the input file (file1.pdf). What is the rule? Is there any preferred way of ordering the conversion parameters?

Posted: 2006-06-22T12:13:20-07:00
by magick
See http://www.cit.gu.edu.au/~anthony/graphics/imagick6 for a discussion of command line order. Generally speaking a setting should come before an image filename and an image operator after the image filename.

Posted: 2006-06-22T12:24:48-07:00
by elisegev
magick wrote: See http://www.cit.gu.edu.au/~anthony/graphics/imagick6 for a discussion of command line order. Generally speaking a setting should come before an image filename and an image operator after the image filename.


How do I know if a parameter is a setting or an operator? For instance density is a setting, but geometry is an operator. How would I know that?

Posted: 2006-06-22T13:57:06-07:00
by magick
Do what few people do. Read the manual. See http://magick.imagemagick.org/script/co ... essing.php.