Skip to content
← Back to Community
How to add images from google drive to repl.it html file
Profile icon
mralam4769

I have an image on google drive and i have shared it so anyone can find it and view it. Here is the link:

https://drive.google.com/open?id=1E4cBDl05x8ifLSAJlrUkHIqLUl1K9xw-

I have created a simple html file and put this image in it but it does not seem to work.

https://repl.it/@mralam4769/australiahtml

I have found an example use of adding images using html on repl.it but my version does not work when the image is on google drive any reason for this?

https://repl.it/@mralam4769/howtoaddimages

Voters
Profile icon
imam21
Profile icon
tiana23
Profile icon
SaraGhazy
Profile icon
mralam4769
Comments
hotnewtop
Profile icon
HarryFoongZheng

How do I sinc my google drive to reap because all of my code is on google drive

Profile icon
Vandesm14

You can either upload them manually or use imgur or imagebin.

Profile icon
SamuelWaller1

The image on your drive isn't an image file, it is the google drive page with the image on it. The This file cannot be displayed: tag is trying to take the entire page as an image. To fix this,
use this URL instead.:
https://lh3.googleusercontent.com/PrzJzndHghJ0UJXHSSHmn7ZEPSUtddC73DYX86wKBB1iyiQrnsald0ColTiDdl5mS0PS1_NTK45G9GwkMmNm=w1366-h665-rw

This just the image, not a page with the image in it. Hope this helps!

Profile icon
Giothecoder

Maybe just save the image to your device, then download it, then delete it from you device if you’re so inclined.