Philippe Lhoste wrote:
> I will try and do myself some optimizations of code, trying some ideas...
First thing when looking at the original code:
some coordinate pairs are repeated several times. See the start of the
"as" path for example.
I guess that this is the result of rounding values without post-processing.
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
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.
--
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/