MacOS Sonoma 14.5 HDR support? AVIF and JXL tonemapping not working

Ask for help and post your question on how to use XnView MP.

Moderators: XnTriq, helmut, xnview

Elix
Posts: 6
Joined: Mon Jun 17, 2024 10:50 am

MacOS Sonoma 14.5 HDR support? AVIF and JXL tonemapping not working

Post by Elix »

Hi. I know there have been some topics already but they all indicate that HDR should be working in XNView MP. I use current version 1.7.2 running on MacBook Pro M1 16" with XDR (HDR) profile and with ICC management enabled (set to system profile) I see that JXL and AVIF files work incorrectly. The images are either too flat or dark, tonemapping doesn't work. These same photos all display correctly in Photo or Viewer app. Please advise.

https://dropmefiles.com/NR2Hz
User avatar
xnview
Author of XnView
Posts: 44616
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: MacOS Sonoma 14.5 HDR support? AVIF and JXL tonemapping not working

Post by xnview »

which color profile do you use in XnView? Could you send a sample file
Pierre.
Elix
Posts: 6
Joined: Mon Jun 17, 2024 10:50 am

Re: MacOS Sonoma 14.5 HDR support? AVIF and JXL tonemapping not working

Post by Elix »

xnview wrote: Wed Jun 19, 2024 7:53 am which color profile do you use in XnView? Could you send a sample file
Sample files are in my first post, see the dl link. Display profile is Apple XDR Display (P3-1600 nits).
Elix
Posts: 6
Joined: Mon Jun 17, 2024 10:50 am

Re: MacOS Sonoma 14.5 HDR support? AVIF and JXL tonemapping not working

Post by Elix »

I just wanted to correct myself, only Photo app works correctly for HDR images so far. Viewer app looks incorrect compared to Adobe Camera RAW.
Elix
Posts: 6
Joined: Mon Jun 17, 2024 10:50 am

Re: MacOS Sonoma 14.5 HDR support? AVIF and JXL tonemapping not working

Post by Elix »

Is this not a priority feature? There are basically no viewers availabie which support tonemapping and HDR gain maps. You could be the first, guys! The best image viewer can get even better :)
User avatar
xnview
Author of XnView
Posts: 44616
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: MacOS Sonoma 14.5 HDR support? AVIF and JXL tonemapping not working

Post by xnview »

your link doesn't work anymore...
Pierre.
Elix
Posts: 6
Joined: Mon Jun 17, 2024 10:50 am

Re: MacOS Sonoma 14.5 HDR support? AVIF and JXL tonemapping not working

Post by Elix »

xnview wrote: Mon Jul 01, 2024 12:48 pm your link doesn't work anymore...
It's because 2 weeks have passed... Here's a reupload.
https://tinyurl.com/4vfr2evx

How to know it doesn't work - sky will be blown-out. If HDR is working correctly sky shouldn't be blown-out.
Elix
Posts: 6
Joined: Mon Jun 17, 2024 10:50 am

Re: MacOS Sonoma 14.5 HDR support? AVIF and JXL tonemapping not working

Post by Elix »

I created this topic 1 month ago and still haven't received a single meaningful anwer :(
User avatar
xnview
Author of XnView
Posts: 44616
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: MacOS Sonoma 14.5 HDR support? AVIF and JXL tonemapping not working

Post by xnview »

sorry but i'll check when possible...
Pierre.
MaykThewessen
Posts: 1
Joined: Wed Aug 07, 2024 12:02 pm

Re: MacOS Sonoma 15.0 HDR support? AVIF and JXL tonemapping not working

Post by MaykThewessen »

XnViewMP doesn't display .AVIF photo's correctly that i exported in HDR Rec.2020 color 1000nits from Adobe Lightroom

How to solve? Will there come an update?

Currently on MacOS 15.0 Sequia, these photos are also wrongly displayed by 'Apple Preview' and Safari
only correctly displayed by Google Chrome, and iPhone

Edit: Apple Preview does show it correctly

What Color Management to set in XnView? To show these HDR photo correctly?
Last edited by MaykThewessen on Tue Aug 20, 2024 12:13 pm, edited 1 time in total.
martinimal
Posts: 2
Joined: Sat Aug 17, 2024 8:07 am

Re: MacOS Sonoma 14.5 HDR support? AVIF and JXL tonemapping not working

Post by martinimal »

Elix wrote: Wed Jun 26, 2024 9:10 am Is this not a priority feature? There are basically no viewers availabie which support tonemapping and HDR gain maps. You could be the first, guys! The best image viewer can get even better :)
Bingo.

There is a Demo App from Adobe which is really nice as a viewer but it's doesn't allow much else besides showing. Visualization of HDR in XnView would be amazing.

Google provides a library for the concept of (Gain Map) HDR. It also contains APIs for decoding:
https://github.com/google/libultrahdr

There are two ISO Standards about HDR encoding in still images:
- ISO/CD 21496-1 for Gain Map HDR
- ISO/TS 22028-5:2023 for 10bit (HEIF, AVIF, JXL, PNG) with HLG or PQ curve

Martin
martinimal
Posts: 2
Joined: Sat Aug 17, 2024 8:07 am

Re: MacOS Sonoma 15.0 HDR support? AVIF and JXL tonemapping not working

Post by martinimal »

MaykThewessen wrote: Wed Aug 07, 2024 12:12 pm XnViewMP doesn't display .AVIF photo's correctly that i exported in HDR Rec.2020 color 1000nits from Adobe Lightroom

How to solve? Will there come an update?

Currently on MacOS 15.0 Sequia, these photos are also wrongly displayed by 'Apple Preview' and Safari
only correctly displayed by Google Chrome, and iPhone

What Color Management to set in XnView? To show these HDR photo correctly?
To show it correctly, XnView would need to send 10bit HDR data to the GPU/display. Which is not yet possible AFAIK. Also the display/OS would need to know that it receives HDR data.