mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-12-18 10:52:48 +00:00
4a37c70c95
Nowadays our HTML contains data-file-width="…" and data-file-height="…" attributes. Previously this code was using <img width="…" height="…"> from the tiny thumbnail to calculate the aspect ratio. But this is only a rough estimate and can be off by a significant amount of pixels. Example: Original image size: 4000 x 2100 Thumbnail in the article: 220 x 116 Available canvas height: 630 When using the thumbnail's size: 1195 x 630 When using the original size: 1200 x 630 I still use the old thumbnail size as a fallback just to be sure. It's possible this is unreachable code by now. But it doesn't hurt to keep it. Change-Id: Iabd89762b09523249375bcbc7e4a573ef974e02e |
||
---|---|---|
.. | ||
img | ||
checker.png | ||
mmv.ui.canvas.js | ||
mmv.ui.canvas.less | ||
mmv.ui.canvasButtons.js | ||
mmv.ui.canvasButtons.less | ||
mmv.ui.description.js | ||
mmv.ui.dialog.js | ||
mmv.ui.dialog.less | ||
mmv.ui.js | ||
mmv.ui.metadataPanel.js | ||
mmv.ui.metadataPanel.less | ||
mmv.ui.metadataPanelScroller.js | ||
mmv.ui.metadataPanelScroller.less | ||
mmv.ui.permission.js | ||
mmv.ui.permission.less | ||
mmv.ui.progressBar.js | ||
mmv.ui.progressBar.less | ||
mmv.ui.stripeButtons.js | ||
mmv.ui.stripeButtons.less | ||
mmv.ui.truncatableTextField.js | ||
mmv.ui.truncatableTextField.less | ||
mmv.ui.viewingOptions.js | ||
mmv.ui.viewingOptions.less |