Life and Zen of Simone Brunozzi, Amazon.com Technology Evangelist in Europe, and beyond :-)

RSS Subscribe to RSS

Bulk resize images with GIMP

I shot a couple of dozen pictures in Seattle yesterday, and I wanted to put them on Flickr. Problem is that Flickr has a monthly upload bandwidth limit, and my Canon EOS 400D creates 3382×2259 images, but for Flickr a 1200×800 should suffice; therefore I decided to resize them before uploading.
How to do that with a batch process, rather than by hand?

I came up with a nice solution using GIMP (for Linux Ubuntu, but it’s valid for other Linux flavors as well).
Here’s how.

Install the package gimp-plugin-registry, which includes also David’s Batch Processor (name says all).

gimp

Now open Gimp, go to Xtns, and then click “Batch Process…“.

gimp

Here you can configure the details, expecially:
- which images you want to convert (”input” tab)
- how you want to resize them (”resize” tab)
- the type and quality of output images (in the “output” tab)
- renaming (you can’t overwrite the original files; choose a different directory for output).

gimp

It works!

Check them out on my flickr page (pictures have a friendly CreativeCommons license, you can use them).

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Slashdot
  • StumbleUpon
  • Technorati
  • TwitThis
  • BlogMemes
  • Live
  • Ma.gnolia
  • Pownce
  • Reddit
  • Wikio

Similar posts:
Posted on : May 25 2008
Tags: ,
Posted under flickr, interesting |

4 People have left comments on this post

May 25, 2008 - 11:05:54
Aldo said:

Hi Simone, :)

nice tip… but perhaps this package is only in Heron’s repos?

Anyway, I use imagemagick to perform this operation. Once installed, you can easily make several operations, such as resize. Just type in a terminal (pointing in a folder where the images to be resized are located):
mogrify -resize 1200x1200 *.jpg

This command resizes all the .jpg files (and overwrites them), putting them in a square of 1200×1200 pixels, and keeps the right orientation (landscape or portrait) of the photos. The result is a proper resizing of all the images in a snap.

Hope this can be another useful tip. ;)

Bye,
Aldo

May 26, 2008 - 10:05:17
Lee Provoost said:

Hi Simone, have a look at the Flickr uploader tools: http://www.flickr.com/tools/

Cheers, Lee

Jul 19, 2008 - 11:07:04
Keith said:

Those two solutions sounded great, but the extension did not work for me at all. Two complex errors came up about something to do with the filenames.

The second, imagemagik, I could not find in the Ubuntu repos, so I’m still looking for a solution to bulk image editing!

Thanks,

Keith

Aug 15, 2008 - 07:08:20
Rod said:

Sounds nifty. Any idea if this is available for that *other* o/s?