Calculate a photo print layout
epl_plan_layoutCalculate how many copies fit, the paper orientation and canvas dimensions, and the printable photo rectangles at 300 ppi. Coordinates are in pixels from the top left. A zero copy count means the photo does not fit. Takes size settings only.
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": {
"photo_size": "<photo_size>",
"paper_size": "<paper_size>"
},
"name": "epl_plan_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gap_mm | No | Requested gap between photos, in millimeters. | |
| margin_mm | No | Minimum margin, in millimeters. | |
| paper_size | Yes | Paper preset. 4x6 and 10x15 denote different paper sizes. | |
| photo_size | Yes | Finished photo preset. us2x2 is exactly 50.8 × 50.8 mm. | |
| orientation | No | auto chooses the orientation with the most copies. | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ppi | Yes | ||
| rows | Yes | ||
| copies | Yes | ||
| gap_px | Yes | ||
| columns | Yes | ||
| paper_mm | Yes | ||
| photo_mm | Yes | ||
| output_px | Yes | ||
| paper_size | Yes | ||
| photo_size | Yes | ||
| orientation | Yes | ||
| photo_rects_px | Yes |