Skip to content
Browse files

correct processing lines for png.

  • Loading branch information...
1 parent 6e5386c commit e3fba9008a62176feb7a86733e89565b3219cb6d @stefanbeller stefanbeller committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 image_optim.sh
View
6 image_optim.sh
@@ -72,9 +72,9 @@ png_optimize_all()
numberoffiles=$(echo ${filelist} | wc -w)
print "starting to optimize ${numberoffiles} pngs."
timestart
- cat ${filelist} | xargs -P ${cpucores} -n 1 optipng -zc1-9 -zm1-9 -zs0-3 -f0-5 >> /tmp/image_optim_png.log
- cat ${filelist} | xargs -P ${cpucores} -n 1 advpng -z4 >> /tmp/image_optim_png.log
- cat ${filelist} | xargs -P ${cpucores} -n 1 -I '{}' pngcrush -rem gAMA -rem alla -rem cHRM -rem iCCP -rem sRGB -rem time {} {}.foo >> /tmp/image_optim_png.log
+ echo ${filelist} | xargs -P ${cpucores} -n 1 optipng -zc1-9 -zm1-9 -zs0-3 -f0-5 >> /tmp/image_optim_png.log
+ echo ${filelist} | xargs -P ${cpucores} -n 1 advpng -z4 >> /tmp/image_optim_png.log
+ echo ${filelist} | xargs -P ${cpucores} -n 1 -I '{}' pngcrush -rem gAMA -rem alla -rem cHRM -rem iCCP -rem sRGB -rem time {} {}.foo >> /tmp/image_optim_png.log
wait
# deciding for which file to use is easy for cpu,

0 comments on commit e3fba90

Please sign in to comment.
Something went wrong with that request. Please try again.