Page MenuHomePhabricator

Zoom Link for Media Viewer
Closed, ResolvedPublic

Description

Migrated from: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/588

Narrative

As a user, I want a simple way to zoom in on image files in Media Viewer, so I can better see the details.

Acceptance Criteria

  • Show a zoom control below the full-screen control (see design mockup below).
  • If the user clicks on the zoom control, link to the original full-size image on Commons.
  • The user can click on the browser back button to return to the Media Viewer.

Notes

Many users have requested a zoom feature in pilot surveys and discussions, where it is the most frequent request so far .

What they really want is theBasic Zoom feature ( #504 ). But both of these implementations require more development time than we have right now. So we're looking for the simplest solution for now, until we have time to develop better features.

  • (optional) Investigate linking instead to the Daniel Schwen . This may be a better option than going to the original image, but the current code may not yet be ready for production quite yet.
  • (optional)If the original image is so large that it might crash the user's browser (e.g. > 20 Mb?), show the next largest thumbnail size instead.

Design Mockup

The mockup below shows how the zoom icon would appear in Media Viewer.

stupid-simple-zoom-mock.png (287×389 px, 152 KB)

Related Bugs

Related Stories

#8 Media Viewer

#504 Basic Zoom feature

#167 Full Zoom feature

Related Changesets

Event Timeline

MingleTerminator raised the priority of this task from to High.Dec 8 2014, 5:51 PM
In mingle on 2014-05-08 at 00:35:36, @Tgr wrote:

https://gerrit.wikimedia.org/r/132133

Linking to ZoomViewer is commented out because the tool is down. If it gets up (and we decide it is stable enough to use), we might want to add Flash support detection logic and link to the non-Flash version if needed.

In mingle on 2014-05-12 at 10:09:27, @Pginer-WMF wrote:

My main concern with linking with an external tool is user disorientation (missing controls to go back, going full-screen...).

Is it feasible to use an iframe or would that add too much work?

In mingle on 2014-05-13 at 21:57:55, @Tgr wrote:

ZoomViewer is not working right now so we'll just open the original file in a new window (which is also disorienting, but development time for MediaViewer is extremely limited now).

As for iframes, it's not that it's too much work, but it can be very user-unfriendly (hard to control which window gets the keyboard events, on some browsers it interferes with history navigation in weird ways). Also, ZoomViewer is Flash (it has a HTML5 fallback but that is pretty slow); Flash also has a tendency of not playing nicely with the surrounding HTML app (catching low-level keyboard shortcuts like navigation between browser tabs, for example).

ZoomViewer is working. Maybe wmflabs was down for some time. The ZoomViewer is inevitable for large scans and maps. Otherwise these images are practically not usable through MediaViewer right now. But this could be simply resolved by adding a link to ZoomViewer into the MediaViewer GUI. It's ready to use and don't need any development time.

ZoomViewer has been updated since, I believe. Anyway, it is not hosted on the production cluster so linking to it is a no-go.