How to import an existing svg with svgwrite - Python

I need to import an existing svg image and add elements like circle and square to it. My file is "test.svg", so I tried it dwg = svgwrite.Drawing('test.svg'), but it created a new svg file without any changes. I am using python lib svgwrite, do you have any ideas for me?
Thank you and sorry for my English ... I am doing my best!

+4
source share
1 answer

svgwrite will only create svg files. svgwrite does not read svg files. If you want to read, modify, and then write svg, the svgwrite package is not a package to use, but I do not know the suitable package for you.

, svg, . svg, svg . , .

+1

Source: https://habr.com/ru/post/1661884/


All Articles