Skip to content
CHICKENPIE.Let’s make something
Making things

How to Composite a Product into Any Background Using Photoshop Generative Fill

Drop a product into any background in 10 steps using Photoshop Generative Fill — with matching light, shadow, and zero obvious AI tells.

Read the paper ↓
Mr. Chicken at a cluttered design studio desk working on a product composite in Photoshop
A PAPER FROM THE DESK
THE DETAILS
Client
Chickenpie Tutorial
Year
2026
Services
Photoshop · Generative Fill · Product Compositing · AI Tools

The challenge

Product photographers and solopreneurs need lifestyle composite shots but can't afford reshoots for every background scenario.

The approach

Use Photoshop 2026 Generative Fill with the Reference Image feature and Harmonize Tool to drop any product into a contextually matched AI-generated background in 10 steps.

The result

  • Product shot composited into a new background with matching light direction
  • Generative Fill selection expanded 15-20px for better context blending
  • Reference Image used to lock visual style across variations
  • Cast shadow and reflection corrections applied manually post-fill
  • Harmonize Tool applied at 30-50% to match color temperature

By the end of this tutorial, you'll have a product shot that looks like it was photographed on location — without ever leaving your desk. We're talking a clean product render dropped into a real-feeling environment, with matching light, matching shadow, and zero obvious AI tells. Ten steps. The selection in step 3 is where most people blow it. I'll show you why.

What you need

Photoshop 2026 (Generative Fill requires a Creative Cloud subscription), a product shot with a clean or white background, and basic Photoshop familiarity — you know what a layer is, you've used the selection tools at least once. You don't need to know compositing. That's what today is for.

Photoshop Generative Fill dialog on a laptop screen with a dotted selection marquee around a product

Step 1: Open your product image and duplicate the background layer

Open your file. Before touching anything, duplicate the background layer (Cmd+J / Ctrl+J). Lock the original. Every destructive edit you make will live on the duplicate. If it goes wrong, you have a clean copy underneath. Name the duplicate layer product-composite.

Step 2: Remove the existing background

Use the Object Selection Tool (W). Click your product. Photoshop generates a selection — imperfect, but fast. Refine with Select and Mask (Select → Select and Mask). Use the Refine Edge Brush on any soft or reflective edges. Output to: New Layer with Layer Mask. Your product is now floating on a transparent background. Pro tip: if your product has a reflective surface, don't obsess over perfection here — the reflection changes once the background is in place. You'll fix it in step 8.

Step 3: Expand your selection for Generative Fill context (the step everyone skips)

This is the one. The mistake: people select only the transparent area and try to fill it. Generative Fill gets a tiny sliver of context pixels and generates something generic. The fix: select a generous area that overlaps into the product edges by 15–20 pixels. Cmd-click the layer mask thumbnail to load the selection, then Select → Inverse. Then Select → Modify → Expand → 15 pixels. Now you're ready.

Step 4: Open the Generative Fill dialog

With your expanded selection active, open the Contextual Task Bar (View → Contextual Task Bar if it's not visible). Click the Generative Fill button. You'll see a text field and a Generate button. That's the whole interface.

Step 5: Write a scene prompt, not a vibe

Don't type "coffee shop." Type: "outdoor Filipino street market, golden hour light from the left, concrete pavement, shallow depth of field, warm orange ambient light." Specific direction. Specific light source. Specific surface. Adjectives about mood ("cozy," "aesthetic") are nearly useless. Adjectives about physics (light direction, surface material, time of day) are everything.

Step 6: Generate and pick your best result

Click Generate. Photoshop produces 3 variations. Scroll through all three before deciding. Look for: light direction that matches your product's highlights, a surface that makes sense, background detail that doesn't crowd the product. If none work, click Generate again — 3 more without refilling your credit. Common mistake: picking the prettiest background instead of the most physically consistent one.

Before and after comparison: product floating on white void vs. product placed in a Filipino street market scene using Generative Fill

Step 7: Use the Reference Image feature to lock style (new in Photoshop 2026)

In the Generative Fill dialog, click the Reference Image button (plus + photo icon). Upload an image capturing the visual mood you want — a mood board image, a lifestyle photo, or a screenshot from a previous campaign. Photoshop uses it to match lighting temperature, scene density, and texture style without cloning the image. If you have existing brand photography, upload one of those shots. Your composite will trend toward matching it without manual color grading.

Step 8: Fix the reflections and cast shadow

Generative Fill won't automatically update reflections or generate a proper cast shadow. Cast shadow: create a new layer below the product, paint loosely with a soft black brush at 30% opacity where the product meets the surface, set blend mode to Multiply, reduce opacity to 40–60%. Reflections for gloss/chrome products: duplicate the background layer, move it above the product, set blend mode to Screen at 10–20% opacity, clip it to the product layer.

Step 9: Use the Harmonize Tool to match color temperature

The Harmonize Tool (Edit → Harmonize) analyzes the generated background's dominant color temperature and applies a subtle shift to your product to match. Run it. Reduce the intensity slider to 30–50% — full strength usually oversaturates. The goal is the product and background feeling like they were shot in the same light.

Step 10: Sharpen the product edge against the new background

One composite tell is a soft edge on the product against a detailed background. Fix it: Cmd-click the product layer mask to load the selection, create a Curves adjustment layer clipped to the product, boost contrast with a subtle S-curve. This snaps the product edge visually without needing manual dodge/burn.

If you get stuck

The most common failure point is step 3. If your background looks like stock art and doesn't blend with your product, undo back to step 3 and expand your selection by more pixels. Give Generative Fill more context. It almost always fixes it.

Next Monday: How to batch-export product variants for different social formats using Photoshop Actions — one file, twelve outputs, zero repetitive clicking.

Share
FROM IDEA TO SOMETHING REAL

What are you making?

Graphics, websites, and curious experiments. Let’s talk about yours.

Talk to the studio ↗

Another paper for you.

Mr. Chicken at a desk pointing at a laptop screen showing a colorful AI-generated image, with reference photos stacked nearby

6 AI Art Tool Tips That Stop Your Marketing Images From Screaming "AI"

6 quick tips for using AI art tools like Nano Banana and Gemini 3 to make marketing visuals that don't scream "AI" — prompting, texture, consistency, and a pre-publish check.

Open paper
Chickenpie mascot Mr. Chicken pointing at a glowing screen showing chaotic color swatches organizing into labeled design system tokens

Stop Hardcoding Colors: Build a Real Design System with Figma Variables

A hands-on 9-step tutorial: wire a Primitives, Semantic, and Brand variable system in Figma so your whole file updates from one place, light mode and dark mode included.

Open paper
Mr. Chicken at a cluttered home studio desk, working on an AI image generation interface with an uncanny AI-slop draft on one side and a clean composited image on the other

How to Art-Direct AI Images So They Stop Looking Like AI

Nine steps to art-direct AI image generation like a photographer, not a wishlist — light, texture, junk tokens, and the two spots (hands, signage) that always give it away.

Open paper
Mr. Chicken at a nighttime desk poking a laptop screen showing a bouncy Lottie squeeze-toy animation

I Tried to Build a Clickable Lottie Squeeze Toy. It Took Three Tries to Feel Right.

Watch three failed attempts to build an interactive Lottie squeeze toy — from a dead mousemove hack to a broken freeze-frame click, to the segment-based fix that finally feels tactile.

Open paper
Mr. Chicken at a studio desk with two monitors — Figma design frames on the left, live Framer website on the right with a glowing Publish button

Your Figma File Is Already a Website. Here's How to Publish It in 8 Steps.

Stop waiting for a developer. Here's an 8-step walkthrough for taking your Figma design into Framer and publishing a live website today — no code required.

Open paper
Mr. Chicken at a designer workstation at night, surrounded by multiple screens showing a grid of AI-generated character portraits — some faces matching, some wildly mismatched

I Tried to Keep My AI Character Consistent Across 10 Scenes. Here's What Actually Broke.

Most tutorials skip the step that makes --cref actually work. Here's what failed first, what failed second, and the gotcha that kills most reference image attempts.

Open paper

BISCUIT / STUDIO GUIDE

BISCUIT

hey, i’m biscuit. chicken in a lobster suit, studio guide on duty. ask me about graphics, websites, AI work, or what my human is making.

AI studio guide. Chats are saved for follow-up. Talk to the human ↗