On Wed, 2007-08-15 at 19:55 +0200, Ignacio Vazquez-Abrams wrote: > On Wed, 2007-08-15 at 19:42 +0200, Martin Sourada wrote: > > a) make them smaller in means of space on disk - vacuum defs in inkscape > > does very good job at this (I already run it on some icons), it would be > > great if we could do more automatically, opening each icon in inkscape > > is just slow... > > This could probably be done in XSLT (or a more capable scripting > language if needed). > This is indeed a good idea. Maybe some change to the svg-cleanup.xsl script [1] would do the job, alas I am not experienced in XSLT programming so if there is anyone who can do it, it would be greatly appreciated. I've run inkscape's vacuum-defs on all icons and noticed two things 1. inkscape adds its own garbage to the icons, so the result might be slightly bigger than the original if no unused definitions were present 2. for some icons it can trim a lot of code, as sometimes there are as much as 300 unused definitions. So I think that some combination of svg-cleanup script and vacuum-defs could generate quite good result, if the vacuum-defs is run first. The vacuum-defs can be run even without opening inkscape: inkscape --vacuum-defs */*.svg (to go through all subfolders). Martin References: [1] https://www.redhat.com/archives/fedora-art-list/2007-April/msg00105.html
Attachment:
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Fedora-art-list mailing list Fedora-art-list@xxxxxxxxxx http://www.redhat.com/mailman/listinfo/fedora-art-list