Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Images included in AsciiDoc files are automatically added as an attachment to the corresponding Confluence page and inserted into the page using the Confluence image tag. Included image files are resolved relative to the location of the referencing AsciiDoc file.

No Format
image::../images/frisbee.png[]

Also a caption can be set on an image by using a block title. The title is rendered with a custom CSS class cp-image-title.

No Format
.A nice orange frisbee
image::../images/frisbee.png[]
A nice orange frisbee
Figure 1. A nice orange frisbee

Anchor
_image_size
_image_size
Image Size

In addition, width and/or height can be specified explicitly and are respected when inserting the image into the Confluence page:

...

No Format
image::../images/frisbee.png[height=75]

...

Anchor
_inline_images
_inline_images
Inline Images

Inline images are supported as well:

...

This line has an inline image frisbee within a text block.

Anchor
_remote_images
_remote_images
Remote Images

Remote (i.e., images with a URL target) block and inline images are also supported. These images will not be downloaded and attached to the Confluence page, instead direct link will be used for image rendering.

No Format
.GitHub mascot
image::https://asciidoctor.org/images/octocat.jpg[]

...

Figure 2. GitHub mascot

Anchor
_links
_links
Links

All images (block and inline) can have an external link:

No Format
This image has a link image:../images/frisbee.png[width=16, height=16, link=https://en.wikipedia.org/wiki/Frisbee].

This image has a link frisbee.

...

.