Improve color management for wide-gamut images with embedded profiles #1726
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
QuickLook was failing to render Display P3 and other wide-gamut color space images correctly, showing washed-out or incorrect colors compared to Windows 11 Photos App. While the initial fix enabled color management by default, it had limitations in handling images with embedded color profiles.
Root Cause
The original color management logic was too restrictive - it only applied color profiles to images with RGB/sRGB/scRGB color spaces, but Display P3 and other wide-gamut images often have embedded color profiles that weren't being handled properly.
Changes Made
This PR enables color management by default and improves the handling of wide-gamut images:
UseColorProfiledefault fromfalsetotrueUseColorProfiledefault fromfalsetotrueImageMagickProvider.cs:Technical Impact
The improved logic properly handles images with embedded color profiles by:
mi.HasColorProfile)Benefits
Fixes #1725.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.