Public APIs
ReSmush.it favicon

ReSmush.it

Photography

Photo optimization.

ReSmush.it's website screenshot

About ReSmush.it

ReSmush.it is a free image compression API that reduces file size for JPG, PNG, GIF, TIF, and BMP images. Requests can be made via GET, POST, or direct file upload, and the service returns a JSON response containing the source and optimized image URLs, original and compressed file sizes, percentage improvement, and an expiration date for the hosted file. JPG compression quality can be adjusted with a qlty parameter (0-100, default 92), and EXIF data is stripped by default but can be retained with an exif parameter. Uploaded files must be under 5 MB, and requests must include a User-Agent header and Referer.

The service is free for personal use with no usage restriction beyond the file size limit; commercial or business use requires contacting reSmush.it for a separate arrangement. It is built as a drop-in replacement for the discontinued Yahoo Smush.it webservice and is compatible with the Drupal ImageAPI Optimize module and the official WordPress reSmush.it Image Optimizer plugin, making it suited for developers integrating automated image optimization into websites or CMS platforms.

The API is operated by ShortPixel, which also offers a separate, more advanced paid API supporting WebP and AVIF generation for users needing additional format conversion capabilities.

Key features

  • Compresses JPG, PNG, GIF, TIF and BMP images via a simple GET/POST/FILES API call
  • Adjustable JPG compression quality via the qlty parameter (0-100, default 92)
  • Strips EXIF data by default to reduce file size, with an option to retain it
  • Returns JSON response with optimized image URL, original/optimized sizes and percentage improvement
  • Compatible drop-in replacement for the old Yahoo Smush.it API

Frequently asked questions

Is the API free to use?

As of March 2024 it is free with no usage restriction except uploaded file size, but only for personal use; business or commercial use requires contacting reSmush.it for a personalized solution.

What image formats are supported?

The API works with JPG, PNG, GIF, TIF and BMP files; other formats return a 403 forbidden format error.

What is the maximum image size allowed?

Uploaded images must be less than 5 MB, otherwise the API returns a 502 error.

Do I need any special headers to call the API?

Yes, including a User-Agent and Referer header is mandatory for security reasons when making requests.

Are there other integrations available?

reSmush.it works with the Drupal ImageAPI Optimize module and the official WordPress reSmush.it Image Optimizer plugin.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product