Jump to content
You must now use your email address to sign in [click for more info] ×

32-bit HDR PNG support added


Recommended Posts

  • Staff

Apps: All
Platforms: Windows, macOS and iPad

All Affinity apps now support import and export of 32bit HDR PNG files, as described in the PNG specification (3rd edition). Both PQ and HLG are supported alongside full / narrow range and a full set of primaries. Files exported can be used directly in video editing applications or shared on the web (Chrome now supports HDR PNG files). In addition, legacy PNG and TIFF files exported from Photoshop with CICP data embedded in an ICC profile are also able to be imported.

 

Managing Director

Help make our apps better by joining our beta program!


MacBook Pro (16-inch, 2021) / Apple M1 Max / 64GB / macOS 12.0.1

iPad Pro 11-inch 3rd Gen / iPadOS 16.2

Link to comment
Share on other sites

I would love to see the ability to export PNG above 32767 pixel count in x/y direction.

The current limit is very unfortunate. All pNG above 32767 will get silently downscaled.

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

Screenshot2024-01-09at21_00_20.thumb.png.693ffad1bf108196d30bbb9bdd46e002.pngScreenshot2024-01-09at21_02_24.thumb.png.59194d3aaeedcd16f1252632d77f736c.pngI Exported a test file having SRGB linear profile without embedding the profile, using ICC profile from document 

The export PNG shows a different profile BTU 2100. This seems like a bug.

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

I have never heard of this format either.

Lenovo IdeaPad 5 Ryzen 7 5700U Rx Vega 8 graphics 

16GB RAM (15.3 usable) 

Acer KB202 27in 1080p monitor

Affinity Photo 1.10.6

Affinity photo 2 2.4.2 Affinity Designer 2 2.4.2 Affinity Publisher 2 2.4.2 on Windows 11 Pro version 23H2

Beta builds as they come out.

canon 80d| sigma 18-200mm F3.5-6.3 DC MACRO OS HSM | Tamron SP AF 28-75mm f/2.8 XR Di LD | Canon EF-S 10-18mm f/4.5-5.6 IS STM Autofocus APS-C Lens, Black

 

Link to comment
Share on other sites

  • Staff
13 hours ago, ashf said:

I didn't know that PNG has HDR mode.
Just wondering how many people are using it?

Can't PNG be replaced with JPEG XL?

It was introduced last year: https://www.w3.org/TR/png-3/

So far, FCPX and Davinci Resolve appear to support this (I haven't tried other editors yet), as well as macOS Sonoma and various web browsers, so it's getting fairly decent adoption. It looks to be a good solution for interchanging HDR broadcast imagery in a lossless format. OpenEXR is supported by most NLEs but has non-user-friendly colour management.

JPEG-XL was possibly going to be a good solution, but Chrome dropped it (not long before/after we released V2, I think) and support for it isn't widespread.

The cICP chunk in this PNG format allows the image to be tagged and processed with various video-centric colour spaces, which is more robust for broadcast workflows where the imagery needs to integrate seamlessly with video content, rather than being dependent on ICC (particularly for HDR content where you have HLG/PQ colour spaces with different transfer characteristics).

Product Expert (Affinity Photo) & Product Expert Team Leader

@JamesR_Affinity for tutorial sneak peeks and more
Official Affinity Photo tutorials

Link to comment
Share on other sites

  • 1 month later...

I'm certain this new feature will be useful to someone but now my PNG exports from Designer have muddy, subdued colours!

What was the previous default PNG setting prior to 2.4 please?

*Edit: Primaries: BT.709 and Transfer Function: BT.709 appear to give me the same colours as I see on screen before export. I am unsure if this was the previous default as I have no idea what either of these settings are and the Affinity Designer Help files do not explain it in a way that someone who didn't already know the answer could decipher*

Finding information about the new PNGs online is a circular loop that mostly bring me back here. If the new PNG format is that obscure, having it be the new default was a poor choice.

Edited by Graphite Addict
BT.709 seems to do the trick
Link to comment
Share on other sites

  • Staff

Hey @Graphite Addict The preset of PNG or PNG Dithered should be fine. None of the HDR stuff goes out on 8bit formats so as long as you've got either of those presets selected, it should be fine. If that isn't true, we may need a copy of the file to investigate.

Link to comment
Share on other sites

I have a question about this feature. I tried exporting an image with HDR. However, what I noticed was that viewing the exported image outside of Affinity made the colours more dull and less bright when using the built in Photo viewer on Windows 10. When importing the new .png-file back into Affinity the colours are correct again with the HDR preview on. Any ideas why this is?

image.png.c317ddbce72241f381d5e615e7323984.png

Also, I just noticed that the Export window with the preview of the final image doesn't support HDR previewing, even when I have HDR enabled in the Windows 10 settings.

image.png.22b7ef0730c3e6dc1ab62140e1ef2093.png

Link to comment
Share on other sites

  • Staff

Hey Frozen Death Knight

On 3/1/2024 at 3:09 PM, Frozen Death Knight said:

When importing the new .png-file back into Affinity the colours are correct again with the HDR preview on. Any ideas why this is?

I assume Windows Photo Viewer doesn't support the view? The file outputs would normally be intended for something like Final Cut Pro or similar. Even Photoshop displays the HDR PNG washed out.

Have you seen James' video on this?

As for the Export Preview, It doesn't yet support a 32-bit preview. These are lossless outputs so you won't need to be zooming in looking for compression artifacts but I do think we should be showing an accurate 32-bit preview. There is probably already a log of this so I'll do some digging.

Link to comment
Share on other sites

  • Staff
On 3/1/2024 at 3:09 PM, Frozen Death Knight said:

I have a question about this feature. I tried exporting an image with HDR. However, what I noticed was that viewing the exported image outside of Affinity made the colours more dull and less bright when using the built in Photo viewer on Windows 10. When importing the new .png-file back into Affinity the colours are correct again with the HDR preview on. Any ideas why this is?

image.png.c317ddbce72241f381d5e615e7323984.png

This result could be that Windows 10 is tone mapping the HDR values to SDR, or it's falling back down the list of chunks in the metadata (the HDR signalling is contained in the cICP chunk, but if the decoder doesn't support the cICP or iCCN chunks it should use sRGB, iCCP, gAMA/cHRM in that order). I wonder if it's the latter, as the bright highlights on the shield don't look sufficiently tone mapped and are still slightly blown out.

Did you screenshot the Windows photo viewer to post it here? That could add another layer of colour management that prevents us from seeing the exact result you're describing. That said, if the PNG imports fine back into Affinity Photo then the HDR pixel values and chunks signalling the transfer function and colour space are in-tact. You might get the intended result if you import the PNG into something like an NLE that supports HDR display mapping (perhaps Davinci Resolve?)

Product Expert (Affinity Photo) & Product Expert Team Leader

@JamesR_Affinity for tutorial sneak peeks and more
Official Affinity Photo tutorials

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.