Image to Embroidery Digitizer
Operator: Abdulla Al Fahad. How tools are built and checked
Embroidery machines do not read pictures; they read lists of needle positions. Turning a logo into that list is called digitising, and the decisions in it (which areas become filled blocks, which become satin columns, where the needle travels between them) decide whether the badge sews cleanly or puckers. This page makes those decisions automatically for flat artwork: it reduces the picture to a few colours, finds the regions, fills wide areas with tatami rows and narrow straight ones with satin, adds edge-walk underlay and pull compensation, orders the colours, and writes DST, EXP or JEF.
Key features
- Colour reduction by k-means in Lab, with background removal and a table that maps each colour to a generic thread name you can change
- Tatami fill at a chosen angle and row spacing (0.4 mm by default) with staggered needle points, and satin for long, narrow, straight regions
- Edge-walk underlay, pull compensation on every edge, a maximum stitch length that splits long moves, trims before long jumps, and a colour change between colours
- A stitch-by-stitch preview with simulated thread, plus a count of stitches, jumps, trims, colours, size, and a time estimate
- Hoop presets and warnings for designs that do not fit or contain regions too small to sew
Stitch types, units and the machine formats
Stitch positions are stored in tenths of a millimetre, y pointing up. DST and EXP take their displacement in one-unit steps up to 121 and 127 units; any longer move is split into jumps. JEF is written from its published layout with a colour table.
DST, EXP and JEF carry colour changes, not thread colours, so the thread names on this page are a generic palette of 40 colours chosen for the preview and are not any maker's chart. At the machine, pick the real thread for each stop. PES is not offered.
After you save, the page reads the file back with the same reader the embroidery viewer uses and tells you how many stitches and colour changes it found, so a mismatch would show immediately.
How it works
The picture is scaled to your design width at five pixels per millimetre and quantised into the colours you ask for. The colour that fills most of the border, or the transparent area, is the background and is skipped.
Each colour is split into connected regions. A distance transform gives each region's widest width and a principal-axis analysis its elongation. Long regions up to the satin limit (4 mm by default) and at least 0.8 mm wide get satin stitches across their long axis.
Everything else gets tatami rows in the fill angle, with each row's needle points shifted a quarter, half or three-quarters of a stitch from the one before.
Underlay is a running stitch around the region's edge, inset about 0.5 mm. Rows are extended by the pull compensation at both ends, long moves are split at the maximum stitch length, and the colours sew lightest first so dark details land on top.
Common use cases
- A club badge of 80 mm across with three flat colours becomes a 12,000-stitch file in a minute; the preview shows the fills, the satin outline and the order of the colours.
- A sports team logo with fine text: the report counts regions under 5 mm or thinner than 1.2 mm so you can enlarge them before sewing.
How to use this tool
- Open flat artwork (PNG, JPG, WEBP, GIF, BMP or a plain SVG) and set the design width and hoop.
- Choose how many colours to find and press Find colours.
- Untick the background and any colour you do not want, and choose a thread for each.
- Adjust stitch settings if needed and press Make stitches; scrub the preview slider.
- Save DST, EXP or JEF and sew a test on scrap fabric.
Example
A 90 × 60 mm logo drawn by code (illustrative): a red disc, a blue ring and a thin dark bar on white
Four colours to find, 90 mm width, defaults for stitchesDesign report and read-back
2,130 stitches in 3 colours (2 colour changes), 74.1 × 38.7 mm, longest stitch 6.95 mm. The two fills are 1,163 mm² with 128 fill stitches per cm² (a solid 0.4 mm × 3 mm tatami is 83), and the bar (2.8 mm wide) is a satin column. Re-reading the DST, EXP and JEF gave the same 2,130 stitches and 2 colour changes.Tips for best results
- Set the width to the finished size before digitising; stitch counts and density depend on it, and scaling a stitch file later changes the density.
- Turn the fill angle so rows run across the longest dimension of a large area for a lie that catches the light well.
- Use as few colours as the artwork needs; every extra colour is a colour change and trim at the machine.
Edge cases to watch
Photographs do not digitise well: k-means turns gradients into bands. Use flat artwork.
Curved narrow strokes, such as thin script lettering, become tatami blocks rather than satin along the curve, because satin here follows one straight axis per region.
Text under about 5 mm tall will not sew cleanly with most threads; the page counts these and warns.
Common errors and how to fix them
- No stitches were made
- Every region was below the minimum area or the background took all the colours. Lower the minimum region area, or add a colour.
- The design is larger than the hoop
- Reduce the design width; the warning shows the size of the sewn design, which includes pull compensation.
- A DST read-back shows a different stitch count
- Report it as a bug with the file; this should not happen, and the page compares the counts for exactly that reason.
Best practices
- Sew a test on scrap with the same fabric and stabiliser before the real item.
- Keep the PNG or SVG source; re-digitising at another size is better than scaling the stitches.
What it does not know
A professional digitiser chooses stitch directions by hand, varies density across a shape, pulls a column's width in on curves, and plans the sewing order to minimise trims. This page applies one set of rules to every region. It does not model fabric, stabiliser or the thread's weight, and the time estimate assumes 700 stitches a minute, 20 seconds per colour change and 5 seconds per trim, which your machine will not match exactly. JEF is written from its published layout and verified only by reading it back here, not on a machine.
Frequently asked questions
Which file format should I try first?
DST is the most widely read. EXP is simpler and also common on commercial machines. Try JEF only on Janome machines, and sew a test.
Why does my fill show 128 stitches per cm² and not 83?
83 is the figure for infinitely long rows. Each row also has stitches at both ends and a short one from the stagger, so real fills run higher, especially in small shapes.
Can I edit stitches afterwards?
No stitch editor is included; change the settings and make the stitches again, or open the file in an embroidery editor.