Skip to content
Digital Inspiration DocsDigital Inspiration Docs

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.

  1. Open the Google Slides template for the certificate. Add text boxes with markers for the name, like {{First Name}} {{Last Name}}.

  2. 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.

  3. Type an Embed Image marker in the text box, with nothing else. Use the question title as the column:

    {{Embed Image, {{Upload Your Photo}}, mode=CROP}}
  4. 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.

    Google Slides certificate template with markers for the name, and an Embed Image marker in a square text box with the Don’t resize option chosen

  5. 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.

  6. 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.

Daniel Okafor’s certificate made from the Google Slides template, with his photo filling the square box beside his name

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}}.

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.

{{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
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.

Type the marker in the Email Body of the Send Email task, on a line of its own.

Email Body of a Send Email task with three Embed IMAGE markers, two for a picture in Google Drive with a height or a width and height, and one for a picture on the web
Embed Image markers in the Email Body. Set the width or the height, and the picture keeps its shape.
  • 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 width or height, not both. With both, the picture may stretch.
  • A photo from a phone is often 4,000 pixels wide. Set width=500 or less so the photo fits on a phone screen.
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 Docs template with Embed IMAGE markers for a form upload question, a picture in Google Drive at its own size and with a height, and a picture on the web
In Google Docs, each marker sits on its own line.

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.

Google Slides template with an Embed IMAGE marker in a large text box
Make the text box as large as the picture should be.

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.

A photo in Google Slides with CROP mode, filling its text box with the edges cut off
With mode=CROP, the picture fills the text box.

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.

Google Sheets template with an Embed IMAGE marker in a cell, and the spreadsheet Document Studio created with the picture in its place
In Google Sheets, the picture sits over the cell that held the marker.

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.

  • 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.

Check these in order:

  1. Is the cell empty for that row, or is the column title in the marker misspelled?
  2. Does the cell hold a link? A file name or a file ID shows no picture.
  3. 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.
  4. 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.
  5. Can your Google account open the Drive file? Open the link while signed in with the account that runs the workflow.

The marker sets both width and height. Remove one of them.

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.