SVG processing (removing optimizations)

Want to discuss something with the Inkscape community that doesn't relate to Inkscape? Discuss it here.
Posts: 1
Joined: Thu Sep 06, 2012 1:07 am

SVG processing (removing optimizations)

Postby 8day » Wed Feb 20, 2013 4:40 am

Some time ago I've made relatively simple SVG converter that handled very small subset of this format (paths, color & opacity). What this piece of software was doing is "compressing" of misc optimizations: G-elems got fused into PATH etc. The problem is that it probably won't work if I were to make it more conformant: there's too much cross-references that may depend on those fused elements (USE may point to G, which will be compressed; values of some atts may point to other elements atts). So, maybe someone can share a high-level view on how this have been done in Inkscape? At first I thought that simple parsing-and-converting would be enough, but it seems that I'll have to make a full in-memory copy of the document...

Return to “Off topic”

Who is online

Users browsing this forum: No registered users and 4 guests