sharieswebsite/tasks/correctpng.sh
Yann Esposito (Yogsototh) f96659e597 Some enhancement
2011-07-11 15:40:44 +02:00

9 lines
238 B
Bash
Executable file

#!/usr/bin/env zsh
rootdir="${0:h}/.."
for fic in $rootdir/site/img/**/*.jpg; do
print -n "$fic"
newname=${fic}.uncorrected
mv "$fic" "$newname" && \
convert +profile '*' "$newname" "${fic}" && \
print "\t[DONE]"
done