Page 1 of 1

%[channels]

Posted: 2013-06-10T01:05:48-07:00
by GreenKoopa
The following two outputs of %[channels] yield different results.

Code: Select all

> convert -size 1x256 gradient:#000-#FFF test.png

> identify test.png
test.png PNG 1x256 1x256+0+0 8-bit sRGB 256c 1.36KB 0.000u 0:00.000

> convert test.png -format "%[channels] - %[colorspace] - %r" info:
srgb - Gray - PseudoClass Gray

> convert test.png -format "%[colorspace] - %[channels] - %r" info:
Gray - gray - PseudoClass Gray
This holds true for
DirectClass and PseudoClass
8-bit and 16-bit
with and without alpha
png and gif and no intermediate file

Saving as miff forces the image from gray to sRGB, even when later converted to png.

http://www.imagemagick.org/script/escape.php

Windows 7
Version: ImageMagick 6.8.5-6 2013-05-10 Q16
Features: DPC OpenMP
Delegates: bzlib fontconfig freetype jng jp2 jpeg lcms lzma pango png ps tiff x xml zlib

Re: %[channels]

Posted: 2013-06-10T10:29:07-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.8.6-0 Beta available by sometime tomorrow. Thanks.