svg2ldraw is a library for converting SVG files to LDraw. This can be used for pattern, such as stickers and prints, where vector-based drawings are preferred. Try it out by downloading the source from here, or directly at c-mt.dk/software/svg2ldraw
test.htm provides an overview of basic functionality for developers.
index.htm contains the full app with the following steps and functionalities:
-
Upload CSV file either by URL, file, or by pasting the content into the text area.
-
Select size and precision.
-
Adjust colors after the automatic selection has done its best.
-
Download the LDraw file.
svg2ldraw.js is in the Public Domain.
The LDraw library and ldconfig.ldr (on which js/color.js is based) is redistributable under CCAL version 2.0 : see CAreadme.txt.