my_looks
Your saved looks: filter recipes kept on this server, for you only. op says what to do. op=save (needs image, name; layer or layer_id when the image has more than one layer): read the live adjustment and effect filters on a layer (manage_filters op=list) and keep them under a name. Only the filters the filter tools can recreate are kept, in the order they are applied (settings only, never a photo); a filter that is switched off, confined to a mask or not made with these tools is skipped and listed in the result. Nothing to save is an error. At most 20 looks per person and 50 filters per look; saving under an existing name replaces it. op=apply (needs image, name; layer, layer_id, replace optional): put one of your saved looks on a layer as live, editable filters named "My look · · ...". Every stored setting is run through the same filter tools you have, so each is validated again; it takes a checkpoint first and puts the image back if any step is refused. A layer that already carries this look is refused unless replace is true (then those filters are taken off first). There is no strength option: the filter tools have no per-filter strength, so the look applies as saved (save a gentler look for less). op=list: your saved looks, with the number of steps and when each was saved (a look that cannot be read is reported, never used). op=delete (needs name): delete one of your saved looks; filters it already added to a photo stay on it. op=apply works in batch (preset my_looks, args {name}) to give several photos the same look.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | save, apply, list or delete. | |
| name | No | The look's name: lowercase letters, digits and hyphens, 1 to 40 characters, e.g. warm-film. Needed by op=save, apply and delete. | |
| image | No | Image id, as returned by open_photo. Needed by op=save and apply. | |
| layer | No | op=save and apply: layer name; required when the image has more than one layer (or use layer_id). | |
| replace | No | op=apply only: take off an earlier apply of this look on the layer first. Without it, a layer that already has the look is refused. | |
| layer_id | No | op=save and apply: layer id (takes priority over `layer`). |