resize_image
Resize and reformat images for social media platforms using AI outpainting to intelligently extend content for new aspect ratios.
Instructions
Resize/reformat images for different platforms (like Canva Magic Resize). Uses AI outpainting to intelligently extend content for new aspect ratios. Note: 'crop' and 'letterbox' modes coming soon.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_url | Yes | URL of the source image (use upload_file for local images) | |
| target_format | Yes | Target platform format, or 'custom' to specify dimensions | |
| width | No | Custom width in pixels (required if target_format='custom') | |
| height | No | Custom height in pixels (required if target_format='custom') | |
| mode | No | How to handle aspect ratio change: extend (AI outpainting - recommended), crop (coming soon), letterbox (coming soon) | extend |
| background_prompt | No | For 'extend' mode: prompt to guide AI-generated extended areas (e.g., 'continue the beach scenery') | |
| background_color | No | For 'letterbox' mode: hex color for bars (e.g., '#FFFFFF' for white) | #000000 |