New Tool Radar

AI Design Workflows

How to Check Reflections and Shadows in an AI-Generated Image for Artifacts

Inspect the reflections and shadows in an AI-generated image, because generators often draw a reflection that does not match the object above it.

Schematic with three steps: Find every reflection and shadow; Compare each reflection with its object; Regenerate or paint out the bad reflection.

An AI-generated image can show a reflection in a mirror or a floor that does not match the object it should reflect, or a shadow that falls the wrong way. Google documents that its image models generate images from text prompts with improved visual quality, and that multi-turn editing lets a user refine an image conversationally. Reflections and shadows are easy to miss at a glance and obvious once spotted, so inspect them before publishing.

What you need

  • The AI-generated image
  • A zoomed-in view of every reflective surface and shadow
  • A note of the light direction in the scene

Step 1: Find every reflection and shadow

Go through the image and mark every mirror, window, floor reflection and shadow. Note which object each reflection and shadow should belong to.

Step 2: Compare each reflection with its object

Check whether the reflection shows the same object, the same colours and the same shape, and whether each shadow falls in the same direction as the others. Mark any reflection that shows a different object, or any shadow that points the wrong way.

Step 3: Regenerate or paint out the bad reflection

If a reflection or shadow is wrong, regenerate the image, or paint out the reflection in an editor if the composition allows it. Do not publish an image with a reflection you have not checked.

Worked example: synthetic reflection check of one product photo

The table below is a synthetic example. It shows the expected result of checking one generated product photo; no image was published.

Reflection or shadow Matches? Verdict
Product shadow Falls left, matches light Pass
Floor reflection Shows a different product Fail
Window reflection Matches the scene Pass
Second shadow Points the wrong way Fail

Expected result (UNTESTED). 2 of 4 reflections and shadows are correct, and the floor reflection shows a different product while the second shadow points the wrong way, so the image must be fixed before publishing. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • A reflection in a small or blurred area is hard to check, so zoom in before judging it.
  • Regenerating to fix one reflection can break another part of the image, so re-check the whole image after a fix.
  • A shadow that falls the wrong way is a defect even if the rest of the image is perfect.
  • Some scenes have two light sources, so confirm the light direction before judging a shadow.

Sources

See all