← Image prompts
ImageEdit

Replace a portrait background

Replace the setting behind a person while specifying the foreground features and lighting to retain.

Tools: ChatGPT Images or an image editor that accepts a reference image. The example was run with the Codex built-in image tool.

What to provide

  • Attach the displayed synthetic reference to reproduce the example, or a photo you have permission to edit.
Make it yours

Fill in what you know. Empty fields stay as placeholders.

Replace this detail to match your image. Changed inputs have not been tested.

Replace this detail to match your image. Changed inputs have not been tested.

Replace this detail to match your image. Changed inputs have not been tested.

Ready to copy

Example Recorded test output

Input

Attach the displayed synthetic portrait. Exact prompt used: Edit the attached portrait. Replace only the wall behind the subject with a muted dusty-blue plaster wall with a simple vertical join and a soft daylight gradient. Preserve the same face and expression, short curls, round dark glasses, rust-red overshirt, hand position, oak table, and cobalt mug, the crop, and the camera viewpoint. Match soft daylight from frame left so the new backdrop sits naturally behind the original foreground. Keep the fine curl edges and glasses frames clean; do not add props, lettering, or a second person. Return a single edited image.

Output

The wall turned dusty blue and the crop, glasses, hands and mug remained close to the original. Fine wall and clothing textures still changed. Check hair edges and glasses at full size.

Synthetic portrait of a seated woman in round glasses and a rust overshirt at an oak table
Reference / before
Synthetic portrait of a seated woman in round glasses and a rust overshirt at an oak table
Result

Tool settings

One opaque result from the displayed source. Saved at 1536 × 1024 pixels. No seed, quality setting or exact underlying model was exposed.

Improve the result

  • Untested follow-up: Try a slightly darker backdrop with the same light direction; inspect the hair edges again.

Tested with Codex built-in image_gen (model name not exposed) on .

The wall turned dusty blue and the crop, glasses, hands and mug remained close to the original. Fine wall and clothing textures still changed. Check hair edges and glasses at full size. One matching run was recorded. Other references, changed inputs and follow-ups are untested.

Revision 1.0

What to inspect before using the result

The wall turned dusty blue and the crop, glasses, hands and mug remained close to the original. Fine wall and clothing textures still changed. Check hair edges and glasses at full size.

Read the photo editing guide to see this edit alongside two other changes made from the same original. AI tools assisted with this example and its review.