PNGToolbox

Testing notes

How PNGToolbox Tests PNG Output

Why publish a test method?

PNG output can look correct in a preview while still having the wrong dimensions, a missing alpha channel, or an unexpectedly large file. PNGToolbox reports measurements from the processed canvas and uses downloadable files in its release checks. This page documents those checks so users can understand what the tool verifies and what still requires visual judgment.

Core test matrix

InputOperationExpected result
Still WebP with transparencyConvert at original dimensionsPNG opens at the same dimensions and retains transparent pixels.
Still WebP photoConvert with a smaller widthHeight follows the source ratio and the downloaded filename records the new dimensions.
Product image on whiteEdge-connected removalMatching pixels connected to the outer edges become transparent while enclosed white details remain.
Graphic with separate background areasGlobal color removalMatching pixels across the image are removed, including subject pixels if their color also matches.

How transparency is measured

The background tool creates an RGBA pixel buffer from the selected image. After applying the selected mode, tolerance, and feathering, it counts pixels whose alpha value is zero and divides that count by the total number of pixels. The percentage shown above the preview therefore includes both transparency created by the tool and fully transparent pixels already present in the source.

The PNG size is measured from the blob produced by the browser's PNG encoder. Two browsers can produce slightly different byte sizes from the same pixels because encoder implementations are not guaranteed to be identical.

What edge-connected removal checks

The safer default starts at pixels along the four outside edges. It follows neighboring pixels only when their color distance is within the selected tolerance and feather range. This prevents a matching color enclosed inside the subject from being removed unless it connects to the outer background.

Global mode intentionally skips that boundary rule and evaluates every pixel. It is useful for separate pockets of the same background, but it can also remove a white logo, highlight, or product detail. The Original and Result switch is part of the check, not decoration: users should compare both views before export.

Visual and interaction checks

Known limits

Color matching is not semantic subject detection. Hair, shadows, reflections, textured backgrounds, and colors shared with the subject often need a layered editor or a dedicated segmentation tool. Feathering can soften a halo but excessive values make fine edges partially transparent. Animated WebP is outside the intended workflow and may decode as a single frame.

Testing notes last reviewed in July 2026. Found a result that does not match this method? Use the contact page and include the browser, source format, selected mode, and expected result without sending a private source image.