Skip to content

Instantly share code, notes, and snippets.

@gluk64
Forked from evansims/example.html
Created November 13, 2019 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gluk64/5762b8d09b596167d02a578221b0e8df to your computer and use it in GitHub Desktop.
Save gluk64/5762b8d09b596167d02a578221b0e8df to your computer and use it in GitHub Desktop.
Embedding or sharing a image or photo uploaded to Google Drive.
<a href="https://drive.google.com/uc?export=view&id=XXX"><img src="https://drive.google.com/uc?export=view&id=XXX" style="width: 500px; max-width: 100%; height: auto" title="Click for the larger version." /></a>

You'll need to grab the ID of the image. Easiest way on the desktop is to right click the file, dive into the Google Drive subcontext menu and choose View on the Web. Grab the string of characters from there and replace the XXX in the code below with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment