übernahme Code Shortcut
This commit is contained in:
13
scripts/optimize-png.sh
Normal file
13
scripts/optimize-png.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
# Script to optimize and compress png impage files to reduce size.
|
||||
# All operations are lossless
|
||||
# Requires optipng and advpng
|
||||
# In Ubuntu: "sudo apt-get install advancecomp optipng"
|
||||
|
||||
files=`find icons/ -name '*.PNG' -o -name '*.png'`
|
||||
|
||||
optipng -o 7 $files
|
||||
advpng -z -4 -i 25 $files
|
||||
# Sometimes 7z is actually smaller than zopfli
|
||||
advpng -z -3 -i 25 $files
|
||||
|
||||
Reference in New Issue
Block a user