Question about PNG 8-bit format with alpha
Posted: 2014-02-26T15:48:33-07:00
Does PNG actually support an 8-bit format with 8-bit alpha or just 1-bit alpha? If the latter, then IM has a bug.
Consider:
convert logo: -transparent white -alpha on -channel a -blur 0x1 +channel -type palettematte logo1.png
or
convert logo: -transparent white -alpha on -channel a -blur 0x1 +channel -type palettealpha logo1.png
Format: PNG (Portable Network Graphics)
Mime type: image/png
Class: DirectClass
Geometry: 640x480+0+0
Units: Undefined
Type: PaletteAlpha
Endianess: Undefined
Colorspace: sRGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
alpha: 8-bit
vs
convert logo: -transparent white -alpha on -channel a -blur 0x1 +channel PNG8:logo2.png
Format: PNG (Portable Network Graphics)
Mime type: image/png
Class: DirectClass
Geometry: 640x480+0+0
Units: Undefined
Type: PaletteAlpha
Endianess: Undefined
Colorspace: sRGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
alpha: 1-bit
Both display, although the former does not look as good as the latter --- the former has lots of black spots.
IM 6.8.8.7 Q16 Mac OSX Snow Leopard
Consider:
convert logo: -transparent white -alpha on -channel a -blur 0x1 +channel -type palettematte logo1.png
or
convert logo: -transparent white -alpha on -channel a -blur 0x1 +channel -type palettealpha logo1.png
Format: PNG (Portable Network Graphics)
Mime type: image/png
Class: DirectClass
Geometry: 640x480+0+0
Units: Undefined
Type: PaletteAlpha
Endianess: Undefined
Colorspace: sRGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
alpha: 8-bit
vs
convert logo: -transparent white -alpha on -channel a -blur 0x1 +channel PNG8:logo2.png
Format: PNG (Portable Network Graphics)
Mime type: image/png
Class: DirectClass
Geometry: 640x480+0+0
Units: Undefined
Type: PaletteAlpha
Endianess: Undefined
Colorspace: sRGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
alpha: 1-bit
Both display, although the former does not look as good as the latter --- the former has lots of black spots.
IM 6.8.8.7 Q16 Mac OSX Snow Leopard