How to programmatically change the size of the object in the image?

Draw the viewer’s attention to the most important parts of an image by scaling the main cluster of objects within it. Uploadcare will automatically identify those objects and then scale to the extent you specify.

Alt text

This works best on images with a solid background.

Try it for yourself:

https://ucarecdn.com/
022a66d1-6dfe-4416-81a1-72d70cd17ff4/
-/preview/
-/zoom_objects/80/

Replace 80 with the desired object to background ratio from 1 to 100.

Read more about scaling objects→