mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PageImages
synced 2024-11-15 03:43:46 +00:00
a8c7cbc870
It's useful for API consumers to have the dimensions of the original image so that they know the bounds within which they can safely rewrite the thumb URL (bearing in mind the prerendered widths[1], in the case of WMF wiki consumers). This change adds an 'original' property to the page object, containing the original image source URL along with its width and height, when original image info is requested. A warning is added when original image info is requested, noting the format change and warning the consumer that the original image URL will no longer be provided within the 'thumbnail' property in a future release. [1] https://github.com/wikimedia/operations-mediawiki-config/blob/master/wmf-config/InitialiseSettings.php#L17535 Bug: T152163 Change-Id: I9d937f73a974dfb099b93552405531464b8ad3ae |
||
---|---|---|
i18n | ||
includes | ||
maintenance | ||
tests/phpunit | ||
.gitignore | ||
.gitreview | ||
COPYING | ||
extension.json | ||
Gruntfile.js | ||
package.json | ||
PageImages.i18n.php | ||
PageImages.php |