image-1

Serve, resize and crop images.

Supported formats

The supported image formats are

image/jpeg
image/png
image/gif

Parameters

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.

Supported OS Interfaces

.Image
.Inline
.Request