Page MenuHomePhabricator

Append 'width' parameter to API call for displaying main image
Closed, ResolvedPublic

Description

When using the Special:File URL for obtaining the actual image to display (using the filename), we should add a 'width' parameter to limit the size of the image to the width of the container.

Because we need the image container width, this should be added on the client side

This will improve performance a lot for large images.

e.g. https://commons.wikimedia.org/wiki/Special:FilePath/File:India_at_night_from_space_during_Diwali 2012.jpg?width=500

Event Timeline

Change 511839 had a related patch set uploaded (by Eugene233; owner: Eugene233):
[labs/tools/Isa@master] Append 'width' parameter to API call for displaying main image

https://gerrit.wikimedia.org/r/511839

Eugene233 moved this task from Pending to In progress on the ISA board.May 22 2019, 9:39 AM

Change 511839 merged by jenkins-bot:
[labs/tools/Isa@master] Append 'width' parameter to API call for displaying main image

https://gerrit.wikimedia.org/r/511839

Eugene233 closed this task as Resolved.May 23 2019, 1:15 PM