Page 1 of 1

Exposure..

Posted: 2009-05-06T09:52:45-07:00
by dognose
I'm working on translating this effect into IM calls.

http://ebin.wordpress.com/2007/03/21/ho ... photoshop/

I'm stuck on reproducing the exposure setting:
Image

I've used the -sigmoidal-contrast 4,0% .. but I'm not sure what else i'd use..

Re: Exposure..

Posted: 2009-05-13T12:36:15-07:00
by dognose
no one has any ideas?

Re: Exposure..

Posted: 2009-05-13T12:58:18-07:00
by fmw42
why don't you do some tests with a gradient image to see what changes occur for different exposure settings. then use my profile script to visualize those changes. profile script is at http://www.fmwconcepts.com/imagemagick/index.html/ then post those results

I started to try that, but I only have PS CS and it does not have the exposure option.

Re: Exposure..

Posted: 2009-05-13T15:16:33-07:00
by Massimo C.
Try with something like this:

Code: Select all

convert in.png -level 20%,80%,0.5 \( +clone -modulate 100,0 \) -compose hard-light -composite -modulate 100,150 out.png

Re: Exposure..

Posted: 2009-05-13T15:23:18-07:00
by fmw42
Massimo C. wrote:Try with something like this:

Code: Select all

convert in.png -level 20%,80%,0.5 \( +clone -modulate 100,0 \) -compose hard-light -composite -modulate 100,150 out.png
Was this by experimentation to try to come close or do you have any true understanding of what PS is doing for this exposure panel, in particular any algorithmic information?

Re: Exposure..

Posted: 2009-05-13T16:12:43-07:00
by Massimo C.
fmw42 wrote:Was this by experimentation to try to come close or do you have any true understanding of what PS is doing for this exposure panel, in particular any algorithmic information?
Experimentation. The PS panel gave me a clue: the gamma parameter is afaik the only one i can set in IM.
IM examples always come handy: http://www.imagemagick.org/Usage/color/#level_gamma
Then a sort of contrast mask:

Code: Select all

 ... \( +clone -modulate 100,0 blur xx \) -compose hard-light -composite ...
...without blur
The result needs more saturation (-modulate)

Re: Exposure..

Posted: 2009-05-13T17:13:23-07:00
by fmw42
the real question is the original user trying to duplicate the action of this window in general or just these settings and for one particular image

Re: Exposure..

Posted: 2009-06-01T21:07:16-07:00
by fmw42
I did some experimentation with Exposure in the Mac Preview app and then examined the histograms produced. I think I have worked at what exposure does or at least a good approximation. I have a new script, exposure, that lets one change the exposure amount in an image. See http://www.fmwconcepts.com/imagemagick/index.html

Re: Exposure..

Posted: 2012-12-05T23:41:40-07:00
by gomez000123
nice post,.,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,