Image Optimization

Reduces and optimizes file size of given image file.
curl --request GET \
--url 'https://api.apilayer.com/image_optimizer/url?url={url}' \
--header 'apikey: dq2TlGLIDrBh1OHx0o7umAtVyyhNzFrE'
{"optimized_image":"https:\/\/assets.apilayer.com\/image_optimizer\/70b559a6-e062-11ea-8f6b-0242ac120002.jpg"}

This API reduces and optimizes file size of given image file or object less then 5 Megabytes (*5 Mb*). Supports PNG and JPEG file formats.

What this API does ?

Uses JPEG and PNG compress/optimize algorithms to reduce file size according to given `quality` value. Default `quality` value is set to `50`, which means, you can reduce file size around 50%.

You can play with the quality value, valid numbers are between `0` – `100`.