Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImageMagick - Auto adjust the colours of an image a la other photo management applications?

Several photo management applications (e.g. Picnic on the flickr website, F-Spot on the gnome desktop), has the option to 'autocorrect'/'auto-fix' an image, which seems to adjust the colours in an image to make it look a bit better.

For example, here's a before:

IMAG0248 and after IMAG0248

Is there anyway to do this sort of 'automatically adjust the colours to make it look good' on the command line with ImageMagick's tools (or other open source command line tools on ubuntu/debian). I have several hundred images that look at bit rubbish and I want to try putting them through this sort of filter.

Alternatively, what would be the name of this sort of effect?

like image 794
Amandasaurus Avatar asked Mar 09 '11 18:03

Amandasaurus


People also ask

Is GraphicsMagick better than ImageMagick?

We found that GraphicsMagick was usually considerably faster at executing image processing operations from the command line than ImageMagick 6.5. 8-10 was. One ImageMagick algorithm ran as much as 770 times slower. GraphicsMagick clearly ran much more efficiently under Microsoft Windows.

What is ImageMagick used for?

ImageMagick is open-source software that is used to create and edit images. It is used to edit bitmap images of 200 formats. It's available for free software that can be used as source code with a ready-run binary distribution feature.

Does ImageMagick have GUI?

Left-clicking on an image brings up a simple, standalone menu (the only GUI feature you'll see in ImageMagick).


1 Answers

What you are looking for is something to help you correct the white-balance of photos.

If you search for imagemagick auto white balance on any popular search engine you will get quite a feew results that are relevant. Sadly, http://www.imagemagick.org seems down at the moment.

I myself found a shell script called autowhite, and used it

me@sophie:[...]$ ./autowhite.sh 5498758807_59a80b3c50_m.jpg corrected.jpg

and the result is perfectly acceptable:

  • Original:
    http://sbox.wandborg.se/imagemagick/5498758807_59a80b3c50_m.jpg
  • Corrected:
    http://sbox.wandborg.se/imagemagick/corrected.jpg

There are some options to the script, so if you're not really satisfied with the result you'll able to tweak it a tad.

like image 69
joar Avatar answered Oct 12 '22 05:10

joar