Wednesday, 27 April 2016

Accessing Google Drive images directly

When sharing an image from Google Drive, you'd be give a link like this.

https://drive.google.com/open?id=0Bx-DkxiKdNS_SnFyVXFLREZpbmc

However, this opens the image within Google Drive's image viewer.

Work around would be to use the following, replacing FileID with the ID above.

http://drive.google.com/uc?export=view&id=<FileID>

Hence, we will have to the following link which will take us directly to the image.

http://drive.google.com/uc?export=view&id=0Bx-DkxiKdNS_SnFyVXFLREZpbmc

This is especially helpful if you're trying to create a Gmail Signature.