Comment by user34283

15 days ago

With WinUI 3 I did not even manage to render PNGs correctly.

The colors were always slightly off and oversaturated, no matter what setting I used.

I migrated the app to Tauri and the PNGs of course rendered perfectly. The implementation was much easier overall.

Hypothesis: This could be due to the toolkit's handling of color profiles. You see this a lot in macOS land with images that use a Display P3 colour profile, e.g. screenshots from a Mac or iPhone.

Native toolkits are usually more advanced and tend to properly support the colour profiles and allow for wider gamut output. Whereas historically the web had poor handling and would assume sRGB, causing more "washed out" output.

  • I believe that the opposite was the case: WinUI does not handle color profiles correctly.

    In the browser or the Windows Photos app they were looking correct, while WinUI was incorrectly oversaturated.