Lowering the exposure of an HDR image

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
stevepugh
Posts: 43
Joined: 2008-01-21T12:34:36-07:00

Lowering the exposure of an HDR image

Post by stevepugh »

Hi all,

I am converting some high-range EXR frames into JPEGs and running into clipping/artifacting within the areas of the frame with highest exposure (blown out windows convert as cyan and pink pixels, for instance). Reducing exposure on the EXR frames in AfterEffects shows me that there is good data in there, but a straight conversion is no good.

Is there an easy way to reduce the exposure by a stop and a half or so within the command line using convert.exe? If I just use -level (which I'll try when I get to the office), will that preserve the data provided I have compiled with HDR support (which I have)? Many thanks!

Steve
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Lowering the exposure of an HDR image

Post by snibgo »

A "+level" might do what you want, or you might need a non-linear adjustment with gamma or "-sigmoidal-contrast".

("-level" currently clips but "+level" doesn't.)

I can't currently read EXR files, but if you create a floating-point tiff, I can take a look.

Code: Select all

convert in.exr -define quantum:format=floating-point -depth 32 out.tiff
snibgo's IM pages: im.snibgo.com
stevepugh
Posts: 43
Joined: 2008-01-21T12:34:36-07:00

Re: Lowering the exposure of an HDR image

Post by stevepugh »

I'll see what I can dig up, thanks much!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Lowering the exposure of an HDR image

Post by fmw42 »

I have some tonemapping scripts that work with HDR and EXR images, if you are using Linux/MacOSX or Windows/cygwin. They require HDRI compile of IM. see my link below. See for example the lamp on the desktop example in tonemap4.

If you post an example of one of your images, I can take a look at it and see about +level or +sigmoidal-contrast, etc.

I also have a script, xposure, that adjusts by stops. It uses -function polynomial.
Post Reply