45

I've a drawing I made in SVG format and I'd like to include it in a Google document I'm writing. I tried uploading the SVG file but it only lets me view it, not edit it. Any Google searches for uploading SVG to Google Docs find lots of people asking for the feature but no hints on how to do it.

Is it impossible for now?

Is there any API for Google Drawings?

Any way to create a Google drawing other than dragging a mouse around on their web site?

I tried uploading an OpenOffice text document that included a drawing, but the drawing got removed.

  • 1
    I would like to state that I was not successful with any of the solutions posted below (December, 2016) – Bort Dec 14 '16 at 2:18
  • @Bort same here, see a new answer below, working as of August 2017 – Bryce Aug 7 '17 at 20:50
  • I found it mostly works, but google drawings will not draw bitmapped portions of an emf file. See my post here --> productforums.google.com/forum/#!topic/docs/Y8wfU4by6tY – mgraham Feb 8 at 14:10

10 Answers 10

17

The information to convert .svg into .wmf has been obsoleted. At some point during year 2016 Google chose not to accept .wmf-files anymore. The correct solution is to convert .svg into .emf, which does work at the time of writing. My recommendation is to use free-of-charge service CloudConvert for .emf conversion, there is no software to be owned or installed.

I created a newbie guide for .svg into .emf conversion.

  • 1
    Thanks for finding a workable solution. Did you successfully upload an EMF file to a Google Drawing without using CloudConvert? I can only get this to work if I ask CloudConvert to save it directly to GoogleDrive. Even downloading from CloudConvert then uploading to Google Drive didn't work for me. – Don Kirkby Jul 14 '17 at 20:47
  • 9
    As of today, I can no longer open EMF files in google drawings – Arion Feb 1 '18 at 0:07
  • 1
    Since what you're saying is alarming, I went and tested that myself. I downloaded a free clipart .svg, uploaded that to Google Drive, at Drive did a Open With ... CloudConvert, saved it back as .emf and finally at Drive did Open With ... Google Drawings. The .emf shows as expected. No deviation from previous discusssion. – HQJaTu Feb 1 '18 at 9:00
  • 2
    I saved a .emf file from Illustrator, but Google G Suite is unable to open it anywhere. If the image gets rasterized, as Herb Caudill writes, then G Suite is a lost cause, to be honest. – zmippie Feb 19 '18 at 16:19
  • 2
    @ijoseph Again, that is alarming to read.I did go through the familiar test-cycle of uploading an .svg and going to Cloudconvert to have it as .emf. And you're right! If you do upload it from a local drive to Google Drive, it will be flagged as "image" and it won't open in Google Drawings. If you let Cloudconvert have access to your Google Drive and save it directly there, it will be of "unknown type", but the file WILL open in Google Drawings as a vector drawing. – HQJaTu Feb 6 at 8:00
12

Well, convert that .svg into a .wmf file.

I used InkScape and UniConverter.

More info: Google Docs Official Blog Post: Import WMF files into Google drawings

7

As of August 2017, I was finally able to do this with a seven step procedure:

  • Upload the target SVG file to Google Drive, as a regular file.
  • Install "CloudConvert" into Google Drive, and give it permission to read all your documents (scary!)
  • Click on the SVG file, and right click to send to CloudConvert.
  • Convert to "EMF" format and (this is crucial) save back to Google Drive.
  • Open the EMF in Google Drawings and verify it looks good.
  • Under the Edit Menu, choose Copy.
  • Finally, in your Google Doc, choose Paste.
  • 1
    As of Nov 2017, I can't see any way to do step 6 - when I try to open the emf file in google drawings, it says no preview available. doesn't import anything.. Also, there is not "web clipboard" within the edit menu – Sujay Phadke Nov 22 '17 at 5:02
  • Seems the web clipboard isn't a thing any more, but regular copy-and-paste should work (only into a drawing or a presentation). To paste into Docs or Sheets you need to insert a Drawing and then paste into there, and the image will then be rasterized. – Herb Caudill Jan 18 '18 at 16:24
3

You can upload your SVG file to http://openclipart.org and then there is an automatic conversion to WMF / EMF on the clipart page.

2

I found that converting my drawing to a WMF allowed it to be converted into a Google Doc.

I had to export my ODF as a WMF. Then after uploading it to my Google Drive, I could right-click and open it as a Google Drawing.

There were some problems where my original drawing used a gradient fill and the conversion turned the gradient fill into a collection of individual lines in the converted drawing.

So the workflow for migrating a drawing from OpenOffice would be:

  • Isolate the vector drawing as a OpenOffice Draw document. (avoid complex fill patterns)
  • Export the drawing as a WMF
  • From Google Drive, upload the file If you don't have automatic conversion enabled,right-click and convert to Google Doc

I haven't yet worked out a clean workflow for converting OpenOffice docs with embedded drawings. I have a feeling that it's not that easy with Google Drive so far.

2

It is easy to copy vectors from Google Presentations to Drawings in Google Docs via the Web clipboard. Now to get them to Google Presentations you need a workaround.

Actually EMF is better and newer than WMF. It has gradients. PowerPoint (Windows version) is the best EMF converter I know of.

The workflow I use is this Here is the instruction video

  • Inkscape > EMF,
  • EMF > Powerpoint 2010
  • PowerPoint > DrawingML (Microsoft internal vector thingy),
  • Convert to GPresentations
  • Use the Google Docs Web Clipboard to copy the vector around.

Longer description here: https://productforums.google.com/forum/#!topic/docs/ZNFr2_GdDRg

1

Most of the answers above work. However, whenever you decide to download the document as a PDF, Google will automatically convert the vectors into low quality images. Hence, this solution may not be optimal for everyone.

What I did notice was the it wont convert it into images if you download the document as a word document, and THEN save it a PDF.

1

I've got close, but not quite there.

  1. Paste the vector into a spreadsheet in LibreOffice
  2. Upload the spreadsheet to Google Drive
  3. Copy the vector object
  4. In the other sheet, Insert Drawing
  5. Paste the object, but it pastes as a bitmap instead of a vector

Alternatively, follow steps 1 and 2, and then transfer the contents of your other sheet into the uploaded one and accept that you can't add any more vectors to it. You might have luck downloading the Google sheet as an ODS file, adding your vectors in LibreOffice, and uploading it back to Google again, as long as all your sheet content is compatible with LibreOffice.

1
  1. Add svg to a LibreOffice Impress document (OpenDocument Presentation) .odp and save as mysvgs.odp.
  2. Upload it to Google Drive.
  3. Open mysvgs.odp in Google Drive and copy-paste the svg image where is needed.

Details:

  • It works on Linux, OSX, Windows.
  • The Google Presentation document saved as pdf contains the svg at proper resolution.
  • It works like this in july 2018.
  • I used LibreOffice-5.4.4.2
  • Based on @philhibbs answer
  • screencast.com/t/GWumFEkQc is an SVG file on my desktop taken thru Impress to .odp to driver (preview was blank) then into Google Presentations, then zoomed in quite a bit. I think it is a bitmap of some sort :( – paul_h Dec 22 '18 at 6:26
  • If you right-click on the SVG inside LibreOffice Impress and choose Break, and then save the .odp, upload to Google Drive, and then open using Google Slides, the image should no longer be a bitmap and can be copied/pasted into a Google Drawings. You can test whether it's a bitmap by clicking on individual shapes and filling/stroking them with a color, or altering the stroke properties. – notedible May 2 at 17:56
0

You can now create drawings through the Google Slides API. If you want that in a Google Drawing, Doc, or Sheet, you can copy it there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.