DEV Community

limalex71
limalex71

Posted on

"Unleash the Power of Your Google Drive Images: How to Correctly Display Images on Your Website"

If you want to display an image hosted on Google Drive, you need to ensure that the link to the image is in the correct format. The typical form for a link to an image on Google Drive is https://drive.google.com/file/d/[image_id]/view?usp=sharing, but this link will not work when added to an img tag. To fix this, you need to change the link to the following format: https://drive.google.com/uc?export=view&id=[image_id]. This new link can be added to an img tag, and the image will be displayed correctly.

Click this link for easy conversion

Top comments (0)