This is great! I was thinking about compressing all the files into SVGZ before, but this is even better! Can we have it added right into the installation process? Would be cool! Is it possible to get it in before 4.0?<br><br>
<div class="gmail_quote">On Dec 19, 2007 3:00 PM, Luciano Montanaro <<a href="mailto:mikelima@gmail.com">mikelima@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Il Wednesday 19 December 2007 20:45:44 Aaron J. Seigo ha scritto:<br><div class="Ih2E3d">> On Wednesday 19 December 2007, Luciano Montanaro wrote:<br>> > I've been thinking for a while that we should do domething to reduce
<br>> > size/loading time for our SVG graphics, if possible, and yesterday<br>> > evening I put together a small program to strip svg file of<br>> > tags/attributes that are not affecting the final look.
<br>><br>> note that tackat has done pretty much the same thing for marble, though he<br>> just used a perl script iirc. it's in there with the marble source<br>> somewhere.<br><br></div>Oh, I didn't know about that. I actually was thinking of doing that in Perl,
<br>but then I was not sure I could depend on the XML modules. Since Qt is<br>already a dependency, this should not have issues...<br><br>And then, i wanted to try out the Qt QDOM stuff.<br><br>Anyway, I'll check the marble sources too. Thank you for the info.
<br><br>Do you think it could be useful to strip the icons too? As I said, for<br>compressed icons my program shaves off a 5% of the size.<br><div class="Ih2E3d"><br>><br>> something that you could also do that can reduce things significantly is to
<br>> get reduce the precision of the floating point values. it probably isn't<br>> necessary to have all 16 decimal places that inkscape tends to put in<br>> there ;) 3 or 4 is probably plenty of sub-pixel perfection. this shaves
<br>> another 7% or so off the size of the files ime, even more with files with<br>> tons of items.<br><br></div>Well, there are only 6 decimals or so, but you are right. Actually I was<br>thinking about that too. And maybe colors can be simplified too. At least,
<br>"#000000;" could be converted to "#000;"<br><div><div></div><div class="Wj3C7c"><br>_______________________________________________<br>kde-games-devel mailing list<br><a href="mailto:kde-games-devel@kde.org">
kde-games-devel@kde.org</a><br><a href="https://mail.kde.org/mailman/listinfo/kde-games-devel" target="_blank">https://mail.kde.org/mailman/listinfo/kde-games-devel</a><br></div></div></blockquote></div><br>