uichemy_set_image_display
How a picture SITS in its slot: its aspect ratio, which part of it stays visible when the slot is a different shape (the focal point), and whether it is darkened for text to sit on. Alt text is stored here too. THESE ARE CANVAS SETTINGS. The WordPress export reads the overlay flag and nothing else, so a ratio or a position set here is not in the exported site — to change the picture itself, use uichemy_crop_image, which bakes the crop into a new file. Alt text is the exception: the canvas writes it onto the picture and the WordPress and Astro exports ship it as the img alt. uichemy_validate reports the pictures that have none.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | No | What the picture shows, for a screen reader. | |
| slot | Yes | An image slot token — image_url_…, from uichemy_get_page. | |
| ratio | No | ||
| overlay | No | Darken the picture so text reads on it. | |
| position | No | Which part of the picture to keep when the slot crops it. | |
| projectId | Yes |