Documentation


GET /v2/image/{image}

Primary endpoint of ImageCDN.

Examples

Query Parameters

Parameter Description
image

A URL-Encoded link to the image you wish to cache and apply transformations to.
Not sure what this means? Take a look at the Getting Started guide.
Note: The image must be reachable by the image service (contact us for whitelisting options).

height

Height of the desired image, in pixels.

width

Width of the desired image, in pixels.

format

Override the format output by the service.
Options are: `webp`, `jpg`, `png`.
Defaults to the best format supported by the current browser.

fit

How to fill the space provided by height/width.
Options are: `cover`, `contain`, `fill`, `inside` or `outside`.
Defaults to: `cover`.