Pixboost
Search…
Fit
API endpoint - /api/2/img/[IMAGE-URL]/fit?size=[NEW-SIZE]

Description

Fit - resizes image, crops it to the size and optimises it using lossy compression. If you need to resize image with preserved aspect ratio then use resize operation.

Parameters

size - new size (in pixels) of the image in the format WIDTHxHEIGHT.
You have to specify both dimensions [width] and [height].

Examples

size =200x100 (scaling by the smaller side which is height, cropping sides, center positioning)
Parameters
Original
After
size=200x100

Sandbox

Last modified 1yr ago