Resize an image to social media dimensions
resize_social_imageCrop and resize an image to an exact social media preset: instagram-post (1080x1080), instagram-portrait (1080x1350), instagram-story (1080x1920), youtube-thumbnail (1280x720), x-post (1200x675), x-header (1500x500), linkedin-post (1200x627), or facebook-post (1200x630). The cover crop keeps the center subject. Send base64 or a public URL. Private addresses are refused and the decoded file is capped at 10 MB. Returns the image as base64 PNG.
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": {
"file": "<file>",
"preset": "<preset>"
},
"name": "resize_social_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The image. Provide url or data. | |
| preset | Yes | Social platform preset with exact pixel dimensions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Resized image as base64 PNG. | |
| bytes | Yes | ||
| width | Yes | ||
| height | Yes |