Giter Site home page Giter Site logo

Comments (3)

phillipberndt avatar phillipberndt commented on June 21, 2024

pqiv uses GTK's own GdkPixbuf for rendering standard file formats, and it looks like it doesn't really support this:

https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/issues/104

Do any Gnome default viewers get this right for you? If yes I could take a look at how they do this.

Does disabling the gdkpixbuf backend fix this for you?

from pqiv.

T-3B avatar T-3B commented on June 21, 2024

GdkPixbuf supports ICC profiles.
An example of Gnome viewer supporting this JPG file: "Eye of Gnome"

Does disabling the gdkpixbuf backend fix this for you?
No, as well as disabling everything except wand (ImageMagick)

A "friend of mine" explained me:

the ICC profile is a base64-encoded null-terminated ASCII string icc-profile option key used in gdk_pixbuf_get_option

you can call gdk_pixbuf_get_option("icc-profile") which returns a gchar * string, and then you can use g_base64_decode to get the actual ICC profile buffer which can be fed to lcms2 or something of that form

I don't know many things about all that stuff (sorry), but it feels like it is possible to render this JPG correctly in pqiv.
Thank you for your fast answer!

from pqiv.

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.