

Converting to vector
Thu, 05 Aug 2021
At least once a week, someone turns up in an Ink/Stitch support venue puzzled because they loaded their picture into Inkscape, tried to export it as a stitch file, and it didnāt work. Turns out there are a few intermediate steps. If youāre starting with a bitmap (a GIF, JP[e]G, PNG, etc.), you wonāt get any results at all ā the first step is converting the bitmap to a vector.
There are two types of images. A bitmap is a grid of square dots. The embroidery machine has no idea what to do with it: at heart, it draws lines. Thatās what vectors are. Itās pretty easy for your computer to turn a set of vector instructions into a bitmap (ādraw this line along the grid, and color any square dots we pass overā and so forth), but harder to go the other way. Iāll need to hold its hand a little.
Weāve chosen a suitable bitmap. Iām going to copy the bitmap from Emojipedia into Inkscape. Itās only a 240Ć240 image; the larger the better, but for something this simple this should do. (I can go to the Twemoji repository and download the vector version, but for the sake of the tutorial Iām going to pretend I canāt.)
I pasted the image into Inkscape, then selected Path > Trace Bitmap
. There are a lot of options in that box. Iām going to switch it to colors, and the minimum number of scans that will get all the colors. If I let it use more, it will try to shade areas where the two colors meet, and I donāt want that.
As I said, the computer has trouble guessing at the original shape. Corners especially give it trouble. This is actually not terrible for embroidery purposes, and itās often what youāre going to get if you buy cheap embroidery designs from a mass-producer.
Next is a little cleanup with Ink/Stitchās tools: after an Inkscape Ungroup
, I let Ink/Stitch Troubleshoot > Clean Up Document
and also Fill Tools > Break Apart Objects
because the Trace leaves a few scraps, and also makes every color a single object. Ink/Stitch wants every object to be a single fillable space, so for instance the upper and lower parts of the yellow face need to be separated.
At this point, we have an embroiderable file. It doesnāt even look too bad in a preview: here it is at 2.5ā³ wide:
Thatās pretty good, at least on the screen. You can node-edit the shape now to make it more precise, or wait and see if you really need to.