Site icon Thetechhacker

How to Host Images on Google Drive?

How to Host Images on Google Drive

Hosting your images on Google Drive will let you enjoy the freedom of not paying for the image hosting services (at least until the 15GB usage limit.) So, Google Drive is a good place to store your important images, website images, or whichever image that you want to host for free. If you are running out of storage and want to expand the storage space, there are premium Google Drive packages available which you even can’t outrun. So, Google Drive is a perfect solution to host images.

Why Host Images on Google Drive?

The primary reason is that you can use Google Drive as a free image hosting website. You can host thousands of images on your Google Drive and still there will be enough space for other Google services that you use. I’ve been a user of the Google Drive for several years now, and I frequently upload all my important images to the Google cloud. Still, there is enough space for me to store all my important documents and utilize the drive for all other Google services.

Apart from that, the Google Drive is extremely simple to use, and the performance is extremely fast. When compared to other such cloud services, this Google service provides the best speed. The security is also uncompromised which will ensure that your photos or images will stay safe all the time. There are plenty more reasons to choose Google Drive to host images, but these are the most important ones.

I personally do not recommend hosting your images on Google Drive for a large website which uses a lot of images. The reason is not the speed, performance, or anything like that, but there is a slight chance for your direct image access URLs (which I am going to explain later in this article) may change (which is unlikely to happen.) However, for some rare reasons, if that happened, all your images will disappear all of a sudden, and you have to replace each one of them manually which might be a hectic task. So, always try to stick with your own web server or a CDN service to host your images.

Host Images on Google Drive

Now, let’s look at the steps for hosting your images on Google Drive. But, here we have different scenarios. If you may be looking for a place to host images for your HTML email attachment, or just to host the images of your websites. In any such situations, the steps are the same. All you have to do is uploading your images to the Drive and following some simple steps in order to access and use the hosted images. So, here is how to host images on Google Drive.

  1. Open Google Drive.
  2. Create a new folder and give it an appropriate name.
  3. Right-click on the folder and choose Share.
  4. In the new window that opens, click on Advanced.
  5. Now, change the Private under the ‘Who has access’ section to Public.
  6. Click Done.
  7. Upload all your required images to that folder.
  8. Now, Right-click on the image file that you want to use and choose Share.
  9. Click on Advanced and copy the URL under ‘Link to Share’ section. Paste it somewhere like Notepad to use later.
    By default, Google Drive will not provide the direct link to access the file. So, we have to generate one.
  10. Go to any Direct Link Generator like GDurlHugestreet, Boogle (or any other such website that you know.)
  11. Generate the direct link.
  12. Copy the generated link and paste it into Notepad or somewhere else.
  13. Now, use that generated URL as the image source on your website or anywhere else.

The images will be now hosted and served from the Google Drive.

Things to Remember while using Google Drive to Host Images

Google Drive is one of the best places to host images for your website or to use in any other places like social media networks. But there are several things that you want to be aware of. As it is important to know them, we listed them below. Have a look.

You should generate a direct access link to your Images

Once you request Google Drive to provide the URL to the image, what you will get is something like this,

https://drive.google.com/a/example/file/d/1e_b7fHoH8bfQ0hV0s7kw2KP2elRETvCUg2/view?usp=sharing
That’s not the right kind of URL that can be used in a website or a social media post in order to attach the image. So, you should generate a direct access link by following the steps mentioned in the previous section. Such services extract the real URL of the image file and generate a direct link to the images. That will be a valid URL and can be used in the blog posts, emails, or wherever you like your images to show up.

Do not shorten the URLs

Feels like the generated direct link is too long? And want to shorten the link using another link shortener? Never do that if you want the content to be live on the site forever. Such link shortening services may work well for a few months, and once there is a large scale update or something, that may create conflicts between the link shortener and the direct link generated by other websites. Because, there will be a two-way link generation, one for the direct link generator and another one for the link shortening service. But yes, there are some quality and paid link shortening services that can keep your links live all the time.

You may lose all the image links if you didn’t choose the link conversion service properly

Like I already mentioned in the above sections, there are chances to lose the links to all your images if you didn’t choose your direct link generation service properly. Some of those Google Drive link conversion services are not that trusted that they may go down at any time and they may update the URLs whenever you wish. The result will be a lot of broken images wherever you used the direct link. So, choose such services wisely.

Exit mobile version