Using ImagePlugin

Last modified: 4/23/2026

Using ImagePlugin

The ImagePlugin embeds images in pages with flexible layout and display options. See Plugins for a complete list of available plugins.

Syntax

[{Image src='/images/sample-mountains.jpg' caption='Mountain Vista' width='300'}] renders as:

Mountain Vista
Mountain Vista

Parameters

Required Parameters

ParameterDescriptionExample
srcImage source: absolute path, URL, filename, or media://filename for media library itemssrc='/images/sample-mountains.jpg'

Optional Parameters

ParameterDescriptionExampleDefault
captionImage caption (also used as alt if alt not provided)caption='Mountain Vista'None
altAlt text for accessibilityalt='Snow-capped peaks'Uses caption, or "Uploaded image"
widthImage widthwidth='300' or width='50%'Original size
heightImage heightheight='200'Original size
alignHorizontal alignmentalign='left', align='right', align='center'None
displayDisplay mode (see below)display='block', display='float', display='inline', display='full'float
borderBorder width in pixelsborder='2'None
styleCustom inline CSSstyle='border-radius: 10px;'None
classCustom CSS classclass='thumbnail'wiki-image
titleTooltip texttitle='Click to enlarge'None
linkURL to link the image tolink='https://example.com'None

Display Modes

The display parameter controls how the image interacts with surrounding text.

display='float' (Default)

Allows text to wrap around the image. Best used with align='left' or align='right'.

[{Image src='/images/sample-forest.jpg' align='left' display='float' caption='Forest Trail' width='280'}] renders as:

Forest Trail
Forest Trail

The image floats to the specified side and text flows around it — good for inline illustrations in articles.

display='block'

Image in its own block, no text wrapping. Text stays above and below.

[{Image src='/images/sample-ocean.jpg' align='center' display='block' caption='Ocean Horizon' width='400'}] renders as:

Ocean Horizon
Ocean Horizon

display='inline'

Image flows inline with text like a word in a sentence — useful for icons.

[Inline image: <span data-jspwiki-placeholder="c8e0243a-36"></span> appears here in the text.] renders as:

Inline image: sunset icon appears here in the text.

display='full'

Full-width image spanning the entire container width. align is ignored.

[{Image src='/images/sample-mountains.jpg' display='full' caption='Full-width mountain banner'}] renders as:

Full-width mountain banner
Full-width mountain banner

Alignment Options

AlignDescriptionBest Used With
leftAligns image to the leftdisplay='float' or display='block'
rightAligns image to the rightdisplay='float' or display='block'
centerCenters the imagedisplay='block'

Examples

Image with border and rounded corners

[{Image src='/images/sample-sunset.jpg' width='350' border='2' style='border-radius: 10px;' caption='Golden Sunset'}] renders as:

Golden Sunset
Golden Sunset

Linked image

[{Image src='/images/sample-forest.jpg' width='300' caption='Click to learn more' link='https://example.com'}] renders as:

Click to learn more
Click to learn more

Right-floating image

[{Image src='/images/sample-ocean.jpg' align='right' display='float' width='260' caption='Ocean Horizon'}] renders as:

Ocean Horizon
Ocean Horizon

Source Types

src accepts three forms:

FormExampleBehaviour
Absolute pathsrc='/images/sample-mountains.jpg'Used as-is
Filenamesrc='photo.jpg'Resolved via Attachments — page-local first, then global
media:// URIsrc='media://IMG_1234.jpg'Resolved via the Media library by filename — no upload needed

When you upload an image through the Attachments system, use its filename directly — the system resolves it automatically:

[{Image src='photo.jpg' caption='Uploaded image'}]

If the Media feature is enabled, reference library photos without uploading them:

[{Image src='media://IMG_1234.jpg' caption='Family Trip' align='center'}]

Accessibility

Troubleshooting

Image not displaying

  1. Check that the src path is correct and the file exists
  2. For attachment filenames, confirm the file has been uploaded
  3. For media:// paths, confirm the filename matches exactly

Text not wrapping around image

  1. Set display='float' explicitly (it is the default but stating it makes intent clear)
  2. Set align='left' or align='right'
  3. Ensure there is enough text beside the image to wrap

Image too large or small

Use width='300' for a fixed pixel size, or width='50%' for relative sizing. Use display='full' for full container width.

For uploading files, see Attachments. To embed files (PDFs, documents, and images), see Using AttachPlugin. To browse and embed photos from the media library, see Media.