I have written a little javascript application to optimize paths. It
performs the following:
(a) parses the string of turtle commands in the 'd' attribute
(b) applies a transform, if given
(c) optimizes bezier curves into 'S' or 's' if possible
(d) optimizes Lineto into H or V if possible
(e) removes redundant LineTos before a path-close ('Z')
(f) optionally makes all commands relative (default is to leave as is)
(g) optionally makes all commands absolute
(h) strips unnecessary command letters
(i) outputs the optimized path
If this would be useful to anyone I will upload the ingredients to the
Files area - just a simple .html form for UI and a couple of .js files.
(I am also working on a PHP program that optimizes an entire SVG file.
This uses the same classes as the javascript program. Currently it does
not handle the line, polyline or polygon elements - although this
should not require too much more work!)
-----
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/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> 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/