Command convert/resize image on linux

Tested on Mint 17
This first install or check package install

#sudo apt-get install imagemagick

if package already

#cd /path/to/image
#for i in $( ls *.jpg); do convert -resize 30% $i rename_$i; done

- xx% is image quality.  70% is height 30% low


and add text to image
cd to /path/to/image

#for FILE in *.jpg; do convert $FILE -fill white -gravity  south -annotate +100+100 'Copyright by www.khonkaensoft.com' new_$FILE; done

+100+100 is pixel

Comments