Default output from optipng is verbose and not suitable for batch PNG image recompression. I made this patch which adds -s (for -summary) to the available command line options. Using this option, the output becomes similar to the programs that comprise app-arch/advancecomp, i.e. original size (bytes), recompressed size (bytes), ratio (%), file name, optimal compression settings between parenthesis all on one line per file. Reproducible: Didn't try Steps to Reproduce:
Created attachment 60224 [details, diff] Summary mode patch for optipng 0.4.7
Created attachment 60226 [details] Modified 0.4.7 ebuild This ebuild contains the epatch command (obviously) and also support for the mmx USE flag, so that the embedded libpng is built with MMX optimizations. You just have to use makefile.gcmmx instead of makefile.gcc.
Created attachment 60227 [details, diff] Summary mode patch for optipng 0.4.8 Optipng 0.4.8 was released on 2005-05-10. The 0.4.7 patch does not apply cleanly because of changes from upstream. That is why I prepared a patch for 0.4.8. There is no change to the ebuild between 0.4.7 and 0.4.8. A simple copy will do.
Hi rener, have you considered sending this patch upstream? I'll consider adding it to the gentoo package, but deviating from upstream can create additional maintainance load. Regarding adding mmx, I did enable this at one point, but received reports of unreliable results. I'll bump optipng to 0.4.8.
Resolving WONTFIX, patch looks good but should be submitted upstream for inclusion in their package.