bake
Bake a layer's live filters into its own pixels without merging it into anything: the layer survives as itself, just with no more editable filters; a text layer stays a text layer (baking never rasterizes one). A masked filter's confinement survives the bake exactly. Defaults to the selected layer, or the topmost layer if none is selected. Baking clears the masked-filter refusal of canvas_size, resize and transform_image: it is the way to make a masked adjustment safe to resize, rotate or flip around. all: true bakes every ordinary layer with a live filter at once; a group layer is always skipped, even one that carries its own filter, and is reported under skipped_groups_with_filters. Targeting a group directly (layer / layer_id) is refused. IRREVERSIBLE in this session: there is no undo, so make a checkpoint first when in doubt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Bake every layer on the image that has any live filter, instead of just one. A group layer is always skipped even when it carries its own filter (filters on a group item cannot be merged) — any such group is reported under skipped_groups_with_filters rather than silently ignored. | |
| image | Yes | Image id, as returned by open_photo. | |
| layer | No | Layer name. Defaults to the selected layer, or the topmost layer if none is selected. Ignored when layer_id or all is given. | |
| layer_id | No | Canonical layer id. Takes priority over `layer`. Ignored when `all` is given. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| baked | No | ||
| layer_id | No | ||
| baked_layers | No | ||
| skipped_groups_with_filters | No |