Migrated from: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/933
Narrative
As a user, I can get a warning if I click to enlarge a huge image in Media Viewer, so that I can prevent it from crashing my browser.
Acceptance Criteria
- After clicking, the image area becomes darkened (75%) as it is described in #942
- If the user is trying to open a huge image (criteria to be defined by the developers based on the chances of a size to crash the browser):
- A "large" version of the image is displayed instead of the "huge" original one.
- A message is displayed in addition to showing the loading indicator to communicate that the full-resolution version is still available.
- An additional 3s delay may be introduced to make sure that the user is able to read the message while waiting for the image.
- When displaying the image or going back to the Media Viewer, none of the above elements should be visible.
Note: This issue also takes place in the File: page, so it is not new. But Media Viewer makes it a lot easier for users to accidentally load a huge file. So we should seriously consider this feature, if it is easy to implement and if we can identify a threshold that is acceptable to most community members.
Design notes
- The loading indicator on the left, should animate as described in #924
- The panel is dark yellow (#e0a00b) and uses a similar style to the tooltip but without a pointing triangle. The bottom border is an even darker yellow (#c68400). Text is white.
Related Bugs
Related Stories
#831 Enlarge images by clicking on them in Media Viewer
#924 Show animated cursor when enlarging images