Image compression API
2025 · POSIMYTH
Upload an image, choose JPG, PNG or WebP and a quality level, and optionally new dimensions, a DPI and whether to keep the metadata. It comes back as a download or as base64.
format by format
JPEGs are saved progressive, so they appear faster on slow connections. PNGs use optimised lossless compression. WebP switches to lossless at quality 100. Each format gets its own rules instead of one setting for all.
what I learned
Offering base64 output makes an API easy to call from no-code and automation tools.
Python · FastAPI · Pillow · Docker