added a script to reduce image size

This commit is contained in:
Yann Esposito (Yogsototh) 2012-12-14 14:41:51 +01:00
parent 2f68553620
commit bdbab9e87c

7
tasks/reduce_img_size.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env zsh
for fic in $@; do
newname="${fic:r}-web.${fic:e}"
convert -thumbnail 800x600\> -adaptive-sharpen 0 -quality 75% $fic $newname
mv $fic $fic.old
mv $newname $fic
done