On this page:
image
9.0.0.6

3.4 Images🔗ℹ

function

fun image(path :: Path,

          ~scale: scale :: Real = 1.0,

          ~suffixes: suffixes :: List.of(String) = [],

          ~style: style :: maybe(StyleLike) = #false,

          pre_content :: PreContent = [])

  :: Element

Converts an image from a file into a Scribble element. The given pre_content is used as an alternative to the image (such as “alt text” in HTML), depending on the renderer.

An image constructed with the pict library can also be used in a Scribble document, so use functions from that library to construct an image on the fly.