How to generate publically accessible URL of an image file by using Google Drive
16 Aug 2016Walk through followings:
-
Login to your google account (create if you do not have one)
-
Go to your “Drive” page (click “google apps” – cubic-like image on top right of page)
-
Click “New” button on left > click “File upload”
-
Browse to your image that you want to generate URL for and click “Open”
-
Once your image has been uploaded, right-click your image on google Drive
-
Click “Get shareable link”
-
Set “Link Sharing On” in a pop-up dialog
-
Click “Sharing settings” menu at bottom of the dialog and set your link sharing option to “On - Public on the web”. Click “save”.
-
Copy the link. It should be like: https://drive.google.com/file/d/0B1IIWsd1LLy8SGpXNWh3bHRoZzQ/view?usp=sharing
Now, we are going to do a MAGIC.
-
Replace https://drive.google.com/file/d/ with https://drive.google.com/uc?id=
-
Remove /view?usp=sharing
-
Finally, it should be like: https://drive.google.com/uc?id=0B1IIWsd1LLy8SGpXNWh3bHRoZzQ
-
All done.