Once you retrieve your key, you can immediately start shrinking images. Official client libraries are available for Ruby, PHP, Node.js, Python and Java. You can also use the WordPress plugin, the Magento 1 extension or improved Magento 2 extension to compress your JPEG and PNG images.
You can also create your own integration with any HTTP(S) client. The server will compress your image and respond with a URL where you can grab the result.
curl --user api:YOUR_API_KEY \ --data-binary @unoptimized.png -i https://api.tinify.com/shrink
Same API for JPEG & PNG images
The API compresses JPEG and PNG images. You only have to upload your source image and download the result. Everything else happens automatically.
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.
You can choose to preserve copyright information, the GPS location and the creation date in the compressed JPEG images. For PNG images the copyright information can be preserved.
Amazon S3 integration
If you use Amazon S3, you can instruct the API to save the optimized images directly in your S3 bucket.
Intelligent image resizing
You can create resized versions of your images, which are immediately optimized. You only have to upload the original once. Take advantage of smart cropping to create thumbnails. The API can resize images to a specific size and crop away the parts which are visually the least interesting. How smart cropping works is demonstrated below.