download_image
Download a generated image by its media ID, cropping it to exact dimensions when needed. The output file extension determines the saved format.
Instructions
Download an image that already exists in Flow by its media id, with optional cropping to an exact size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | cover | |
| size | No | Exact size, "WIDTHxHEIGHT" format. | |
| media_id | Yes | Media id, as returned by generate_image. | |
| out_file | Yes | Output path. The extension decides the format. | |
| background | No | Padding color for fit="contain", as a CSS color ("#0f172a", "black"). White by default. |