Code Monkey home page Code Monkey logo

Comments (2)

ximion avatar ximion commented on September 3, 2024

This is tricky, because more formats mean more complexity and we can only have one - so all frontends need to support the format first.

I actually played around with this for a while, and jpeg-xl (jxl) yielded by far the best quality/size ratio for the kind of data we produce (it could save about 4MB for Debian's icon tarball, which is huge!). It's pretty much on-par with png, while being vastly smaller.
So, I really would like to use it for both icons and well as screenshots (expanding the Freedesktop icon-theme spec in the process ideally, to just allow it globally). It being suitable for both icons (lossless) and screenshots (lossy) would make it a no-brainer.

The problem though is that webbrowsers only support it as an experimental option, if at all. And that is super annoying. There is nothing better for icons, where we want good quality, and AVIF would be nice, but only for screenshots, as AVIF's lossless mode only yielded results on-par with PNG and I also had some odd artifacts (granted though, I tested this way more than a year ago, so I guess these issues might be fixed now).

As soon as something is added, it's hard to remove, which is why I am currently a bit hesitant. If browsers would support JXL, that would be the ideal outcome, but at the moment it really doesn't look like it... So at least for screenshots, we might want to look into AVIF at some point (or WebP, which has a bit broader compatibility).

from appstream.

razzeee avatar razzeee commented on September 3, 2024

Yeah, jpeg-xl is likely still to new for browsers https://caniuse.com/?search=jpegxl

I was wondering, why we can only have one, I guess you mean, cause the catalogue points at the images.

For the website, i wouldn't need that part, so it would already be helpful for us, if appstream could create other image formats for everything and we can set that in infra, so those images get placed too. Then I could just switch over the website, as we control the image/icon code right now.

from appstream.

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.