mediawiki-extensions-PageIm.../tests/phpunit
Michael Holloway a8c7cbc870 API: Surface dimensions when requesting original image info
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
2017-01-17 15:07:28 -05:00
..
ApiQueryPageImagesTest.php API: Surface dimensions when requesting original image info 2017-01-17 15:07:28 -05:00
LinksUpdateHookHandlerTest.php Provide test case for getPageImageCandidates 2016-12-08 20:12:03 +00:00
PageImagesTest.php Allow querying non-free images too 2016-11-21 17:29:25 -05:00