From pixel art to patterns: scaling, dithering and stitch charts
Pixel art, a dithered photo and a stitch chart use a grid for different reasons. Preserve exact source colors when scaling a sprite, distribute limited tones when dithering, and choose a workable stitch count before turning a photograph into a chart. These choices should happen before final export.
Scale2x and Scale3x Pixel Art →Try a reproducible example
The original is 32 × 32; Scale2x produces 64 × 64. Inspect diagonal steps at full size. The edge rule reuses existing colors and is intended for pixel artwork, not recovering photographic detail.

32 × 32 px · 311 bytes
Download this file ↓
64 × 64 px · 618 bytes
Download this file ↓Processing settings
- Edge-rule scale
- Scale2x — double dimensions
Created by Picvelio on 12 November 2026 from original synthetic artwork using the same code as the tools. Download the input, open the saved settings, then choose that file. File sizes are measured bytes; results with other inputs or browsers can differ.
Open these settings →1. Start with the correct kind of small image
Use an unsmoothed PNG sprite for pixel-art scaling. Crop a recognizable subject before making a stitch chart: an isolated flower is easier to read at 32 × 32 cells than a distant flower in a large landscape. JPEG noise and antialiased edges add near-duplicate colors that can defeat exact neighbor comparisons.
Keep the original file and inspect at 100% or an integer zoom. A browser preview fitted to a narrow screen can add visual interpolation even when the downloaded pixels are exact. If the goal is a chart, decide its grid dimensions separately from the pixel dimensions of the exported SVG page.
Crop image →2. Reproduce Scale2x and Scale3x enlargement
Load the 32 × 32 badge example and choose Scale2x: width and height both double to 64 × 64, so the pixel count increases from 1024 to 4096. Scale3x gives 96 × 96 and 9216 pixels. Output limits apply to the enlarged result, including 8192 pixels per side and 16 million total.
Nearest-neighbor would repeat each source pixel as a solid block. Scale2x and Scale3x instead compare surrounding colors and replace selected output corners when their edge rules match. They still select existing RGBA colors rather than average new shades. Smooth interpolation suits photographs; these discrete rules suit clean sprite outlines and do not invent missing detail.
Scale2x and Scale3x Pixel Art →3. Choose a deliberate pattern for reduced tones
Bayer ordered dithering repeats a 2 × 2, 4 × 4 or 8 × 8 threshold matrix. Try grayscale, two levels, a 4 × 4 matrix and 100% strength on a gradient: only black and white remain, with their local coverage representing intermediate tones. Four levels in RGB can produce up to 4³ = 64 colors because each channel is quantized separately.
Floyd–Steinberg diffusion distributes each pixel’s quantization error to later pixels; Bayer applies a fixed positional threshold instead. Bayer gives a regular texture, while diffusion has a less regular grain. Neither guarantees a smaller file. Strength zero in the Bayer tool removes the threshold pattern but still quantizes to the selected levels; alpha remains unchanged.
Bayer Ordered Dithering →4. Build a stitch chart before choosing physical thread
Choose stitches along the longer side, up to 128, and a palette of 2–12 colors. A 96 × 64 image with 48 stitches becomes a 48 × 32 grid: 1536 possible stitch cells. The tool averages source regions, then limits the palette. It will not enlarge a source that already has fewer pixels than the requested grid.
Every occupied cell receives one symbol; the legend gives RGB hexadecimal references and counts per color, with heavier lines every five cells. Completely transparent cells are unstitched, while partial transparency is blended with the selected fabric color before quantization. The SVG uses vector symbol paths, so a missing font does not replace the symbols.
Image to Cross-Stitch Pattern →5. Check real size, palette and portability
The chart’s RGB colors are not manufacturer thread codes. Compare real swatches under the intended lighting and allow for cloth showing between stitches. At 14 stitches per inch, a 48 × 32 grid measures about 3.43 × 2.29 inches, or 87.1 × 58.1 mm, before borders and finishing allowance. This assumes one stitch per fabric cell.
A legend’s stitch count does not determine thread length: strand count, fabric count and technique matter. Print a small proof and verify that adjacent symbols remain distinguishable. Keep the SVG for zooming and the original image for palette revisions. Avoid dithering before a small stitch chart unless you deliberately want many alternating single stitches.
Adaptive Image Color Quantizer →Before you use the result
- Use clean PNG pixel art for exact edge rules; crop photos before reducing them to a chart.
- Check 32 × 32 → 64 × 64 or 96 × 96 at native size, not only a fitted preview.
- Decide whether a repeating Bayer texture or error-diffusion grain suits the design.
- Check blank cells, fabric blending, vector symbols and counts in the SVG legend.
- Match physical thread samples and calculate stitched dimensions separately from export pixels.