EinsDreiDreiSieben/mods/steampunk_blimp/optimize_textures.sh
2025-05-18 04:02:23 +02:00

6 lines
249 B
Bash

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