Re: Unable to preserve binary transparency with PNG8

[email protected]
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
----- Juraj Komacka <[email protected]> wrote:
> Hi,
> 
> having an image with binary transparency I am unable to convert it to PNG8
> without loosing it.
> [...]
>       libpng-1.2.50 warning: Invalid background palette index
> 
> Am I missing something?
> 
> Using ImageMagick 6.8.9-9 Q16, everything works as expected (same commands,
> just remove gm from them)

It's a bug in GM's palette-building in coders/png.c

I maintain coders/png.c in both IM and GM, but they've evolved along different
paths so a simple port from one to the other is no longer possible.  Fixing
the bug seems to require a major rewrite of coders/png.c in GM, and I've
got to be careful to copy only parts of coders/png.c that I wrote myself.
I don't have much hope that this bug will be fixed in the near future.

Glenn

------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.