ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Incognito on September 21, 2022, 12:19:06 PM

Title: Trying to trick iPhone to turn HDR mode on for photos
Post by: Incognito on September 21, 2022, 12:19:06 PM
Hi, so what got me wondering was a one .HEIF picture that activated the HDR mode on my iPhone and I suppose that it's got to do with the metadata the picture has.

So I thought why not try to turn other pictures into HDR, just to see what kind of results it would yield. As a curiosity project

The problem lies in my skills with this tool. I found some code exiftool -TagsFromFile srcimage.jpg "-all:all>all:all" targetimage.jpg that I thought would do the trick but it didn't work for some reason.

I think that at least these lines are necessary to copy from the metadata to the fake hdr picture:
Color Primaries                 : BT.2020, BT.2100
Transfer Characteristics        : SMPTE ST 2084, ITU BT.2100 PQ
Matrix Coefficients             : BT.2020 non-constant luminance, BT.2100 YCbCr

I have embedded the file that shows as HDR in my iPhone so that if you guys know any better or could help me figure this stuff out I'd appreciate it a lot!
Title: Re: Trying to trick iPhone to turn HDR mode on for photos
Post by: Phil Harvey on September 21, 2022, 02:34:37 PM
My guess is that HDR mode is activated if the image is deeper than 8 bits.  The HIF you attached is 10 bits deep.  This isn't something you can change with just metadata.

- Phil
Title: Re: Trying to trick iPhone to turn HDR mode on for photos
Post by: Incognito on September 23, 2022, 07:11:22 AM
Quote from: Phil Harvey on September 21, 2022, 02:34:37 PMMy guess is that HDR mode is activated if the image is deeper than 8 bits.  The HIF you attached is 10 bits deep.  This isn't something you can change with just metadata.

- Phil

I tried to view another 10-bit image but it doesn't show up as HDR. I even put the embedded color space as Rec.2100 PQ but it didn't help either. I wonder what triggers it correctly