Overview
Introduction
This tool cleans up stray, isolated pixels near a logo's edges, right in your browser, using a simple despeckle pass.
It's most useful as a follow-up step after a background-removal or color-key operation leaves single-pixel artifacts around a logo's outline.
What Is Logo Edges Cleaner?
A logo-focused wrapper around the site's general PNG edges cleaner: it examines every non-transparent pixel's 8 surrounding neighbors and, if too few of them are also non-transparent, treats that pixel as noise and clears it.
It's a lightweight morphological filter, not a full denoising or smoothing algorithm.
How Logo Edges Cleaner Works
For every non-transparent pixel, the tool counts how many of its 8-connected neighbors (up, down, left, right, and the four diagonals) are also non-transparent.
If that count is below the minimum-neighbors threshold you set, the pixel is made fully transparent; everything else is copied through unchanged.
When To Use Logo Edges Cleaner
Use it right after the Logo Background Remover or Transparent Logo Maker tools if the resulting cutout shows speckled or fringed edges.
It's also useful for cleaning up a low-quality scanned or screenshotted logo before further processing.
Often used alongside Logo Background Remover, Transparent Logo Maker and Logo Cropper.
Features
Advantages
- Runs entirely client-side; nothing is uploaded to a server.
- Simple, adjustable threshold for how aggressive the cleanup is.
- Preserves untouched pixels' exact color and alpha.
Limitations
- Only removes isolated noise pixels — it doesn't smooth genuinely jagged or stair-stepped edges.
- An overly aggressive threshold can erase small intentional details, like thin strokes or dots.
Examples
Best Practices & Notes
Best Practices
- Start with a low minimum-neighbors value (1-2) and increase only if speckling persists.
- Run this after background removal, not before, since it only acts on already-transparent edges.
Developer Notes
This lib function is a thin, validating wrapper around the already-shipped `cleanPngEdges` from the general PNG category — the 8-connected neighbor-counting despeckle logic is identical for a logo or any other PNG.
Logo Edges Cleaner Use Cases
- Cleaning up a logo cutout after chroma-key background removal
- Removing scanner or compression artifacts from a logo's outline
- Tidying a logo before using it as a stencil or silhouette
Common Mistakes
- Setting the minimum-neighbors threshold too high and accidentally erasing small logo details.
- Expecting this to fix jagged (not speckled) edges from resizing or rotation.
Tips
- Zoom into the preview's outline before downloading to confirm no wanted details were removed.
- Combine with the Logo Background Remover for a two-step clean cutout workflow.