inkscape save image svg does not store curve -
i have svg file xml code
the code
convert curve.svg curve.png
works fine.
but using inkscape:
inkscape -e curve.png curve.svg
background rrggbbaa: ffffff00
area 0:0:1000:600 exported 1000 x 600 pixels (90 dpi)
bitmap saved as: curve.png
gives me image no curve:
inkscape not appear commas in d
attribute value of <path>
. don't know if bug, known limitation, or because of svg spec; don't know svgs--sorry. :-)
however, if remove commas value of d
, seems work fine.
one possible way on linux simple awk command (not robust, works particular file--just tried in troubleshooting):
awk '/<path /{gsub(", l", " l")}{print}' with-commas.svg > working.svg
if find need massage xml in "production-grade" application, please use actual xml parser , remove commas appropriately, rather relying on silly awk script. :-)
Comments
Post a Comment