[Kde-games-devel] A simple svg optimizer

Aaron J. Seigo aseigo at kde.org
Wed Dec 19 21:34:56 CET 2007


On Wednesday 19 December 2007, Luciano Montanaro wrote:
> Il Wednesday 19 December 2007 20:45:44 Aaron J. Seigo ha scritto:
> Do you think it could be useful to strip the icons too? As I said, for
> compressed icons my program shaves off a 5% of the size.

we discussed this on the artists list probably some 6 months ago, actually =) 
it was decided to this for release tarballs, but not for the icons in svn.

> > something that you could also do that can reduce things significantly is
> > to get reduce the precision of the floating point values. it probably
> > isn't necessary to have all 16 decimal places that inkscape tends to put
> > in there ;) 3 or 4 is probably plenty of sub-pixel perfection. this
> > shaves another 7% or so off the size of the files ime, even more with
> > files with tons of items.
>
> Well, there are only 6 decimals or so, but you are right. Actually I was
> thinking about that too. And maybe colors can be simplified too. At least,
> "#000000;" could be converted to "#000;"

yep. lots of room for optimizing away data that's really only helpful during 
editting.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-games-devel/attachments/20071219/da383e0c/attachment-0001.pgp 


More information about the kde-games-devel mailing list