API endpoint - /api/2/img/[IMAGE-URL]/fit?size=[NEW-SIZE]
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.
size - new size (in pixels) of the image in the format WIDTHxHEIGHT
.
You have to specify both dimensions [width] and [height].
size =200x100 (scaling by the smaller side which is height, cropping sides, center positioning)
Parameters | Original | After |
size=200x100 | ​ | ​ |
Original Image | Image after Pixboost transformation |