[Trilug-ontopic] scripted single-pass photo color correction in Linux?
Kevin Hunter
hunteke at earlham.edu
Sat Dec 11 14:03:59 EST 2010
At 7:48am -0500 Sat, 11 Dec 2010, Michael Hrivnak wrote:
> If they are raw files, ufraw-batch might work for you.
>
> However, you should probably just use gimp's batch mode.
I have never used Gimp's batch mode, but I have a feeling it's a better
solution than ImageMagick. However, I know ImageMagick, so I'll offer
it as suggestion.
If you know what sort of color correction you need, you can use
ImageMagick's convert utility. convert has a number of options, and,
for me, is awesome because it's a command line utility:
$ convert -version
Version: ImageMagick 6.6.2-6 2010-12-02 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP
I don't know what type of color correction you need to do, but convert
with no arguments gives a synopsis of all the capabilities. Here's an
example invocation:
$ convert input.jpg -rotate 37 -transparent \#ffffff output.png
This example would rotate the input.jpg image by 37 degrees, and make
any white pixels transparent, and also convert it to PNG output.
Of course, this lends itself well to a for loop of sorts:
$ for i in *.jpg; do ...
Cheers,
Kevin
More information about the Trilug-ontopic
mailing list