inkscape save image svg does not store curve -


i have svg file xml code

enter image description here

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:

enter image description here

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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -