]>
git.wh0rd.org - home.git/blob - .bin/imgcrush
5 Usage: imgcrush [options] <files>
17 # apngopt likes to corrupt images.
18 pngcrush
-e .png.new
"${img}"
19 mv "${img}.new" "${img}"
24 *.jpg|
*.jpeg
) crush_jpg
"$1" ;;
25 *.png
) crush_png
"$1" ;;
26 *) echo "${0##*/}: unsupported format: $1" >&2 ;;
33 while [[ $# -ne 0 ]] ; do
38 *) crush
"$1"; shift ;;