How To Embed An Image From Google Drive


You can store photos and other images on Google Drive, but Google doesn’t offer an easy option for embedding that image on another web page (as it does for videos or PDF files). Google Operating System outlines a URL hack which allows you to include pictures stored on Google Drive in other pages.

If you edit an uploaded picture, you’ll see a URL in the form

https://docs.google.com/document/d/FILEID/edit

where FILEID is a very long sequence of characters. Edit this so it reads

http://drive.google.com/uc?export=view&id=FILEID

Note that this will only work if you set the access permissions on the uploaded image to be public; a private file (which is the default) won’t work. It’s unlikely you’d permanently store images on Google Drive for use on a web site, but it could be useful in some circumstances.

Permalinks for Google Drive Images [Google Operating System]


The Cheapest NBN 50 Plans

Here are the cheapest plans available for Australia’s most popular NBN speed tier.

At Lifehacker, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.

Comments


7 responses to “How To Embed An Image From Google Drive”

Leave a Reply