Both block and inline image macros have built-in support for scalable vector graphics (SVGs).
But there's more than one way to include an SVG into a web page, and the strategy used can effect how the SVG behaves (or misbehaves).
Therefore, these macros provide additional options to control how the SVG is included (i.e., referenced).
When the image target is an SVG, the `options` attribute on the macro accepts one of three values:
* _none_ (default)
* interactive
* inline
The following table demonstrates the impact these options have.
.Demonstration of option values for SVG images
[cols="l,a"]
|===
|image::sample.svg[Static,300]
|image::sample.svg[Static,300]
|image::sample.svg[Interactive,300,opts=interactive]
|image::sample.svg[Interactive,300,opts=interactive]
Observe that the color changes when hovering over the SVG.
|image::sample.svg[Embedded,300,opts=inline]
|image::{docdir}/../images/sample.svg[Embedded,300,opts=inline]
Observe that the color changes when hovering over the SVG.
The SVG also inherits CSS from the document stylesheets.
|===
How the options value works and when it should be used is described below:
.Option values for SVG images (HTML output)
[cols="1,1,2,2"]
|===
|Option |HTML Element Used |Effect |When To Use
|_none_ (default)
|
|Image is rasterized
|Static image, no interactivity, no custom fonts
|`interactive`
|