feat: Compression script with compressed images

Also modified genicons.sh

Signed-off-by: txtsd <code@ihavea.quest>
This commit is contained in:
txtsd
2024-11-13 19:04:31 +05:30
parent 885fc66c14
commit 03b34e39f8
70 changed files with 26 additions and 21 deletions

9
scripts/compress_images.sh Executable file
View File

@ -0,0 +1,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 {} \;