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

Popular posts from this blog

The configuration file now needs a secret passphrase(blowfish_secret) phpMyAdmin 4.0.9

error_reporting (E_WARNING & E_NOTICE & E_DEPRECATED) install vTiger 5.4.x

snmpd dead but subsys locked