Some Bits: Nelson's log

Google Pixel Ultra HDR

My Pixel 8 phone camera is great. It takes photos in HDR. But very little software supports it. The image displayer on the Pixel does, it has some extra-bright display mode that makes the white too bright on screen. Also Google Photos has some HDR editing support with its “Dynamic” and “Enhance” automated presets, plus a slider for “HDR effect”. But when you download the original image file from the phone, it just looks like a regular 8 bit JPG. What’s going on?

I only spent a few minutes researching this but the images appear to be a special Google format they call “Ultra HDR Image Format v1.1” or maybe “JPEG R”. More info in this article and this Reddit discussion. Also older info here, here, here. There’s even a Wikipedia article.

Basically it’s an ordinary 8 bit JPG with some extra data in th efile. Some of that is general metadata about brightness range, etc. And there’s something like a second raster image, a gain map which “provides a mechanism to store data sufficient to recover the original, higher dynamic range luminance data”.

I can’t find any non-Google software that works with the format. Fortunately the files do work pretty well as a regular 8 bit SDR JPG. And Google Photos lets you edit the tone mapping from HDR to that SDR. I’m also not sure which editing tools preserve the extra HDR metadata even if they can’t do anything with it.

Comments

kuro68k 

It looks like Adobe supports it, and so does Google Chrome and derivatives. But very little else...

You can convert them to JPEG XR though, which is supported by Windows and other apps.

magick -define uhdr:output-color-transfer=linear uhdr:input_file.jpg -define quantum:format=floating-point -colorspace scRGB -alpha on jxr:output_file.jxr