Resizing all JPG file to a seprate directory in an easy way.
By using ‘FOR’loop with help of convert command in linux we can resize the multiple image file to a seprate directory
open a terminal
change directory, where image available
create a directory “resized” to copy images to a separate folder.
Type the below as it is, if need change the image extention from jpeg to gif or png as required
for image in $(ls *.JPG); do convert $image -resize 480×600 -quality 80 resized/new-$image; done;
If convert is not working
sudo apt-get install imagemagick
and then try the above
This above resizing method i tried in Ubuntu gusty 7.10 version.