Skip to navigation
How to set max width to embedded MediaWiki image
05.09.24
use options example: ``` [[file: filename.png | 300px]] ``` Resizing option: one of {width}px — Resizes the image to fit within the given maximum width in pixels, without restricting its height. (Only whole-number pixel values are supported. A space character between the width value and "px" is permitted.) x{height}px — Resizes the image to fit within the given maximum height in pixels, without restricting its width. Only whole-number pixel values are supported. A space character between the height value and "px" is permitted. {width}x{height}px — Resizes the image to fit within the given width and height in pixels. Only whole-number pixel values are supported. A space character between the width value and "px" is permitted. upright — Resizes an image to a multiple of the user's thumbnail size preferences – or the default thumbnail size, for logged-out users or logged-in users who have not changed their preferences – to fit within reasonable dimensions. This option is often useful for images whose height is larger than their width. Requires either thumb or frameless. Setting |upright=1.0| will display the image at the user's default image width. |upright=2.0| will display the image at double the user's default width. The image will always retain its aspect ratio. Images in non-scalable media types can be reduced in size, but not increased; e.g., bitmap images cannot be scaled up. The upright setting does not require an equals sign, i.e. |upright 2.0| works the same as |upright=2.0|. When used without a value or an equals sign (e.g., |upright|), defaults to |upright=0.75| (although |upright=| is the same as |upright=1.0|) The default maximum size depends on the format and the internal image dimensions (according to its media type).
https://www.mediawiki.org/wiki/Help:Images
Reply
Anonymous
Information Epoch 1732195745
Looking for the ninety percent solution.
Home
Notebook
Contact us