Go to file
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
i18n API: Surface dimensions when requesting original image info 2017-01-17 15:07:28 -05:00
includes API: Surface dimensions when requesting original image info 2017-01-17 15:07:28 -05:00
maintenance Fix typo: page_ids -> pageIds 2016-12-09 17:08:33 -08:00
tests/phpunit API: Surface dimensions when requesting original image info 2017-01-17 15:07:28 -05:00
.gitignore build: Configure banana-checker and jsonlint 2015-06-19 22:01:11 -07:00
.gitreview Whoops, track not trace 2016-10-24 17:03:10 -07:00
COPYING Add COPYING 2014-02-20 19:33:08 +04:00
extension.json Merge "Restrict page images to lead section" 2016-12-08 19:26:39 +00:00
Gruntfile.js build: Configure banana-checker and jsonlint 2015-06-19 22:01:11 -07:00
package.json build: Updating development dependencies 2015-12-29 11:46:04 -08:00
PageImages.i18n.php Convert to new array syntax 2016-12-01 16:49:13 -08:00
PageImages.php Convert PageImages to extension registration 2016-10-16 20:45:54 +01:00