[Echo Icons] help needed in cleaning SVG icons.

Martin Sourada martin.sourada at seznam.cz
Thu Aug 23 21:35:19 UTC 2007


On Thu, 2007-08-23 at 23:13 +0200, Nicolas Mailhot wrote:
> Le jeudi 23 août 2007 à 23:00 +0200, Martin Sourada a écrit :
> > Can your script be run easily on all icons (I mean
> > something like ./svg_cleanup /path/to/Echo/scalable/*/*.svg)?
> 
> My original message has a loop example :
> 
> mkdir /tmp/svgtest
> for svg in $(find /usr/share/icons/Echo/scalable -name "*.svg" -type f) ; do xsltproc -o /tmp/svgtest/$svg svg-cleanup.xsl $svg ; done
> 
> This will generate a copy of the /usr/share/icons/Echo/scalable tree
> in /tmp/svgtest with every icon scrubbed. As xslt is very much a single
> file transformation language you need a wrapper (shell in this case) to
> automate multiple file processing
> 
That's exactly what I was talking about. If you add the other things I
talked about (vacuum defs and removal of display:none layers) it could
be run regularly to keep the sizes as small as possible :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-art-list/attachments/20070823/bf49eca6/attachment.sig>


More information about the Fedora-art-list mailing list