question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generated SVG is shown as a blank image when imported into Google Slides/Figma/Inkscape/GitHub

See original GitHub issue

Generated svg will appear as a blank image when imported to google slides/drawings or lucidcharts. Actually, when it’s imported into google drive, the preview is already a blank image.

Browser:
Code Snippet (If Applicable)

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

10reactions
tracyhenrycommented, Sep 9, 2018

First… it’s possible to import svgs to google slides: https://www.sosnoob.com/how-to-import-svg-files-into-google-slides/

Second… the generated svg not only broke on google drive/slides, it also broke on lucidchart.com, which is a popular drawing website.

I know the generated svg displays correctly on browsers, but there must be some formatting issues that prevent it from displaying correctly on those platforms.

My use case is to paste some code snippet into academic papers (which will work best with svgs), which I think it’s fairly important. Please consider reopening this issue. It’s definitely within the scope of Carbon.

7reactions
jfkwcommented, Sep 12, 2018

Thanks for releasing Carbon. The generated SVG renders in Google Chrome 70, but is a blank white rectangle in Inkscape 0.92.3 or Emacs SVG mode with preview rendered by ImageMagick.

There is one warning reported by Inkscape which might point to the common source of the rendering error in the viewers reported in this issue:

$ inkscape ~/Downloads/carbon.svg 
WARNING: unknown type: svg:foreignObject
Read more comments on GitHub >

github_iconTop Results From Across the Web

Any ideas why patterned SVG file is showing up blank in the ...
If it's part of a website, I'd just export it as a PNG, as a vector image as big as this would bog...
Read more >
Imported SVGs show up blank? - Google Groups
I was attempting to use IcoMoon to create a font using vectors from ... all of the icons I wanted to use showed...
Read more >
Troubleshooting SVG image errors in Mapbox Studio | Help
Blank images​​ Custom images imported with Mapbox Studio can appear blank if the original SVG files contain no vector content, or no content...
Read more >
SVG in Google Web Designer
SVG is an XML-based image format used for vector graphics. SVG images can be especially useful in responsive layouts because they can be...
Read more >
flutter_svg | Flutter Package - Pub.dev
An SVG rendering and widget library for Flutter, which allows painting and displaying Scalable Vector Graphics 1.1 files.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found