Compress an image
Re-encode an image with quality/format options to reduce file size. Supports jpeg, png, webp, tiff, gif. Instead of a q number you can set quality_target (0-1]: the smallest file with SSIM at or above the target, searched on the worker (jpeg, webp, avif; flat surcharge; outcome reported in X-Pictomancer-Quality-* headers). If the output is not smaller than the input, the request is free (X-Pig-Billed: 0) and does not consume free-tier quota. Optional enhancement modifiers: denoise (1-3), equalize, sharpen (applied denoise -> equalize -> op -> sharpen).
post/v1/compress
Request
- Base URL: https://api.pictomancer.ai (the document declares no server; this is the origin it was published from)
- URL: https://api.pictomancer.ai/v1/compress
- Auth: none declared
Request body
Response
Processed image binary
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.