#4 zopflipng"ize" the new png assets
Closed 2 years ago by areguera. Opened 3 years ago by jcpunk.

Can the new PNG assets be run through zopflipng? This will swap out the gzip compression for a gzip compatible stream, but in my experience it shrinks the images by about 9% with no loss in quality and no measurable increase in decoding time (since it decodes with the standard libraries).

It does trim optional metadata, which might require some tweaking...

https://koji.fedoraproject.org/koji/packageinfo?packageID=16157
https://github.com/google/zopfli/blob/master/README.zopflipng


Quick test with both pngquant and zopflipng:

5598    centos-logos/pixmaps/fedora-logo-sprite.png-pngquant-normal.png
6740    centos-logos/pixmaps/fedora-logo-sprite.png-zopflipng-more.png
6745    centos-logos/pixmaps/fedora-logo-sprite.png-zopflipng-normal.png
10262   centos-logos/pixmaps/fedora-logo-sprite.png

It seems pngquant is providing more bits of compression than zopflipng, but I need to make more tests.

Metadata Update from @areguera:
- Issue assigned to areguera

3 years ago

Neat! I was unaware of pngquant

Metadata Update from @areguera:
- Issue status updated to: Closed (was: Open)

2 years ago

Log in to comment on this ticket.

Metadata