Skip to content Skip to footer navigation
You are reading the docs for an old version of Statamic. Consider upgrading to Statamic 6.

Image Modifier

Generate an HTML image element with the variable's value as src.

header_image: /assets/img/bokeh-bunnies.jpg
{{ header_image | image }}
{!! Statamic::modify($header_image)->image() !!}
<img src="/assets/img/bokeh-bunnies.jpg">