print-estimate
Print resolution, bleed and uncompressed bitmap size arithmetic — Given an image's pixel size and a print size (inches, millimetres or centimetres) plus optional bleed, margin and target ppi, returns the effective ppi over trim plus bleed, whether it meets the target, the pixel count a target ppi needs, the largest print size a target ppi allows, the safe area, and the exact uncompressed bitmap size. Built for print-on-demand, layout and image-prep agents; the t
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": {
"widthPx": "<widthPx>",
"heightPx": "<heightPx>"
},
"name": "print-estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Unit for print size, bleed and margin (default in). | |
| bleed | No | Bleed added on each side of the trim, in unit (default 0). | |
| margin | No | Safe margin inside the trim on each side, in unit (default 0). | |
| widthPx | Yes | Image width in pixels. | |
| channels | No | Channels per pixel for the raw size (default 3). | |
| heightPx | Yes | Image height in pixels. | |
| targetPpi | No | The resolution you require, in pixels per inch. | |
| printWidth | No | Trim width in unit. | |
| printHeight | No | Trim height in unit. | |
| ppiTolerance | No | Accepted ppi difference for claimedEffectivePpi (default 0.5). | |
| bitsPerChannel | No | Bits per channel (default 8). | |
| claimedRawBytes | No | An uncompressed byte count you assert. | |
| claimedEffectivePpi | No | An effective ppi you assert; checked against the computed value. |