feat: Compression script with compressed images
Also modified genicons.sh Signed-off-by: txtsd <code@ihavea.quest>
This commit is contained in:
parent
885fc66c14
commit
03b34e39f8
70 changed files with 26 additions and 21 deletions
9
scripts/compress_images.sh
Executable file
9
scripts/compress_images.sh
Executable 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 {} \;
|
Loading…
Add table
Add a link
Reference in a new issue