placeholder
Generate a solid-color image with optional centered text for mockups or test fixtures. Specify width, height, and colors.
Instructions
Generate a brand-new solid-color image (optionally with a centered label) and write it to 'out'. Useful for mockups, spacer images, or test fixtures. Provide width, height, background color, and optional text with its color and font size. Returns the output path and the generated dimensions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | Yes | Output image path. A new image file is created. | |
| text | No | Optional centered label text. | |
| color | No | Background color as hex, e.g. #e5e7eb (default light grey). | |
| width | Yes | Image width in pixels. | |
| height | Yes | Image height in pixels. | |
| font_size | No | Label font size in pixels (auto-sized if omitted). | |
| text_color | No | Label color as hex, e.g. #6b7280 (default grey). |