pnggroup / libpng

LIBPNG: Portable Network Graphics support, official libpng repository
http://libpng.sf.net
Other
1.27k stars 621 forks source link

Using ZSTD for compression in PNG #586

Closed birdie-github closed 4 weeks ago

birdie-github commented 4 weeks ago

(I sent this to png-mng-misc AT lists.sourceforge.net, Fri, 28 Apr 2023 11:51:14 +0000) but it never arrived, so let's try it here).

Hi,

I know the PNG standard is now set in stone and it's highly unlikely it's going to incorporate new compressions schemes but what about drafting a new lossless compression standard with a new extension, let's say, PNGZ, which is going to use Zstandard?

ZSTD has shown quite significant improvements over Zlib used in PNG to the tune of 40%.

Best regards, Artem

ProgramMax commented 4 weeks ago

You probably want to post this in the PNG standard GitHub, rather than here. Good news: it is already being considered for future editions of PNG.

There isn't a clear path forward on it. It will take some discussion. On one hand, it is important not to break backwards compatibility. Existing decoders should continue to work. One possible solution here is to have a low rez copy of the image using old compression. But that doesn't seem great. Another option is a new format like .png2 like you said.

birdie-github commented 4 weeks ago

Great to know such an idea/proposal already exists. Sorry for the noise then!