drawio-desktop icon indicating copy to clipboard operation
drawio-desktop copied to clipboard

SVG not rendering

Open JesseAldridge opened this issue 3 years ago • 4 comments

Preflight Checklist

  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.

Describe the bug

If I drag and drop this svg: https://upload.wikimedia.org/wikipedia/commons/3/33/Map_Macedonia_336_BC-en.svg into a diagram I get a blank box.

To Reproduce see above

Expected behavior should see the svg

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version 16.1.2

Desktop (please complete the following information):

  • OS: MacOS 10.15.6

JesseAldridge avatar Jan 29 '22 11:01 JesseAldridge

Does it work on app.diagrams.net?

davidjgraph avatar Jan 29 '22 14:01 davidjgraph

Nope, same result: Screen Shot 2022-01-29 at 7 22 00 AM

JesseAldridge avatar Jan 29 '22 15:01 JesseAldridge

SVG drag&drop fails also in 16.5.1 (Win 10) but File > Import is working.

Is File > Import > svg working at your place?

mararad avatar Jan 31 '22 10:01 mararad

Yes that works, but looks like it imports as a low-res bitmap. The text is pretty badly pixelated and hard to read.

Screen Shot 2022-01-31 at 7 13 27 AM

JesseAldridge avatar Jan 31 '22 15:01 JesseAldridge

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.

stale[bot] avatar Jan 31 '23 20:01 stale[bot]

The SVG example fails any validation tester I put it through. If I run it through an SVG cleaner like https://svg.enshrined.co.uk/ it then works. Conclusion - not a valid SVG image.

davidjgraph avatar Jan 31 '23 20:01 davidjgraph