new_canvas
Create a new, empty photo from scratch (not from a file: that is open_photo). width/height, mode (rgb or grayscale, default rgb), fill for the single background layer (white, black or transparent; default white), optional precision (16-bit; the same promotion as open_photo's precision) and name. Returns the same shape as open_photo (image id, size, color mode, precision, layer list), so every other tool treats it like an opened file. On this server width x height must stay within the workspace's pixel limit; '32' precision is refused, and '16' only up to a smaller size limit (memory). At most 2 photos may be open at once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fill | No | The single background layer's initial content. | white |
| mode | No | The new image's base color mode. | rgb |
| name | No | The background layer's name. Defaults to 'Background'. | |
| width | Yes | Canvas width, in pixels. | |
| height | Yes | Canvas height, in pixels. | |
| precision | No | Promote bit depth at creation, same as open_photo's own `precision` — use this ahead of an aggressive tone move to avoid visible banding. Omit for ordinary 8-bit. The megapixel cap this tool enforces scales down with bit depth (a 16-bit request costs 2x the memory of the same pixel count at 8-bit, 32-bit float 4x): 250 MP at 8-bit, 125 MP at 16-bit, 60 MP at 32-bit — the same per-side 30000px limit applies at every depth. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No | ||
| width | No | ||
| height | No | ||
| layers | No | ||
| base_type | No | ||
| precision | No |