← Back to Vectorizing Tests

Palette Vectorizer

Palettize first, then vectorize each color as a separate SVG layer — clean flat fills that xTool Studio can select for laser layer separation.

Why palettize before vectorizing? Standard vectorizers trace edges in a single greyscale pass — colors blend into each other and you get one messy combined path. This tool runs color quantization first, snapping every pixel to its nearest palette color. Then it traces each palette color independently, producing clean non-overlapping regions. The SVG output uses separate <g fill="#rrggbb"> groups — one per color — which xTool Studio reads as distinct layers.
Palettize → Per-Color Vectorize → Multi-Layer SVG

Drop an image or use the duck. Detect a palette, click any swatch to edit it, then vectorize.

Original

Drop, paste, or browse to load a different image

Palettized preview
Detect palette
Detected palette
Click any swatch to change its color — preview updates automatically
0.8 px
1 px
SVG Output
Using in xTool Studio. Import the downloaded SVG. Each fill color appears as a separate layer in the Layers panel. Select a layer → assign laser parameters (power, speed, passes). Use darker colors for deeper engrave passes, lighter for surface marking.
K-Means vs Hue Spread. K-Means finds the most populous colors — great for photorealistic images where a few dominant colors matter most. Hue Spread maximizes angular distance around the color wheel — better for illustrations or logos where you want representation across all hues, even if some are rare. Edit individual swatches after detection to fine-tune.