Page MenuHomePhabricator

Wikimedia Commons: download instead of zoom in for TIFF files
Open, Needs TriagePublicBUG REPORT

Description

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

  • go to Commons and open the Gallery of new files
  • click on the thumbnail of an image
  • use the cursor, shown as a magnifying glass icon with a "+" on the center, for zooming the image

What happens?:

  • the download starts

What should have happened instead?:

  • the zoom is suggested by design (the magnifying glass icon), so if I use a magnifying glass icon with a "+", clicking on the image should correspond to the action of zooming in.

Software version (skip for WMF-hosted wikis like Wikipedia):
Firefox version 113.0.2 (64 bits), Windows 10 Home, screen resolution 2560x1440

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

Related Objects

Event Timeline

The steps are incomplete; this requires enabling "Enable Media Viewer" in https://commons.wikimedia.org/wiki/Special:Preferences#mw-prefsection-rendering

the download starts

Cannot reproduce using Firefox 113. On https://commons.wikimedia.org/wiki/Special:NewFiles#/media/File:Childimgx.jpg , clicking on the image opens https://upload.wikimedia.org/wikipedia/commons/c/ce/Childimgx.jpg and does not download anything (in the sense of an explicit browser download).

See https://support.mozilla.org/en-US/kb/change-firefox-behavior-when-open-file and https://support.mozilla.org/en-US/questions/1370409

I'm using Version 113.0.2 (64 bits), sorry I copy and paste my Software version from an other ticket.

This comment was removed by Una_tantum.

@Aklapper I can reproduce it, using your link the download doesn't start. But download is also happening for me using Chrome, please double check this issue with this link: https://commons.wikimedia.org/wiki/Special:NewFiles#/media/File:Elemento_di_portantina_F1286_C2458-2.tif
or an other one (.tif) on the page.

Perhaps it is happening only with tif files?

I've changed my preferences for Firefox. With jpeg files, no problem to zoom. With tif files, a pop up open asking for what to do with the file. Actually, my setting on Firefox is exactly the same for jpeg and tif files.
The magnifying glass icon is not correct for the choice between download and open the file, a cursor would be consistent instead.

Aklapper renamed this task from Wikimedia Commons: download instead of zoom in to Wikimedia Commons: download instead of zoom in for TIFF files.May 26 2023, 12:16 PM
Aklapper reopened this task as Open.

Chrome doesn't support in-browser viewing of tiff files. https://en.wikipedia.org/wiki/Comparison_of_web_browsers#Image_format_support

https://issues.chromium.org/issues/40757811
https://issues.chromium.org/issues/40966282
"TIFF is an extraordinarily complicated format with a huge surface area"

Maybe we can use something like this:
https://gist.github.com/nagman/9d934acd774cd5927129a8d11ece9689
to make a MMV test for tiff support and if it detects the browser doesn't support it, and disable the zoom ? (cause making jpg fullsize thumbs of the large tiffs might be more trouble than it's worth and takes several seconds).