Next.js Discord

Discord Forum

Issue with loading images from google drive

Answered
Virginia's Warbler posted this in #help-forum
Open in Discord
Virginia's WarblerOP
I am trying to get images from google drive, I am not sure what am I missing in my next.config file or config
My image is public on google drive.
I tried getting the image two different ways to src
Answered by Ray
try this url on the <Image />
https://drive.google.com/uc?export=view&id=1kpKc3gk_D7vYDH6l3Qw7tUFD1eeEYe-L
View full answer

10 Replies

@Ray what do you see if you click the url?
Virginia's WarblerOP
the image
@Virginia's Warbler the image
what do you see on the address bar
yeah, it should show if you put this url in the <Image />
In this case, I think you could render the image on client side
Virginia's WarblerOP
@Virginia's Warbler Click to see attachment
try this url on the <Image />
https://drive.google.com/uc?export=view&id=1kpKc3gk_D7vYDH6l3Qw7tUFD1eeEYe-L
Answer
Virginia's WarblerOP
Ok I got it fixed, here are a few things to make sure when dealing with google drive:
notice the next.config.js settings. Notice how the image url changes when using it in the <Image src /> the scr is written a bit different and it is explained in the txt file