Stitchtile

About Stitchtile

Stitchtile turns your photos into charts for cross stitch, fuse beads and pixel art.

How a photo becomes a chart

  1. The photo is scaled to the width you choose (stitches, beads or pixels); each square takes the average colour of the area it covers.
  2. 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.
  3. Each square takes its nearest group colour. With dithering on, the error is spread to neighbouring squares (Floyd–Steinberg), which smooths gradients.
  4. 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

Automated tests check grid averaging, colour reduction, dithering, stray-stitch removal and the size calculations.