Bug 492323 - HDR output displays corrupted colours with some images
Summary: HDR output displays corrupted colours with some images
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: HDR (show other bugs)
Version: 5.2.3
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Dmitry Testing
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-28 15:21 UTC by Alvin Wong
Modified: 2024-08-29 09:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot (may be clipped to SDR), right window is Krita. (1.05 MB, image/png)
2024-08-28 15:21 UTC, Alvin Wong
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alvin Wong 2024-08-28 15:21:24 UTC
Created attachment 173045 [details]
Screenshot (may be clipped to SDR), right window is Krita.

SUMMARY

When HDR output is enabled in Windows and Krita, some images display in weird saturated, corrupted colours.

Tested image: https://github.com/AOMediaCodec/av1-avif/blob/master/testFiles/Netflix/avif/hdr_cosmos01000_cicp9-16-0_lossless.avif

STEPS TO REPRODUCE
1. Ensure HDR output is enabled on Windows and Krita
2. Open test image
3. Ensure OCIO is disabled.

OBSERVED RESULT
Canvas displays corrupted colours.

EXPECTED RESULT
Canvas should display the image in HDR with somewhat correct colours.

SOFTWARE/OS VERSIONS
Windows: Windows 10

ADDITIONAL INFORMATION
Reproducible on 5.2.3 and master (33eb6843).
Comment 1 Dmitry Testing 2024-08-29 09:30:27 UTC
I can confirm the issue. The artifacts appear only when a specific AVIF file (32f) is loaded. CandleGlass.exr (16f) loads fine. Converting the suggested AVIF into 16f and then back 32f makes it render correctly.