Page MenuHomePhabricator

Thumbs stretch small images (with no width specified)
Closed, ResolvedPublic

Description

Author: grendelkhan

Description:
The |thumb image display tag will stretch an image if it is
smaller than some predetermined size. Although the image itself
is not rescaled, the box containing it is too large, and the
image is scaled to fit that.


Version: 1.4.x
Severity: minor
URL: http://en.wikipedia.org/wiki/User:Grendelkhan/Scratch#Thumbs_stretch_small_images

Details

Reference
bz1220
TitleReferenceAuthorSource BranchDest Branch
Switch Python WASM to RustPython/wasmedge.repos/abstract-wiki/wikifunctions/function-evaluator!90apineapine-wasmedge-pythonmain
Customize query in GitLab

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 8:06 PM
bzimport set Reference to bz1220.
bzimport added a subscriber: Unknown Object (MLST).

Just a note: it's intended to show the image stretched when a specific size is requested,
so that eg small icons can be shown at a larger size without wasting time generating a
large image (which potentially could be abusively large).

However when just giving the |thumb| param it probably should use the real size if it's
smaller than the default thumb size.

dunc_harris wrote:

Using just |thumb| will not scale up images to more than 100% of their width (that one was fixed, though I
don't know its number). However, if you specify a width in the markup, then it will go to that width
regardless of the size of the source image. Since I don't think you were meaning that, then I'll close this.

epriestley added a commit: Unknown Object (Diffusion Commit).Mar 4 2015, 8:14 AM

@epriestley is something misconfigured on our phabricator instance, that made your commit partially show up here?