Masonry Logo
AI & Technology

How to Stop AI Product Photos Looking Pasted On: A 3-Prompt Test

We replaced one chroma background three ways to test whether contact-shadow and shared-light instructions make an AI product photo look more grounded. See the real Masonry outputs, exact prompts, and release checklist.

Gaurav BisenGaurav Bisen
9 min read

We replaced the same flat magenta background three times: once with a short instruction, once with an explicit contact-shadow instruction, and once with a longer shared-light contract. The longest prompt did not produce a dramatic visual win. All three outputs looked grounded at storefront size.

That is the useful result. “Add a contact shadow” is not a magic phrase, and the longest prompt is not automatically the best prompt. Start with the shortest bounded edit that protects product truth. Inspect the product-floor boundary at full resolution. Escalate to explicit light, contact, and cast-shadow constraints only when the candidate fails.

Evidence boundary: the planter is a fictional generated object created for an earlier controlled article. We ran one output per prompt through the live Nano Banana 2 route in Masonry on August 15, 2026, using the same source, seed, output size, and studio target. We did not reroll the results. This three-output test does not establish a repeatable win rate, physical-product accuracy, conversion lift, or a universal model ranking.

Why this is a real merchant problem

Background replacement is attractive because it promises more listing and campaign images without another shoot. The failure is visible at the product boundary: the model changes the SKU, leaves a cutout halo, or places a shadow that does not agree with the scene.

A current Shopify merchant described an in-admin background tool that began replacing the product along with the background; another commenter reported distorted products and unrealistic edges. A separate Shopify discussion explains the underlying compositing problem plainly: remove shadows and reflections without rebuilding their scene relationship, and the product can look like it is floating or pasted in. These are qualitative reports, not prevalence estimates. Read the background-replacement discussion and the image-consistency discussion.

Shopify's own product-photography guidance treats light and shadow as controlled parts of the image: the product's distance from a window changes shadow softness, while reflector cards can lift or deepen the shadow side. That supports the workflow principle here—product, light, surface, and shadow must be judged as one scene. Read Shopify's current product-photography guidance.

This is distinct from asking whether AI product photos hurt sales. That page covers trust and downstream measurement. This test isolates the production handoff that comes first: can a background edit make the approved product belong to the new surface without silently changing it?

Source and acceptance contract

Only source supplied, 1254 × 1254. The magenta field makes the product boundary easy to inspect. The fictional planter is a visual control, not a physical SKU record.

We held the model route, source file, square canvas, seed 3817, product, and warm off-white studio target constant. Before generation, we defined six review gates:

  1. Product identity: one blue planter and saucer; no change to silhouette, proportions, rim, opening, glaze, seam, base, or unit count.
  2. Clean boundary: no magenta fringe, bright halo, jagged mask, or missing edge.
  3. Physical contact: the darkest shadow begins at the terracotta base; no bright floating gap.
  4. Light agreement: product highlights and the cast shadow imply the same source direction and softness.
  5. Surface agreement: the base, floor plane, crop, and perspective do not make the product sink or hover.
  6. Storefront usability: the candidate remains legible at thumbnail size and contains no props, text, logo, or extra object.

The source cannot prove physical-SKU accuracy because the object itself is generated. For a real listing, the approved photograph, sample, packaging proof, and variant record must remain the product authority.

Exact run contract

All three runs used gemini-3.1-flash-image-preview (Nano Banana 2), one reference image, 1024x1024, and seed 3817.

Prompt

masonry image "<one prompt below>" \ --model gemini-3.1-flash-image-preview \ --ref ./source-product.png \ --aspect 1:1 \ --seed 3817 masonry job wait <job-id> masonry job download <job-id> --output ./candidate.png

The successful job IDs were 0414f970-7301-446a-bddc-c4891dac2081, 4ba13d78-4b92-418d-aaa8-db33c2491384, and f0cbe686-ead4-450d-a012-1bb3be5df6ed.

Prompt A: background only

Replace the magenta background with a warm off-white ecommerce studio and keep the blue planter.

Prompt A output. The model inferred a floor, soft contact, and plausible studio light even though none was requested explicitly.

This output passes the fast visual grounding check. The base touches the floor, there is no obvious magenta fringe, and the shadow is soft. The important failure is contractual: “keep the blue planter” does not define which features must stay fixed. A good-looking result from one fictional source does not make that instruction safe for a real SKU.

Disposition: visually usable as a concept; reject the prompt as a repeatable product-preservation contract.

Prompt B: explicit contact shadow

Change only the magenta background to a warm off-white seamless studio surface. Keep the supplied blue ceramic planter and saucer unchanged in shape, proportions, color, glaze, rim, foot, unit count, camera view, scale, and crop. Add one soft natural contact shadow directly under the saucer, consistent with soft camera-left light. Add no plant, prop, text, logo, or extra object.

Prompt B output. The contact is clean and attached, but the two-word shadow instruction does not produce an obvious step-change from Prompt A.

Prompt B is the better operating brief because it names the immutable product features and the expected light. Visually, however, it is not a decisive improvement over A. The model had already inferred a similar floor contact. The lesson is to use the constraint for control and review—not to claim that mentioning “contact shadow” guarantees quality.

Disposition: keep as the economical default brief when the source already has simple studio lighting.

Prompt C: shared light and floor physics

Treat the supplied blue ceramic planter and saucer as immutable product evidence and change only the magenta field into a warm off-white seamless ecommerce studio. Preserve the exact silhouette, dimensions, rim ellipse, inner opening, wall thickness, glaze texture, seam, saucer geometry, terracotta base, unit count, straight-on camera, product scale, and crop. Light the scene with one large soft source from camera-left at 45 degrees. Make the product belong to the surface: the darkest contact sits immediately beneath the saucer, then opens into a soft short cast shadow toward camera-right; match edge softness to the large light; add subtle warm floor bounce on the lower ceramic; keep the background and product light direction coherent. No floating gap, halo, cutout edge, hard oval drop shadow, reflection, plant, prop, text, logo, watermark, or extra object.

Prompt C output. The contact is slightly more directional toward camera-right, but the longer prompt still does not create a dramatic storefront-size advantage.

Prompt C supplies the clearest audit trail. A reviewer can test the requested light direction, contact position, falloff, and forbidden failure modes. That makes it valuable when the first candidate floats, when a glossy surface needs stricter optical logic, or when several SKUs must share a scene contract. It is unnecessary prompt weight when the shorter controlled edit already passes.

Disposition: keep as the escalation brief, not the automatic first prompt.

Scorecard: what actually changed

Acceptance checkA: background onlyB: contact shadowC: shared light
Reads as grounded at storefront sizePassPassPass
Darkest contact attaches to the basePassPassPass
No obvious halo or magenta fringePassPassPass
Shadow direction is explicitly testableReviewReviewPass
Product-preservation contract is boundedFailPassPass
Physical-SKU accuracy is provenNot testedNot testedNot tested
Best useExplorationDefault editFailure recovery

Pairwise pixel RMSE between the compressed outputs was only 0.0135 for A versus B and 0.0122 for B versus C on a normalized 0–1 scale. That is not a perceptual-quality score, and compression contributes to it; it simply confirms that the three files are different while the overall compositions remain close.

Download the AI product-photo grounding review sheet to record the source, prompt contract, product checks, boundary checks, shadow checks, decision, and rejection reason for a real SKU.

A faster production workflow

  1. Lock the source. Record SKU, variant, source filename, crop, camera view, and approved product attributes before changing the scene.
  2. Run one bounded candidate. Start with Prompt B: change only the background, name the features that cannot move, declare one light, and request one attached contact shadow.
  3. Inspect at full resolution. Trace the whole silhouette. Check small gaps, transparent edges, handles, laces, hair-like fibers, labels, and the exact point where the base meets the floor.
  4. Inspect at storefront size. A technically detailed shadow can still look like a generic oval or disappear in a collection card. Review the actual crop and device size.
  5. Escalate only the failure. If the product floats, use Prompt C. If the edge is wrong, regenerate from a cleaner mask. If the SKU changes, stop asking the model to redraw it.
  6. Composite when truth matters more than convenience. Generate the empty environment, place approved product pixels into it, then build the contact and cast shadow deliberately. The same-SKU fidelity benchmark shows why an attractive edit still needs product review.
  7. Measure accepted output. Track candidates, accepted assets, rejection reasons, reviewer minutes, retouching time, and cost per approved listing image—not raw generations.

The wider AI product-photography tools guide helps choose a workflow by failure mode. For multiple products, the bulk product-photography workflow shows how to keep the source, scene contract, filenames, and review gates consistent without assuming every generated file is usable.

Bottom line

All three Masonry outputs looked grounded. The vague prompt succeeded visually, so this test does not support the usual advice that adding “contact shadow” automatically fixes pasted-on product photos. Prompt B is still the better default because it protects the product and makes the light reviewable. Prompt C earns its extra length only when the scene fails or several assets need the same physical contract.

For a real merchant workflow, separate two decisions: does the product belong to the scene, and is it still the exact product? A convincing shadow can solve the first and hide a failure in the second. Run the bounded grounding brief in Masonry's AI product photography workflow, and keep the source, prompt, model route, seed, job ID, output, reviewer, and disposition auditable with the Masonry CLI.

Share:
FAQ

Questions from this guide

Concise answers to the questions readers ask after this guide

Why do AI product photos look pasted onto the background?

The product and scene can disagree at their boundary. Common causes are a missing or detached contact shadow, a halo from background removal, conflicting light direction, a hard generic drop shadow, incorrect floor perspective, and product highlights that do not respond to the new environment.

What is a contact shadow in product photography?

A contact shadow is the darkest, tightest shadow where the product meets its support surface. It should attach to the base and then soften into any cast shadow. If the dark area begins below the product with a bright gap between them, the object can appear to float.

Should I add the phrase contact shadow to every AI product-photo prompt?

It is a useful constraint, but this test did not show that those two words alone guarantee a visibly better result. The vague prompt also produced a plausible floor contact. Start with a bounded background edit, inspect the full-resolution result, and add explicit light and grounding constraints when the output fails.

Can a realistic shadow make an inaccurate product image safe to publish?

No. Grounding and product truth are separate gates. A photo can have a convincing shadow while changing the product's shape, color, material, label, parts, quantity, or variant. Compare the candidate with an approved source before publishing it.

What should ecommerce teams check after replacing a product background with AI?

Check product identity, edge cleanup, physical contact, shadow direction and softness, highlight direction, floor perspective, color spill, scale, crop, label text, quantity, and variant. Review at full resolution and at the storefront thumbnail size.