How-to Guide 5 min read

Background Changer Left Patches or Changed My Shirt? How to Fix It

Why a colour-based background changer leaves patches, a halo round hair, or recolours a white shirt, and how sensitivity, cropping and lighting fix it.

photo background change not workingbackground changer leaves patcheswhite shirt turned blue background changehalo around hair background changechange background colour of passport photo

The short answer

The Photo Background Changer works by colour matching: it reads the colour in the four corners of your photo and replaces every pixel close to that colour with your new background colour. That explains all of the usual problems. Leftover patches are shadows that are too different from the corner colour, a recoloured shirt is clothing that is too similar, and a halo is edge pixels that are half and half. The fixes are to adjust Detection sensitivity, make sure the corners are plain background, and start from a photo with an even, contrasting backdrop.

How the tool decides what is "background"

Knowing the method makes the fixes obvious.

  • It samples the four corner pixels of your photo and averages them. That average is treated as the background colour.
  • For every pixel in the image, it measures how far its colour is from that average.
  • If the difference is below the sensitivity setting, the pixel is replaced with the colour you picked. Otherwise it is left alone.
  • The result is saved as a JPG at the same size as the original.
  • There is no face or person detection. The tool does not know where you are in the photo; it only compares colours.

    Problem 1: patches of the old background remain

    What you see: grey or yellow blotches near your shoulders, a shadow behind your head, or a gradient at the top of the photo that did not change.

    Why: a shadow on a white wall is grey, not white. If it is far enough from the corner colour, it does not match.

    Fixes, in order:

  • Drag Detection sensitivity to the right (towards Aggressive) in small steps and click ✨ Change Background again after each change. The result only updates when you click.
  • Retake the photo with more even light: face a window or use two light sources so you do not cast a shadow on the wall behind you, and stand a metre or so away from it.
  • Avoid textured or patterned backgrounds. A plain painted wall or a sheet pulled tight works far better than tiles, curtains or a bookshelf.
  • Problem 2: your shirt, teeth or eyes changed colour

    What you see: a white shirt turns blue, or the whites of your eyes pick up the new colour.

    Why: the tool replaces matching pixels everywhere, not only around you. If your clothing is the same colour as the wall, it is treated as background.

    Fixes:

  • Move Detection sensitivity to the left (towards Precise). This narrows what counts as a match.
  • If that brings back the background patches, there is no setting that separates the two. Retake the photo wearing a colour that contrasts with the wall, for example a dark shirt against a white wall.
  • For ID photos where the final background must be white, start with a white or very light wall and dark clothing. The tool will then only need to tidy the background.
  • Problem 3: a halo or fringe around hair and shoulders

    What you see: a thin line of the old colour around your outline, most visible on hair.

    Why: the pixels at the edge of your hair are a mix of hair colour and wall colour. They are too different from the wall to be replaced, so they keep a trace of the old background. The tool replaces pixels with a solid colour; it does not blend or soften edges.

    Fixes:

    • Choose a new colour close to the original wall. A light grey wall changed to white shows almost no fringe; the same photo changed to dark blue shows a clear one.
    • Raise sensitivity a little to catch more of the blended pixels, watching that it does not start eating into your hair.
    • Use a photo with good focus and lighting. Soft, blurry edges create a wider band of mixed pixels.

    Problem 4: nothing changes, or the wrong colour is replaced

    Why: one or more corners are not background. If your shoulders reach the bottom corners, or a door frame sits in a top corner, the average "background colour" is wrong.

    Fix: crop the photo first so that all four corners show only the plain wall. The Crop Image tool lets you set the exact X, Y, width and height, so you can trim a few pixels from the edges. Then load the cropped file into the background changer.

    Problem 5: the result looks fine on screen but a form rejects it

    The output keeps your original pixel size and is a high-quality JPG, so it can be larger than a form allows.

    Choosing the sensitivity

    SettingBehaviourGood for
    5 to 20% (Precise)Replaces only colours very close to the cornersClean studio-style backgrounds; light clothing
    About 30% (default)A middle settingMost plain walls in good light
    40 to 60% (Aggressive)Replaces a wider range of coloursWalls with mild shadows; dark clothing

    There is no single right number. Change it in steps of 5 and click Change Background each time, comparing the Result preview with the Original.

    A photo set-up that works first time

  • Stand about a metre in front of a plain, light, evenly lit wall.
  • Wear clothing that contrasts with the wall.
  • Light your face from the front, not from behind.
  • Frame the shot so the wall shows in all four corners.
  • Load it, pick the new colour (white, light grey, blue, red, navy, green or any custom colour), leave sensitivity at 30%, and click ✨ Change Background.
  • Adjust sensitivity if needed, then click ↓ Download JPG.
  • When this tool is not the right one

    If your background is busy, such as a room, a street or a patterned curtain, colour matching will not separate you from it cleanly, whatever the setting. Retaking the photo against a plain wall is the most reliable fix. For the basic walkthrough of changing a background to white, blue or another colour, see how to change a photo background to white.

    Frequently asked questions

    Why did parts of the old background stay?

    The tool only replaces pixels close in colour to the background it detects from the four corners. Shadows, gradients and creases are further from that colour, so they stay. Raise the Detection sensitivity slider or shoot against a more even background.

    Why did my white shirt change colour too?

    The tool replaces every pixel that is close to the background colour anywhere in the photo, not just around you. A white shirt on a white wall matches, so it is replaced. Lower the sensitivity, or retake the photo with clothing that contrasts with the wall.

    How do I get rid of the thin outline around my hair?

    Edge pixels are a blend of hair and background, so they fall outside the colour match and keep their old colour. Choose a new background close to the old one, raise sensitivity slightly, or use a plain light wall that blends with the fringe.

    Does the background changer upload my photo?

    No. The photo is read and processed on a canvas in your browser, and the result is downloaded as a JPG from there.

    What file do I get?

    A JPG named photo-new-background.jpg at the same pixel size as your original, saved at high quality. Resize or compress it afterwards if a form has size limits.

    Try this tool on Lazyblink

    Put this guide into practice with our free online tool — no signup required.

    Open tool