I wrote:
>> I will try and do myself some optimizations of code, trying some ideas...
>
> So I made a Lua script to remove these duplicates.
>
> Wow, the result is better than I expected:
> Original file: 2,383,982 / 438,272 bytes (svg/svgz)
> Optimized file: 1,690,543 / 303,643 bytes
Actually, 1,664,257 / 300,272 as I forgot some cases, and added
closepath commands each time a new moveto comes.
Of course, I also trimed out the spaces before the paths elements and at
the end of them.
> All that just by removing duplicate data, ie. without changing the
> drawing at all!
>
> Next try: see if using relative moves ('l') gives a smaller file than
> the pure 'M' syntax.
It is getting there: using l, h and v, I get:
576,390 / 121,880
I see I can optimize even more because I get a lot of
h1h1h1h1h1h1h2h1h1h3h1h1h1 if you see what I mean...
So, Jan-Klaas, you may have your file below 100KB without even using
another map...
Do you want I send you the optimized final map?
--
Philippe Lhoste
-- (near) Paris -- France
-- Professional programmer and amateur artist
-- http://Phi.Lho.free.fr
-- For servers mangling my From and Reply-To fields,
-- please send private answers to PhiLho(a)GMX.net
-- -- -- -- -- -- -- -- -- -- -- -- -- --
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~->
-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
----
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/