Background & edges
Why Hair Edges Look Rough After Background Removal
Hair is one of the hardest edges for any background tool. Compare the same crop before and after, check the saved JPG up close, and confirm that your form allows a changed background at all.
Fine hair sits only partly in front of the background.
A background tool has to decide, pixel by pixel, how much belongs to you and how much to the wall behind you. Along a shoulder that is easy. A strand of hair can be thinner than a pixel, so that pixel holds a mix of hair and background colour. The tool keeps such pixels partly see-through, and when the new white background shows through them, thin strands look lighter, softer or broken.
A real before-and-after from PicMilo.
We opened PicMilo’s licensed sample portrait (800×1422 pixels) in the live editor, chose the 35 × 45 mm common size (413×531 pixels), set the zoom to 156% and kept the 500 KB size limit. We saved the photo once, clicked Remove background and saved the same crop again. Both JPGs are untouched browser downloads; the figure only enlarges the hairline.
1: 413×531 · 55,464 bytes. 2: 413×531 · 47,268 bytes.
JPG with the original background · JPG after background removal · Measurements and settings
What changed at the hairline.
The overall shape of the hair survived. Across a band around the top of the head, the count of dark hair pixels fell by only 2.5%. The largest drop was in the flyaway strands at the crown, where the count fell by 12%, so those strands look thinner and fainter. Small gaps between strands that showed the grey background now show white, and the outline is soft rather than cut out with scissors. Resolution is part of the reason: for this photo, PicMilo estimated the mask on a copy about 512×910 pixels and scaled it back up, so strands much finer than a pixel of that copy are blended rather than traced one by one.
How to get cleaner edges.
A better source photo helps more than extra editing. Stand in front of a plain, light background that clearly contrasts with your hair, light your face evenly, and smooth down flyaway hair, keeping it away from your eyes. After removing the background, click Restore original and then Remove background again to switch between both versions of the same crop, and compare the crown, the sides of the head and the shoulders. Then open the saved JPG at full size. If strands look cut off or the edge keeps a tint of the old background, retake the photo rather than painting over the edge, and keep your original file so you can start again.
Check the rules before replacing a background.
Rules differ by country and document. GOV.UK says printed UK passport photos must be taken against a plain cream or light grey background, in clear contrast to it, and unaltered by computer software, so replacing the background with software, in white or any other colour, is not what that form asks for. For Indian passport applications made through embassies and consulates, the Ministry of External Affairs guidelines ask for a white background and photos unaltered by computer software, while notices from the Embassy of India in Bern and the High Commission of India in Wellington say applicants who cannot visit a professional studio may use “paintbrush or other similar tools” to make a non-uniform background uniform, preferably white. Both were checked on 2026-11-14. PicMilo offers background removal only for common sizes and Custom px; with a country document preset selected, it keeps the original background.
What this test does not show.
This is one photo of dark hair against a light, blurred background, processed in one desktop browser. Other hair colours, backgrounds, lighting and devices can give better or worse edges, and the tool may change. The test does not tell you whether an authority will accept an edited photo. Background removal runs in your browser, and the photo is not uploaded.
Related: PNG transparency · enlarging small photos · reducing file size
PNG transparency · Enlarging small photos · Reduce file size
Sample photo: Abhishek Shekhawat / Pexels, Pexels License (credits). Actual browser downloads. Product check: 2026-11-14.