Page MenuHomePhabricator

Thumbnail boxes improperly sized when |NUMxNUM px is used.
Closed, DeclinedPublic

Description

Author: grendelkhan

Description:
I have a skinny, tall image which I want to use as a thumbnail.
([[commons:Image:AMR and PCI slots.gk.jpg]], in particular.) The thumb is far
too tall, so I used the |300x300px tag as follows:

[[Image:AMR and PCI slots.gk.jpg|300x300px|thumb|AMR slot (brown, at left), with
PCI slot (white, at right) for comparison.]]

The relevant portion of the generated HTML is [div style="width: 302px;"], which
should have a width of 107px. To do this, the code |105x300px must be used. The
image box should automatically size itself to the generated thumbnail, not
require that the precise pixel dimensions be entered.


Version: 1.3.x
Severity: normal
URL: http://en.wikipedia.org/wiki/User:Grendelkhan/Scratch#Thumbnail_boxes_improperly_sized_when_.7CNUMxNUM_px_is_used.

Details

Reference
bz2990

Event Timeline

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

jeluf wrote:

The 300x300px specification creates a box big enough to contain a 300x300 px
thumbnail. It's intended to be used when one wants to have several image boxes
of the same size for images of different aspect ratio or size. If you specify
300x300px for all of them, the boxes will have the same size for all of them,
and the images will fit into it. This is intended behaviour.