Mar 19, 2020

Embed public google drive image into a html so it is viewable to the public (static image url)

I'm using a third party app (Notion.so), and want to embed images I have in public folders on googled drive, into their system. 

How do I get the URL of a static image that is reliable for my images stored on drive?

Thanks
Locked
Informational notification.
This question is locked and replying has been disabled.
Community content may not be verified or up-to-date. Learn more.
Last edited Mar 19, 2020
All Replies
Google user
Mar 19, 2020
@Senthil Seveelavanan

Google Drive has offered the official feature to create an embedding link.

1) Open the preview page of public image,
2) Click the 3 dots icon on the top-right then "Open in new window",
3) Click the 3 dots icon again in new window, then "Embed item".

However, I think it is not so good for the reason below.

1) An overlay icon will be shown, which will take you to the Google Drive preview page.
You can remake the embedding link into a direct link without an overlay icon, but the loading will be too slow.

for embed > https://drive.google.com/file/d/file's ID/preview
for direct link > https://drive.google.com/uc?export=view&id=file's ID
for share > https://drive.google.com/file/d/file's ID/view?usp=sharing

2) When the user who logged in to Google click the overlay icon to open the preview page, the image owner's account name (not the email address) will be known in the Shared with me section.

3) The knowledgeable person can create a normal shared link from the embedding link as above.

I would copy from Google Drive to Google Photos in unlimited storage mode and create a direct link to Google Photos, or use another cloud service if I were you. Google Photos needs to use a trick to create it, but there are advantages over Google Drive.

1) Can use unlimited storage instead the image quality will be down (Original quality will not be required for embedding in HTML)
2) The image owner's account name and the email address will never be known.
false
2486724150961239073
true
Search Help Center
true
true
true
true
true
99950
false
false
Search
Clear search
Close search
Main menu