About Stitchtile
Stitchtile turns your photos into charts for cross stitch, fuse beads and pixel art.
- Colours are reduced with k-means clustering in the CIELAB colour space, which groups colours the way the eye sees them, then each square takes the nearest colour (with optional Floyd–Steinberg dithering).
- The processing runs entirely in your browser. Photos are never uploaded and nothing is stored.
- We do not claim matches to thread or bead brands, because makers do not publish official colour values; the key shows each colour and its hex code.
How a photo becomes a chart
- The photo is scaled to the width you choose (stitches, beads or pixels); each square takes the average colour of the area it covers.
- The colours are converted to CIELAB, a colour space in which equal distances look like equal differences, and grouped into the number of colours you asked for with k-means clustering.
- Each square takes its nearest group colour. With dithering on, the error is spread to neighbouring squares (Floyd–Steinberg), which smooths gradients.
- For stitches and beads, a square whose four neighbours all share another colour takes that colour, removing single stray stitches.
Sizes
Finished size = stitches ÷ stitches per inch of the fabric (Aida 11, 14, 16, 18; linen and evenweave counted over two threads, so 28-count gives 14 stitches per inch). For beads, the pattern is split into pegboards of the size you set (29 × 29 pegs by default) and a midi bead is about 5 mm.
Sources
- CIE 15:2004 Colorimetry — definition of the CIELAB colour space.
- R. W. Floyd and L. Steinberg, “An adaptive algorithm for spatial greyscale”, Proceedings of the SID 17 (1976) — error-diffusion dithering.
- S. P. Lloyd, “Least squares quantization in PCM”, IEEE Transactions on Information Theory 28 (1982) — the k-means algorithm.
Automated tests check grid averaging, colour reduction, dithering, stray-stitch removal and the size calculations.