Compress, resize and convert your images with Tinify's Developer API
Using the Developer API to optimize your images for web use, ensuring faster loading times and better performance. Packed with powerful features to handle your images.
Convert to AVIF, WebP, JPEG or PNG
Convert your images to another format, or ask the API to give you the smallest image format! Images with a transparent background can be filled with a color you specify.Perfect image resizing
The API can resize your images as well as optimize them. You only have to upload the original once and then generate the image sizes you need. Resizing includes correct gamma scaling, bicubic transparency edge correction and natural image sharpening.Area of interest detection
Take advantage of smart cropping to create thumbnails with different aspect ratios. The API will resize your images and crop away the parts that are visually the least interesting.Freestanding image detection
We've added a new algorithm to detect free-standing objects on plain backgrounds. The API will add background space or remove superfluous areas when the aspect ratio is changed. This way, the object in your image will remain free-standing and does not get cut off at the edges when resizing.Upload directly or provide a URL to the image
You can either upload images directly or specify a URL to the image you want to compress.Preserve metadata
For the compressed JPEG images, you can choose to preserve copyright information, the GPS location and the creation date. For PNG images, only the copyright information can be preserved.Amazon S3 and Google Cloud Storage
You can instruct the API to save the optimized images directly in your Amazon S3 or Google Cloud Storage buckets. When doing this, you may also set custom Cache-Control and Expires headers.Smart area of interest detection
Smart cropping allows you to create thumbnails with custom aspect ratios, while preserving the parts in your image that are visually the most interesting. When you provide both the width and height, the API proportionally scales the image and crops it as needed to match the desired size. The smart algorithm detects the areas of interest and will keep them centered in the final image, removing less relevant parts of the original image. No manual configuration is needed!
Freestanding object detection
This advanced resizing method is designed for images with free-standing objects on a plain background, such as product photos. Just provide your desired width and height, and the Tinify API will handle the rest. If the smart algorithm detects a freestanding object, it will make sure that the object stays centered and visible. It can add background space where needed or crop away less important areas.
6,512,537,986
Total compressed & converted images
Get your API key now!
Start compressing, resizing and converting your images for your website to boost the load times of your website
Frequently asked questions
To ensure highest service quality, the API has certain limitations. The maximum file size permitted is 500MB, and images should not exceed a maximum canvas size of 256MP (32000 pixels in width or height).
You can compress and convert your AVIF, WebP, PNG, animated PNG and JPG images with the Developer API.