Page 1 of 1

Batch resizing images

Posted: 2015-04-30T05:51:43-07:00
by diab0lik
Hi
I would like to batch resize a folder full of jpgs to do a slide show on my screen (1920x1080). i don't know much about programming I was wondering if someone could help me. The folder has a couple of hundred photos that i have scanned in that i would like to resize vertically to 1080 pixels (some are larger and some are smaller than 1080) but i would also like the rest of the image to be filled with black horizontally. Also if possible could the image sit on the left? thanks in advance for the help

Re: Batch resizing images

Posted: 2015-04-30T08:24:38-07:00
by snibgo
You don't even say what type of computer you have. Windows, Mac, Arduino, IBM 360, DEC VAX?

This forum is happy to help with ImageMagick commands. For information or help about scripting, you should look elsewhere.

Re: Batch resizing images

Posted: 2015-04-30T09:46:58-07:00
by fmw42
Please read the very top post on this forum at viewtopic.php?f=1&t=9620


mogrify can process a folder of images to resize and pad them. See http://www.imagemagick.org/Usage/basics/#mogrify

What version of Imagemagick are you using and on what platform? Syntax may differ. Are all the photos jpegs or mixed format? Do you want all the resulting image to be jpegs?

Try the following

Code: Select all

create a new empty folder (say folder2) so you do not walk over your original with an error

cd to folder desired (say folder1)

mogrify -path path2/folder2 -format jpg -resize 1920x1080 -gravity west -background black -extent 1920x1080 *.jpg

Re: Batch resizing images

Posted: 2015-05-01T20:01:42-07:00
by diab0lik
thanks fmw42. that worked. sorry i forgot to tell you the version of windows (7) and imagemagik 6.9.1-2-Q8.