diff --git a/mods/mobs/textures/00.sh b/mods/mobs/textures/00.sh deleted file mode 100755 index 92d9eb3..0000000 --- a/mods/mobs/textures/00.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -set -eu - -FIXED=0 - -for f in ./*.png; do - WARN="$(pngcrush -n -warn "$f" 2>&1)" - printf %s\\n "file = $f" "warn = $WARN" - case "$WARN" in - *'PCS illuminant is not D50'*|*'known incorrect sRGB profile'* ) - pngcrush -s -ow -rem allb -reduce "$f" - FIXED=$((FIXED + 1)) - ;; - esac - pngquant -v -f --ext .png --quality 0-50 --speed 1 "$f" -done - -printf %s\\n "$FIXED errors fixed"