Compression advice
compression_adviceRead-only
Given a target file size (KB) and optionally the image's current size and pixel dimensions, says what to expect when compressing to that size — quality, how much resolution is usually kept — based on Pixohub's measured tests on 44 photos, and links the matching compress-to-size tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Current width in px (optional). | |
| height | No | Current height in px (optional). | |
| target_kb | Yes | Maximum file size you need, in KB (1 MB = 1024 KB). | |
| current_kb | No | Current file size in KB (optional). |