Coder Social home page Coder Social logo

Noticeable color shift about libavif HOT 6 OPEN

hiforrest avatar hiforrest commented on July 23, 2024
Noticeable color shift

from libavif.

Comments (6)

tongyuantongyu avatar tongyuantongyu commented on July 23, 2024 2

The color shift is due to Windows's decoder using BT709 matrix, despite signaled as BT601 in file. If you add --cicp 1/13/1 the color will match. This is a bug in Windows AVIF decoder.

Note that on some old Windows version, the AVIF decoder also ignores the color range and always use limited range.

The web version is using RGB colorspace so is not affected.

from libavif.

vrabaud avatar vrabaud commented on July 23, 2024

Though I see the color shit in your video, I do not see it in Chrome. Can you please try in your favorite browser to see if the color shift is there too? Thx.

from libavif.

hiforrest avatar hiforrest commented on July 23, 2024

hi @vrabaud, Thank you for paying attention to this issue. I was playing around with the Edge browser and decided to compare how an avif format and its original png version looked across different apps - Edge, Windows Photo Viewer, and Directory Opus. I made a video to show what I found: the colors match perfectly in Edge, but not in the other apps. It's pretty strange.

This makes me wonder why avif images look different depending on the app use. I'm really hoping to get that consistent, true-to-color experience across the board, like what Chrome offers. Got any ideas or fixes? Would love to hear your thoughts!

avif.20240420.001859386.mp4

from libavif.

hiforrest avatar hiforrest commented on July 23, 2024

@tongyuantongyu,

Wow, you're an absolute legend! 🙌 You explained the color shift and delivered the solution effortlessly. Thanks a lot for clarifying this tricky color shift issue.

from libavif.

wantehchang avatar wantehchang commented on July 23, 2024

@tongyuantongyu Hi Yuan. Have you reported the bug in the Windows AVIF decoder to Microsoft? If not, I can try to report it.

from libavif.

tongyuantongyu avatar tongyuantongyu commented on July 23, 2024

@wantehchang I didn't report myself, but there's a report: https://aka.ms/AAqboe7 that likely refers to this bug. It may help if you are able to report it to the team in Microsoft more directly.

from libavif.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.