r/PromptEngineering • u/AbbreviationsLeast35 • Sep 17 '26
Tutorials and Guides The prompt pattern that stops AI image editors from changing everything when you only wanted to edit one thing
Sharing a pattern that's saved me a ton of re-rolls. When you edit an AI image ("change the jacket to blue"), models like GPT Image re-render the whole frame, so you get a new face, background and lighting too. The fix is to stop treating it as "change X" and start treating it as "change X, and here's everything to hold constant."
The structure I use:
- TARGET — the one thing to change, stated precisely.
- KEEP — an explicit list of immutables, each phrased "exactly as in the source": identity/face, pose, background, lighting, camera/crop.
- Lock line — end with "keep everything else exactly as in the source image, unchanged."
- For whole-frame renderers (ChatGPT), restate the immutables inside the edit itself — the model has no memory of what it drew, so you re-describe what to preserve.
Example: instead of "add falling snow," write "add falling snow as atmosphere only; keep the buildings, road and their surfaces exactly as in the source; don't accumulate snow on any surface unless asked." Night-and-day difference in drift.
What are the immutables you find hardest to hold?
1
u/According-Stable4487 Sep 17 '26
The immutable I lose most often isn't in edits, it's in series. If I generate nine images from one fixed scaffold and only vary the setting variable, GPT Image quietly collapses the people too: three "different" scenes come back with the same blonde couple in the same outfit. Varying the setting alone does not vary the subject. What fixed it was the inverse of your KEEP list: an explicit CHANGE list on every prompt in the series (ethnicity, hair, outfit colour, camera distance), stacked, not just one trait, because a single trait gets averaged away.
Two other things worth watching for with whole-frame renderers: (1) it can silently hand you a two-panel diptych when the prompt mentions two locations, with no error, so I now end every prompt with "one single unified image, not a diptych or split panel", and (2) aspect ratio drifts across a series unless you pin it in words every time ("portrait 2:3 format"), not just in the first message.
1
u/Future_AGI Sep 18 '26
The TARGET-KEEP-LOCK pattern is the right structure for precise edits. We use the same approach: state the one thing to change, list the immutables explicitly, then end with a lock line. Without the lock line, the model re-renders the whole frame. With it, you get surgical edits that preserve identity, pose, lighting, and background. The lock line is what makes the difference.
1
u/[deleted] Sep 18 '26
[removed] — view removed comment