smart_crop
Automatically crop images to target dimensions by detecting high-detail or salient regions using entropy or attention strategies.
Instructions
Intelligently crop image to specified dimensions using entropy or attention detection
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": {
"input": "<input>",
"output": "<output>",
"width": "<width>",
"height": "<height>"
},
"name": "smart_crop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Input image path or URL | |
| width | Yes | Target width in pixels | |
| height | Yes | Target height in pixels | |
| output | Yes | Output file path | |
| strategy | No | Cropping strategy: entropy (high detail areas) or attention (salient regions) |