possible reporting bug -list format for PNG

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
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

possible reporting bug -list format for PNG

Post by fmw42 »

convert -version
Version: ImageMagick 6.9.0-3 Q16 x86_64 2015-01-04 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
Features: DPC Modules
Delegates (built-in): bzlib cairo fftw fontconfig freetype gslib jbig jng jp2 jpeg lcms lqr ltdl lzma openexr png ps rsvg tiff webp x xml zlib

Code: Select all

convert -list format
Produces the following;


PNG* PNG rw- Portable Network Graphics (libpng 1.6.12)
See http://www.libpng.org/ for details about the PNG format.
PNG00* PNG rw- PNG inheriting bit-depth and color-type from original
PNG24* PNG rw- opaque or binary transparent 24-bit RGB (zlib 1.2.
PNG32* PNG rw- opaque or transparent 32-bit RGBA
PNG48* PNG rw- opaque or binary transparent 48-bit RGB
PNG64* PNG rw- opaque or transparent 64-bit RGBA
PNG8* PNG rw- 8-bit indexed with optional binary transparency


Seems to me that "binary transparency" for PNG24: and PNG48: should be 8-bit and 16-bit transparency.

Am I misunderstanding something about the meaning of binary here?

Does "binary" here mean that it is simply a separate alpha channel as opposed to a reference to some color value that should be displayed as transparent as in PNG8:?
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: possible reporting bug -list format for PNG

Post by glennrp »

Binary means only fully-opaque or fully-transparent are supported in the PNG24 and PNG48 sub-formats. It is GIF-style transparency wherein a single color is deemed to be transparent (via the tRNS chunk).
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible reporting bug -list format for PNG

Post by fmw42 »

Sorry for the false alarm. I don't know where my head was at that time.

I was mistakenly thinking PNG32 amd PNG64 when I wrote the message. But it is interesting to know that PNG24 and PNG48 actually support transparency like PNG8. I thought they supported no transparency.

Thanks Glenn.
Post Reply