HomePhabricator

rest: Always scale thumbnail's largest dimension
1a37366c6701Unpublished

Authored by phuedx on Mar 10 2017, 10:21 AM.

Unpublished Commit · Learn More

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

Description

rest: Always scale thumbnail's largest dimension

... thumbnails.

A good example of the difference in behaviour of the PageImages
extension is here <T156800#3087507>. The extension defers to
File#transform, which scales the largest dimension of an image when
scaling, e.g. if an image is 1000px x 2000px and the request is for a
thumbnail "of 1800px", then the thumbnail will be 900px x 1800px.

Bug: T156800
Change-Id: I64bc2244ee78a594298d8637233b0da1083700eb

Details

Committed
phuedxMar 10 2017, 10:39 AM
Parents
rEPOP5328cf46819e: Hygiene: Move EXTRACT_LENGTH to constants
Branches
Unknown
Tags
Unknown
References
refs/changes/91/342191/1
ChangeId
I64bc2244ee78a594298d8637233b0da1083700eb