Highlights on RAW images are totally burnt

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
Vancete
Posts: 5
Joined: 2016-06-09T10:05:53-07:00
Authentication code: 1151

Highlights on RAW images are totally burnt

Post by Vancete »

Hello there,

I'm trying to convert a Fuji RAW (RAF) from my X-T20, but doesn't matter what I do, it totally burns the highlights, making it unrecoverable.

If I take an image that has zones near to burn, I can recover that zones with Lightroom, Luminar, Capture One, etc

Original RAW:
https://i.imgur.com/4l0tBZm.png

Recovered highlights in Luminar (check the sky):
https://i.imgur.com/1gVWV7H.png

Converted RAW to TIFF, then tried to recover highlights:
https://i.imgur.com/jIgKLR3.png

As you can see, if I try to convert my RAW to any format that supports 16-bit color, it loses dynamic range. Any way to solve this?

Using the current Windows version: ImageMagick-7.0.9-17-Q16-x64-dll

RAW File: https://drive.google.com/file/d/1p757c7 ... sp=sharing

Thanks

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

Re: Highlights on RAW images are totally burnt

Post by snibgo »

The version of IM that I use can't read your raw file. Perhaps because my version of dcraw is too old. IM can read it, using libtiff.

So I can't be sure, but I suspect that most of the sky has burnt out in the camera, ie the sensor was saturated. The data is lost. If so, then "highlight recovery" means that software invents values for those pixels. IM doesn't do this. You might try a tool such as RawTherapee or darktable.
snibgo's IM pages: im.snibgo.com

Vancete
Posts: 5
Joined: 2016-06-09T10:05:53-07:00
Authentication code: 1151

Re: Highlights on RAW images are totally burnt

Post by Vancete »

I'm totally sure that Lightroom is not 'inventing' anything (same with PS, Luminar, etc), camera's RAW has a lot of margin to work with highlights and shadows. IM is not converting it right.

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

Re: Highlights on RAW images are totally burnt

Post by snibgo »

But you talk about "Recovered highlights". If the camera hasn't saturated then there is nothing to "recover". There are simply "highlights", light parts of the image.
snibgo's IM pages: im.snibgo.com

User avatar
fmw42
Posts: 26273
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Highlights on RAW images are totally burnt

Post by fmw42 »

What was your exact command line for reading and converting your raw file?

Vancete
Posts: 5
Joined: 2016-06-09T10:05:53-07:00
Authentication code: 1151

Re: Highlights on RAW images are totally burnt

Post by Vancete »

Just 'magick in.RAF out.TIFF'

User avatar
fmw42
Posts: 26273
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Highlights on RAW images are totally burnt

Post by fmw42 »

Your file has DNG meta data for white balancing.
dng:wb.rb.levels: 592.000000 538.000000 302.000000 0.000000
I do not think ImageMagick makes use of that information. Whereas, perhaps, your other software might do so.

Post Reply