Resize

API endpoint - /api/2/img/[IMAGE-URL]/resize?size=[NEW-SIZE]

Description

Resize - resizes image with preserving aspect ratio and optimizes it using lossy compression. If you need the exact size then use fit operation.

Parameters

size - new size (in pixels) of the image in the format WIDTH and xHEIGHT.

You can specify only one dimension and the second will be calculated according to aspect ratio of the image.

Examples

Parameters

Original

After

size=200

size=x80

Sandbox