PNG of black background image goes transparent!

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

PNG of black background image goes transparent!

Post by anthony »

New (well recently found) PNG Bug, From todays SVG source download.

A Black background image, with only a few colors, when saved as PNG becomes transparent, even though no color in the image is transparent!

Code: Select all

convert -size 200x200 xc:black \
     -draw 'stroke red         line 50,50 50,150 line 50,150 150,150' \
     -draw 'fill lime          circle 110,100 80,100'     \
     -draw 'stroke dodgerblue  line 50,150 150,50'  \
     png:- | display -
The result is transparent.

Replacing png:- with png32:- comes out correct.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: PNG of black background image goes transparent!

Post by glennrp »

Svn revision 3486 for IM-6.6.7-3 should be OK. ../glennrp
Post Reply