How to update embedded images (like on a website) using a Zap

  • 25 February 2022
  • 3 replies

Userlevel 7
Badge +11

IMPORTANT UPDATE: As of January 2, 2024 Google no longer supports the file URL format mentioned in this guide.

Instead you’d need to use the following URL format:

FILEID - replace this with the file ID.
w1000 - replace with the desired image width in pixels. E.g. desired size 600px = w600 


Hey Zappers!

Have you ever wanted to embed an image somewhere, like on a website or in a blog post and then update it automatically?

Some possible use cases:

  • a weekly updated graphic showing progress of some sort
  • the most recent member to join your community
  • a screenshot of some sort (a tweet, Instagram post, etc)

Using Google Drive to Host the Image

This can likely be done with other services, like Dropbox, but in this example we’ll use Google Drive because I know it has a Replace File action.

Make the Image Embeddable

There are a few steps required:

  1. Upload the graphic to Google Drive
  2. Share it so that “anyone with the link” can view it
  3. Add the ID of the image at the end of this URL:
  4. Use some basic HTML to embed it:


Update It with a Zap

Now that we’ve got the image uploaded and embedded, let’s see how to replace the file in-place, so that anywhere you’re displaying it, it will be updated.

Getting the New Image

This part will be different for everyone’s particular use case. As an example, let’s say we don’t want to give someone access to the Google Drive folder where this file is saved. We could use a form (like a Google Form):

In the Zap

Trigger: Google Drive — New File in Folder

In this case, you’ll use the folder that Google Forms is using to store your uploads.

NOTE: With Google Forms/Drive you’ll have a folder for the form itself, then one for the question that asks for the file upload.

Action: Google Drive — Replace File

Here you use the same ID that you used in the previous step.

Let’s See It in Action

I tested the Zap, updating the image. Let’s see what happens to the embedded image:

There you have it! Now you know how to embed an image somewhere and use a Zap update it in-place :)

3 replies

Userlevel 3

I appreciate this tutorial very much — how do I make this work when I have a Google Drive image embedded in a Google Slide? It looks like inserting a GDrive image in a slide DECOUPLES it, meaning it’s not actually referencing it anymore?

I’ve tried and it doesn’t work (I’ve shared with anyone with the link). The image does not appear:

<img src="" alt="EXAMPLE">


All I want to do is to be able to add an image in an Gmail email reply in Zapier HTML.


Anyone can help? Thanks

Userlevel 7
Badge +11

Hi @TORLEY and @Marcos Luna! 🙂 

It seems that the approach of using the URL in the format of is no longer possible due to changes made on Google’s end.

The URLs would now need to be in the following format:

FILEID - is what you would need to replace with the file ID.
w1000 - is what you would update to change the width that the image is displayed at (size in pixels e.g w1000 = 1000px wide). If the &sz=w1000 part is omitted from the URL then only a thumbnail sized version of the image will be displayed.

Can you give that a try and confirm whether that gets it working as hoped?