Why does order matter for ImageMagick's -colorspace operation?
- by Mark Trapp
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:
Why does this occur?