Every pixel has a place
This mode directly writes SVG rectangles for PNG, JPG or WebP images up to 256 × 256 pixels. It never resizes or smooths them. A pixel at column x and row y becomes a 1-unit-high rectangle at (x, y). Adjacent pixels with exactly the same RGBA values merge horizontally within a row; rows never merge vertically.
Fully transparent runs are omitted. Partial alpha is written as fill-opacity = alpha ÷ 255, rounded to six decimal places. RGB values are retained exactly. The SVG width, height and viewBox match the source dimensions; shape-rendering="crispEdges" asks the viewer for sharp rectangle edges.
A 2 × 2 example you can count
Take row one: red, red. Row two: blue, transparent. The output has two rectangles: red at x=0, y=0, width=2, height=1; blue at x=0, y=1, width=1, height=1. The transparent pixel contributes no rectangle.
A 3 × 1 row of red, blue, red needs three separate 1 × 1 rectangles. Equal colors separated by another color are not merged. A 1 × 2 red column needs two rectangles because merging is horizontal only. These complete output strings are checked in the unit tests.
Choose PNG for intentional pixels
PNG keeps crisp color boundaries and transparency. JPG compression can introduce almost-identical colors that cannot merge, producing a large SVG. Export the artwork at its native pixel resolution rather than an already enlarged screenshot.
There is no palette reduction, threshold, background removal or curve fitting on this page: those would change the pixel artwork. Download dimensions remain in pixel units; set the final display size in your editor or website.
Questions before you export
Does this use VTracer?
No. A separate pure function writes row-run rectangles directly. There are no curves or tracing guesses.
Why the 256 × 256 limit?
Unmerged pixels can require one rectangle each: 256 × 256 is already 65,536 possible shapes. Larger images are rejected with an explanation, never silently resized.
Is this pixel-perfect?
Pixel positions and RGB values are exact; transparent pixels are omitted and partial alpha is rounded to six decimals. Your viewer decides how non-integer display scaling is rendered.