Open faye1225 opened 2 years ago
I'm not quite sure what your trying to solve here. But, I think it's one of those many projects that needs something like #87 for better svg file reading and writing from within python.
While svgelements loads svgs and does so in a robust way it loads the data and gives the geometry approximating a rendered result. The lack of saving is largely because the data is loaded but the core structure of the svg is destroyed in the process. You can write something that will look the same geometrically speaking but it will lose node data and somethings that don't get processed can't just be correctly passed through as unknowns.
The original purpose was that a single svg could be programmatically automated to split the svg of n parts.
For example:
man.svg -> head.svg, upper-limbs.svg, lower-limbs.svg
So svgelements can't get Gradient. I will consider what you said meerk40t/svgelements#87 this method, thank you very much for your reply
Like the snippet above, only the SVGelement can be returned, not the full linearGradient I'm not sure how to write to the file using svgwrite for this element Any other solutions?