How to Add a Different Image to Each Document and Email
Images inserted directly into a template appear identically in every generated document. To display a unique image for each row—such as a student’s photo, add the image link to your spreadsheet and insert an Embed Image marker into your template. You can use image links from the web, Google Drive, or Google Form uploads.
Add Each Student’s Photo to Their Certificate
Section titled “Add Each Student’s Photo to Their Certificate”Maya Chen gives a certificate to every student who finishes Weaving for Beginners at Willow Lane Studio. Her registration form asks each student to upload a photo, and the form’s response sheet looks like this:
| First Name | Last Name | Email Address | Upload Your Photo |
|---|---|---|---|
| Daniel | Okafor | daniel.okafor@example.net |
https://drive.google.com/open?id=1AbC…789 |
| Hannah | Weber | hannah.weber@example.org |
https://drive.google.com/open?id=1DeF…456 |
Google Forms saves each upload in Maya’s Drive and puts its link in the sheet.
Maya designs the certificate in Google Slides, so she can place the photo exactly where it goes.
-
Open the Google Slides template for the certificate. Add text boxes with markers for the name, like
{{First Name}} {{Last Name}}. -
Open the Insert menu and choose Text box. Draw a square text box where the photo should go, at the size the photo should be.
-
Type an
Embed Imagemarker in the text box, with nothing else. Use the question title as the column:{{Embed Image, {{Upload Your Photo}}, mode=CROP}} -
Click the small text-fitting button that appears below the selected text box, and choose Don’t resize. Google Slides then keeps the box at the size you drew, not the size of the marker.

-
Open the workflow and click Preview in the Create File task. Document Studio makes a certificate with sample data. Open it and check the photo.
-
Click Done, then save the workflow.
Document Studio replaces the text box with Daniel’s own photo. mode=CROP makes the photo fill the whole square and cuts off the edges that don’t fit, so a tall phone photo and a wide one both fill the same box. If a row’s cell is empty, Document Studio adds no picture and still makes the certificate.

To add the studio logo to every certificate, draw a second text box with the logo’s link: {{Embed Image, https://example.com/willow-lane-logo.png}}.
Where the Picture Can Come From
Section titled “Where the Picture Can Come From”| The picture is | Write it as | Things to check |
|---|---|---|
| On the web | {{Embed Image, https://example.com/logo.png}} or a column with the link |
The link must open the picture itself, not a web page. The link must be public. |
| In Google Drive | {{Embed Image, https://drive.google.com/file/d/1AbC…789/view}} or a column with the link |
Your Google account must be able to open the file. You don’t need to share it. |
| A Google Form upload | {{Embed Image, {{Upload Your Photo}}}} |
If the person uploaded several files, Document Studio uses the first. |
| A Google Drawing | The drawing’s link, typed or in a column | Your Google account must be able to open the drawing |
To get the link of a picture in Google Drive, right-click the file, choose Share and then Copy link. For a picture on the web, right-click the picture in your browser and choose Copy Image Address. A link to a web picture usually ends in .png, .jpg or .gif.
Ways to Write the Marker
Section titled “Ways to Write the Marker”{{Embed Image, link or column, width=300, height=200, align=center}}| You want | Marker |
|---|---|
| A different picture for each row | {{Embed Image, {{Photo}}, width=300}} |
| The same picture for everyone, like a logo | {{Embed Image, https://example.com/logo.png, width=160}} |
| A picture found by a pattern, like a product code | {{Embed Image, https://example.com/products/{{SKU}}.jpg}} |
| Option | What it does | Works in |
|---|---|---|
width |
Width in pixels | Emails, Docs, Sheets |
height |
Height in pixels | Emails, Docs, Sheets |
align |
left, center or right |
Emails only |
mode |
CROP fills the whole text box and cuts off what doesn’t fit |
Google Slides only |
Say Where the Picture Is
Section titled “Say Where the Picture Is”| You write | The picture comes from | If the title is misspelled |
|---|---|---|
{{Embed Image, {{Photo}}}} |
The link in the Photo cell of that row | No picture |
{{Embed Image, Photo}} |
The link in the Photo cell of that row | No picture |
{{Embed Image, https://example.com/logo.png}} |
The link you typed |
In a Google Form workflow, the column is the question title, like {{Upload Your Photo}}. Put a link that has a comma in quotes. Write each option after the picture with a comma before it, like width=300. When the cell is empty, Document Studio adds no picture. Embed Picture is another name for Embed Image.
Add a Picture to an Email
Section titled “Add a Picture to an Email”Type the marker in the Email Body of the Send Email task, on a line of its own.

- Document Studio downloads each picture and attaches it inside the email. The picture shows even in email apps that hide pictures from the web, and it stays in sent emails if you delete the original.
- Set
widthorheight, not both. With both, the picture may stretch. - A photo from a phone is often 4,000 pixels wide. Set
width=500or less so the photo fits on a phone screen.
Add a Picture to a Document
Section titled “Add a Picture to a Document”| Template | Where to type the marker | How big the picture is |
|---|---|---|
| Google Docs | On a line of its own | It fits inside width and height. Without them, it fits inside 600 by 600 pixels. |
| Google Slides | Alone in a text box | It fits inside the text box. With mode=CROP, it fills the text box. |
| Google Sheets | Alone in a cell | It sits over the cell and fits inside width and height, or 600 by 600 pixels |
In Google Docs and Sheets, the picture keeps its shape, so you can set both width and height as a box for it to fit in. Document Studio makes a picture smaller to fit, never larger.

Google Slides
Section titled “Google Slides”Draw a text box at the size the picture should be, type the marker alone in it and choose Don’t resize, as in the certificate example. Google Slides ignores width and height. The text box sets the size.

Without mode=CROP, the picture keeps its shape and fits inside the box, so it may be smaller than the box in one direction. With mode=CROP, it fills the box and the edges are cut to fit.

Google Sheets
Section titled “Google Sheets”Type the marker alone in a cell. Spaces or a line break around it are fine, but no other text. Google Sheets can’t take a picture larger than 2 MB, so Document Studio leaves out a larger picture and writes the reason in the log sheet.

Form Uploads Without Embed
Section titled “Form Uploads Without Embed”In Google Docs, Slides and Sheets templates, a plain marker for a file upload question also shows the uploaded picture, like {{Upload Your Photo}}. Add a width or height inside the braces to set the size, like {{Upload Your Photo width=120}}. See insert photos from Google Forms in documents.
Things to Know
Section titled “Things to Know”- Document Studio reads each picture when the workflow runs. A document or email you already made keeps its picture if you change the link later.
- A marker inside an
{% if %}condition adds the picture only when the condition is true. - Document Studio removes the marker from the email Subject and from text messages, such as SMS and Google Chat.
- To send a file the reader can download, not a picture in the message, use Embed File.
Troubleshooting
Section titled “Troubleshooting”No picture where the marker was
Section titled “No picture where the marker was”Check these in order:
- Is the cell empty for that row, or is the column title in the marker misspelled?
- Does the cell hold a link? A file name or a file ID shows no picture.
- Does the web link open the picture itself? Open the link in a private browser window. You should see only the picture, not a web page.
- Is the Drive file a picture? A Drive link to a PDF or a document shows no picture. To send the file, use Embed File.
- Can your Google account open the Drive file? Open the link while signed in with the account that runs the workflow.
The picture is stretched in the email
Section titled “The picture is stretched in the email”The marker sets both width and height. Remove one of them.
The picture is too small in Google Slides
Section titled “The picture is too small in Google Slides”The picture fits inside the text box that holds the marker. Make the text box bigger, or add mode=CROP to fill it.
The picture is missing from the spreadsheet
Section titled “The picture is missing from the spreadsheet”The picture is larger than 2 MB. Resize the picture, or use a smaller version, then run the workflow for that row again.
