Write codec verbose prints to wrong

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Write codec verbose prints to wrong

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Write codec verbose prints to wrong

Post by magick »

We can reproduced the problem you reported and have a patch in ImageMagick 6.7.0-10 Beta. Thanks.
Post Reply