Transparency lost when converting from GIF to PNG
Swiss army knife of image processing
Brought to you by:
bfriesen
When converting a transparent GIF to a PNG, the resulting PNG loses the transparency. This is only occurring when no resize is performed.
Command to reproduce:
gm convert Apple_transparent.gif -type Palette -colors 256 Test.PNG
The sample file is attached.
Shouldn't you have used "-type PaletteMatte" instead of "-type Palette"? The type Palette is opaque.
Hmm, I just tried that, and also simple
"gm convert Apple_transparent.gif Test.PNG" and
"gm convert Apple_transparent.gif -matte Test.PNG" and in all cases transparency was lost. So there's a bug here.
Last edit: Glenn Randers-Pehrson 2014-07-20
seems like a regression to me "gm convert Apple_transparent.gif Test.PNG" (binary equal with outputs using -matte) produces different output for
Last edit: Juraj Komacka 2014-08-22
I am able to reproduce this problem with 1.3.20.
I have pushed a fix to the mercurial repository ( http://sourceforge.net/p/graphicsmagick/code/ci/b702174de86ec43450f9201d48c98c407c2662ef/ )
The problem seems to be gone now. All of the GM tests are passing, including running under valgrind.
Closing as fixed.