Resize Multiple images in a folder (Batch Image Resize) in Ubuntu
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
sklep calivita 1:59 am on January 11, 2011 Permalink |
Quite a beautiful website. I built mine and i was looking for some design ideas and your website gave me some. Did you develop the website alone?
wpolscemamymocneseo 3:45 pm on January 11, 2011 Permalink |
Hi….thanks for this good information.I’m so happy because it’s very useful for my thesis research.I hope you will keep updating your content constantly as you have one dedicated reader here
Shafiul Azam 12:29 am on June 20, 2011 Permalink |
Thanks. Glad to know the article was helpful
Ben 3:44 pm on September 22, 2011 Permalink |
Just found this info – just what I was after
Thanks.
Andrew Hoffmann aka SKYDOS 12:53 pm on October 7, 2011 Permalink |
Thanks!
Just what I needed.
Aditya 11:51 am on October 29, 2011 Permalink |
Thanks!! Exactly what I was looking for!
Omar Tariq 9:20 am on November 4, 2011 Permalink |
Thanks man! Thats helped me resize image for my blog post.
Steve 7:26 am on November 16, 2011 Permalink |
Thanks mate. Works a treat. Beer on it’s way…………..
Automotive Sensor 3:06 pm on January 7, 2012 Permalink |
Thanks for the great tip how to resize images in bulk, very useful info…