Compress PNG API
A new Compress PNG API reduces PNG file size by up to 80 percent while preserving full alpha transparency. Smart palette optimization shrinks UI assets, screenshots, logos, and graphics for faster page loads and lower bandwidth, with no visible loss in quality. It joins the existing Compress PDF and Compress JPG tools.
Highlights
- Lossy palette quantization delivers the largest savings, typically 60 to 80 percent, without noticeable artifacts.
- Lossless mode re-optimizes the file with no pixel changes when exact fidelity is required.
- Transparency is always preserved.
- Output is never larger than the input.
Parameters
CompressionLevel(collection, defaultExtreme) - the compression preset:Lossless,Good, orExtreme.CompressionPercentage(integer, 10-100) - compress to a target percentage of the original file size.CompressionFileSize(integer, kilobytes) - compress to a target output size.
Try it out
- Compress PNG - API sandbox: png-to-compress