]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/plugins/img.mdwn
img: Support sizes like 200x. Closes: #475149
[ikiwiki.git] / doc / plugins / img.mdwn
index 898609a29e6edb692fafdb866fb2deae93dc35b4..6da80b7e79781d2636149a586c827a0b4ff190d9 100644 (file)
@@ -21,7 +21,9 @@ the file pointed to by a [[ikiwiki/WikiLink]].
 
 The `size` parameter is optional, defaulting to full size. Note that the
 original image's aspect ratio is always preserved, even if this means
-making the image smaller than the specified size.
+making the image smaller than the specified size. You can also specify only
+the width or the height, and the other value will be calculated based on
+it: "200x", "x200".
 
 You can also pass `alt`, `title`, `class` and `id` parameters. These are
 passed through unchanged to the html img tag. If you include a `caption`