Giter Site home page Giter Site logo

Comments (4)

chregu avatar chregu commented on June 12, 2024 1

WebP images should never be 3x bigger with equal quality settings. There's something seriously wrong somewhere. Maybe it tries to store them as "lossless"? Or something like that.

(at rokka, we actually don't check webp vs jpeg, because webp is never much bigger than jpeg. And in almost all cases smaller, so it's not worth the effort, we do that for avif vs webp, though)

from liipimaginebundle.

remikel avatar remikel commented on June 12, 2024 1

@ajaysSymfonyExpert
I had the same problem, the size was always bigger in webp than jpeg.
It appeared that the quality in the filter is not taken into account for the webp.
I don't know how to configure this for one filter but you can configure it globally like :

liip_imagine:
    driver: "gd"
    default_filter_set_settings:
        format: webp
    webp:
        generate:    true
        quality:     80

It will be the exact same size as jpeg for the same quality so I don't know if it worth it except avoiding google lighthouse saying "hey try webp it's better".

from liipimaginebundle.

dbu avatar dbu commented on June 12, 2024

this bundle is not doing any image conversions on its own. your best chance is to ask at the actual image library that you use (gd or imagick).

i think with https://rokka.io/ we also have logic to check if webp actually is better than jpg and discard webp if it does not pan out. maybe @chregu has some input on that. (but this is only as inspiration for you to add on top of it, such logic would be out of scope for the liip imagine bundle)

from liipimaginebundle.

dbu avatar dbu commented on June 12, 2024

@ajaysSymfonyExpert i close this issue as the problem seems to be with the image converter and not the symfony bundle. but feel free to comment if you found the issue, for future reference if others run into a similar problem.

from liipimaginebundle.

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.