Resize Images in Linux Command Line

// resize jpg’s
for file in *.jpg; do convert $file -resize 50% re-$file; done
for file in *.png; do convert $file -rotate 90 rotated-$file; done

Advertisements