v1

latestOpenAPI 3.1.02026-07-247011.9 KB

/1/display/fill

The image will be resized and centered on the canvas so that the entire image fits within the width and height bounds. Any extra space will be filled with the specified color.

get/1/display/fill

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.

colorstring

The css color to fill with. Colors should be 3 or 6 hexadecimal characters. Some examples of valid colors: 000 and 4f2a55.

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.

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