batch editing images

Code junkies hangout here

Moderators: ChrisThornett, LXF moderators

batch editing images

Postby lucast » Mon Dec 06, 2010 8:25 pm

Dear everyone,
I have returned from my month-long honeymoon a few months ago, with thousands of photos to share with family and friends.
My camera is far from perfect so I tweak the photos I email to friends by adding brightness and contrast, and adding a bit of saturation out of hue, lightness and saturation.

I read the LXF135 Sept10 ImageMagick tutorial and it seemed like the answer to my prayers, since with mogrify, I could edit thousands of photos from my trip simply by using command line functionality.

The problem is that I just want to add 6 units (i don't know whether is percentage or anything else) of contrast to each photo (In Gimp, that would be Colours => Brightness-Contrast Option) and 6 units (i don't know whether is percentage or anything else) of Saturation out of Hue-Lightness-Saturation (In Gimp, that would be Colours => Hue-Saturation... Option).


The issue is that when looking at ImageMagick, I could not find an option to add contrast by the units I desired, and the option to add saturation is compared to the GIMP option of Colours => Colourise which yields a totally unintended result.

Would any kind soul out there know how to batch edit photos in the areas I have mentioned only?
Any google search points me back to ImageMagick and initial predicament.

Image editing is certainly not my area of expertise and solving this problem would save me hours of work.

Thanks in advance,
Mr T
lucast
 
Posts: 3
Joined: Mon Dec 06, 2010 7:54 pm
Location: Glasgow, Scotland

Postby johnhudson » Mon Dec 06, 2010 10:25 pm

Is the answer to find out what your 'units' are and express them as a percentage of the whole range to which they apply; then double that figure and apply that change either positively or negatively in ImageMagick?

http://www.imagemagick.org/script/comma ... s-contrast
johnhudson
LXF regular
 
Posts: 881
Joined: Wed Aug 03, 2005 1:37 pm

Postby sledgehammer » Wed Dec 08, 2010 8:18 am

Its been a long while since I used it, but have you tried Phatch?
User avatar
sledgehammer
 
Posts: 47
Joined: Fri Jul 28, 2006 2:03 pm

ImageMagick

Postby lucast » Wed Dec 08, 2010 12:34 pm

Thanks johnhudson,
I have tried that option, convert -verbose -brightness-contrast 10 holidayPhoto.jpg but I get the following:

unrecognized option `-brightness-contrast' @ convert.c/ConvertImageCommand/802.

I have also tried -contrast option only but it doesn't give the option to even specify percentage.
As for saturation, i still need to figure it out.
Thanks, everyone for your replies.
I haven't been able to reply straight away but it is much appreciated, nonetheless.
I'll try the other solutions.
Cheers,
Mr T
lucast
 
Posts: 3
Joined: Mon Dec 06, 2010 7:54 pm
Location: Glasgow, Scotland

it worked!!

Postby lucast » Wed Dec 08, 2010 2:07 pm

Hi Sledgehammer,
Thanks for recommending Phatch, it is exactly what I was looking for.
So easy to use, great and intuitive GUI as well.
Cheers,
Mr T
lucast
 
Posts: 3
Joined: Mon Dec 06, 2010 7:54 pm
Location: Glasgow, Scotland


Return to Programming

Who is online

Users browsing this forum: No registered users and 3 guests

cron