Converting to vector
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.