For some reason Google hasn't built in a way for you to download images in Google docs! There are workarounds to get those image files like using Google Keep, or downloading your whole doc as a .zip file, but these have always felt like too many steps.
And this is something that people really want!
Ben TossellSeriously how do you download an image from a google doc08:22 AM - 01 Nov 2019
Tamar Weinbergit would be really nice if one could download an image from a google doc instead of having to save it locally and then extract.17:22 PM - 17 Mar 2016
𝔻𝕦𝕤𝕥𝕚𝕟 𝕂𝕚𝕣𝕜𝕝𝕒𝕟𝕕@dustinkirklandHey @googledocs, what's thinking behind making it so hard to download an image, out of a Google Doc? I mean, sure I can work around the obtuseness. But why isn't "download image" one of the options in the right-click menu?13:17 PM - 12 Feb 2020
Sam Jarman 👨🏼💻Things that are not easy #4721 - downloading images from Google Docs.
The only way: File > Download As...> html, zipped> Unzip, get image.01:00 AM - 29 Apr 2018
As Steve Krouse points out here, it is possible to get the real URL of the image in your doc (but confusingly, as soon as you click on the image to select it the URL becomes obfuscated!).
Steve Krouse@stevekrouse@bentossell Right-click, inspect element, and grab the url from the href
This only works if you are not selecting the image in the Google doc20:01 PM - 01 Nov 2019
I also noticed the URLs in the source, and decided to make an easy way to access it. The one trick ended up being, because clicking on the image made it disappear, finding a way to tell the code which image you wanted!
I needed a way to run my code on any Google Doc, there's probably a way to make Google Doc or Chrome extension to do this, but since I was asking people to run code in their potentially private docs I wanted to make the code as short and open source as possible.
To get started you'll have to "install" the bookmarklet. This is easy to do, and just means dragging a button into your bookmarks toolbar. I've hosted it on Glitch here. You can even drag it straight from one of the buttons on the embed below:
The instructions are simple!
Drag one of the bookmarklets below (see the embed above) to your bookmarks toolbar. The text displayed is what will be show on the toolbar:
Then, when you're on a Google Doc, click the bookmarklet, then hover over an image embeded in the doc. Depending on your browser settings it will either download immediately, or open the actual image in a new tab.
No guarantees that this will work long term, a quick look at the source code for any Google Doc will show that they're very complex! I wouldn't be surprised if Google changes the way these URLs work in the future, but this tool has worked for 6 months so maybe not!
Long term I hope that they build in a way for people to download their images, but for now I hope this is helpful!