Mar 14

To update an image in Google Slides via a URL every day, you can use Google Apps Script. Here’s a step-by-step guide on how to do this:

  1. Open the Google Slides presentation where you’ve inserted the image via URL.
  2. Click on Tools > Script editor. This will open a new tab with the Google Apps Script editor.
  3. In the script editor, paste the following code:
    function updateImage() {
    var slide = SlidesApp.getActivePresentation().getSlides()[0]; // Change the slide index if needed
    var imageUrl = “INSERT_IMAGE_URL_HERE”; // Replace with your image URL
    var image = slide.getImages()[0]; // Change the image index if needed
    image.replace(imageUrl);
    }
  1. Replace “INSERT_IMAGE_URL_HERE” in the code with the URL of the image you want to update.
  2. Save the script with a name (e.g. “Update Image Script”).
  3. Click on the clock icon in the script editor toolbar to open the Triggers dialog.
  4. Click on the “Add Trigger” button.
  5. In the “Run” dropdown, select the name of your function (“updateImage”).
  6. In the “Select event type” dropdown, select “Time-driven.”
  7. Set the time interval you want the image to be updated (e.g. every day at 9:00 AM).
  8. Click on the “Save” button to create the trigger.

That’s it! Now the script will run every day at the specified time and update the image in the first slide of your Google Slides presentation with the new URL you’ve provided.

Share