[swfmill] SVG import

Ralf Fuest ralf-fuest at gmx.de
Mon Feb 25 12:47:29 PST 2008


You can simply ignore this warning. The new SVG import code handles
these paths correctly.

Ralf

> Hi Dan, List,
> 
> When importing this SVG:
> 
> <svg width='512' height='512'>
>     <path d='M0,0 h512 v256 h-256 v256 h-256 z" fill="#ffffff"/>
> </svg>
> 
> I get this message:
> WARNING: shape not closed; closing (0.000000/10240.000000).
> DEBUG: accumulated rounding error (0.000000/0.000000).
> 
> 
> The meaning is fairly obvious, the problem is solved by modifying the
> path element:
> <path d='M0,0 h512 v256 h-256 v256 h-256 L0,0 z" fill="#ffffff"/>
> 
> 
> However I'm wondering: does this really warrant a warning? From the SVG spec:
> "The "closepath" (Z or z) ends the current subpath and causes an
> automatic straight line to be drawn from the current point to the
> initial point of the current subpath". That is, the original path is
> perfectly valid and the second path should, per spec, generate an
> extra zero-length line at the end.
> 
> Also, I like to minimise the length of my SVG files (and not get warnings) :).
> 
> Thanks,
> Dan C.




More information about the swfmill mailing list