%[channels]

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
GreenKoopa
Posts: 457
Joined: 2010-11-04T17:24:08-07:00
Authentication code: 8675308

%[channels]

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: %[channels]

Post 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.
Post Reply