make_sticker
Cut the subject of a photo out as a die-cut sticker and get a transparent PNG (or WebP) download link. The server finds the subject, cuts it out on a copy of the photo layer, adds a solid border around it (border, 4 to 50 px, default 2.5% of the subject's long side; border_color, default #ffffff) and, unless shadow is false, a soft drop shadow, crops to the sticker with room for both, and exports with the transparency kept. Your photo is left as it was (the call restores it, so the result gives its NEW image id). If the subject lies on its side or upside down, say which edge its top points toward with subject_up. The image must have a single layer. Needs the selection service.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Image id, as returned by open_photo. | |
| border | No | Border width in pixels. Default: 2.5% of the subject's long side. | |
| format | No | png, or webp (lossless). Both keep the transparency. | png |
| shadow | No | A soft drop shadow under the sticker. | |
| subject_up | No | The edge the subject's top points toward, if it is not upright. | |
| border_color | No | Border color, #rrggbb. | #ffffff |