Blog
Fixing halo artifacts on transparent PNG exports
nobg.eu EditorialEditorial standards
Why light fringes appear after background removal, how capture and export settings interact, and practical checks before upload.
What halos look like
A halo is a light or dark fringe around cutout edges after compositing on a new background. Buyers notice it as "cheap Photoshop." Marketplaces may still accept the file, but conversion suffers—especially on dark mode storefronts and premium brand sites where fringes scream unfinished work.
Halos are not always uniform. You may see cyan/magenta color spill from an old backdrop, a pale glow on matte packaging, or dark crawling edges where the mask was over-sharpened. Naming the artifact correctly helps you pick the right fix: capture, mask, or export.
Root causes
- Color decontamination missing — old background color baked into semi-transparent edge pixels.
- Over-compressed JPEG sources — blocky edges confuse segmentation and leave staircase fringes.
- Backdrop too close in luminance to the subject (white-on-white products, black-on-black apparel).
- Aggressive mask sharpening — boosts contrast at the wrong scale and creates dark/light rims.
- Lossy re-encoding of alpha — saving a PNG through a social app or twice through JPEG destroys soft edge data.
Understanding causes prevents the false fix of “try another AI button” when the source file is already compromised.
Fixes at capture time
Add physical separation between subject and paper—fifteen to twenty centimeters softens contact shadows. Use two-sided diffuse light so one hard shadow does not glue itself to the silhouette. Shoot RAW or high-quality JPG before any WhatsApp/social recompression chain. For glossy bottles, angle specular highlights away from the outline you need to keep.
If the product is white on white, place a faint gray sweep or flag light so the edge has measurable contrast. No browser tool invents a silhouette that was never in the photons.
Fixes at export time
- Export PNG-24 (or WebP with alpha) for masters—not JPEG.
- Preview on both white and dark UI backgrounds before publishing.
- Avoid re-saving alpha PNG through lossy tools or email compressors.
- Keep bit depth and resolution appropriate for the channel; downscale after QA, not before.
- When a marketplace demands JPEG on white, flatten from the clean alpha master onto
#FFFFFFin a controlled step, then evaluate halos again.
Local workflows help here: on nobg.eu you can re-run segmentation and re-export without shipping every draft to a remote API while you chase fringe issues.
Fixes in compositing
Place the cutout on brand hex colors in Figma or your theme editor. If halos appear only on dark sections, edge decontamination / color spill is the culprit—not the theme. Soft drop shadows should be generated separately from the mask; baking a gray smear into the PNG often reads as a dirty edge.
For hair and fur, judge success at 100% zoom on highlights, not on a tiny admin thumbnail. For glass, inspect internal holes and refraction edges where masks often leave pale rims.
QA checklist before you ship
- White plate preview
- Dark plate preview
- Brand color plate preview
- Zoom on labels, straps, embossing, and thin geometry
- Confirm file naming and that a lossless master still exists
Reject and re-export rather than “shipping anyway” for hero ASIN or PDP slots. Secondary gallery images can sometimes tolerate minor softness; main images cannot.
Local workflow advantage
Iterating mask QA in-browser avoids re-uploading variants to a cloud API while you tune export settings. That matters for embargoed packaging, client portraits, and catalogs where upload-first tools add policy review friction. Local iteration also makes A/B testing capture improvements honest: you see whether lighting changes reduced halos without confounding network queues.
When to reshoot instead of retouch
If the subject and backdrop share luminance, if motion blur softens the entire outline, or if JPEG blocking has destroyed chromatic edges, schedule a reshoot. Twenty minutes of lighting adjustment often beats two hours of painting semi-transparent pixels—especially across a full variant set.
Further reading
How transparent PNG works, hair detail topic, and Shopify transparent PNG integration for channel-specific compositing tests.
Continue with guides, about nobg.eu, and solutions.
