v1

latestOpenAPI 3.1.02026-07-247011.9 KB

/1/display/crop

Crop an image to fill the given dimensions.

get/1/display/crop

Query parameters

urlstring required

The URL of the image to proxy. The URL must be url-encoded to ensure that Embedly retrieves the correct link.

keystring required

Your Embedly API key.

widthinteger required

The width that the image should fill.

heightinteger required

The height that the image should fill.

errorurlstring

The URL of the fall back image to use when url fails. The URL must be url-encoded to ensure that Embedly retrieves the correct link.

growboolean

Set to true if growing the image is allowed. Otherwise the image will never expand beyond it’s original dimensions, making width and height behave like max width and max height.

animateboolean

Setting animate to false will convert the image to the first frame of animation for animated images. Setting this value on non-animated images will have non effect and is safe to do.

compresspngboolean

Setting to true utilizes palette quantization, and increases response time. Setting to false is lossless, zlib compression

qualityinteger

Output quality for JPEG/WebP (1-100). Higher = better quality, larger file.

Response

200