#!/bin/sh # Brute force, over-kill wrapper to png-reducing utilities that attempts to # get the smallest .png file possible. # # Only lossless transformations are considered. # Reducing the size/complexity of the image might also be a good idea. # Iain Murray, 2010 for f in "$@" ; do optipng "$f" for a in 0 128 192 256 512 1024 ; do pngout "$f" -b$a done advdef -z -4 "$f" advpng -z -4 "$f" done