AVIF Color Differences in Directory Opus

Hey there!

I've been playing around with AVIF images in Directory Opus and noticed something a bit off. Both my PNG and AVIF images are essentially identical in content, but when I check them out in Directory Opus, the AVIF seems to have a darker cyan color, especially noticeable in the top left corner. Interestingly, this doesn't happen when I view them in Edge or XnView MP; they look just the same there.

files: avif before after.zip (1.1 MB)

I'm thinking there might be a little hiccup with how Directory Opus is rendering AVIF images. Would love to know if there's a way to tweak this or if it's something on the radar to be looked into. Really appreciate all the hard work you guys put into making Directory Opus awesome, and looking forward to any insight you might have on this!

Thanks a bunch!

Opus doesn't handle decoding the AVIF, that's done by the installed codec, so we have no real control over how it looks.

But on my system at least, I see the same thing in the Photos app - the cyan in the AVIF seems to be slightly more saturated.

Thanks for addressing my query! It looks like the root of the issue is with Microsoft's software for viewing AVIF files. I can't help but express my disappointment that AVIF files aren't displayed perfectly on Windows. It's a bit of a letdown.

Well, the problem's been figured out and a solution's been sorted.

It is a bug in Windows AVIF decoder. The color shift is due to Windows's decoder using BT709 matrix, despite signaled as BT601 in file. Adding --cicp 1/13/1 when encoding avif with libavif, the color will match.