blob: f1b59c2b44d55e7356ae77e9a7fe3aeb01616917 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
#!/bin/bash
for file; do
size=$(stat -c%s "$file")
convert "$file" -alpha off PNG24:"$file"
oxipng --strip all --zopfli "$file"
newsize=$(stat -c%s "$file")
echo $(bc <<<"100*$newsize/$size")% "($size => $newsize)" ":" "$file"
done
|