share_edit
Prepare a page that shows the user how this edit was made, so they can share it: before and after, a picture for each step that changed the look, and a plain list of the steps. Call it for an image you edited in this conversation, once the user is happy with the result and wants to share it, by the id you edited it under: do not reopen the photo to share it, because a reopened photo starts a new history and the page would show none of the edit. It makes a DRAFT only and returns a confirm link; give that link to the user, who confirms there before anything is public. It also looks for license plates and faces in the before and the after picture and reports what it finds in each: if it finds any, offer to blur or remove them first (a masked blur stays on in every picture), then call it again. It takes about a minute. Your adjustments are left exactly as they were. Give it chapters: the edit told as a few chunks of work, each saying in plain words what it did to the photo (for example "Brought out the water: selected the water and lifted its turquoise and depth"), not tool names. To write them, first call it with preview: true: it returns the numbered steps at once, with no draft and no pictures; then call it once with your chapters. Chapters that do not fit are refused before anything is made. To change a draft's title or chapters afterwards, call it with that draft's share_id and title or chapters: it revises the draft, with no new pictures. Sharing the same photo again (after more edits) makes a new draft that replaces its earlier unconfirmed one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No | The id of the edited image, as returned by open_photo. Required unless `share_id` is given. | |
| title | No | A short title for the page (at most 80 characters). Default: "My edit". | |
| preview | No | True returns the numbered steps (and the chapters, checked, when given) at once, with no draft and no pictures. Default false. | |
| chapters | No | At most 8 chapters covering every step once, in order. Without them the steps are grouped by kind of work. | |
| share_id | No | A draft's share_id, from an earlier call: revises that draft's `title` or `chapters` instead of making a new one, with no new pictures. | |
| include_before | No | Whether the page shows the before picture and a picture for each step (default true). False shares the after picture and the list of steps alone, for an edit whose original must not be shown. |