optimize_textures.sh 243 B

123456
  1. #!/bin/bash
  2. # Colors with 0 alpha need to be preserved, because opaque leaves ignore alpha.
  3. # For that purpose, the use of indexed colors is disabled (-nc).
  4. find -name '../*.png' -print0 | xargs -0 optipng -o7 -zm1-9 -nc -strip all -clobber