Early beta, has not been heavily tested.
Code:
rezop: recompress using Zopfli while preserving blocksplit.
Version 0.1a (25 May 2015) by Frederic Kayser
Zopfli compression algorithm by Lode Vandevenne and Jyrki Alakuijala
Miniz (tinfl) code by Rich Geldreich
Usage: rezop [options] infile[.png|.gz] outfile[.png|.gz]
Options: -v verbose
-i iterations (default is 10, try -i50 or more for better results)
This tool is especially useful if you have PNG files already optimized by PNGOUT.
For instance if I take the two files bigmac-new.png and getadrink-new.png from this message.
Code:
-rw-r--r-- 1 Fred staff 33864 26 mai 02:10 bigmac-new.png
-rw-r--r-- 1 Fred staff 65225 26 mai 02:10 getadrink-new.png
Picolo:testbed Fred$ rezop bigmac-new.png bigmac-renew10.png
Picolo:testbed Fred$ rezop getadrink-new.png getadrink-renew10.png
Picolo:testbed Fred$ rezop -i60 bigmac-new.png bigmac-renew60.png
Picolo:testbed Fred$ rezop -i40 getadrink-new.png getadrink-renew40.png
Picolo:testbed Fred$ ls -Sl
total 600
-rw-r--r-- 1 Fred staff 65272 26 mai 02:11 getadrink-renew10.png
-rw-r--r-- 1 Fred staff 65252 26 mai 02:12 getadrink-renew40.png
-rw-r--r-- 1 Fred staff 65225 26 mai 02:10 getadrink-new.png
-rw-r--r-- 1 Fred staff 33864 26 mai 02:10 bigmac-new.png
-rw-r--r-- 1 Fred staff 33837 26 mai 02:11 bigmac-renew10.png
-rw-r--r-- 1 Fred staff 33827 26 mai 02:12 bigmac-renew60.png
Picolo:testbed Fred$ huffmix getadrink-new.png getadrink-renew40.png getadrink-new.png
IDAT new size 65157 (0xfe85) bytes, saved 93 bits, output file size 65214 bytes
Picolo:testbed Fred$ huffmix bigmac-new.png bigmac-renew60.png bigmac-new.png
IDAT new size 33755 (0x83db) bytes, saved 119 bits, output file size 33812 bytes
Well you get the idea… use Deflopt and/or Defluff on the files produced by rezop before huffmixing them with the original.
Mac archive has been update (first version led quickly to segfaults when run in 64 bits).
Source code will follow in a week or two.