Exposure..

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

Exposure..

Post 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..
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

Re: Exposure..

Post by dognose »

no one has any ideas?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Exposure..

Post 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.
Massimo C.
Posts: 3
Joined: 2009-05-13T14:57:01-07:00
Authentication code: 8675309

Re: Exposure..

Post 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
Massimo C.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Exposure..

Post 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?
Massimo C.
Posts: 3
Joined: 2009-05-13T14:57:01-07:00
Authentication code: 8675309

Re: Exposure..

Post 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)
Massimo C.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Exposure..

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Exposure..

Post 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
gomez000123
Posts: 1
Joined: 2012-12-05T23:40:21-07:00
Authentication code: 6789

Re: Exposure..

Post by gomez000123 »

nice post,.,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
With 1z0-052 web graphics course you will learn the best and simple method of IT Certification. Our SY0-401 braindumps guide and 642-973 live demo will teach how to include images in your Flash file.is a Beautiful this page CISCO ,Best Wishes.
Post Reply