Floss Field

Making a pattern in an image editor

An image editor can turn a photo into a grid of colored squares: shrink it to one pixel for every stitch, cut it down to a few colors, then enlarge it with hard edges. Pixel art is such a grid already, and has its own section below. What no editor gives you is thread numbers, symbols or a key, the list that says which thread each symbol stands for.

On this page
  1. How it works
  2. Step 1: work out the size in stitches
  3. Step 2: crop, then shrink to that many pixels
  4. Step 3: cut the colors
  5. Step 4: enlarge with hard edges
  6. Step 5: lay a grid over it
  7. Step 6: save it and print it
  8. How to turn pixel art or a game sprite into cross stitch
  9. What an image editor cannot do
  10. The direct way
  11. Make a picture or words look cross stitched
  12. In a drawing program that works in vectors
  13. Where to go next

The short way to a chart is the photo to pattern converter on this site: it does Steps 1 to 6 below and adds all three. To work in an editor you have, go to:

On the left, a picture of an apple with smooth edges and a soft highlight, marked A. On the right, marked B, the same apple as a grid sixteen squares each way in three flat colors, with hard square edges and a heavier line after the tenth square.

How it works

A picture on a screen (A) is already a grid: a grid of pixels, the tiny squares of color that make it up. A chart (B) is a grid of stitches. So the whole method is to make the picture small enough that one pixel is one stitch, and plain enough that each pixel is one of a few colors. Both steps lose detail: a few thousand squares in a handful of colors cannot hold all that a photo does. The aim is to keep the parts that matter.

Step 1: work out the size in stitches

Multiply the size you want, in inches, by the fabric count, which is how many stitches the cloth gives to the inch (2.5 cm). A piece 5 inches (12.7 cm) wide on 14 count is 70 stitches wide. The fabric calculator, opened on 70 by 70 stitches, shows what that comes to on other counts.

Step 2: crop, then shrink to that many pixels

  1. Make a copy of the photo, and work on the copy. Once a photo is shrunk and saved, its detail is gone for good. In Photoshop choose File, Save As, and give it a new name. In GIMP choose Image, Duplicate.
  2. Crop close to the subject, with the Crop tool. Every pixel given to background is a stitch not given to detail.
  3. Open the size window. In Photoshop it is Image, Image Size. In GIMP it is Image, Scale Image.
  4. Set the units to pixels.
  5. Type the width in pixels: 70 for a design 70 stitches wide. The height follows by itself while the chain is closed: the chain is the link beside the width and the height.
  6. Choose how it shrinks. In Photoshop keep Resample ticked and choose "Bicubic Sharper (reduction)" in its list. In GIMP set Interpolation to LoHalo.
  7. Press OK (Scale in GIMP). The picture is now tiny on screen. That is right: each pixel is a stitch. Zoom in to see it.

Step 3: cut the colors

  • Photoshop: Image, Mode, Indexed Color. Set the palette to Local (Adaptive), and type the number of colors in the Colors box.
  • GIMP: Image, Mode, Indexed. Choose "Generate optimum palette" and set the maximum number of colors.

Fewer colors give flatter areas and less thread to buy, and they also hold less detail. Try a few numbers and look.

Both programs offer dithering, which scatters pixels of the colors it has to stand in for the ones it lacks. On a stitched piece that softens the bands in skies and skin when seen from across a room, and it speckles the chart with scattered single stitches. Set it to "None" for a simple picture or a first chart. For a photo with soft shading, try it both ways.

Step 4: enlarge with hard edges

To see and print the squares, make the picture bigger again, by a whole number of times: ten times makes each stitch a block ten pixels across.

  • Photoshop: Image Size again, with Resample set to "Nearest Neighbor (hard edges)".
  • GIMP: Scale Image again, with Interpolation set to "None".

Any other setting smooths the picture as it grows, and the squares blur into each other.

Step 5: lay a grid over it

The numbers here are for a picture enlarged ten times, so that a stitch is 10 pixels.

To count on the screen, turn on the program's own grid. It is a guide and no part of the picture. Photoshop's grid lines do not print.

  • Photoshop: under Preferences, Guides, Grid and Slices, set "Gridline Every" to 10 pixels and "Subdivisions" to 1. A larger number there adds lines inside each stitch. Then choose View, Show, Grid.
  • GIMP: Image, Configure Grid, set the spacing to 10 pixels, then View, Show Grid.

To have lines on paper, draw them into the picture. First choose Image, Mode, RGB in either program, so that the lines can have a color of their own.

In GIMP:

  1. Open the grid filter: Filters, Render, Pattern, Grid.
  2. Set the boxes to 10 pixels wide and 10 high.
  3. Set the lines to 1 pixel thick, both ways, and press OK.
  4. Run the filter again with boxes of 100 pixels and lines of 3. That is the heavier line every ten stitches.

In Photoshop the lines come from a small picture, repeated like tiles. Photoshop calls such a tile a pattern. It is not your chart, and it goes on a layer: one picture laid over another in the same file.

  1. Start a new picture 10 by 10 pixels, white. This is the tile.
  2. Draw a dark line 1 pixel wide along its top edge, and another down its left edge.
  3. Save the tile as a pattern: Edit, Define Pattern.
  4. Go back to the picture of the chart and choose Layer, New Fill Layer, Pattern. Pick the tile, and press Snap To Origin so that it starts at the corner.
  5. Set that layer to Multiply in the list that says Normal. White then leaves the colors below as they are, and only the lines show.
  6. Do the same with a tile of 100 by 100 pixels and lines 3 pixels wide, for the heavier line every ten stitches.

Step 6: save it and print it

  1. Save it as a PNG. In Photoshop choose File, Save As. In GIMP choose File, Export As, and end the name in .png. A PNG keeps the hard edges. A JPEG throws some detail away and smudges them.
  2. Print it as a picture, fitted to the page.
  3. Write a list of the colors beside it, and choose a thread for each: how to match them.

How to turn pixel art or a game sprite into cross stitch

One pixel is one cross, so pixel art, like a sprite (a game's figure), is nearly a chart.

  1. Get it at its own size, one pixel to a square: how to tell, and what to do with a larger copy.
  2. Leave the background bare, see-through pixels too.
  3. Match each color to one thread, held beside the screen: how to match them.
  4. Enlarge it and add a grid: Step 4 and Step 5.
  5. Find the size. Divide the squares by the count of the cloth, its stitches to the inch: 16 on 14 count are about 1 1/8 inches (2.9 cm). To make it larger, take cloth of a lower count or work each square as four crosses.

From step 2 on, the photo converter does it all, for a picture up to 160 pixels a side: the steps in the converter.

A game's figures belong to its owner. Keep the piece and the chart for yourself, and ask the owner before you sell or share either: what copyright covers. Charted already: pixel art and video games.

How to get pixel art at its own size

  1. Crop a copy, if the background is plain, so that the outermost squares of the figure touch the edges.
  2. Measure one square. Zoom in. Squares of one color run together, so look for one that stands alone, or for the smallest step of an edge. Draw a box round it with the rectangle selection tool and read the width of the box in pixels: in GIMP, under Size in the tool's options.
  3. Read the width of the picture in pixels, in the size window of Step 2: Image, Image Size in Photoshop, or Image, Scale Image in GIMP.
  4. Divide it by the square. If the square is 1 pixel, the picture is at its own size. If the square is 4 pixels and the picture 64, it is an enlarged copy, 16 squares wide.
  5. Shrink it if it is larger. In that window type the number of squares as the width in pixels, here 16. Set Resample to "Nearest Neighbor (hard edges)" in Photoshop, or Interpolation to "None" in GIMP, as in Step 4. Any other setting mixes the colors.
  6. Save it as a PNG. A JPEG smudges the squares.

If the answer is not a whole number (65 divided by 4 is not), crop a new copy: a strip of background was left at an edge, or part of a square cut off. If it is still not whole, the copy was enlarged unevenly and its squares differ in width: look for another copy. Or copy the picture square by square in the pattern maker, as you can on a phone, with neither program.

How to chart pixel art in the photo converter

  1. Open it at its own size in the photo converter. Up to 160 pixels a side, each pixel is one stitch: "One pixel = one stitch" is ticked.
  2. Leave the size alone. "Small motif", "Pet or face", "Detailed" and the buttons of the size untick it, and the picture is then resized. If that happens, tick it again.
  3. Open "Options" and set "Colors, at most" to 42. The chart takes only the threads the picture needs. If that is fewer, the line under the number says how many. A lower limit can join some colors.
  4. Look at the background. If it came out as stitches, press "Leave empty", under "Options". If part of the figure is gone, press "Stitch it".
  5. Erase what is left. Background that the figure shuts in is stitched all the same. Press "Edit" and erase it by hand.
  6. Press "Download free PDF". It has the symbols and a key of thread numbers. In the pattern maker it is "Download PDF", on a phone in the menu, the three lines at the top.

How to draw pixel art of your own

  1. Open a small grid. In the pattern maker choose "Another size", type 32 for the width and for the height, and press "Start drawing".
  2. Draw the outline in a dark thread, one square thick. The thread you start with is black.
  3. Fill each part with one flat color. Press "+ Add" and tap a thread, then press "Fill" and touch inside the outline.
  4. Choose where the light comes from, such as the top left. Add a darker thread for each color, and draw with it along the side away from the light.
  5. Go over it square by square. Each square counts at this size, and one that breaks a line shows.
  6. Press "Download PDF" for the chart, with its thread numbers. On a phone it is in the menu, the three lines at the top.

What an image editor cannot do

  • Thread numbers. The colors are screen colors. Nothing matches them to real threads. You hold real thread, or a maker's color card (a card that shows every color with its number), against each color of the picture and choose.
  • Symbols and a key. You get colored squares only, with nothing but the color to tell one thread from the next.
  • Stitch counts, center marks and pages. There is no thread list, no count of stitches in each color, no mark at the middle, and no split over pages with rows repeated at the joins.

The direct way

The photo to pattern converter does steps 1 to 6 and the three missing things at once. Choose the picture, set the longest side in stitches and the most colors, and download a PDF with a symbol chart, a key of DMC numbers with the stitches in each, and the fabric to cut. DMC is a maker of thread, and its colors are sold by number. The picture is read on your own device and is not uploaded. It can leave a plain background as bare cloth and tidy stray single stitches, and the chart can go on to the pattern maker to be edited square by square.

An image editor is still the right place to improve the photo first. Crop it, brighten it and clean it up there, save it, and then convert it.

Make a picture or words look cross stitched

This is for a card, a banner or a screen, not for stitching from. It works in any editor that has layers and patterns. A layer is one picture laid over another in the same file. A pattern is a small picture repeated like tiles until it fills a space. The squares come first (A), then a tile with one X in it (B), and the tile repeated over the squares leaves the look of stitches (C).

Three parts. A, a piece of the apple in colored squares. B, a single square tile with a thick dark X on white. C, the same piece with every square turned into an X of its own color on white.
  1. Make the background white, unless it is white already, because white stands for bare cloth. Click it with the magic wand (Fuzzy Select in GIMP), which selects an area of one color, and fill it with white. Paint what is left over with a white brush.
  2. Make the squares. Do Step 2 and Step 3: one pixel for each stitch and a few flat colors, white among them.
  3. Turn it back to RGB color: Image, Mode, RGB. A picture left in indexed color may not take layers, or may not blend them.
  4. Enlarge it 20 times with hard edges, as in Step 4. Each stitch is now a block 20 pixels each way, and 70 stitches are 1,400 pixels across.
  5. Start the tile: a new picture 20 by 20 pixels, white.
  6. Draw a black X in it, 4 pixels thick. Begin and end each line 3 pixels in from the corner.
  7. Save the tile as a pattern. The command is Define Pattern in some editors. In others, whatever you copied last is offered as a pattern.
  8. Fill a new layer with the pattern, on top of the squares. The command is a new fill layer of the kind Pattern in some editors. In others, the bucket tool is set to fill with a pattern.
  9. Check the corner. The pattern has to start at the top left corner of the picture, so that each X falls on one block. If it does not, press Snap To Origin in the pattern's settings in Photoshop. In another editor, undo the fill, make the layer exactly the size of the picture, and fill again.
  10. Set that layer to Screen, in the list marked Mode or Blend Mode. It says Normal to begin with. White stays white and black lets the color below through, so each X takes the color of its block.
You wantChange
Rounder, fuller stitchesA thicker X in the tile, 5 pixels, drawn with a round brush
One line of the X on top, as in a real crossBefore you save the tile, a thin white line along both sides of one line of the X, where it passes over the other
A cloth you can seeOne more layer on top, set to Multiply, filled with a white tile that has a small gray dot in each corner, for the holes
A single motif or a border by handSave the X as a brush and set its spacing to 100 percent, so the marks stand side by side

For words, each letter has to be drawn in squares first. The text generator lays out a name or a saying in stitches: copy its squares with a one-pixel pencil, one pixel for each square, then enlarge it and go on as above.

It is a picture of stitches and no more. It has no thread numbers, no symbols and no key. If someone is to stitch it, make the chart as well.

In a drawing program that works in vectors

Some drawing programs work in lines and shapes, called vectors, and not in pixels. A vector shape stays crisp at any size, but nothing in the picture stands for a stitch until you supply the squares. The way to do it is a grid that shapes jump to, with one cell for each stitch. It suits a small chart, a border or a few words. Keep it for drawing: such a program can trace a photo, but tracing makes shapes that follow the outlines, not squares. For a photo, use the photo converter.

Three pieces of the same small grid. A: a filled square in each cell that is a stitch, meeting edge to edge. B: an X in each of those cells, its strokes ending short of the corners, so that every X stands alone. C: the same X's with their strokes run into the corners, so that they join into one net.
  1. Set up the grid. In the grid settings, type the same spacing across and down. A cell of 0.1 inch (0.25 cm) gives ten squares to the inch (2.54 cm), which is roomy to draw on.
  2. Turn on snapping to the grid. Shapes then jump to the nearest grid line and fit their cells exactly.
  3. Draw one square from one corner of a cell to the opposite corner (A).
  4. Fill it with a color. One flat color stands for one thread.
  5. Set its outline to none. Many programs lay the outline half outside the shape, so outlined squares overlap their neighbors.
  6. Make a layer for each color. You can then hide, lock or recolor one thread without touching the rest.
  7. Copy the square into every cell that is a stitch of that color, on that color's layer. The grid pulls each copy into place.
  8. Draw the grid as real lines, on a layer of its own at the top, with a heavier line every ten cells. The program's own grid is often a guide on the screen that does not print.
  9. Print with no scaling, at 100 percent. Measure ten printed squares with a ruler: at 0.1 inch a cell they should come to 1 inch (2.54 cm). How to print a pattern has the settings.

To see the chart at its stitched size, make the cell 1 inch (2.54 cm) divided by the count of the fabric. On 14 count that is about 0.07 inch (0.18 cm).

An X in place of each square

  1. Turn snapping off while you draw the X.
  2. Draw one slanting line inside a cell, from near one corner to near the opposite one. Stop about a sixth of the cell short at each end.
  3. Draw the second line across it, the other way.
  4. Make both lines about a fifth of the cell thick.
  5. Turn snapping on again.
  6. Draw a clear square that fills the same cell, with no fill and no outline. It is there for its size and does not show.
  7. Group the square and the two lines. They now move as one thing, exactly as large as the cell, so the grid does not pull the X into a corner.
  8. Copy the group into every cell that is a stitch.

For a solid area there is a shorter way. Save the group as a pattern, check that its tile is exactly the size of the cell, and fill the area with that pattern.

What you seeCure
The X's join up into a net (C)Shorten the lines until each X stays inside its own cell (B), or make them thinner
Gaps between filled squaresTurn snapping on and move each square back onto the grid
A pattern that drifts off the gridSet the tile to the size of one cell, not to the size of the X. The clear square in step 6 gives it that size
Every X sits in the corner of its cellPut the clear square in the group, then copy the group again
The print measures wrongPrint again with "fit to page" off

A vector program gives no thread numbers, no key and no count of the stitches. You choose each thread by eye, write the key yourself, and count the squares. The pattern maker keeps all three for you as you draw.

In a painting or tablet app

A painting app works in pixels, so one pixel can be one stitch, as in Step 2. Start a picture with as many pixels as the design has stitches. Draw with a hard-edged pencil or square brush one pixel wide, in one flat color at a time, with no soft edge and no smudging. A soft brush leaves in-between colors round every stroke, and each of them would be another thread. Then enlarge it with hard edges, as in Step 4.

Where to go next

How to make a cross stitch pattern covers the other ways to make a chart. How to resize a pattern explains what changing the stitch count or the fabric does to the finished size.