Menu

#25 Too many </g> markers in SVG output

v1.0_(example)
closed
nobody
None
5
2019-04-17
2019-04-16
tkocou
No

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.

Related

Bugs: #25

Discussion

  • Peter Selinger

    Peter Selinger - 2019-04-16

    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:

    • 1 token of the form <g transform="..." fill="..." stroke="...">
    • 33 tokens of the form <g> without attributes
    • 34 tokens of the form </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
    • tkocou

      tkocou - 2019-04-17

      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:

      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:

      • 1 token of the form <g stroke="..." transform="..." fill="..."></g>
      • 33 tokens of the form <g> without attributes</g>
      • 34 tokens of the form

      This seems like correct SVG to me. -- Peter


      [bugs:#25] Too many markers in SVG output

      Status: open
      Group: v1.0_(example)
      Created: Tue Apr 16, 2019 11:13 AM UTC by tkocou
      Last Updated: Tue Apr 16, 2019 11:13 AM UTC
      Owner: nobody

      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.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/potrace/bugs/25/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #25

  • Peter Selinger

    Peter Selinger - 2019-04-17

    OK, 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).

     
  • Peter Selinger

    Peter Selinger - 2019-04-17
    • status: open --> closed
     

Log in to post a comment.