As a user, I want to be able to zoom on large image files in Media Viewer, so I can better see the details.
Note: This is a proposal for the basic version of this feature. For a simpler linkversion that could be implemented sooner, check out T77151.
- When the original image is bigger than the currently image displayed, show a zoom control below the full-screen one.
- When the user clicks on the zoom control, the image shows the image at the original size with scrollbars for moving around (I made an experiment turning the <img> element into an <iframe>, but there may be other technical solutions). As a result, the zoom icon will turn into a zoom-out icon that will reverse the previous change.
- Alternatively, if the above is considered too complex, the control can just be a link to the full-size image, as proposed in the simpler linkversion on this card #588 . In that case, the user has to use the browser back button to return to the Media Viewer.
- An additional detail to avoid double scrollbars (those due to the zooming and those due to the use of scroll to open the metadata panel), we can hide the metadata panel when entering the zoom mode.
- 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.
- If the original image is much smaller than the user's viewport, enlarge it to fill their lightbox (but no larger than 3x? original size)
Note: A number of users have requested this feature in pilot surveys and discussions. It seems that what they really want is theZoom feature ( #167 ), but that is too large of a project for us to take on right now. We're looking for a more basic zoom feature for now, until we have time for a full feature..
- Images for the zoom control available in Gerrit .
#167 Zoom feature