ImageOptim HTTP API for optimization on web servers
imageoptim.com
GitHub: GitHub - ImageOptim/ImageOptim: GUI image optimizer for MacImageOptim is excellent for publishing images on the web.ImageOptim removes EXIF metadata, such as GPS position and camera's serial number, so that you can publish images without exposing private information (but there's an option to keep the metadata if you need it).
When you drag'n'drop images into ImageOptim's window it will run several image optimization tools automatically and combine their results, ensuring that you always get the smallest file.
By default ImageOptim is very cautious and exactly preserves image quality, but if you allow it to change the quality — even only a little — it will be free to use much more aggressive optimizations that give the biggest results. You can configure lossy optimizations in ImageOptim's Preferences. ImageOptim can apply lossy compression not only to JPEG, but SVG, anim GIF and PNG as well! If you enable Lossy minification you'll get smallest file sizes possible.
Release notes: ImageOptim — what has changed in the latest version