The supported image formats are
image/jpeg
image/png
image/gif
Render an image as an <img>
tag.
About the <img>
tag:
alt
attribute if it is not empty,1024px x 1024px
, in contain
mode
(see .Request method parameters),o1-cache
query paramter,Example output:
<img src="/image.png?o1-cache=4c257a4b61&width=1024&height=1024" alt="Image file title" style="max-width:100%; display:block; margin:auto;">
Resize and serve raw image data.
width Optional image width. If provided, `height` must also be provided,
and the two values must match. Must be one of [16, 24, 32, 48,
64, 96, 128, 192, 256, 384, 512, 768, 1024, 1536, 2048] for
caching purposes.
height Optional image height. If provided, `width` must also be provided,
and the two values must match.
mode Optional, one of ['cover', 'contain']. Defaults to 'contain'.
When 'contain' is selected, the image will be fitted into the
box specified by the width/height parameters. So to say, the box
specified by width/height will contain the image.
When 'cover' is selected, the image will cover said box. Note
that unless the original image is has a square size, the returned
image will be greater than the requested width/height.
.Image
.Inline
.Request