Re: [Inkscape-user] Web design using Inkscape.
On Wed, 2013-04-17 at 07:47 -0700, archil@...3010... wrote:
But, aside some possible Internet Explorer compatibility problems,
*why*
do you think is a good idea?
Regarding the file size optimization, I see your SVG is 19 KB while
the
PNG us 433 KB, using SVG would make for a way smaller total page
size.
Gvirabi's background is a big bulk image and definitely not a good example. Perhaps, this might be a good example for size reduction. It's an icon set and there are too many small objects: http://gvirila.com/launch/images/sprite.svg
On the web you should be serving compressed SVG files. The compressed sprite.svg is 18288 bytes, smaller than sprite.png which is 18833 bytes. If you clean up the SVG (remove the 36 unused definitions and save with the option available in 0.49 to remove unused/redundant/incorrect attributes) it compresses to 14492 bytes. SVG (and XML in general) compresses really well.
Tav
Tav, thats interesting. Anything special to know about how to do the compression?
I have a similar problem, a very large SVG with a zillion gradiants and other unused cruft and the vacuum command doesn't clean them up.
On 04/17/2013 10:07 AM, Tavmjong Bah wrote:
On the web you should be serving compressed SVG files. The compressed sprite.svg is 18288 bytes, smaller than sprite.png which is 18833 bytes. If you clean up the SVG (remove the 36 unused definitions and save with the option available in 0.49 to remove unused/redundant/incorrect attributes) it compresses to 14492 bytes. SVG (and XML in general) compresses really well.
Tav
-- John Fisher Znyx Networks
On Wed, Apr 17, 2013 at 6:07 PM, Tavmjong Bah <tavmjong@...206...> wrote:
On the web you should be serving compressed SVG files. The compressed sprite.svg is 18288 bytes, smaller than sprite.png which is 18833 bytes. If you clean up the SVG (remove the 36 unused definitions and save with the option available in 0.49 to remove unused/redundant/incorrect attributes) it compresses to 14492 bytes. SVG (and XML in general) compresses really well.
Tav
Unless storage space is an issue, or you have a very slow server, I would suggest having uncompressed SVG files, but enabling GZip compression on the web server software itself (Apache, IIS, etc). That gives you the size advantage of SVGZ but will also reduce the size of other files that you serve.
(I'm a hypocrite in this regard, as I serve SVGZ files, but that's because we've got over 200 comics available for download and the extra storage space costs money).
Mark
-- Co-creator of *The Greys* and *Monsters, Inked* webcomics, created with Inkscape
Website http://www.peppertop.com/ Facebook http://facebook.com/TheGreysComic Twitter https://twitter.com/TheGreysComic
participants (4)
-
unknown@example.com
-
John Fisher
-
Mark Crutch
-
Tavmjong Bah