HomePhabricator

rest: Don't scale unscalable thumbnails
51855333421dUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

rest: Don't scale unscalable thumbnails

The underlying PageImages API returns the orignal image if it's smaller
than the requested size. In this case, we shouldn't try to
manipulate the thumbnail URL to scale it up.

Bug: T156800
Change-Id: I5d0aa161e80869e4b4f5425d906d1e753047a3a3

Details

Provenance
phuedxAuthored on Mar 6 2017, 2:37 PM
JdlrobsonCommitted on Mar 8 2017, 12:40 AM
Parents
rEPOPb40a24c15cc1: Allow showing non-free images when using MediaWiki API
Branches
Unknown
Tags
Unknown
References
refs/changes/27/341327/4
ChangeId
I5d0aa161e80869e4b4f5425d906d1e753047a3a3