• Ask, answer, and discuss all things having to do with the product brands that you own, use, and love. Please feel free to look around, and browse about the forum!

  • Tips and Tricks Forum is the best source of computer and technology troubleshooting advice from a community of experts.

Thread Rating:
  • 0 Vote(s) - 0 Average
[Ubuntu] How to resize multiple images in a folder (Batch Image Resize)?
[Ubuntu] How to resize multiple images in a folder (Batch Image Resize)?
11-01-2013 - 04:54 PM


  • Posts: 83
  • Joined: Jan 2013
  • Reputation: 1
You can resize multiple image files (jpg/png/gif….) stored in a folder by the imagemagick package. Here is step-by-step guideline:

1. Install imagemagick from Ubuntu Software Center

Or, in the terminal:

sudo apt-get install imagemagick

2. Put all your image files in a single directory.

3. Open a terminal and go to this directory:

cd <directory-location>

4. Now, enter following command to resize all of the images to a specific percentage. For examples, for the following command, all of the images will be reduced to 50% of their dimension maintaining the ratio.

mogrify -resize 50% -format jpg *

Where -format jpg specifies: the resultant format will be JPG.

You may also specify width and height by the following command:

mogrify -resize 800x600 -format jpg *

You can easily guess, the resultant images will be of width 800 px and height of 600 px, keeping the original ratio. Full documentation here

Related Posts
How to install Mac OS X from USB?
How to install Linux Mint on Vmware?

(This post was last modified: 11-19-2013 06:43 PM by Administrator.)

Forum Jump:

User(s) browsing this thread: 1 Guest(s)