How to turn a photo into a quilt pattern
Pixel quilts are easy to generate and hard to make well. Here is what actually decides whether the finished quilt looks like the photograph.
Converting a photograph into a quilt is a colour-reduction problem before it is a quilting problem. A photograph has millions of colours; a quilt has however many fabrics you own. Everything about how good the result looks comes down to how that reduction is made.
Choosing the palette
The naive approach picks colours by even spacing through the image histogram. It produces muddy results, because photographs are not evenly distributed — a portrait is mostly skin and background, and an even split spends half the palette on colours that occupy 2% of the image.
FourPatch clusters instead, using k-means in CIE Lab colour space. Lab matters: it is designed so that equal numerical distances look like equal perceptual differences, which RGB emphatically is not. Clustering in RGB gives you three shades of the same blue and nothing for the skin tones. Clustering in Lab gives you a palette that matches what your eye picks out of the photograph.
You can also work the other way: pick your fabrics first — the ones you actually have — and let the image map onto them. That is almost always the better workflow for a real quilt.
How many cells across?
This is the decision that matters most, and the one people get wrong in both directions.
- Too few (under about 30 across) and the subject stops being recognisable. Faces need more resolution than landscapes; anything with text needs more than either.
- Too many and you have committed to a quilt you will not finish. A 100 × 130 cell photo quilt is thirteen thousand pieces. At two minutes a piece that is four hundred hours.
For a first photo quilt, 40–60 cells on the long side is a realistic target. Squint at the preview from across the room — if you can tell what it is with your eyes half closed, the resolution is enough. Value contrast carries recognition far more than colour accuracy does, which is why the greyscale preview is the most useful check.
Where triangles help
A pure grid of squares can only make horizontal and vertical edges. Every diagonal in the photograph — a jawline, a roof, a horizon — turns into a staircase.
Half-square triangles fix this. Where a cell straddles a strong diagonal edge, splitting it into two triangles lets the quilt follow the line instead of stepping around it. FourPatch does this automatically: it measures the gradient in each cell, and where the gradient is strong enough it fits a diagonal split, choosing the direction that minimises the colour error on each side.
The threshold is adjustable. Turn it up and you get a smoother image with more piecing; turn it down and you get a blockier image that sews faster. It is a direct trade of hours against fidelity.
Dithering
With a small palette, large flat areas band — a sky becomes three visible stripes instead of a gradient. Floyd–Steinberg dithering pushes the quantisation error into neighbouring cells, breaking the bands into a scatter that reads as a smooth gradient from a distance.
It works, but use it deliberately: dithering makes the piecing map much noisier, and a scattered single square of a different fabric is harder to keep track of at the sewing machine than a clean block of colour. For skies and skin, worth it. For graphic images with flat colour, leave it off.
Which photographs work
- Strong value contrast between subject and background. A dark dog on a dark sofa will not read at any resolution.
- Simple composition. One subject, uncluttered background.
- Recognisable silhouette. If the outline alone is identifiable, the quilt will work.
- Avoid busy backgrounds, small faces, fine text, and anything where the subject and background are the same value.
Sewing it
Work in rows and label everything. The universal method is to lay the whole quilt out on a design wall in its grid, then chain-piece one row at a time, keeping each finished row pinned in place. Number the rows on paper before you touch them — a photo quilt that comes off the wall unlabelled is genuinely difficult to reassemble.
Press seams in alternating directions by row so they nest, and accept that with this many seams the top will need blocking before quilting.
Privacy note: in FourPatch, photo conversion runs entirely in your browser. The image is never uploaded to a server unless you choose to save the finished design to a cloud account.
Questions
How do you turn a photo into a quilt pattern?
Reduce the photograph to a small palette of fabric colours, divide it into a grid of cells, assign each cell the closest palette colour, and optionally split cells that straddle a strong diagonal into two triangles. The result is a piecing chart with one patch per cell.
How many squares should a photo quilt be?
For a first photo quilt, 40 to 60 cells on the long side gives a recognisable image without an unrealistic piece count. Faces need more resolution than landscapes.
Does a photo quilt need triangles?
Not always, but they make a large difference on any image with strong diagonal edges. Half-square triangles let the quilt follow a jawline or a horizon instead of stepping around it in a staircase.
Is my photo uploaded anywhere?
In FourPatch, no. The conversion runs entirely in your browser on your own device. Nothing is sent to a server unless you choose to save the finished design to a cloud account.
Stop looking things up
FourPatch does this arithmetic for every piece in your quilt, every time you change something — block size, sashing width, fabric width, waste allowance. The cutting list and yardage just update.