[Kde-games-devel] Revised pixmap to svg script

Luciano Montanaro mikelima at cirulla.net
Sun Apr 19 11:33:25 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On mercoledì 15 aprile 2009, Parker Coates wrote:

> This has, however, brought a new issue to light. If the user is
> upgrading from a previous version, they will still have the original
> PNG based decks installed, resulting in duplicates in the card dialog.
> If we convert all the decks and then drop support for the old style
> decks, then at least they'll be hidden from the dialog, but they'll
> still be using up a few MB of disk space.
>
> Is this something we're comfortable with? Is there any easy way to
> clean up the files from an existing installation on upgrade?
>

Well, it's a waste, but these decks are quite small...
the default deck is 39244 bytes once converted to svg (which increases its 
size, since the bitmaps are converted to base64).
The konqui deck is 302819, though, which should be on the "bigger" scale for 
this kind of decks.

If you bother for the waste of space, there could be a workaround: instead of 
producing a single file containing the pixmap, the svg file could reference 
the old pixmaps. Actually, we could simply put it in the same directory, so 
we would avoid the duplication/space waste. Current KDE games would use the 
pixmap version, future ones the svg wrapper...

> Of course, after spending all this time in the carddecks directory,
> I'm constantly questioning whether why we've even bothered holding on
> to these old decks. We already ship a large selection of beautiful,
> scalable decks. Why bother holding onto this cruft?
>

I tend to agree with you, but there are people hanging on those decks.
And on the other side, we miss an SVG deck with german cards for LtSkat.
I'd like to address that last part if nobody else beats me. But It will take 
time...
Maybe we could address that with a higher quality hybrid approach for KDE 4.3, 
anyway (that is, using higher quality pixmaps embedded in an SVG wrapper).

Luciano



- -- 
Luciano Montanaro //
                \X/ mikelima at cirulla.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAknq7+UACgkQaeOY6B53J4XCQACeNCr+FXDi5a4vtlNy+ooodEjl
9IEAn1Hw9rXciIvVRlhAHd7HlLtyF+bQ
=fqz7
-----END PGP SIGNATURE-----


More information about the kde-games-devel mailing list