Home › Guides
How to get clean edges: hair, fur, glass and shadows
Removing a background is easy when the subject has a clear, solid outline. It gets harder with hair blowing in the wind, a fluffy cat, a wine glass or a bride's veil. This guide explains why those edges are difficult and how to get the best result with the tools in the editor.
Everything here works in your browser, on a computer or a phone. Only the optional HD cut-out sends a photo to our server, and it is deleted straight after.
Why edges are the hard part
To cut out a subject, the AI decides for every pixel how much of it belongs to the subject. Inside a face or a box, that is simple: fully subject. Far behind, it is simple too: fully background. The trouble is the border.
- Hair and fur are made of strands thinner than a pixel. A single edge pixel may be half hair and half wall.
- Glass, veils and smoke are partly see-through. The pixel shows the object and what is behind it at the same time.
- Motion and focus blur smear the edge over several pixels.
- Similar colours – brown hair against a brown door – give the AI little to go on.
So edge pixels carry a bit of the old background with them. That is why a cut-out can look perfect on the checkerboard and then show a thin rim on a new colour.
Step 1: choose the right AI model
Below the upload button you can choose the AI:
- Auto (best quality) – the default. Use it for people, pets and anything with fine detail.
- Best quality only – always uses the larger model.
- Fast only – a smaller download, handy on a slow or metered connection. Fine for solid objects like boxes, cars and furniture, but usually less precise around hair.
The model is downloaded to your browser the first time and then reused.
Step 2: try the HD cut-out on difficult photos
If the hair still looks clumpy or parts are missing, press HD cut-out. It uses a stronger AI on our own cloud server. You are asked once before anything is sent; the photo travels over an encrypted connection, is processed in memory and is deleted straight away. The button only appears when the server is available.
The HD result replaces the current cut-out. If you liked the first one better, press Undo to go back. Because it replaces the cut-out, do the HD step before any brush work.
Step 3: use the Edge slider – a little goes a long way
The Edge slider in the Background tab goes from Sharp to Soft. Moving it towards Soft blends the outermost pixels gradually into the new background instead of stopping hard.
- Keep it on Sharp for logos, text, boxes, phones and anything with straight, hard edges.
- Move it slightly towards Soft for hair, fur, knitted clothes and out-of-focus edges.
- Do not overdo it. Too much softness makes the whole subject look blurred at the edges, as if it were glowing.
Set the slider last, after the shape is right.
Step 4: fix the details with Erase and Restore
The Brush tab has two modes. Erase removes what you paint over. Restore brings back the original photo where you paint – it does not invent anything, it just un-removes. Parts that are removed are shown faintly while you work, so you can see what the AI took away.
Technique
- Zoom in first. Use the mouse wheel or two fingers. Move with the right mouse button or two fingers. Accurate work at the edge needs a close view.
- Match brush size to the job. Large to clear big leftover areas, small for the outline.
- Keep the brush centre on the side you are changing. When erasing, stay on the background side and let the brush just touch the subject.
- Restore hair with a soft hand. For lost strands, use Restore with a small brush and follow the direction of the hair, a few short strokes at a time. Restoring a big block of hair also brings back the background between strands, so less is more.
- Undo any stroke you do not like, or use "Start again from the automatic cut-out" for a fresh start.
On a phone, zoom in further than seems necessary; your fingertip hides the spot you are painting.
Glass, veils and other see-through things
A cut-out has to decide whether each part is kept or removed. See-through objects do not fit that neatly. A glass, a bottle, a veil or a sheer curtain shows the old background through it. After the cut-out you will typically see one of two things:
- The glass is kept, together with the old wall or table visible through it. On a new background that looks odd: a white backdrop, but a glass full of kitchen.
- The glass is partly removed, leaving holes or a cloudy, uneven shape.
What helps:
- Photograph clear objects in front of a plain wall close to the colour you will use later. If the final background is white, shoot against white. What shows through then already matches.
- Choose a new background close to the old one in colour and brightness. The see-through parts then blend in.
- Accept a little imperfection or finish glass in a full photo editor if it is the main product.
Veils, tulle and fine lace behave the same way. A wedding portrait against a pale wall moved to a pale colour looks natural; the same veil moved to deep blue may show patches of the old wall.
Shadows: remove or add?
The shadow under a person or product belongs to the floor, so the AI removes it with the background. The subject can then look as if it is floating, especially products and cars.
- Leftover shadow patches – a grey smudge next to a shoe or under a box – are easy to remove with Erase.
- A clean, even shadow can be added in the Product tab. Switch on Shadow to place a soft shadow under the subject on a 2000 × 2000 px square. Read more on the product photo page.
- A real floor can come from your own photo: choose "Photo…" in the Background tab and pick a picture of a floor or room.
Coloured fringes and how to avoid them
Light bounces off walls, grass and furniture onto the subject. A person standing by a green hedge has a little green on the edge of their hair and cheek. After the cut-out, that tint stays. On a similar colour you never notice it. On a very different colour it shows as a rim.
- Pick a background close to the original in brightness and warmth. A beige wall becomes cream or light grey naturally; bright blue shows the warm edge.
- Move the Edge slider slightly towards Soft so the rim blends.
- Erase the worst strands with a small brush.
- Test on extremes. Look at the cut-out on black and then on white before you download. A fringe hidden on one is obvious on the other. For a transparent PNG, set the background back to None afterwards.
The best photos to start with
Good edges start when you take the picture:
- Contrast between subject and background. Dark hair in front of a light wall, a white mug in front of a darker surface.
- A plain, uncluttered background, with some distance between the subject and the wall.
- Soft, even light. Hard sun creates bright rims and deep shadows that confuse the edge.
- A sharp photo. Hold still, tap to focus. Motion blur is the hardest edge of all. The Unblur tab can help a slightly soft photo, but cannot fully fix a shaken one.
- The whole subject in the frame, not cut off at the edge of the photo.
- Full resolution. Use the original camera file rather than a copy from a chat app, which is often smaller and compressed.
With a good photo, most cut-outs need nothing more than the automatic result. When they do, the steps above are in order: model, HD cut-out, brush, then Edge. For the basics, see how to remove a background, or go straight to the background eraser.
Questions
Why does my cut-out have a thin white or dark line around it?
Edge pixels often contain a little of the old background. On a very different new colour, that shows as a rim. Move the Edge slider slightly towards Soft, erase the worst parts with a small brush, or choose a background closer in brightness to the original.
Should I use the Fast or the Best quality model for hair?
Use Auto (best quality) or Best quality only for hair and fur. Fast only is a smaller download and works well for solid objects, but it is usually less precise around fine strands.
Is my photo uploaded when I use HD cut-out?
Yes, HD cut-out is the one step that sends the photo to our server, after you agree. It travels over an encrypted connection, is processed in memory and is deleted straight away. The normal cut-out runs entirely in your browser.
Why does a glass look strange on a new background?
Glass is see-through, so the old background is visible inside it and stays there after the cut-out. Photograph clear objects in front of a plain wall in a colour close to the new background, or choose a new background similar to the old one.
How do I add a shadow back under a product?
Open the Product tab and switch on Shadow. It places a soft, even shadow under the product on a square 2000 by 2000 pixel image with the background colour you choose.