Compression advice
compression_adviceGiven 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target_kb": "<target_kb>"
},
"name": "compression_advice"
}
}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). |