mediawiki-extensions-Multim.../resources/mmv
thiemowmde 4a37c70c95 Use much more precise original size for ratio calculations
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
2024-07-15 12:00:53 +02:00
..
logging Remove IIFE 2024-05-21 22:31:15 +02:00
model Remove obsolete class IwTitle 2024-06-13 21:11:58 +02:00
provider ThumbnailInfo: support multi lingual SVG 2024-07-01 22:49:10 +02:00
ui Use much more precise original size for ratio calculations 2024-07-15 12:00:53 +02:00
mmv.js ThumbnailInfo: support multi lingual SVG 2024-07-01 22:49:10 +02:00
mmv.lightboxinterface.js Fix icons in RTL by using an element instead of ::after 2024-07-11 20:07:46 +03:30
mmv.lightboxinterface.less MMV square buttons 2024-06-26 20:28:38 +02:00
mmv.mixins.less Fix dark mode issues with an extended 'Permission details' box 2024-07-08 16:16:15 +00:00
mmv.ThumbnailWidthCalculator.js Remove IIFE 2024-05-21 22:31:15 +02:00
mmv.variables.less MMV square buttons 2024-06-26 20:28:38 +02:00