Why does order matter for ImageMagick's -colorspace operation?

Posted by Mark Trapp on Stack Overflow See other posts from Stack Overflow or by Mark Trapp
Published on 2011-01-09T05:41:27Z Indexed on 2011/01/09 5:54 UTC
Read the original article Hit count: 260

Filed under:

Starting with ImageMagick 6, the command style changed to solve a bunch of problems outlined in the Basic Usage document. That document does imply that for simple operations, one should only need to move the options from before the source file to between the source and output files to convert from the "old" style to the "new" style.

However, this doesn't seem to work for the -colorspace operation. When I use the following command, I get an output file with the correct colors:

convert -colorspace rgb input.pdf output.png

But when I try to use the new command style, the -colorspace operation is never applied:

convert input.pdf -colorspace rgb output.png

Samples:

Sample of the colorspace problem

Why does this occur?

© Stack Overflow or respective owner

Related posts about imagemagick