adding pncrush script to make pngs smaller
Before Width: | Height: | Size: 609 B After Width: | Height: | Size: 606 B |
Before Width: | Height: | Size: 741 B After Width: | Height: | Size: 739 B |
Before Width: | Height: | Size: 741 B After Width: | Height: | Size: 739 B |
Before Width: | Height: | Size: 301 B After Width: | Height: | Size: 301 B |
Before Width: | Height: | Size: 852 B After Width: | Height: | Size: 815 B |
Before Width: | Height: | Size: 594 B After Width: | Height: | Size: 523 B |
Before Width: | Height: | Size: 554 B After Width: | Height: | Size: 426 B |
Before Width: | Height: | Size: 524 B After Width: | Height: | Size: 524 B |
Before Width: | Height: | Size: 741 B After Width: | Height: | Size: 739 B |
Before Width: | Height: | Size: 736 B After Width: | Height: | Size: 736 B |
Before Width: | Height: | Size: 820 B After Width: | Height: | Size: 734 B |
Before Width: | Height: | Size: 773 B After Width: | Height: | Size: 767 B |
Before Width: | Height: | Size: 387 B After Width: | Height: | Size: 387 B |
Before Width: | Height: | Size: 502 B After Width: | Height: | Size: 502 B |
Before Width: | Height: | Size: 387 B After Width: | Height: | Size: 387 B |
Before Width: | Height: | Size: 243 B After Width: | Height: | Size: 243 B |
Before Width: | Height: | Size: 301 B After Width: | Height: | Size: 301 B |
Before Width: | Height: | Size: 204 B After Width: | Height: | Size: 204 B |
Before Width: | Height: | Size: 257 B After Width: | Height: | Size: 257 B |
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
# there can be as many input arguments as you want
|
||||
# they are all assumed to be PNG file names
|
||||
|
||||
# run as sh pngcrush $(ls *png)
|
||||
|
||||
# loop through all arguments
|
||||
while (( $# >= 1 )); do
|
||||
# create temp output file
|
||||
# output file has all colorspace chunks removed and optimized compression
|
||||
pngcrush -l 9 "$1" "$1".tmp
|
||||
# remove the original file
|
||||
rm "$1"
|
||||
# replace the original with the new optimized output file
|
||||
mv "$1".tmp "$1"
|
||||
shift
|
||||
done
|
||||
|
||||
exit 0
|
||||
|
||||
# from http://cvs.sourceforge.net/viewcvs.py/tom7misc/vstplugins/scripts/fixpng?rev=1.2&view=auto
|