Closed eighteight closed 2 years ago
Hi there,
the system uses libtinysvg (the same as in ofxSvg) and it's very fussy! I've added additional parsing to catch some common insufficiencies in the library but it's still a bit temperamental.
Try exporting from AI in SVGTiny format - it should be one of the options (although I no longer have AI so can't test). Otherwise use Inkscape which seems to work better.
If you want more detail, It seems that the issue in your SVG is the style definition (it seems to work when the style definition is inline - see attached example) so you can always manually edit them if you continue to have issues. Hope this helps!
Seb
@sebleedelisle svgtiny 1.1 option in AI works!
Thanks a lot for your help! laser-test1.svg.zip
Glad I could help!
In the attachment I put an example of an SVG file, created in Adobe Illustrator, using "File" -> "Export As"–>"SVG" options:
This file does not throw any errors while read in ofxLaser SVG example, but does not render either.
What is the recommended workflow for creating SVG files for usage in ofxLaser?
Thanks laser-test.svg.zip