svg to/from embroidery converter

Using Inkscape with other software? Talk about it here.
knobba
Posts: 27
Joined: Tue Mar 02, 2010 4:35 am
Contact:

svg to/from embroidery converter

Postby knobba » Tue Mar 02, 2010 6:55 am

I'd just like to tell and discuss, if anyone is interested, that I made a svg to/from machine embroidery converter. Embroidery files is also vector graphics and I found some description on some of the file types available for machine embroidery. So I read a lot on the svg file format and combined this with some mathematics and some knowledge to php. So now I can create my own embroidery files with Inkscape. I can also convert embroidery files to svg to edit the files in Inkscape and then convert it back to embroidery file format.

Embroidery software costs a lot, so this is an attempt to make creation of embroidery files affordable to hobbyists.
Last edited by knobba on Wed Mar 03, 2010 2:03 am, edited 1 time in total.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: svg to/from embroidery converter

Postby brynn » Tue Mar 02, 2010 12:43 pm

Embroidery software costs a lot, so this is an attempt to make creation of embroidery files affordable to hobbyists.

Wow, I didn't know there was any such thing as embroidery software. I have done a lot of embroidery (and other sewing or needlecraft) (in the past, pre-arthritis), and can't quite comprehend why special software should even be needed in the 1st place. I can see how knitting could employ computer software, also needlepoint, even quilting. But embroidery....unless you mean counted cross stitch....but even counted cross stitch is basically line drawings, even though the stitch is an X. Maybe you could educate me on that?

But yeah, Inkscape would be perfect for creating embroidery stencils!

knobba
Posts: 27
Joined: Tue Mar 02, 2010 4:35 am
Contact:

Re: svg to/from embroidery converter

Postby knobba » Wed Mar 03, 2010 6:47 am

I am talking about software to prepare files that stitch by stitch tell an embroidery machine where to put the needle. Here is an example on a machine embroidery which you certainly not would sew by hand. And the basis for this embroidery is an embroidery file conisisting of straight line element vectors. Image
My web-converter takes an svg path, the stitch length and image width as input and converts the svg path to straight line element vectors and saves this in an embroidery format which I can upload to my embroidery machine, press start, take some coffee and watch it work for me :ugeek:

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: svg to/from embroidery converter

Postby brynn » Wed Mar 03, 2010 12:31 pm

OOoohh, machine embroidery. Yes, that's a different story!
Thanks for that. I was taught sewing by the oldest of the old school techniques -- when machines were used for making clothes, and everything else was by hand.

User avatar
RobA
Posts: 335
Joined: Fri Aug 10, 2007 1:22 am

Re: svg to/from embroidery converter

Postby RobA » Thu Mar 04, 2010 6:15 am

There are similar efforts to create vinyl cutter files from Inkscape to escape the proprietary software used for those. (The inkscape vectors are turned into paths the cutter blade follows)

I would think there is much in common between the two.

-Rob A.

knobba
Posts: 27
Joined: Tue Mar 02, 2010 4:35 am
Contact:

Re: svg to/from embroidery converter

Postby knobba » Thu Mar 04, 2010 7:03 am

ffaat wrote:There are similar efforts to create vinyl cutter files from Inkscape to escape the proprietary software used for those. (The inkscape vectors are turned into paths the cutter blade follows)

I would think there is much in common between the two.

Sounds like there is similarities, yes.

Guest

Re: svg to/from embroidery converter

Postby Guest » Fri Apr 16, 2010 5:33 pm

Here's an inkscape extension I wrote that emits a machine-embroidery file.

http://www.jonh.net/~jonh/inkscape-embroidery/

Enjoy!

knobba
Posts: 27
Joined: Tue Mar 02, 2010 4:35 am
Contact:

Re: svg to/from embroidery converter

Postby knobba » Sun Apr 18, 2010 6:03 am

Hey! Somebody else with the same interests :) Would be interesting to discuss algorithms

Guest

Re: svg to/from embroidery converter

Postby Guest » Sun Apr 18, 2010 2:31 pm

I'd be happy to; email address is on the web page linked above.

Of course, you can also just fetch the program itself to see what naive algorithms I'm already using. :v) It's pretty durn simple; no control over things like thread direction and stitch pattern. The page has a "theory of operation" section that gives you the basic rundown.

JKJ
Posts: 2
Joined: Fri Jul 27, 2012 11:30 pm

svg to embroidery

Postby JKJ » Sat Jul 28, 2012 10:52 am

knobba wrote:I'd just like to tell and discuss, if anyone is interested, that I made a svg to/from machine embroidery converter. ... Embroidery software costs a lot ...


Hello, just started using Inkscape and found this thread, no pun intended. I was searching for a way to convert .AI files to .EMF for input into Embird embroidery digitizing software. I tried several things which did not work until I learned about Inkscape which has worked perfectly on everything I've tried so far. Embird is one of the least expensive programs I could find to edit and digitize embroidery designs.

I had both a .JPG and .AI file of a logo. I digitized the logo by tracing the bitmap in Embird and it took about two hours. After installing Inkscape, I loaded the .AI file of the logo, saved as .EMF, then digitized the same logo in Embird. The entire process took about two minutes. I haven't sent the file to the machine yet but the thread simulation looks good.

I've just finished the tutorials and I can see that Inkscape should be quite useful for creating original designs. Tonight I'll try creating a cartoon design a friend wants to put on a shirt.

JKJ

knobba
Posts: 27
Joined: Tue Mar 02, 2010 4:35 am
Contact:

Re: svg to/from embroidery converter

Postby knobba » Sun Nov 04, 2012 10:03 pm

Embird might work very well and be the least expensive ($164), but for me I'd rather have the fun of creating my own free and simple program, than spend those money :)

aaavacuumandsewing
Posts: 1
Joined: Sat May 16, 2015 2:26 pm
Location: Lancaster, PA

Re: svg to/from embroidery converter

Postby aaavacuumandsewing » Sat May 16, 2015 2:55 pm

Wow! embroidery machine that’s a new thing in forums. I really did not know that there was embroidery software. Nice idea.

sgtserger
Posts: 1
Joined: Fri Nov 20, 2015 7:16 pm

Re: svg to/from embroidery converter

Postby sgtserger » Fri Nov 20, 2015 7:20 pm

I made an account just for this thread. I love inkscape and I've been looking for an embroidery program that won't cost me an arm and a leg as well as will be as intuitive as inkscape. I cannot wait to try this out!

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: svg to/from embroidery converter

Postby brynn » Fri Nov 20, 2015 8:26 pm

I think Inkscape would be great to use, to draw embroidery patterns/designs. There is another extension which you might find helpful. I haven't used it, so I can't say how well or not well it works. I think what it does is make your drawing so that the embroidery machine can use it. I was 6 years old when my mother started teaching me how to embroider by hand! ("analog" I supposed!) But I've never used any kind embroidery machine. I've seen them demonstrated though, like on public tv programs. They look like amazing machines! They even can do things like smocking! Although I guess you probably know that already.

https://github.com/stesie/inkscape-embroidery

This is a whole different kind of craft, but you still might be interested. Bobbin Lace http://web.uvic.ca/~vmi/laceTools/Inksc ... cape1.html

And this is for clothing patterns: http://www.taumeta.org/?page_id=247

You'll primarily want to learn to use the Pen/Bezier tool :tool_pen: , along with the Node tool :tool_node: . I'd suggest Help menu > Tutorials > Basic, Shapes, and Advanced. Even though it's called Advanced, it really is for beginners. (I promise! That's what I used when I first started learning Inkscape.) And the Advanced tutorial is the one that briefly tells you about creating and editing paths.

In the manual, which is Help menu > Inkscape manual (needs internet connection) try the tutorial in the Quick Start chapter called Hiking Club Logo. It also focuses on paths, with more detail than the Advanced tutorial.

aXiEd
Posts: 2
Joined: Mon Dec 28, 2015 7:09 am

Re: svg to/from embroidery converter

Postby aXiEd » Mon Dec 28, 2015 7:19 am

brynn wrote:I think Inkscape would be great to use, to draw embroidery patterns/designs. There is another extension which you might find helpful. I haven't used it, so I can't say how well or not well it works. I think what it does is make your drawing so that the embroidery machine can use it. I was 6 years old when my mother started teaching me how to embroider by hand! ("analog" I supposed!) But I've never used any kind embroidery machine. I've seen them demonstrated though, like on public tv programs. They look like amazing machines! They even can do things like smocking! Although I guess you probably know that already.


https://github.com/stesie/inkscape-embroidery

This is a whole different kind of craft, but you still might be interested. Bobbin Lace http://web.uvic.ca/~vmi/laceTools/Inksc ... cape1.html

And this is for clothing patterns: http://www.taumeta.org/?page_id=247
http://bigmall.ge - gancxadebebi

You'll primarily want to learn to use the Pen/Bezier tool :tool_pen: , along with the Node tool :tool_node: . I'd suggest Help menu > Tutorials > Basic, Shapes, and Advanced. Even though it's called Advanced, it really is for beginners. (I promise! That's what I used when I first started learning Inkscape.) And the Advanced tutorial is the one that briefly tells you about creating and editing paths.

In the manual, which is Help menu > Inkscape manual (needs internet connection) try the tutorial in the Quick Start chapter called Hiking Club Logo. It also focuses on paths, with more detail than the Advanced tutorial.



thx +1 :P :D

User avatar
ha1flosse
Posts: 154
Joined: Wed Oct 21, 2009 8:12 pm
Contact:

Re: svg to/from embroidery converter

Postby ha1flosse » Thu Mar 03, 2016 5:28 am

cool brynn, thanks for the nice infos!

we got a janome mc 500e at our fablab now, so the inkscape-embroidery-plugin is very exciting..

the github - branch https://github.com/stesie/inkscape-embroidery didn't work so far on ubuntu 12.04 with inkscape 0.48.3.1 r9886.

the embroidery - script/filter breaks operation with:

Traceback (most recent call last):
File "embroider.py", line 38, in <module>
import shapely.affinity as affinity
ImportError: No module named affinity

the original script from Jon Howell works instead and creates outputs.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: svg to/from embroidery converter

Postby brynn » Thu Mar 03, 2016 10:30 am

Hhm....I can't help with the errors from that extension. But at least I can make a note that it's not working (for my "extensions master list" project). Possibly you could try and contact the developer? (the current developer)

What do you mean by "the original script from Jon Howell"? I'm looking on the github page, but I can't identify some "original script". Oh, you mean from the link posted in the middle of this thread, by a Guest (at the time, visitors could post without registering): http://www.jonh.net/~jonh/inkscape-embroidery/

What about the extension which is the subject of this thread (http://svg2embr.wasbo.net/index.php). Were you able to try it?

Meanwhile, someone has recently posted on the dev mailing list about several new extensions he's making, which (if I understand correctly) will help in creating designs for machine embroidery. He wants to provide some new functionality for the core Inkscape code, as well. And he's received some positive and supportive comments, and even an offer from someone to help. I have no idea how soon these will be available.

Aarrggghh! I was going to look up the guy's name, but I can't get my email to open... I guess I'll have to go into troubleshooting mode....

User avatar
ha1flosse
Posts: 154
Joined: Wed Oct 21, 2009 8:12 pm
Contact:

Re: svg to/from embroidery converter

Postby ha1flosse » Fri Mar 04, 2016 2:48 am

What about the extension which is the subject of this thread (http://svg2embr.wasbo.net/index.php). Were you able to try it?


yes, i've been converting simple forms using the web-extension and it works nicely, thanks to the author! but the extension only converts path lines and is only accessible via webpage. the projects you mentioned for example already calculate stitches of closed paths' filled areas, so using them saves a lot of time rather than placing the stitches for fills by hand.

Meanwhile, someone has recently posted on the dev mailing list about several new extensions he's making, which (if I understand correctly) will help in creating designs for machine embroidery. He wants to provide some new functionality for the core Inkscape code, as well. And he's received some positive and supportive comments, and even an offer from someone to help. I have no idea how soon these will be available.


cool, did you retrieve a link to the projects page? would be very cool to use inkscape from start to end converting to embroidery formats.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: svg to/from embroidery converter

Postby Moini » Fri Mar 04, 2016 3:08 am

half-offtopic:

Ha1flosse, judging from your nickname, I think this page would also contain interesting info for you (it's in German):
https://wiki.raumzeitlabor.de/wiki/Schr ... n_Inkscape

and this page might be cool to see for everyone here:
https://wiki.raumzeitlabor.de/wiki/Rarity/Pony-Motive (night-glow)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: svg to/from embroidery converter

Postby brynn » Fri Mar 04, 2016 8:53 pm

ha1flosse wrote:cool, did you retrieve a link to the projects page? would be very cool to use inkscape from start to end converting to embroidery formats.


At the time he first posted, he had not yet uploaded his work for others to look at and comment on. I still haven't checked my mail today, so maybe he has it posted by now. I'll try and remember when he posts, to put a link here. But it will probably be like be something like a github account, with only files of codes, and not any images or promotions. But I'll try to post a link, when he has one.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: svg to/from embroidery converter

Postby Moini » Sat Mar 05, 2016 3:09 am

Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
ha1flosse
Posts: 154
Joined: Wed Oct 21, 2009 8:12 pm
Contact:

Re: svg to/from embroidery converter

Postby ha1flosse » Tue Mar 08, 2016 8:56 am

thanks moini, awesome infos!
allright brynn, looking forward to the release then.

User avatar
ha1flosse
Posts: 154
Joined: Wed Oct 21, 2009 8:12 pm
Contact:

Re: svg to/from embroidery converter

Postby ha1flosse » Fri Mar 25, 2016 3:21 am

as described in the work in progress thread here (viewtopic.php?f=9&t=24012), i picked a simple cartoon character for the trial to embroider it onto textile. taking the steps of the nice tutorial by knobba (http://svg2embr.wasbo.net/index.php) and using the extension suggested by a guest (http://www.jonh.net/~jonh/inkscape-embroidery/).

this is what the result looks like. left and right next to the character you'll find the stitch path resulting from the tutorial of knobba, far right and left the result of the embroidery - extension.

Image

as far as i can see, right now the result of the extension looks ok except some points of which i still don't know if the line management is ok or not.

i'm still struggling in understanding how the path direction and start/end influences the stitch positioning and what is meant by "jump stitches". would be cool if someone explains the fundamentals in understanding how a stitch pattern is build a little bit more, maybe knobba can, until then this is just a trial and error type situation rather than based on knowledge.

User avatar
ha1flosse
Posts: 154
Joined: Wed Oct 21, 2009 8:12 pm
Contact:

Re: svg to/from embroidery converter

Postby ha1flosse » Sat Mar 26, 2016 9:24 pm

.. been optimizing the drawing and converted the exported data of the workflow above to a output-rendering with the software of the embroidery - device so this should be pretty close to the real output of the machine. clicking the pictures below links you to the pdf - output of the embroidery - software. still doesn't look ok (a lot of stitch line crossing where it shouldn't) but i hope to optimize the output with your kind help..

rendered thread - lines:

Image

vector - stitch - lines:

Image

knobba
Posts: 27
Joined: Tue Mar 02, 2010 4:35 am
Contact:

Re: svg to/from embroidery converter

Postby knobba » Tue Apr 26, 2016 6:49 am

I need to do something with my user-settings so that I can get alerted on replies to this thread :)

Good to hear that the tutorial was helpful, but I see that my tutorials could be optimized to be clearer. Jump-stiches is the stitches you will have to trim away after finishing the embroidery - the stitches you get when going from one path to the next - the stitches you actually don't want. I like to minimize the length of these stitches by working on the order and direction of the paths. Long jump-stitches might drag the fabric out of position or give strain to the neadle at least for my machine - so I try to minimize the distances between paths.
See this tutorial to see how I work on the directions.

ha1flosse - I was not able to see the images in your last post...


Return to “Inkscape & other”