Skip to content

Product Photo Background Swap: Turn a Beige-Background Perfume Shot into Marble Window Light

Written by Slloy AI Team · Tutorials · 8 min read

A small perfume brand usually has exactly one usable product photo on hand: the one the supplier sent, or the beige-background shot taken six months ago. But that one image has to cover three places — the Amazon main image must be pure white (RGB 255,255,255), the Shopify product page needs a sense of scene, and the Instagram holiday post needs warm light and props.

Reshooting costs: half a day of studio rental starts at $300, a product photographer charges another $100–250 per image, and props and retouching are extra. Most people end up cropping the same image into four sizes and using it for two years. That's where visual fatigue comes from: main-image click-through drops, and you assume it's a pricing problem when really every competitor has that same shot.

Where this gets stuck: generating a background is easy, keeping the product is hard

The model never struggles to generate a marble wall, a window, afternoon side light. What it struggles with is keeping this one product of yours.

Its default behavior is to redraw. Give it a glass perfume bottle and it will paint "a glass perfume bottle," not "your bottle." The curve of the body, the highlight on the gold cap, every character on the label can drift at this step. And this kind of error is completely invisible in a listing thumbnail — you only find out after a customer points it out post-launch.

There is only one acceptance test: zoom the result to 200% and look at the cap edge and the label text. If the edge is mushy or the letters changed, it was redrawn, not background-swapped.

How this prompt is written

The template's prompt isn't long, but the four kinds of constraint are laid out clearly. Understand these four sentences and you can adapt it to other products without going off track.

The first sentence locks the product before it mentions the background. The original reads: "Keep {product} exactly as it is — same shape, proportions, colour, material and surface finish, and keep every label character unchanged." Putting "keep" first, and calling out "every label character" separately, is the backbone of the whole prompt.

The second sentence opens exactly one variable. "Change only the background to {background}." One prompt changes one thing. Try to swap the background and the color at once and both come out worse — when I tested the color-swap template it failed outright, turning a square bottle into a cylindrical one.

The third and fourth sentences handle light and shadow. They require matching the original's light direction and color temperature, and adding a contact shadow directly beneath the product. Without a contact shadow, the product is just a piece of paper pasted onto the background. Four prohibitions follow immediately: no reshaping, no added props, no scaling or moving, no changing packaging text.

Of these four prohibitions, the easiest to overlook is "no added props." It is exactly why the pedestal and leaves disappear below — how well the model obeys a "don't" depends on how specific you are. "Don't change the product" does nothing; "don't change a single character on the label" does.

Before you start: login and credits

Log in. Open slloy.com, click "Log in" in the top right, enter your email, and type in the 6-digit code you receive. The site only supports code-based login, no password — just remember which email you used.

Credits. Generation is charged per run; this one is 20 credits (about $0.13 on the largest plan, up to $0.60 on the smallest). Your balance is in the account panel in the top right — open it to see it; if you're short, the page tells you outright and won't charge you for nothing.

Does this one need an uploaded image? Yes — it's a "keep the original, change one thing" template. Without an upload you get a product the model made up, and credits are still charged. There's a reference-image upload slot in the left column; just drag your photo in.

What the interface looks like. Once you're in the generator, the left column from top to bottom is: image/video toggle, model (Seedream 5.0 for this one), prompt library (showing "preset loaded," with the template already filled in for you), prompt input box, style presets, aspect ratio, number of images, and at the very bottom the generate button — on a long page you have to scroll down a bit to see it. The right column is the preview area and recent works.

Doing it: four steps, two blanks

Prompt library page: three rows of filters and the "Generate this" and "Copy" buttons on each card
Prompt library: three rows of filters (use case / platform / season), with two buttons at the bottom right of each card — "Generate this" carries the prompt into the generator, "Copy" just grabs the text.

Step 1 — open the prompt library. Click "Prompts" in the top bar. In the use-case row, pick "Edit a Photo" — background swaps, pure-white cutouts, object removal, color swaps, and virtual sets all live in this category, 6 templates total, all jobs that start from an existing photo.

Step 2 — find "Product Photo Background Swap." The card shows the model and use case, with two buttons at the bottom right: click "Generate this" and the prompt is carried into the generator as-is; click "Copy" to grab just the text, handy for pasting into your own tools.

AI generator interface: model, presets, prompt, and aspect ratio on the left; preview area on the right
Generator: on the left are the model, the loaded preset, the editable prompt, aspect ratio, and number of images; on the right are the preview and recent works. Screenshot taken from a different generation; the layout is the same as when swapping backgrounds.

Step 3 — upload a product photo and fill in the two blanks. In the generator, the prompt box is already filled with the original text, and the model defaults to Seedream 5.0 (20 credits per image). There are only three upload requirements: front-facing, even lighting, and the whole product in frame. No solid background needed, and no need to cut it out yourself. The output ratio follows your uploaded original, so you don't pick it separately.

Then replace the two placeholders. What I filled in this time:

  • {product} → a clear glass perfume bottle with a gold cap
  • {background} → a marble countertop and marble wall, with a window on the right and afternoon side light

Step 4 — generate. 45 seconds to output, 20 credits charged.

The placeholders are the only place in this workflow where you can waste money for nothing. On screen it's just a word in curly braces — no highlight, no warning. Forget to replace it and the model invents a product of its own — a lovely image, but not your goods, and credits are still charged.

Placeholder cheat sheet

The template wraps its blanks in curly braces — 2 in total, all of which you must replace with your own content. Leave them unfilled and the model makes something up. The right column has sentences you can paste straight in; get it working first, then customize.

PlaceholderWhat it controlsCopy-paste ready
{product}The product itselfa clear glass perfume bottle with a gold cap
{background}The backgrounda light grey concrete wall with a shaft of natural light from the back right

The output: background right, props gone

Original: perfume bottle on a marble pedestal, eucalyptus sprig on the right, beige background
Uploaded original: beige background + marble pedestal + eucalyptus sprig
Result: perfume bottle in front of a marble countertop and marble wall, window light falling from the right
Result: marble wall + window light from the right, window-pane shadow falling on the countertop, no retouching

The background swap is clean: marble wall, window on the right, window-pane shadow falling on the countertop, consistent light direction, and the bottle doesn't look like it's floating. The contact surface and lighting are the most reliable part of this template — steadier than most comparable tools.

But two things happened at once, and they need spelling out:

The pedestal and the eucalyptus sprig vanished together. The prompt says "no added props," and the model read that as "leave only the product in frame." It didn't treat the pedestal and leaves in the original as part of the product — it treated them as things to be cleared away.

The bottle shifted slightly. In the original the body sits a little left of center; in the result it's basically centered, moved a few percentage points toward the middle of the frame. Size unchanged, position changed.

How to fix the two failure points

Both are fixable, and the method in each case is to turn them into explicit conditions in the prompt — if you don't write it, the model falls back to its own default logic.

To keep props, write the props into the product description. Don't just write "perfume bottle" — write "a clear glass perfume bottle with a gold cap, standing on a marble pedestal, with a small eucalyptus sprig on the right." The longer the product description, the clearer it is to the model which parts belong to the subject and can't be dropped.

To keep the product from moving, lock the composition too. Add a sentence: "Keep the product at the same position, size, and crop as in the uploaded image; composition and crop unchanged." The template's existing "no scaling or moving" covers size; this sentence pins down position and crop as well.

A background much brighter than the product looks pasted on. When the window light is very bright, the product's edges detach from the background. Switch to mid-grey or wood tones, or lower the background brightness a touch before submitting, and the seam shrinks a lot.

Always zoom in and check the label. The template already says "don't change a single character on the packaging," but this is the part the model is most likely to fail on — especially small text, thin type, and circular layouts. If two attempts both get it wrong, switch to the pure-white cutout template to get a clean base image first, then use that base to build the scene — the success rate is a notch higher.

After the image comes out: download, check, redo

Don't click repeatedly while you wait. This run took 45 seconds. The page shows a placeholder block or a blurry preview first, and the finished image only appears when progress completes. Clicking "Generate" again charges another 20 credits, and the two jobs queue behind each other.

Download and naming. There's a download button below the result, and what you get is the original at the generated size. When you save it, put the use case and date in the filename (e.g. etsy-pin-2026-11-15-v1) so you don't have to dig through chat logs a week later.

Three checks. One, is the subject's structure distorted (bottle turned cylindrical, wrong number of fingers, furniture floating off the floor); two, are there typos in any text in the frame; three, are there dirty spots or stray props at the edges. Pass all three and you're done.

If you're not happy, change one sentence and rerun. Don't rewrite the whole thing — a rewrite means a new direction and throws out all your earlier judgment. Go back to the "How to fix the two failure points" section above, change just one sentence the way it describes, and spend another 20 credits on one more run. Failed jobs are refunded automatically, but they are not retried automatically — you have to click again yourself.

Cost, and when not to use it

  • 20 credits per image (about $0.13 on the largest plan, up to $0.60 on the smallest), 45 seconds to output this time
  • A product image usually takes 2 to 3 tries to be satisfied, so budget 40 to 60 credits
  • Three backgrounds for the same image = 60 credits; 4 images in one run = 80 credits
  • For comparison: half a day of studio rental starts at $300; retouching one image on Upwork or Fiverr runs $15–40

When not to use it: materials with edges that pick up grey fringing — glass, metal, plush — tend to get a dirty halo after a background swap; semi-transparent products (glass, perfume) can also show misalignment where "the background shows through the bottle." In both cases, do a pure-white cutout first, then use the white-background image to build the scene. Also, for platform main images that need exact dimensions and margins (say, a requirement that the product fill 85% of the frame), the pure-white cutout template is more reliable.

← Holiday promo image: leave the top third empty, add the headline yourself, don't make the model write textAmazon main images require a pure white background: 85% coverage, no color cast, no horizon line →
PromptsModelsVideo models

Related posts