In this post, we'll learn how to host images on Google Drive. From there you can create public links to your images, which can be shared with anyone or embedded on your website.
Google Drive is a great hosting service because it is widely available and free. We're going to use Google Drive to create a public image URL to this image:
The cat image we will host on Google Drive
Hosting images on Google Drive
To begin, make sure you have a Google account. From here, access your Google Drive.
From here, hit the New button and upload an image to Google Drive.
The New button in Google Drive
After you upload the image, locate the file, click on it, then hit Get Link.
The Get Link button in Google Drive
From here, set the file to public by setting the visibility to Anyone with the link. Copy the link and hit Done.
Create a public link to your image on Google Drive
With the link above, you'll need to get the image's unique ID. You can get the image's ID by copying everything after https://drive.google.com/file/d/ and before /view?usp=sharing.