1 [[template id=plugin name=img author="Christian Mock"]]
4 This is an image handling plugin. While ikiwiki supports inlining full-size
5 images by making a [[WikiLink]] that points to the image, using this plugin
6 you can easily scale down an image for inclusion onto a page, providing a
7 link to a full-size version.
9 This plugin uses the [ImageMagick](http://www.imagemagick.org/) tools via
10 [PerlMagick](http://www.imagemagick.org/www/perl-magick.html).
12 Note that this is a stripped down version of Christian Mock's
13 [[original_img_plugin|contrib/img]].
17 \[[img image1.jpg size="200x200" alt="clouds"]]
19 The image file will be searched for using the same rules as used to find
20 the file pointed to by a [[WikiLink]].
22 The `size` parameter is optional, defaulting to full size. Note that the
23 original image's aspect ratio is always preserved, even if this means
24 making the image smaller than the specified size.
26 You can also pass `alt`, `class` and `id` parameters. These are passed through
27 unchanged to the html img tag.
29 You can also set default values that will be applied to all later images on
30 the page, unless overridden. Useful when including many images on a page.
32 \[[img defaults size=200x200 alt="wedding photo"]]
35 \[[img photo3.jpg size=200x600]]