Page 1 of 1

Write codec verbose prints to wrong

Posted: 2011-06-30T03:37:59-07:00
by anthony
Verbose output for output codec is to stdout, not stderr.

Example

Code: Select all

convert -verbose null: -compress none ppm:   >stdout 2>stderr
The file stderr contains... (which was from the read)
null:=> NULL 1x1 1x1+0+0 16-bit DirectClass 0.000u 0:00.000
the file stdout contains
P6
1 1
65535
0 0 0
null:=> NULL 1x1 1x1+0+0 16-bit DirectClass 0.000u 0:00.000
That last line is NOT part of the image and should have been in the stderr file not the stdout.
Other tests (adjusting the verbose setting range) shows that it is the final write that does it wrong.
It causes problems in debugging convert commands in data pipelines.

Re: Write codec verbose prints to wrong

Posted: 2011-06-30T07:32:13-07:00
by magick
We can reproduced the problem you reported and have a patch in ImageMagick 6.7.0-10 Beta. Thanks.