d2phap / ImageGlass

🏞 A lightweight, versatile image viewer
https://imageglass.org
Other
7.89k stars 501 forks source link

JPEG XL HDR images on a non-HDR-system appears dark and dull #1677

Open o-l-a-v opened 1 year ago

o-l-a-v commented 1 year ago

System information:

To Reproduce

Steps to reproduce the behavior:

1. Download sample image

Download this sample image: https://people.csail.mit.edu/ericchan/hdr/hdr-jxl.php Found here: https://people.csail.mit.edu/ericchan/hdr/jxl_images/20140606_102418_IMGP0297.jxl

2. Open with ImageGlass

Open image with ImageGlass, but also other image viewers to compare.

So far I've found that following seems to work correctly:

While following doesn't:

Actual behavior:

image

Expected behavior:

ImageGlass shouldn't look that dark and dull.

Screenshots:

Already provided in "Actual behavior".

Additional context:

Already provided in "To reproduce".

gwy15 commented 1 year ago

I can confirm that even with HDR-capable system (mine Windows 10 22H2 with 1000 nit HDR monitor), jxl HDR images look gray-ish. Adobe Lr/Ps opens and renders HDR fine.

o-l-a-v commented 1 year ago

In XnView MP it works if enabling ICC from Tools -> Settings -> General -> ICC. The Paint.NET extension pdn-jpegxl fixed it by "Convert XYB images to sRGB when loading".

Seems to be related to the XYB color space and ICC, but I'm no wizard on this topic.

gwy15 commented 1 year ago

In XnView MP it works if enabling ICC from Tools -> Settings -> General -> ICC. The Paint.NET extension pdn-jpegxl fixed it by "Convert XYB images to sRGB when loading".

Seems to be related to the XYB color space and ICC, but I'm no wizard on this topic.

hmm interesting, I tested XnView MP and it does properly fallback to SDR, but still lose that HDR highlight above paper white. My test image is https://gwy15.github.io/hdr/IMG01623-HDR.html

o-l-a-v commented 1 year ago

In XnView MP it works if enabling ICC from Tools -> Settings -> General -> ICC. The Paint.NET extension pdn-jpegxl fixed it by "Convert XYB images to sRGB when loading". Seems to be related to the XYB color space and ICC, but I'm no wizard on this topic.

hmm interesting, I tested XnView MP and it does properly fallback to SDR, but still lose that HDR highlight above paper white. My test image is https://gwy15.github.io/hdr/IMG01623-HDR.html

In what editor or viewer does it look correct in your opinion? I tried five different ones. GIMP and Paint.NET looks most correct IMO.

image
gwy15 commented 1 year ago

@o-l-a-v from this SDR image, I really couldn't tell which one has proper HDR highlight (on the left face). I'll test these softwares later today. But in terms of coloring, GIMP and Paint.NET is the most accurate from what I see in Adobe Camera Raw.

gwy15 commented 1 year ago

GIMP: properly fallback to SDR. No HDR effect.

Paint.NET v5.0.11 with pdn-jpegxl: properly fallback to SDR. No HDR effect.

XnView.MP: not-so-great SDR fallback. No HDR effect.

Thorium: HDR effect works, but not fully delivers the peak brightness. I should address that Thorium does not deliver an "over bright" image, but rather an "under bright" image. The avif in the html I mentioned is more accurate to what I meant it to be in the Adobe camera raw when I created it.

o-l-a-v commented 1 year ago

@gwy15 XnView MP v1.6.2 seems to display your sample image correctly now.

Tested again with ImageGlass 9, here's two HDR images that looks wrong.

o-l-a-v commented 11 months ago

Tested with 9.0.8.1208, behavior hasn't changed.

GIS-PuppetMaster commented 4 months ago

same problem here, AVIF photo that exported by LightRoom with HDR information looks gray

Ptilopsis01 commented 3 months ago

The same problem with AVIF, and I'm using win11 24h2 with HDR on and a monitor supporting HDR.

k6G52m4Dz75W commented 2 months ago

Results of AVIF and JPEG XL with HDR on HDR capable display: Micorsoft Photo: AVIF - OK; JPEG XL - not supported ImageGlass: AVIF - thumnail seems OK but full view grey; JPEG XL - all grey Manual assignment of color profile does NOT work as sRGB is always shown (to be used) in the status bar.