Superfluous markup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
The heading is general, and cover various areas.
EG:
When editing a file with Circle elements, Inkscape adds *seemingly* superfluous Sodipodi attributes to it:
<circle id="circle3916"
r="19"
cy="90"
cx="45"
A circle element has only one radius, as far as I know. There is a separate Ellipse element.
So, why the extra attributes? And can they be safely removed to make a lighter file?
Other issues is bloated Style attributes (see bug#170184) and new in 0.46 Inkscape adding Perspective to everything, irrespective of whether the 3D tool is used. One default I could deal with, but it keeps adding more.
Example of the former:
style="
added to every damn element in a large drawing blows the filesize right out.
First, remove Default values where they don't need to override inherited styles;
Second, remove redundant styles, like Stroke styles when Stroke is none;
style="
Third, have an option like in Illustrator where you can define stylesheets in the header and reference them for often-used styles, eg if long styles are needed on every element
As a Web standard, size is an issue in SVGs.
Changed in inkscape: | |
importance: | Undecided → Wishlist |
Changed in inkscape: | |
status: | New → Confirmed |
Oh, and opacity:1 in the above example is also redundant. The above long style recurs 131 times in one of my drawings. Removing the redundant styles with a search-and-replace shaved 42kb off the file.
It also demonstrates the problem of rounding errors, a separate issue, where setting 0.3 becomes 0.30000001.