fskpf/svg2roughjs

[Question] From SVG file

Closed this issue · 2 comments

Is there a way to pipe an svg file through svg2roughjs and obtain as an output a rough svg file?

ygra commented

This is its main purpose, yes. See the example project, for example, which does this. Do note, however, that this requires a browser and DOM environment to run, because it's otherwise a real pain to correctly handle SVG element attributes and CSS properly. So this isn't easily packageable as a normal executable right now.

This is its main purpose, yes. See the example project, for example, which does this. Do note, however, that this requires a browser and DOM environment to run, because it's otherwise a real pain to correctly handle SVG element attributes and CSS properly. So this isn't easily packageable as a normal executable right now.

ah, yes, that's where my question was heading towards. If this could be a normal executable. However as you say it does need a DOM environment. That's fine, i just needed some sort of confirmation about this. Thanks for the help. Closing.