Help:Visual file markup/upright: Difference between revisions

Content deleted Content added
m Naked, abrupt end of page without even categories. Brought over categories, &c. from parent page. Prefaced it with {{-}} so the See also header would appear after the last </div>.
m Because each example is overwhelmingly long and filled with placeholder text and an example image, changed: lines beginning with ; → 2nd-level headers.
Line 1:
Normally a thumbnail has a width of 220 [[pixels]] (px). This width is used by typical readers, who have not logged in or who have not changed their preferences. The "<code>upright</code>" option normally creates an image that is about 75% of the width of the default. The exact width is computed by starting with the default thumbnail width, multiplying it by 0.75, and rounding to the nearest multiple of 10.
 
;== Standard behaviour (upright not specified) ==
The standard behaviour can make a tall, thin picture come out too large. For example:
 
Line 11:
{{-}}
 
;== Upright images {{Anchor|upright}} ==
The "<code>upright</code>" option can help fix this by informing the Wikipedia layout system that the image should have a narrower width than usual:
 
Line 31:
{{-}}
 
;== Short, wide images ==
Short, wide images sometimes benefit from "<code>upright</code>" factors greater than 1.0. Factors greater than about 2.5 can generate large images that cause problems with some browsers; for one way to handle wider images, see [[Help:Visual file markup#Panoramas|panoramas]]. Although many image types, such as [[JPEG]] and [[Portable Network Graphics|PNG]], do not handle enlargement well, [[SVG]] images have no problem with it. For example: