mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-12-19 03:11:57 +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 |
||
---|---|---|
.. | ||
logging | ||
model | ||
provider | ||
ui | ||
mmv.js | ||
mmv.lightboxinterface.js | ||
mmv.lightboxinterface.less | ||
mmv.mixins.less | ||
mmv.ThumbnailWidthCalculator.js | ||
mmv.variables.less |