Artificial Intelligence

How to Write AI Image Editing Prompts That Preserve a Person’s Face

By vidu • • 8 min read • 2108 views
How to Write AI Image Editing Prompts That Preserve a Person’s Face

AI image editing tools can change almost everything in a photograph: the background, clothing, lighting, color palette, and even the overall setting. The most difficult part is often preserving the person’s identity while making those edits. A small change to the eyes, jawline, skin texture, or facial proportions can make the result look like a different person.

The quality of the final image depends on more than simply adding the phrase keep the face the same. Effective prompts describe what should change, what must remain untouched, and how the edit should fit naturally into the original photograph. This guide explains how to write AI image editing prompts that preserve a person’s face while producing useful, realistic results.

Why AI Image Editors Change Faces

Generative image models do not always treat an edit as a precise replacement of selected pixels. Depending on the tool, they may reinterpret parts of the image to make the requested change appear coherent. For example, changing a person’s hairstyle may affect the forehead, ears, hairline, or facial outline. Replacing a background may alter lighting on the face. Changing a pose can cause the model to reconstruct facial features rather than retain them exactly.

Face changes are especially common when a prompt is vague, when the edit affects areas close to the head, or when the source image is low-resolution. Strong prompts reduce ambiguity by separating the requested changes from the identity details that should remain stable.

Start With a Clear Preservation Instruction

Place the identity requirement near the beginning of the prompt. Use direct, specific language rather than relying on a general request for realism.

Useful wording includes:

  • Preserve the person’s identity and recognizable facial features.
  • Keep the face unchanged from the reference image.
  • Maintain the original facial structure, proportions, and expression.
  • Do not alter the eyes, eyebrows, nose, lips, jawline, cheekbones, or skin tone.
  • Make the edit outside the face and blend it naturally with the original portrait.

Specificity matters because preserve the face can be interpreted broadly. A model may preserve a general appearance while still changing details that are important to recognition. Listing key features gives the editor a clearer boundary.

Describe What May Change and What Must Not

A reliable editing prompt usually has two parts: the desired modification and the protected elements. This structure is more effective than describing only the final scene.

For example, instead of writing:

Put this person on a beach at sunset.

Try:

Replace the background with a quiet beach at sunset. Preserve the person’s identity, facial structure, eyes, nose, lips, jawline, skin tone, and natural expression. Keep the face unchanged and match the warm sunset light to the existing portrait without repainting the facial features.

The second prompt explains both the edit and the limits. It also tells the tool how to handle a likely conflict: the new warm lighting should affect the scene without changing the person’s facial appearance.

Use Precise Language for Common Edits

Different edits create different risks. A good prompt anticipates those risks and gives the model instructions that fit the task.

Changing the background

Background replacement is usually safer when the prompt clearly protects the face and specifies the subject’s position. Mention the edge of the hair and shoulders as well, because background edits can create halos or distort the outline of the head.

Replace only the background with a modern office interior. Preserve the person’s face, hairline, ears, neck, shoulders, identity, and expression. Keep the subject in the same position and use realistic office lighting without changing facial features.

Changing clothing

Clothing edits can be described as a wardrobe replacement, while explicitly excluding the head and face from the edit area.

Change the jacket to a dark navy blazer. Keep the person’s face, hair, neck, pose, expression, and skin tone unchanged. Make the blazer fit the existing body position and preserve realistic shadows around the collar.

Changing lighting or color

Lighting prompts should distinguish between an overall color grade and a reconstruction of facial features. Ask for a subtle adjustment that preserves natural skin texture and facial detail.

Apply soft, neutral studio lighting and a natural editorial color grade. Preserve the original face, expression, skin texture, facial proportions, and identity. Do not smooth, reshape, or redraw the facial features.

Changing hairstyle

Hair is connected to the face, so hairstyle edits require especially careful wording. Specify that the facial outline and features must remain intact.

Change the hairstyle to a short, textured bob while preserving the original face, hairline where visible, forehead, ears, jawline, facial proportions, and expression. Do not modify the eyes, nose, mouth, or skin texture.

Keep the Editing Scope Narrow

Prompts become less reliable when they request many major changes at once. Replacing a background, changing clothing, altering the pose, adding accessories, and changing the lighting in one instruction gives the model many opportunities to reinterpret the face.

For better control, make one significant edit at a time. Start with the background, review the result, then edit the clothing or color. If the tool supports masks or selection areas, use them to identify exactly where the change should occur. A narrowly selected region generally gives the system less reason to rebuild the face.

When a broad edit is necessary, state the priority clearly:

Preserving the person’s identity and face is the highest priority. Change the setting and clothing only; avoid regenerating the head or facial features.

Use Negative Instructions Carefully

Many image editors respond well to a short list of unwanted changes. These instructions are often called negative prompts, exclusions, or constraints. They can help prevent common problems without making the prompt unnecessarily long.

Useful exclusions may include:

  • No face swap
  • No change to identity
  • No altered eye color
  • No changed facial proportions
  • No artificial smile or new expression
  • No plastic-looking skin
  • No excessive retouching or face smoothing
  • No extra facial features or asymmetry

Avoid adding a long list of unrelated negatives. Too many constraints can make the instruction harder to interpret. Focus on the specific failure modes most likely to occur during the requested edit.

Reference the Original Expression and Pose

Identity is not limited to fixed facial anatomy. A person can look noticeably different if the model changes their expression, head angle, gaze, or pose. Include these details when they are important to the image.

For example:

Keep the original head angle, eye direction, relaxed expression, and natural posture. Preserve the person’s recognizable face and facial proportions while replacing the background only.

This is particularly useful for portraits, professional headshots, profile photographs, and images where the subject’s expression is part of the intended result.

Ask for Natural Integration, Not a New Face

When an edit affects the area around the face, the prompt should ask for visual integration. The goal is not simply to paste the original face into a new image. The face should remain recognizable while the surrounding lighting, shadows, color, and perspective look consistent.

Helpful phrases include:

  • Blend the unchanged face naturally into the edited scene.
  • Match the surrounding light without changing facial features.
  • Preserve realistic skin texture and natural edge detail.
  • Maintain consistent perspective, shadows, and color temperature.
  • Keep the result photorealistic and free from visible seams.

Use a Reusable Prompt Formula

A simple structure makes face-preserving prompts easier to write:

  1. State the edit: Explain what should change.
  2. Define the protected identity: Name the facial features and expression that must remain stable.
  3. Set the scope: Identify the area to edit or state what must not be regenerated.
  4. Describe integration: Request matching lighting, perspective, shadows, and color.
  5. Add focused exclusions: Mention the most likely unwanted changes.

Here is a general template:

Edit [specific area or element] by [requested change]. Preserve the person’s identity, original face, facial proportions, eyes, nose, lips, jawline, skin tone, expression, and head position. Do not alter or regenerate the face. Keep the edit limited to [area] and blend it naturally with the original lighting, perspective, shadows, and texture. Avoid face swapping, reshaping, excessive smoothing, or changes to facial features.

Check the Result in Stages

Even a well-written prompt cannot guarantee perfect identity preservation. Inspect the output at a useful size and compare it with the source image. Look closely at the eyes, eyebrows, nose width, mouth shape, jawline, skin texture, and expression.

If the face has changed, simplify the next instruction rather than adding more creative detail. Reassert that the face must remain unchanged, reduce the edit area, and use a mask if available. You may also get better results by editing the image in separate steps instead of asking for a complete transformation at once.

Respect Consent and Privacy

When editing a real person’s photograph, use the image responsibly. Obtain permission when appropriate, avoid misleading alterations, and do not present a substantially edited image as an untouched photograph. Face-preserving techniques are useful for legitimate creative and professional work, but they should not be used to impersonate someone or create deceptive content.

Final Takeaway

The best AI image editing prompts make identity preservation an explicit priority. Describe the requested change, list the facial features that must remain stable, limit the editing area, and ask for natural integration with the new scene. Clear constraints, smaller editing steps, and careful review will usually produce more consistent results than a vague request for a realistic edit.

Advertisement

Related Articles

10 ChatGPT Prompts for Learning
Artificial Intelligence

10 ChatGPT Prompts for Learning

  Do you forget what you study? Try these visual prompts to make new ideas easier to understand and remember. Reading something once does not always make it stick. Some ideas are easier to under…

vidu• • 4 min read•26 views