[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Echo Icons] help needed in cleaning SVG icons.

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).



Attachment: signature.asc
Description: This is a digitally signed message part

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]