Too many </g> markers in SVG output
Transforms bitmaps into vector graphics
Brought to you by:
selinger
This problem may have already been resolved. Since I did not see any reports of this nature, I will describe it:
I used potrace version 1.14 to create a SVG image file from a ".ppm" image file. The resulting SVG file had 33 <g> tokens and 34 </g> tokens. It is minor issue as the SVG file can be fixed with a text editor.
The issue of an extra token matters because importing the SVG file into FreeCAD causes a crash.
Thanks for reporting this, but I am not able to reproduce this problem. Could you please post the command line arguments you used, and attach the resulting SVG file?
When I try to run a similar example, I get:
<g transform="..." fill="..." stroke="...">
<g>
without attributes</g>
This seems like correct SVG to me. -- Peter
Edit: the sourceforge editor inserted additional
</g>
tags in my message above. Correcting.Last edit: Peter Selinger 2019-04-16
Please close the ticket. I'm not sure what had happened. As of today,
like you, I was not able to replicate the problem either. I'm
scratching my head on this one. Prior to reporting the problem, I was
able to replicate the problem. May have been a software update which
could have changed a library or two.
On 4/16/19, Peter Selinger selinger@users.sourceforge.net wrote:
Related
Bugs:
#25OK, great. Thanks for confirming. I will close the ticket. Please feel free to open another one if you should encounter this issue again. (By the way, you need to use the --opaque and --group options to get multiple
<g>
tokens - this might help in replicating).