---
name: image-region-edits
description: Use when an edit changes part of an existing image while keeping the rest — editing a person's face, eyes, hair, skin, body or clothing, editing a logo or brand mark, moving a small detail (a piercing, earring, mole, tattoo, badge or small object) to another spot or to the other side, and fixing one region of an image the user already approved. Load it before the first edit; hard rules for each case; the model pick stays in model-recommendations.
category: image
---

# Image Region Edits

Pick the image-edit model from `model-recommendations` ("Image generation with reference images / image editing (image-to-image)"), then follow the section below that matches the inferred intent. Text changes in an image follow `model-recommendations` ("Text edits on existing images" and "Small text change on an existing image").

### Edits to a person or a brand asset (hard rule)

Use this when the inferred intent is to change part of what an existing image shows (a person's eyes, hair, skin, face, body or clothing, or a logo or brand mark) while keeping the rest.

1. Edit the complete original with the image-edit model from `model-recommendations` ("Image generation with reference images / image editing (image-to-image)"). When the schema has a mask input, you may build the mask from measured coordinates and pass it with the original.
2. Never crop a region, edit the crop and paste or blend the model output back onto the source. A regenerated crop does not line up with its source, so faces and features double or shift.
3. A correction ("still not changed enough") is another edit of the original or of the last delivered edit, with clearer wording. It is never a switch to compositing.
4. A request to keep someone's exact face stays on this route: edit the untouched original again, attach a close-up crop of every face to keep from its source, state each image's role, and say the faces are redrawn likenesses. Offer only options on this route; never offer a paste of face pixels.
5. The model redraws the whole image, so before delivery compare every person and real product the edit had to keep (a face, a book cover, a product shot), changed or not, with their source: one source crop and the same output crop per call. Tell the user the image was redrawn and what to check.

Deterministic tools (`spiral/ffmpeg`) handle deterministic operations only: resize, pad, crop on request, format conversion, trim, concat, building a mask, and placing an exact flat asset the user supplied when they ask for a plain overlay (for example a watermark), never a face or a person. "Small text change on an existing image" in `model-recommendations` is the only crop-and-composite exception for people and brand marks, and it applies to text regions only.

### Moving a small detail to another spot

Use this when the inferred intent is to move a small detail of an existing image (a piercing, an earring, a mole, a tattoo, a badge, a small object) from one spot to another, keeping everything else. One "move it" edit tends to leave the detail where it is, and repeating it with stronger wording does not help, so plan two edits from the first attempt:

1. A remove edit of the image: remove the detail from where it is now, and say the skin, fabric or surface there stays as it is around it.
2. An add edit of the remove edit's output: add the same detail at the new spot, described exactly as it looked (material, color, size, angle). Attach a close-up crop of the detail from the source as a second reference image and state its role.

In both prompts, name every spot both ways: the subject's own side and the side of the image it appears on ("the person's left eyebrow, on the right of the image"). A person facing the camera is mirrored, so a single side word is read either way. Before delivery, check with media understanding, on the source and the final image in one call, that the detail is gone from the old spot and appears once at the new one. On a person, the "Edits to a person or a brand asset" rules above still apply. Tell the user the move took a remove edit and an add edit.

### Local fix to an approved image

Use this when the user approved an image and asks to fix one region (a hand, an emblem, a reflection, part of the background) that shows no person's face or body and no brand mark. Every edit redraws the whole frame, so areas the user already approved drift and earlier fixes come undone.

1. Edit the approved file at its own size, with a mask over the region built from measured coordinates when the schema has one. For fine detail, request two or three candidates in one call.
2. Composite only that region of the same-size result onto the approved file at the same coordinates, with a feathered edge. This keeps every approved pixel outside the region.
3. Before saying the rest is unchanged, pixel-diff the result against the approved file outside the region, and check the seam with the before and after crops of the region in one media understanding call.
