The Image Optimization API lets you crop, resize, change the quality of your images and so much more.
To use this API all you have to do is use the
url attribute returned with an asset object and then append query parameters to it.
For example, take this source image of a turtle - it’s landscape and pretty huge:
<img src="https://assets.contento.io/assets/VK6vBK72xR/turtle.jpg" alt="Picture of a turtle" />
<img src="https://assets.contento.io/assets/VK6vBK72xR/turtle.jpg?fit=crop&w=400&h=400&sharp=6" alt="Picture of a turtle" />
Read the parameter reference to see everything you can do with this API.
Please note that GIFs will skip all image manipulations, so feel free to upload animated GIFs for all your meme needs, but they won’t be cropped or resized and will just be returned from our API as is.