]>
git.saurik.com Git - cydia.git/blob - pngcrush.sh
11 copy
=("${src}" "${dst}")
15 mv -f "${dst}" "${src}"
16 steps
+=($(stat -f "%z" "${src}"))
19 pngcrush
=/Developer
/Platforms
/iPhoneOS.platform
/Developer
/usr
/bin
/pngcrush
21 if grep CgBI
"${png}" &>/dev
/null
; then
22 if [[ ${png} != ${out} ]]; then
23 cp -a "${png}" "${out}"
29 step
cp -fa "${png}" "${dst}"
31 #step "${pngcrush}" -q -rem alla -reduce -brute -iphone "${copy[@]}"
33 #step "${pngcrush}" -q -rem alla -reduce -brute "${copy[@]}"
34 #step pincrush "${copy[@]}"
36 step
"${pngcrush}" -q -rem alla
-reduce -iphone "${copy[@]}"
38 #"${pngcrush}" -q -rem alla -reduce -brute -iphone "${png}" 1.png
39 #"${pngcrush}" -q -iphone _.png 2.png
42 mv -f "${src}" "${out}"
45 for ((i
= 0; i
!= ${#steps[@]}; ++i
)); do
46 if [[ $i != 0 ]]; then
53 printf $
' %.0f%%\n' "$((steps[${#steps[@]}-1] * 100 / steps[0]))"