2

How do I create a shareable HDR image file, in either HEIC or AVIF format, from a RAW? The RAW format should have all the information necessary to create a real HDR image I think.

With real HDR I mean a picture that actually needs a HDR display to display properly, not the multi-exposure thing we've had for more than a decade.

5
  • 1
    What camera? What OS? What display? For Canon see here
    – xenoid
    Jan 12 at 9:40
  • I'm pretty sure a 12- or 14-bit RAW file can already contain more data than a 10-bit HDR image… you just need a screen that can display it [P3 minimum, available on the newest Macs]. Note: Windows HDR is not "real HDR" [opinion redacted] & should be switched off.
    – Tetsujin
    Jan 12 at 18:37
  • Yeah exactly, that's the whole point of my question @Tetsujin. I have RAWs (Pentax K20D PEFs/DNGs) that I want to convert to a sharable HEIC/AVIF HDR format. The file(s) should be viewable on all displays/OSs that support HDR and either be in the HEIC or AVIF formats for easy web embedding. Jan 16 at 7:16
  • Your Pentax can shoot at best Adobe RGB - which is already outside the gamut of most displays. If you want to export those at full 16-bit, then use TIFF. From tif, you can then attempt to save to HEIC - but HEIC still requires a profile. Converting to a profile you cannot see yourself makes little sense. HDR is not a single specification & is not 'display-ready' for most people. Windows' HDR is little but a guess & makes most things simply too punchy, rather than accurate. Even Apple's native P3 HEIC files are still only 8-bit. Also, many browsers have no idea what to do with HEIC P3 files.
    – Tetsujin
    Jan 16 at 9:44

3 Answers 3

1

The point of HDR is to display an image that exceeds the available dynamic range (of sensor, display, or both).

If you have a sensor that can record more than sixteen bits per channel on each pixel and more than five stops brightness range, you can record "HDR" images without need of software, but you'll still need to do the usual exposure blending to be able to display detail in the extreme highlight and shadow areas simultaneously unless your display can show the same number of shades.

In practice, 16 bits per channel is generally considered "enough" because your eye can't reliably distinguish more than 256 brightness differences between complete black and complete saturation of a given channel. A range of five stops (= brightest 32x the light as darkest) is the limitation; negative film (especially the last generation from the 1990s and early 2000s) could record detail over a range of seven to eight stops (128x to 256x), though this generally required darkroom manipulation to fit into the ~five stops of dynamic range of printing papers.

So, in order to record HDR (more than five stops of range) you'd need a sensor that has a wider range than the common ones -- and that's going to be expensive. Astronomical sensors may have this capability (I'm not sure, I have no firsthand experience with those). Or you can stick with the current method of exposure blending, either automatically in software inside the camera (which takes away your control) or by bracketing exposure manually or automatically and blending the exposures to preserve detail, ideally without looking cartoonish like some of the earlier HDR images did.

1

Ok, seems to be a straight forward conversion question:

can the RAW file from any camera be converted to HEIC/AVIF (With 10bit HDR)?

No. Not yet.

TL;DR:

Limitations of HEIC/AVIF:

  • AVIF maxes out at 12bit
  • HEIF maxes out at 10bit

It is not the first time to ask this, as I see it was asked here:

https://www.dpreview.com/forums/thread/4619292

Is there any tool which allows for raw->heif (with HDR PQ) from any camera ?

I've just spent a few hours researching this, and it appears the answer is no.

Was that the same kind of thing you were after?

Ah, your comment says:

I have RAWs (Pentax K20D PEFs/DNGs) that I want to convert to a sharable HEIC/AVIF HDR format. The file(s) should be viewable on all displays/OSs that support HDR and either be in the HEIC or AVIF formats for easy web embedding.

The answer seems to be a no. For now.

0

HDR photos contain a brightness value, which has nothing to do with 10BIT or 14BIT. This only needs to be written in when shooting. New cameras, such as Canon R5, can convert from RAW to HDR

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.