scratch/tasks/reduce_img_size.sh
2012-12-14 14:41:51 +01:00

7 lines
188 B
Bash
Executable file

#!/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