PNG-spec icon indicating copy to clipboard operation
PNG-spec copied to clipboard

Liaison letter from ISO TC 42/WG 23 on Gain Maps

Open svgeesus opened this issue 1 year ago • 7 comments

(They also sent a draft of the specification, but it has restrictions on public storage. I am asking them to lift that restriction, so we can discuss it)

svgeesus avatar Nov 07 '23 19:11 svgeesus

I have been aware of the work since 2021, and have discussed it at a couple of ICC HDR WG meetings; I also saw a demo of this, in Adobe Photoshop and running on an HDR display, at the ICC meeting in London in April this year. However, this is the first time I have seen the actual draft text of the specification, which clears up some questions I had and raises others.

The overall approach is a good one, and it gives excellent results with much less filesize overhead and more flexibility on viewing conditions, compared to storing the two images separately.

The ISO draft spec, in Annex C, has placeholders for gain maps in AVIF, HEIF and JPEG but not for PNG. We should ask that they add one for PNG as well.

svgeesus avatar Nov 07 '23 19:11 svgeesus

Not speaking for TC42 here, but I'm heavily involved with the HEIF/AVIF side of things.

The way we're doing it there is that we're adding dedicated signaling to the HEIF spec that describes how the required metadata in 21496-1 shall be stored in a HEIF file. I would then imagine that the HEIF/AVIF sections in 21496-1 would simply refer to the relevant section in HEIF rather than spell out exactly how it works.

Concretely, we propose doing this in HEIF by creating a new derived item type that describes how the inputs (base image and gain map) are combined into a reconstructed image. The metadata needed is stored in the box body of that item using a dedicated structure rather than as XMP which is what the current demo files do.

leo-barnes avatar Nov 10 '23 10:11 leo-barnes

Yes, I would expect 21496-1 to take the same approach with PNG

svgeesus avatar Nov 10 '23 18:11 svgeesus

Not sure how you would be planning on storing this in PNG, but if you decide on taking the approach of having a dedicated structure for the metadata rather than relying on XMP, it might be worth syncing up on it. Would be kind of nice if it's at least roughly the same as what we're proposing in HEIF.

leo-barnes avatar Nov 12 '23 20:11 leo-barnes

For the purposes of discussion, here is a proposal for storing gain maps in PNG.

  • https://github.com/w3c/PNG-spec/issues/380

There are a number of open issues where the ISO draft spec is unclear.

svgeesus avatar Nov 15 '23 18:11 svgeesus