monochrome, resample, and compress - why does order matter?
Posted: 2006-08-18T12:37:44-07:00
I have a monochrome tiff that I want to resample to a lower resolution.
If I do "convert a.tif -resample 100x100 -monochrome -compress group4" it works as I expect producing a monochrome tiff with group4 compression.
If I do "convert a.tif -monochrome -compress group4 -resample 100x100" it produces a 250+ color tiff with RLE compression. The results are the same for "convert -monochrome -compress group4 a.tif -resample 100x100".
I just read through the command line processing page, and do not see any caveats about ordering other than the types (settings, operators, etc.).
The only thing I can think of is that it does it in the order received. If it resamples last, that would explain why the monochrome and compression isn't sticking. Although in the documentation, it says of those two "An image setting stays in effect until it is reset or the command line terminates" which does not appear to be happening.
Can anyone explain this better or can I consider this a bug?
If I do "convert a.tif -resample 100x100 -monochrome -compress group4" it works as I expect producing a monochrome tiff with group4 compression.
If I do "convert a.tif -monochrome -compress group4 -resample 100x100" it produces a 250+ color tiff with RLE compression. The results are the same for "convert -monochrome -compress group4 a.tif -resample 100x100".
I just read through the command line processing page, and do not see any caveats about ordering other than the types (settings, operators, etc.).
The only thing I can think of is that it does it in the order received. If it resamples last, that would explain why the monochrome and compression isn't sticking. Although in the documentation, it says of those two "An image setting stays in effect until it is reset or the command line terminates" which does not appear to be happening.
Can anyone explain this better or can I consider this a bug?