estimate_compression
Detect a file (family, format, size from magic bytes) and estimate the compression gain by ACTUALLY compressing it. Pass the file as base64 (fileBase64) plus its fileName (the extension disambiguates Office formats). Omit 'level' to estimate all three presets, or set it for a single one. Returns the detected metadata and, per level, the resulting byte size, gain percentage and output format. Max input size: 26214400 decoded bytes; the HTTP body must accept base64 (decoded x 4/3 plus margin).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | ||
| fileName | Yes | ||
| fileBase64 | Yes |