curl https://images.abstractapi.com/v1/upload/ \
-X POST \
--form data='{api_key": "your-api-key", "lossy": true}' \
--form image=@path/to/image/file.jpg
{
"original_size": "the size of the original input image, in bytes",
"original_height": "original height in pixels of the image",
"original_width": "original width in pixels of the image",
"final_size": "the size of the new image, in bytes",
"bytes_saved": "the number of bytes saved by compressing and resizing the image",
"final_height": "final height in pixels of the image",
"final_width": "final width in pixels of the image",
"url": "url of the image hosted by abstract for you to download. Images are available for 1 day.",
}
Billed monthly
Billed yearly
Fixed a bug causing errors in format conversion for large image files
May 20, 2024
Added support for high-density images on high-pixel-density displays to provide clear images and conserve bandwidth
April 9, 2024
Improved image optimization speed by 20%
March 14, 2024
An Image Processing & Optimization API provides a set of tools for a user to manipulate an image programatically. This can include but is not limited to reducing the image size, changing the image's dimensions, and more.
Image optimization has many technical, user experience, and economic benefits. First, programatic image processing such as through Abstract's API makes it easy for you to get images in a format that you require. Second, more optimized images are often smaller in size and load faster, and so result in a faster experience for users and overall a better user experience. And last, smaller images means less storage and lower costs. It's a win win win!
There are certainly trade offs to make between an image's size and its quality. The smaller an image is, the less quality it has, all things being equal. However, Abstract's Image Processing and Optimization API's are designed to reduce size without affecting quality too much. The trade offs between these two are also fully configurable in the API, so if you don't like the API's default settings, you can always change it.