{"id":317,"date":"2026-10-15T21:33:10","date_gmt":"2026-10-15T21:33:10","guid":{"rendered":"https:\/\/blog.skndan.com\/jsontoimg\/2026\/10\/15\/google-sheets-image-generation\/"},"modified":"2026-11-17T13:33:21","modified_gmt":"2026-11-17T13:33:21","slug":"google-sheets-image-generation","status":"publish","type":"post","link":"https:\/\/blog.skndan.com\/jsontoimg\/2026\/10\/15\/google-sheets-image-generation\/","title":{"rendered":"Google Sheets Image Generation: Render Selected Rows"},"content":{"rendered":"<p>Google Sheets image generation with jsontoimg is a button, not a background job. You select rows, click Render selected, and each row becomes a signed image URL written back into the sheet. Knowing that up front prevents the most common misunderstanding about it.<\/p>\n<h2>How it works<\/h2>\n<p>The add-on is an Apps Script project you install with <code>clasp<\/code>. You map header columns to named layers, choose a template and format, and pick where results go. For each selected row it mints <code>POST \/api\/v1\/img\/sign<\/code>, warms the signed <code>GET \/api\/v1\/img\/{template}<\/code> URL, and writes that URL to a URL column. For PNG, JPG, WebP, and AVIF it also inserts the image into the cell with <a href=\"https:\/\/developers.google.com\/apps-script\/reference\/spreadsheet\/spreadsheet-app\"><code>SpreadsheetApp.newCellImage<\/code><\/a>.<\/p>\n<h2>Set up<\/h2>\n<ol>\n<li>Create an API key under Integrations, then API keys.<\/li>\n<li>In the sidebar open Settings, paste the key, and click Test connection. Leave Base URL blank for the hosted service.<\/li>\n<li>Pick the header row, template, and format.<\/li>\n<li>Map each layer to a column. Text layers stringify the cell; image layers take an <code>http<\/code> or <code>https<\/code> URL.<\/li>\n<li>Choose a URL column, an image column, or both.<\/li>\n<\/ol>\n<p>The key is stored in <code>UserProperties<\/code> for your Google account, and the mapping lives in <code>DocumentProperties<\/code> on the spreadsheet. Use a dedicated key you can revoke.<\/p>\n<h2>Limits to plan around<\/h2>\n<ul>\n<li><strong>50 selected rows per run.<\/strong> The header row is skipped. A 500-row sheet is ten runs.<\/li>\n<li><strong>Button-driven.<\/strong> It does not run when a cell changes. For edit-driven or scheduled work, use <a href=\"https:\/\/jsontoimg.com\/blog\/n8n-image-generation-workflow\">n8n<\/a> or an HTTP step.<\/li>\n<li><strong>In-cell images are raster only.<\/strong> PDF returns a URL, not a picture in the cell.<\/li>\n<li><strong>First fetch bills a credit.<\/strong> Re-running a row with identical values is a cache hit; changing a value renders again.<\/li>\n<\/ul>\n<p>If the first render is still running, the signed URL responds <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/Reference\/Status\/503\">503<\/a>, and the add-on retries for you.<\/p>\n<h2>A sheet layout that works<\/h2>\n<table>\n<thead>\n<tr>\n<th>name<\/th>\n<th>course<\/th>\n<th>photo_url<\/th>\n<th>image_url (result)<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Ada Lovelace<\/td>\n<td>JSON renders<\/td>\n<td><a href=\"https:\/\/example.com\/ada.jpg\">https:\/\/example.com\/ada.jpg<\/a><\/td>\n<td>written back<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Keep one row per output file and one column per changing layer. Anything constant stays in the template, not a column.<\/p>\n<h2>Where it fits<\/h2>\n<p>For a one-off cohort or a catalog refresh that a person triggers, this is the shortest route. For recurring automation, use the pattern in the <a href=\"https:\/\/jsontoimg.com\/blog\/image-automation-api-workflows\">Image Automation API guide<\/a>. Apps Script itself is documented at <a href=\"https:\/\/developers.google.com\/apps-script\">developers.google.com\/apps-script<\/a>.<\/p>\n<h2>FAQ<\/h2>\n<h3>How do I generate images from Google Sheets?<\/h3>\n<p>Install the jsontoimg Apps Script add-on, map columns to template layers, select up to 50 rows, and click Render selected. Each row&#39;s signed image URL is written back to the sheet.<\/p>\n<h3>Does the Sheets add-on run automatically on edit?<\/h3>\n<p>No. It is button-driven and renders only the rows you select. For edit-driven automation, use n8n or an HTTP step.<\/p>\n<h3>Can I render more than 50 rows?<\/h3>\n<p>Run it again on the next 50. The cap is 50 selected rows per run, so a 500-row sheet takes ten runs.<\/p>\n<h3>Can the sheet show PDFs as in-cell images?<\/h3>\n<p>No. In-cell images work for PNG, JPG, WebP, and AVIF only. PDF output is written as a URL.<\/p>\n<h2>Related Resources<\/h2>\n<ul>\n<li><a href=\"https:\/\/jsontoimg.com\/blog\/airtable-image-automation\">Airtable image automation guide<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/integrations\">Image generation integrations<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/blog\/zapier-make-image-generation-http\">Zapier image generation<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/blog\/json-to-image-converter\">How JSON-to-image conversion works<\/a> \u2014 the pillar guide<\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/blog\/image-automation-api-workflows\">Image automation API guide<\/a> \u2014 choose a trigger<\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/docs\/integrations\/sheets\">Google Sheets docs<\/a> \u2014 install steps<\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/use-cases\/certificates\">Certificates use case<\/a> \u2014 a typical sheet-driven job<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Set up Google Sheets image generation with the jsontoimg Apps Script add-on: column mapping, the 50-row run limit, write-back, and what it does not automate.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-317","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/posts\/317","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/comments?post=317"}],"version-history":[{"count":1,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/posts\/317\/revisions"}],"predecessor-version":[{"id":366,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/posts\/317\/revisions\/366"}],"wp:attachment":[{"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/media?parent=317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/categories?post=317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/tags?post=317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}