PNG to SVG
Why does my white logo disappear in PNG to SVG?
PNG to SVG flattens transparency onto white before choosing dark pixels. A pure-white logo on a fully transparent background therefore becomes white everywhere, so no threshold selects its outline. Inversion selects the whole raster instead. Prepare a dark version of the mark in another editor, then inspect its mask before tracing.
Check whether the mask contains the logo
If a white logo on transparency produces "No shape at this threshold," inspect Binary mask before changing tracing settings. The tracer receives a selected-or-unselected pixel grid. When the mask contains no black logo, tracing cannot recover an outline from the original file's transparency.
PNG to SVG does not trace the alpha channel as a separate shape. It combines each pixel's color and opacity against white, then compares the resulting brightness with Threshold. Pure-white artwork and fully transparent surroundings can therefore become indistinguishable.
Follow a white pixel through the calculation
The implementation weights red, green and blue brightness by 0.2126, 0.7152 and 0.0722. It multiplies that brightness by alpha, expressed from zero to one, then adds 255 multiplied by the remaining transparency. For opaque white, brightness is 255 and alpha is one: the final value is 255.
For a fully transparent pixel, alpha is zero. Its stored color contributes nothing, and the added white contributes 255. A partially transparent white pixel also ends at 255. A pure-white mark whose edge varies only in opacity still has no brightness boundary after this step.
Threshold accepts integers from 0 through 255, and selection uses strictly less than. Even at Threshold 255, a value of 255 stays unselected. Moving the slider to its maximum cannot distinguish these white logo pixels from the transparent background.
Understand why inversion produces a rectangle
Invert selection reverses the brightness comparison for every pixel. It does not invert only visible artwork or use opacity to find its perimeter. If the entire mask was unselected white, inversion selects every working pixel, including the former transparent surroundings.
For this pure-white-on-transparent case, an inverted trace describes the rectangular working raster rather than the logo. A black rectangle is the expected complement of the empty mask. Turn inversion off and return to the source artwork; more threshold changes cannot restore a boundary removed by white flattening.
Prepare a dark version outside the app
In another image editor, recolor the visible logo to black while keeping its intended transparent surroundings, then export a still PNG. PNG to SVG has no built-in editor for that repair. This source change gives opaque parts of the mark brightness zero while fully transparent surroundings still become 255.
Choose the replacement PNG, leave Invert selection unchecked and inspect Binary mask. At Threshold 128, opaque black is selected and fully transparent background is excluded. For a black pixel with alpha byte 128, the formula gives brightness 127, so it is selected. Alpha byte 127 gives brightness 128, so it is excluded.
These two calculated examples explain why soft edges can become narrower or wider when you adjust Threshold. Check the actual mask boundary. The output is binary black geometry on transparency; it cannot preserve a gradual fade in opacity, even after the source shape becomes visible.
Trace the corrected mask and inspect the result
Once the mask shows the intended mark, choose Trace shape and compare Vector SVG with it. Check internal openings and thin strokes before downloading. The serializer writes black paths with even-odd filling; it does not carry the original white color or graded transparency into the SVG.
Every threshold, inversion or working-raster edit clears the previous vector export. After adjusting, trace again to create a current result. If the finished artwork needs a white mark or translucent edges, further work is required outside this app: its implemented export remains black paths with transparent unfilled areas.
AI-assisted ForgeHub editorial. App capabilities were checked against its implementation; this guide is not an independent review.
Frequently asked questions
Can a fully transparent black pixel enter the normal trace?
No. At zero alpha, its stored black color contributes nothing and the white background contributes 255. It remains unselected at every allowed threshold unless Invert selection is enabled.
Will Threshold 255 include pure white?
No. Selection requires brightness strictly below the threshold. Pure white has value 255, so it is excluded even at the maximum setting. Inversion reverses that decision for every pixel.
Does a transparent SVG background mean source opacity is preserved?
No. The SVG contains solid black paths and transparent unfilled areas. Source opacity affects the brightness used to make the binary mask, but is not exported as varying path opacity.