Insert An Image

Automatic image handling

You can upload images to insert them in your pages. These images will be resized automatically.

Set Img:image.ext in the text anywhere you want the image - no blank between Img: and image name. As example :

 Img:myimage.jpg

If default dimensions are not ok for you, you can impose the dimensions by setting Img:small_size.plain_size.image.ext. As example:

 Img:150*800*otherimage.gif

Image type is limited to jpeg, gif and png.
After edition, when clicking on the Img link, a window will open to invite you to upload your image and create or modify IPTC tags.
To force resizing of an existing image, use a trailing star (*), which should be removed later :

 Img:*220*1024*myimage.jpg

IPTC tags (informations written in image file)

If the image already contains IPTC tags, they will be displayed.
The IPTC tag 'Special instructions' can be used to define a licence, e.g. artistic licence, creative common licence or else.
If you have already edited any page on the wiki and defined your author name, this author name (stored in a cookie) will be used to fill copyright field (you can modify it, anyway).

Computer actions

After validating the input, the images are resized and stored on the harddrive.

  • Size of image displayed in the page: 256 pixels (larger dimension)
  • Size of linked image : 768 pixels (unchange images up to 883 pixels)

There is no size limitation (but the server probably have limitations), wrong files will be automatically deleted and too large archive images will be resized.

This markup do not resize images lower than 115% of the required size (to limit quality loss). So if plain size is defined at 768 pixels, a 800 x 600 image will not be resized (it is 104% of required), but a 1024 x 768 will be resized at 768 x 576.

  • Small image is stored as image.s.ext (displayed in calling page)
  • Plain image is stored as image.p.ext (the small image link to this one)
  • Archive image is stored as image.ext (not displayed)

An archive image can be simply displayed with an Attach:image.ext.

If plain image is of same size as the archive image (if it was not resized), the archive will be automatically deleted. The IPTC tags of an image which was not resized cannot be modified if they already exists.

If the small image is of same size as the plain image, there will be no link to the plain image. So by example :

 Img:350*350*AnImage.jpg 

will simply display the image with a dimension of 350 pixels.


This page may have a more recent version on pmwiki.org: PmWiki:InsertAnImage, and a talk page: PmWiki:InsertAnImage-Talk.