Best way to fix and display images from Google Drive

Updated: January 27, 2024

The best solution for this would be to change the Google Drive URL to a different format that forces the images to be downloaded and showed properly. You can do this by replacing uc?id= with thumbnail?id= and appending &sz=w1000 at the end of the URLs. The sz=w1000 parameter specifies the width of the image. You need to update this value according to width you want. The final URL format as the following:
https://drive.google.com/thumbnail?id=FILE_ID&sz=w1000.

<