Order of Parameters for convert

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
elisegev
Posts: 50
Joined: 2005-09-28T07:47:13-07:00
Contact:

Order of Parameters for convert

Post 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?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post 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.
elisegev
Posts: 50
Joined: 2005-09-28T07:47:13-07:00
Contact:

Post 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?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Do what few people do. Read the manual. See http://magick.imagemagick.org/script/co ... essing.php.
Post Reply