Resize jpg

From wiki.network-crawler.de
Jump to: navigation, search

with ubuntu and bash

sudo apt-get install imagemagick

resize by 50%

for i in *.JPG; do convert $i -resize 50% $(basename $i .JPG).jpg; done

resize by specific resolution

for i in *.JPG; do convert $i -resize 1024x768 $(basename $i .JPG).jpg; done