Insert Image from GG Drive into Web Apps of Google Apps Scripts

Опубликовано: 01 Ноябрь 2024
на канале: KNOWN IDEAS
630
17

This script details a tutorial on how to display images stored on Google Drive in a Google Apps Script web app. The speaker explains that the traditional method of embedding images using the URL format "[https://drive.google.com/uc?export=vi...](https://drive.google.com/uc?export=vi...)" is no longer supported by Google.

They offer an alternative solution using the thumbnail URL format "[https://drive.google.com/thumbnail?id...](https://drive.google.com/thumbnail?id...)" and demonstrate three methods for implementation:

1. Using the old, non-functional URL format
2. Directly inserting the new URL format into the HTML file
3. Inserting the new URL format into the .gs (Google Apps Script) file and calling it from the HTML file

The speaker then provides a live demonstration of modifying code and deploying the web app to show how the changes are reflected in real-time. They conclude by inviting viewers to subscribe to their channel for more content.