[Clipart] Image portability
Jon Phillips
jon at rejon.org
Wed Apr 20 08:44:57 PDT 2005
On Tue, 2005-04-19 at 21:45 +0200, Holger Will wrote:
> Christopher Schmidt wrote:
>
> >On Tue, Apr 19, 2005 at 09:09:51PM +0300, Nicu Buculei wrote:
> >
> >
> >>Linda Kim wrote:
> >>however, the file size is still a problem, i think 0.5MB is huge for an
> >>image like
> >>http://openclipart.org/clipart//food/desserts/ice_cream_cone_linda_kim_01.svg
> >>(i would expect something 10-20 times smaller)
> >>
> >>
> >
> >A completely reasonable expectation: after doing just a simple removal
> >of a lot of data that was encoded in CDATA elements, the image size is
> >reduced by a factor of 20, which results in the SVG available at
> >http://crschmidt.net/tmp/icecream.svg .
> >
> >(This URL is not permanent: it may dissapear at some point in the
> >future.)
> >
> >This image is only 21kb, as opposed to 450.
> >
> >Key to creating decent SVG from Adobe is to just check the content by
> >hand: it's really easy to pull out a lot of stuff most of the time, in
> >my experience.
> >
> >
>
> ive just written a simple xslt stylesheet to do the job, you can find it
> here:
> http://www.treebuilder.de/svg/ill2svg.xslt
>
> hope you find it usefull
> Holger
Great! Has anyone tested this? This is very useful to clean up svg. Does
our xslt stylesheet have to be specific to illustrator svg. Maybe you
can modify it so that it can do a general transform on bloated SVG
files.
I'm copying the Inkscape devel. list as this might be a useful tool to
de-bloat adobe svg. However, there is a script in Inkscape already
called ill2svg, so maybe you can rename this to illsvg2svg. Otherwise,
if you could modify this to be a general SVG cleanser, maybe could just
call it svgclean or something similar.
Great!
Jon
--
Jon Phillips
USA PH 510.499.0894
jon at rejon.org
http://www.rejon.org
Inkscape (http://inkscape.org)
Open Clip Art Library (www.openclipart.org)
CVS Book (http://cvsbook.ucsd.edu)
Scale Journal (http://scale.ucsd.edu)
More information about the clipart
mailing list