resize_for_platform
Resize images to platform-specific dimensions for Shopify, Etsy, Instagram, YouTube, Facebook, Pinterest, or custom sizes, with format and quality options.
Instructions
Resize, format, and optimize images with industry presets for Shopify (2048x2048), Etsy (2000x2000), Instagram Square/Story/Portrait, YouTube Thumbnail, Facebook, Pinterest, or custom dimensions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | Resize fit method. Defaults to inside for e-commerce, cover for social media. | |
| width | No | Custom target width in pixels (optional, overrides preset width if given). | |
| format | No | Output image format. Defaults to webp for maximum compression and web speed. | webp |
| height | No | Custom target height in pixels (optional, overrides preset height if given). | |
| quality | No | Image quality level (1 to 100). Default is 85. | |
| platform | No | Platform preset: shopify (2048x2048), etsy (2000x2000), instagram_square (1080x1080), instagram_portrait (1080x1350), instagram_story (1080x1920), youtube_thumb (1280x720), facebook_post (1200x630), pinterest_pin (1000x1500), or custom. | shopify |
| image_path | Yes | Absolute or relative path to the source image file (JPG, PNG, WebP, etc.). | |
| output_path | No | Optional destination file path. If omitted, saves in the same directory with descriptive name. |