[Kde-games-devel] A simple svg optimizer
Luciano Montanaro
mikelima at gmail.com
Sun Dec 23 01:16:38 CET 2007
Il Sunday 23 December 2007 00:03:12 Riccardo Iaconelli ha scritto:
> On Wednesday 19 December 2007 22:25:28 Eugene Trounev wrote:
> > You do of course realize that at some point all of that data will be
> > streamed via KNS... And then each Byte will count (read slow
> > connections).
>
> Well, a 7% save on an SVG file (that is *huge* when it's >1MB) at the cost
> of destroying all the metadata on the layers, and some subpixel perfection
> (which is one of the Oxygen gems) is something which is not going to get my
> support. I like the work Luciano is doing, but please do not extremize. =)
>
Well, my idea was to use the optimizer as part of the installation process, so
the "source" SVG files would still contain the complete editable version.
Or the optimizer could be used just before preparing the package to keep size
down.
> As per subpixel perfection, think of the 16x16 device icon with the small
> globe on it. It *needs* all the decimals to keep all its beauty when
> modifying it with inkscape. ;-)
Se above. But at the moment I'm not touching the coordinate precision...
>
> Ah, btw, I would try not to do a too agressive compression to keep the
> loading times low, that's more important probably.
>
Does it really make a difference? Higher compression affects compression time,
normally decompression time does not increase much.
> > As for the files - they are still SVG files, which you can open and edit
> > in Inkscape. As for the layers - those are not important. As a matter of
> > fact, the most Plasma artist use Adobe Illustrator, which makes the files
> > dirty and ugly (internally) and totally unreadable in Inkscape (read no
> > layers, lost variables/gradients/settings/styles all over the place).
>
> Hu?!? WhatWhatWhat?!?
> What's that? Only davigno (which does not do anything for plasma, except a
> mock he did for krunner) uses in the early part of his drawing Illustrator,
> where he creates a basic file with shapes which then convert in plain SVG
> with inkscape, continuing working in there! And he is the lonely only
> one. ;-)
> Pinheiro is an inkscape purist, just like me and you. :D
>
> > So I don't
> > see any harm in optimizing the data.
>
> So do I, if they do not destroy important data (see what Mauricio said).
>
Mauricio main objection was that a contributor would have access to a worse
copy of the data files as a starting point. Which is a valid concern.
However, I think a better way to attract/help contributors is to point them to
a wiki page (or something similar) with instructions and a few templates --
or the "source" files for the shipped themes. At the moment I think it's
quite difficult for the casual user to find out where the data files are
stored, and the conventions that need to be respected -- the source files are
at least organized per application.
The problem is -- that's more work. But we'll really have that problem when
hotnewstuff gets implemented in the games.
At least, I hope we get some problem at that point, because otherwise that
would mean that our wicked plan to lure new artists through kdegames has
failed. :)
Luciano
> Bye,
> -Riccardo
More information about the kde-games-devel
mailing list