10 Aug 2009

Convert all Images with imagemagick

Use imagemagick to convert down all images in one directory, ex. for web galleries

$ for i in *jpg; do convert -size 640 "$i" -resize 640 -quality 85 -strip "$i" ; done

One important thing is -strip which strips unneeded camera profiles and other stuff which can use as much as 60 KB.