prepare_publication_image
Resize raster images and embed publication DPI metadata for academic figures. Specify width or height in millimeters to achieve true 600 DPI at final print size.
Instructions
Resize a raster image and write publication DPI metadata using code only.
This tool never calls image-generation providers. To truly meet 600 DPI for final publication size, pass width_mm and/or height_mm. Without a final print size it preserves pixel dimensions and writes target_dpi metadata only.
output_format: Optional raster delivery type: png, jpeg, or tiff.
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": {
"image_path": "<image_path>"
},
"name": "prepare_publication_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width_mm | No | ||
| height_mm | No | ||
| image_path | Yes | ||
| target_dpi | No | ||
| output_path | No | ||
| allow_upscale | No | ||
| output_format | No | ||
| preserve_aspect_ratio | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||