Menu

#471 Valid SVGfile not accepted by gm validate

v1.0_(example)
closed-fixed
5
2018-05-01
2017-09-24
Yuri Gor
No

I attached valid svg file (checked at https://validator.w3.org)
but gm says it's not:

gm compare -metric mae bomb.png bomb.svg
gm compare: Non-conforming drawing primitive definition (polyline).

I know it's weird to have one-point polyline, but it's valid.
attached svg-file generated by SVG.js, it needs this invisible element for inner purposes (size calculations)

2 Attachments

Discussion

  • Bob Friesenhahn

    Bob Friesenhahn - 2017-10-28
    • assigned_to: Bob Friesenhahn
     
  • Bob Friesenhahn

    Bob Friesenhahn - 2018-04-18
    • assigned_to: Bob Friesenhahn --> Gregory J Wolfe
     
  • Gregory J Wolfe

    Gregory J Wolfe - 2018-05-01
    • status: open --> closed-fixed
     
  • Gregory J Wolfe

    Gregory J Wolfe - 2018-05-01

    This ticket is fixed by change set 8faf772e308d, dated 1/5/18.

    The offending code was flagging single point polylines as an error. The SVG spec has no such restriction.

    The example SVG file contained a nested element that caused the output image dimensions to be modified if a GraphicsMagick geometry string was supplied. This problem was also fixed.

    Thanks for the example SVG file that demonstrates the problem.

     

Log in to post a comment.

MongoDB Logo MongoDB