Page MenuHomePhabricator

thumbimages of webp images should be in webp format instead of png
Closed, DeclinedPublicFeature

Description

Steps to replicate the issue (include links if applicable):

  • click on one of the thumb links of any webp image

What happens?:

a png thumb file is displayed

What should have happened instead?:

a webp thumb file is displayed

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Aklapper changed the task status from Open to Stalled.Jun 8 2023, 3:08 PM

Hi @C.Suthorn, unfortunately this Wikimedia Phabricator task lacks some information.
If you have time and can still reproduce the situation: Please add a more complete description to this task. That should be

  • a clear and complete list of exact steps to reproduce the situation, step by step, so that nobody needs to guess or interpret how you performed each step,
  • what happens after performing these steps to reproduce,
  • what you expected to happen instead,
  • a full link to a web address where the issue can be seen,
  • the web browser(s) and web browser version(s) that you tested.

A good description should allow any other person to follow these steps (without having to interpret steps) and see the same results. Problems that others can reproduce can get fixed faster. Thanks.

This applies to all 29975 webp files at commons. Use mediasearch to choose any of them. On the file description page hover the mouse over the thumb download links and it will show a download url ending in ".webp.png" (and it is really silly to generate a png thumb from a png file. the webp will be smaller).

Aklapper changed the subtype of this task from "Bug Report" to "Feature Request".Jun 10 2023, 9:49 AM

Please include such steps. So I have to go to https://commons.wikimedia.org/wiki/Special:MediaSearch?type=image to find something like https://commons.wikimedia.org/wiki/File:Johnrogershousemay2020.webp (the first one I tried had no thumb images). Please always include links in the future so other people save time - thanks.

I'd say this is not a bug as there is no code behaving wrongly. It's a feature request as code to handle this likely does not exist...

Aklapper renamed this task from thumbimages of webp images are png files instead of webp to thumbimages of webp images should be in webp format instead of png.Jun 10 2023, 9:50 AM
Aklapper changed the task status from Stalled to Open.
Aklapper triaged this task as Low priority.
Aklapper edited projects, added Thumbor; removed MediaWiki-File-management.

See also T27611 for previous discussion on this topic.

In my testing, webp previews are not visible at all in the uploader. It looks like webp needed to be added to the list of content types the javascript handles, I've made that change here: https://gerrit.wikimedia.org/r/c/mediawiki/core/+/928999/

TheDJ subscribed.

This ticket lacks argumentation. There is no case provided for why a webp preview should be provided.

Even if there were argumentation, almost all our thumbnails are either png or jpg. Webp optimized thumbnails are conditionally used when performance benefits from it and your browser supports it. I see no reason why webp and only webp should use webp thumbnails and other thumbnails are not taking into consideration.