Skip to main content

Basic Usage

Statamic uses Glide for image manipulation. You’re free to use as few or as many parameters you’d like.
<img src="{{ glide src="image.jpg" height="800" quality="75" format="webp" }}" />

Parameters

quality
string
Defines the quality of the image. Use values between 0 and 100. Only relevant if the format is jpg, pjpg or webp. Default: 90.
format
string
Encodes the image to a specific format. Accepts jpg, pjpg (progressive jpeg), png, gif, webp If using the imagick image manipulation driver, glide can additionally handle tif, bmp and psd. The default format: jpg
width
integer
Sets the width of the image, in pixels.
height
integer
Sets the height of the image, in pixels.