Googles appar
Huvudmeny

Post a Comment On: cbloom rants

"PNG without ZLib"

8 Comments -

1 – 8 of 8
Blogger Unknown said...

if i get it right, perhaps pingo could be useful here. something like (N=level):
pingo -sN -lossless -nc

March 14, 2018 at 8:12 AM

Blogger cbloom said...

Yes, it would be great to still have PNG optimization in this case (of the filters and other format options), but then just pass through the bytes with zlib level 0.

March 14, 2018 at 8:42 AM

Blogger Unknown said...

maybe i missed something but the combination of -sN -nc should create optimized and uncompressed datastream

March 14, 2018 at 9:19 AM

Blogger cbloom said...

I *really* don't like the way pingo replaces the input file without asking or making that clear in the command line help.

(yes I see there's a warning to backup but it doesn't say why or what it does)

IMO default mode should always be separate input & output files, overwrite should only be an option.

Anyway...

March 14, 2018 at 9:33 AM

Blogger cbloom said...

On one test image (*) it seems to work :

naked_desert.bmp 1,627,082
naked_desert.png 739,460
naked_desert_crush.png 738,411

naked_desert_z0.png.ooz 687,197
naked_desert_pingo.png.ooz 683,029


The "ooz" means Oodle compressed with the PNG at level 0. The "z0" is "pngcp --level=0" from the base .png

The pingo z0 + Oodle is the smallest.

(* = tests on one file should be taken with much skepticism)

March 14, 2018 at 9:36 AM

Blogger cbloom said...

And let's be clear this is nowhere near state of the art ...

naked_desert.webpll 564,914
naked_desert.flif 540,435

March 14, 2018 at 9:41 AM

Blogger Unknown said...

>> I wonder if choosing a single PNG filter for the whole image would be better than letting PNG do its per-row thing
in most of cases it should be better to use "adaptive" unless you use this filter to do some lossy transformations (like -pngfilter does); but even in this case, there is no clear winner

>> And let's be clear this is nowhere near state of the art ...
thought it was only about PNG here. sure you should not expect it could beat recent format design (however, by picking specific paletted samples, a good PNG encoder could losslessly beat the WebP encoder sometimes (at least cwebp 0.6.1))

March 14, 2018 at 11:15 AM

Blogger cbloom said...

"thought it was only about PNG here"

sure. Just providing context.

March 14, 2018 at 11:17 AM

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.