How to Embed Image from Google Drive to HTML IMG Tag

Example image link from Google Drive (no need to enable anyone with the link to view):

https://drive.google.com/file/d/1YmI4i04yhXIHBfDgrVjGQkZDbXWAihx5/view

Change the URL to:

https://drive.google.com/uc?id=1YmI4i04yhXIHBfDgrVjGQkZDbXWAihx5

UC means user's content, remove anything after id.

The above URL will be available to logged-in user. If to be published to blog, enable 'anyone with the link' can view.


You'll only receive email when they publish something new.

More from 19411
All posts