Up to $140 off-Lowest  Prices of 2024(Nov.21-Dec.2)

My Computer Tips

Home | About | Categories | All Tips & Tutorials

Batch resize images in Linux using imagemagick and the terminal

ID: 88

Category: Linux Terminal

Added: 14th of October 2017

Views: 4,009

ImageMagick

The quickest and easiest way to batch resize a number of images is to use imagemagick via the terminal in Linux.

First thing you need to do install imagmagick using the following command

sudo apt-get install imagemagick


The next step is to cd to your directory where your images are stored. I needed to batch resize all .jpg images to 800 x 640 pixels, so I ran the following command in the terminal
mogrify -resize 800x640 *.jpg