Skip to content

make the fallback optional if pagefile->url is smaller than webp #903

@jmartsch

Description

@jmartsch

I understand thats it's crucial to save bandwith. That's why we have webP now, finally.

But there is one line in PagefileExtra.php that delivers the normal image url instead of the webp version, if the webp filesize is larger.

In my case and I think on other sites too this is an unwanted behaviour, as quality and colors are different if you compare a jpg and a webp image.

To illustrate this I attached this image, where you can see that the first three products which are being delivered as JPGs because the filesize is smaller are really different looking than the next 3 which are in webp format , especially in the logo area. This is somewhat hard to see here in github, but on my development site it looks really bad and is a showstopper for me to use webp.

chrome_2019-06-12_10-36-09

What I ask for is an option to skip the filesize check and maybe the option to enter a treshold value when to use the smaller image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions