Skip to content
GPU-assistedUpload required

Put a Subject Somewhere Else, Convincingly

People assume a composite gives itself away at the outline, so they spend their effort on the cutout. It is almost never the outline. A flawless cutout of someone lit by an office window, dropped onto a beach at sunset, is wrong within a fifth of a second — the light is coming from the wrong side, the colors do not agree, and nothing from the new place is landing on them. Lighting is what sells a composite, and lighting is not an edge problem.

Use this without the search next time. Prathom Workbench puts Prathom's tools in your toolbar.

Add to Chrome — free

Drop an image here, or click to browse

Up to 25 MB. Uploaded temporarily, deleted after processing.

GPU-assisted — results vary slightly between runs.

What it does

  • Whole frame repainted rather than composited
  • Subject relit to match the new surroundings
  • Contact shadow and color spill considered
  • Highest denoise of the background pages

How to use Replace Background

  1. 1

    Start with a subject lit softly

    A subject with a hard light from one side is fighting whatever comes next. Even, soft light gives the relighting step the most room to work.

  2. 2

    Run the replacement

    The frame is repainted with a new setting, and the shadows, rim light, and color on the subject are moved to agree with it.

  3. 3

    Check the four give-aways

    Light direction, color temperature, spill from the new environment, and a contact shadow where the subject meets the ground.

How it works

Your image is scaled to about one megapixel and repainted at a high denoise with a fresh seed each run. The instruction asks for a new setting and, in the same breath, for the subject to be relit to match it — shadows moved, rim light moved, and the color of the light on skin and clothing changed to agree with the new surroundings.

The negative prompt is a list of composite failures rather than image artifacts: a cut out edge, a halo outline, mismatched lighting, a wrong shadow direction, a missing contact shadow, and a floating subject.

This is the opposite approach to the other background pages here, which cut the subject out and leave it untouched. The trade is deliberate and it is explained below.

Four things that give a composite away

Ask someone why a composite looks fake and they will usually say the edges. Show them the same composite with the edges perfect and they will still say it looks fake. The real signals are these.

Direction. The shadow under a nose, a chin, a shelf, or a shoe points away from the light. If the subject's shadows point one way and everything behind them points another, the picture contains two suns and the viewer notices in the way they notice a wrong note.

Temperature. Interior tungsten is warm, overcast daylight is cool, shade is bluer than direct sun. A subject photographed under one and placed under another is a different color from their surroundings, and skin is the thing people calibrate on most reliably.

Spill. Environments throw light back. Grass puts green under a chin, a red wall warms one cheek, snow lifts the underside of everything. A subject with absolutely no color from their surroundings is a subject that was not there.

Contact. Wherever a subject meets a surface there is a dark, tight shadow. It is small and it does almost all of the work of putting weight on the ground. Leave it out and the subject floats, however good the outline is.

Why this page repaints the whole frame

A cut-and-paste pipeline can fix none of the four, because the subject's pixels are fixed the moment they are cut. You can grade them, but grading applies one change to all of them and shadow direction is not one change.

Repainting removes that constraint. The model produces subject and setting as one picture, so the relationship between them can be right by construction rather than corrected afterwards.

The cost is honest and it is significant: the subject is being generated, not preserved. Faces drift, patterns on clothing wander, small objects change. That is the trade this page makes, and if it is the wrong trade for your image — a product that must be exact, a person who must be exactly themselves — the studio backdrop page keeps the subject pixel for pixel and gives you less freedom over the setting.

Choose a setting your lighting can support

The single most useful habit is to pick the new background to suit the photograph you have.

A subject with strong light from the left works in any scene where light comes from the left, and fights every scene where it does not. A softly and evenly lit subject is compatible with almost anything, because there is no emphatic direction to contradict.

So if you can influence the original shot, shoot it soft. And if you cannot, look at which way the shadows fall before deciding where to put them.

Publication gate

This page ships once the workflow has been run against a softly lit portrait, a hard side lit subject, a full length figure where a contact shadow is required, and a subject in a strongly colored room, checking direction, temperature, spill, and contact in every output.

Examples

Portrait from a bright room

desk.jpg - 2000x2600, soft frontal window light
prathom-replace-background.png - 1074x1396

The intended case. Soft even lighting on the subject can be pushed towards most new settings without contradicting itself.

Hard side lit subject

sun.jpg - 2400x1600, strong sun from the left
sun-newbg.png - 1224x816

Harder. The existing shadow direction is emphatic, so the new setting has to be one where light from the left is plausible or the whole thing fails.

Frequently asked questions

Why repaint instead of cutting out and pasting?

Because a paste cannot change the subject. The cutout arrives carrying the light of the room it was photographed in, and no amount of edge refinement makes that light match the new scene. Repainting the frame lets the shadows on the subject, the color on their skin, and the new surroundings be decided together.

What is color spill?

Light bouncing off the environment and landing on the subject. Stand on grass and there is green under your chin; stand beside a red wall and one cheek is warm. A composite with no spill reads as a sticker even when everything else is right, because real objects are always slightly colored by where they are.

Why does the contact shadow matter so much?

It is what attaches a subject to the ground. Without a shadow at the point of contact, the brain reads the person as hovering slightly, and it does this before any conscious inspection. A soft dark area under the feet or the base of an object does more for believability than a better cutout ever will.

Will my face survive the repaint?

Mostly, and it is the risk you take with this approach. A cut-and-paste leaves the subject untouched by definition; a repaint at this denoise can move a feature. Compare the face against the original before publishing, and use the studio backdrop page instead if the subject must not change at all.

Is the AI Replace Background tool free, and do I need an account?

Yes. The AI replace background is free, and there is no account to make first. Nothing is billed, no email is asked for, and no watermark is added to what you download. Uploads are capped at 25 MB, the work is queued on a shared GPU host rather than run in your browser, and finished jobs are held for thirty minutes before they are cleared.