summaryrefslogtreecommitdiff
path: root/archived/projt-launcher/scripts/compress_images.sh
blob: 1eef9f1c466f3a5b359b4b78392df59cc9cffd90 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

## If current working dirctory is ./scripts, ask to invoke from one directory up
if [ ! -d "scripts" ]; then
	echo "Please run this script from the root directory of the project"
	exit 1
fi

find . -type f -name '*.png' -not -path '*/libraries/*' -exec oxipng --opt max --strip all --alpha --interlace 0 {} \;