How the Cross Stitch Pattern Maker Works
How the free chart and the Designer pack are made, which numbers are measured, which are estimates, and where each one comes from.
How does the free chart work?
The free chart is made in your browser. Your photo is shrunk so that each block of pixels becomes one stitch, averaged over four pixels per stitch so edges do not flicker. The colours of all stitches are grouped into as many clusters as you ask for (k-means in the CIELAB colour space), each cluster is matched to the nearest DMC floss, and then every stitch gets the nearest floss from that short list. With cleanup on, a stitch with no neighbour of its own colour takes the most common colour around it, in two passes.
How are colours matched to DMC floss?
DMC does not publish exact colour values for its threads. We use a community table of all 454 DMC colours: first built for the CrossStitchCreator project, then checked by Sharla Gelfand, who fixed values mangled by a spreadsheet and nine that did not match their numbers (MIT licence). Colours are compared with CIEDE2000, the standard formula for how different two colours look to the eye. We checked our formula against the published reference pairs.
In the Designer pack, a near-grey colour is only matched to a near-grey floss. CIEDE2000 alone will happily match a warm grey shadow in white fur to an olive green or a blue grey, which looks wrong in thread.
What does the Designer pack do differently?
- Cut-out. IS-Net, an open segmentation model (Apache 2.0), separates the subject from the background on our server. We run a smaller, quantised version at 640 pixels; on our test photo its mask matches the full model's by 98.6%. A vision model (Claude, by Anthropic) gives a box around the subject and its eyes, nose and mouth; in a busy photo we cut out again inside that box.
- Colours on the face. The colour clusters weigh the eyes, nose and mouth eight times more than the rest, and the darkest and brightest eye colours get their own floss. The background counts zero.
- Cleanup. Colours used for fewer than about 30 stitches merge into their nearest neighbour, unless they belong to the eyes. Islands of one or two stitches merge into the colour around them, the eyes excepted. Stitches on the outline that still carry the old background (green from grass) take the colour just inside.
- Name line. A hand-drawn 5 by 7 stitch alphabet, centred under the portrait. Chart pages are split between letters.
- Preview. The framed picture is drawn from the chart: each stitch is two strokes of its floss colour on drawn Aida. Nothing is generated, so the preview shows exactly the pattern you get.
The photo is read in memory and never written to disk. What we keep after a purchase is on the privacy page.
Which numbers are estimates?
| Number | Value we use | Why |
|---|---|---|
| Stitches per skein | 1,100 on 14 count, 2 strands | Published figures range from about 400 to 1,785. We plan on the safe end; finer fabric scales it up. |
| Stitches per hour | 120 | The middle of the 100 to 150 most stitchers report. Set your own pace in the plan. |
| Price per skein | $0.89 | A common US retail price for DMC six-strand floss in November 2026. |
| Fabric margin | 3 inches each side | Room for a hoop and for framing. |
The PDF labels all four as estimates. Your tension, fabric and pace will differ.
What does it not do well?
- Landscapes and buildings. There the background is the picture, so the Designer pack's cut-out does not help. Use the free chart.
- Dark, low-contrast photos. A dark cat in a dark room gives a muddy pattern. A brighter photo helps more than any setting.
- Backstitch. The pattern has full stitches only. An outline of the eyes and nose in backstitch is on our list.
Open the cross stitch pattern maker.
Have a photo in mind?
Make a pattern