docs-builder
Loading

Images

Images include screenshots, inline images, icons, and more. Syntax for images is like the syntax for links, with the following differences:

  1. instead of link text, you provide an image description
  2. an image description starts with ![ not just [
  3. there are restrictions on the scope of image paths
Note

If a page uses an image that exists outside the folder that contains the toc.yml file or docset.yml file that contains that page, the image will fail to render and will generate warnings. Likewise, if a snippet in a file inclusion includes an image and is used in pages that exist in different toc.yml, the images will break.

![APM](/syntax/images/apm.png)

APM

Or, use the image directive.

:::{image} /syntax/images/observability.png
:alt: Elasticsearch
:width: 250px
:::
Elasticsearch

Screenshots are images displayed with a box-shadow. Define a screenshot by adding the :screenshot: attribute to a block-level image directive.

:::{image} /syntax/images/apm.png
:screenshot:
:::
Here is the same image used inline ![Elasticsearch](/syntax/images/observability.png "elasticsearch =50%x50%")

Here is the same image used inline Elasticsearch

Titles are optional making this the minimal syntax required

![Elasticsearch](/syntax/images/observability.png)

Including a title can be done by supplying it as an optional argument.

![Elasticsearch](/syntax/images/observability.png "elasticsearch")

Inline images are supplied at the end through the title argument.

This is done to maintain maximum compatibility with markdown parsers and previewers.

![alt](img.png "title =WxH")
![alt](img.png "title =W")

W and H can be either an absolute number in pixels or a number followed by % to indicate relative sizing.

If H is omitted W is used as the height as well.

![alt](img.png "title =250x330")
![alt](img.png "title =50%x40%")
![alt](img.png "title =50%")
![Elasticsearch](/syntax/images/alerts.svg)

Elasticsearch

![Elasticsearch](/syntax/images/timeslider.gif)

Elasticsearch

[role="screenshot"]
image::images/metrics-alert-filters-and-group.png[Metric threshold filter and group fields]
image::images/synthetics-get-started-projects.png[]