crop_for_platform
Crop a photo for a platform and get the finished JPEG in one call. The server crops to the format's shape, centred on the main subject when it can find one (or the middle), scales DOWN to the format's size (never up), and exports a download link. It takes a checkpoint first and puts the image back if anything fails. Formats: instagram_square (1080x1080), instagram_portrait (1080x1350), story_reel (1080x1920), youtube_thumbnail (1280x720), pinterest_pin (1000x1500), link_preview (1200x630), x_post (1600x900), cinema_wide (2.39:1, crop only). For story_reel the result says where to keep key content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| focus | No | What to centre the crop on. Default: the subject when the subject finder is available, else the center. | |
| image | Yes | Image id, as returned by open_photo. | |
| format | Yes | Which format. |