Last modified: 2011-03-13 18:04:34 UTC
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.
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.