![]() ![]() Testing of this code can be done automatically with a single good logical test. Use viewPort instead of document width/height.Convert known properties to element attributes.Collapse all group based transformations.Convert absolute path segments to relative ones.Detect vertical/horizontal lines and replace.Convert RGB colours from #RRGGBB to #RGB if possible.Convert RGB colours from RGB(r,g,b) to #RRGGBB format.Remove gradients that are only referenced by one other gradient. ![]() Collapse duplicate gradient definitions.Remove id tags for elements not referenced.Remove empty tags, such as defs or metadata.Specify a limit to the precision of all positional elements.The save format would not be totally pre-set or blind but would instead be based on the options selected by the user in a single, simple dialogue much like the pdf export dialogue. Useful for scripting, templating with SVG, editing later in a text editor and keeping files small for Internet transfer. We're working on a proposal and design for a plugin that saves SVG data with various things stripped and adjusted. Please fix this wiki page if it doesn't fit the standard blueprint template.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |