Skip to main content
Route your Shopify store images through Autorender to serve them optimized and in modern formats, without changing how you upload images to Shopify. Autorender fetches each original from your store on demand, so no files are migrated or duplicated.
This integration optimizes the images you already upload to Shopify, server-side. If instead you are hand-placing images from an Autorender workspace into a theme, Autorender Native sizes them client-side from a single script tag.

How does it work?

Shopify serves store images from URLs like:
After setup, your theme rewrites those URLs to route through Autorender:
You apply Autorender’s transform syntax directly in your template to control resizing and format. This sets the width to 360 px (w_360):
Autorender fetches the original from Shopify, applies your transforms, and serves the result from its global edge network.

Prerequisites

  • An Autorender account with a workspace — sign up at app.autorender.io
  • A Shopify store with theme editing access (Online Store → Themes → Edit code)

1. Create a source

A source tells Autorender where to fetch your images from.
  1. Open Configurations → Sources in the Autorender dashboard (app.autorender.io/sources).
  2. Click Create Source.
  3. Fill in the form:
Leave Canonical Header and Forward Header at their defaults unless your store requires otherwise.
  1. Click Create Source and note your workspace ID and origin name — you need both below.
Your workspace ID is visible in the dashboard URL and under workspace settings. It looks like aqucPWk0NG.

2. Verify the URL mapping

Before touching any theme code, confirm the source works. Take any image URL from your store:
Swap the host for your Autorender delivery prefix:
Open that URL in a browser. You should see the same image served by Autorender. If it loads, the source is working.
Do not proceed to step 3 until this works. Continuing with a misconfigured source breaks images once you update your theme files.
To find the correct image URL to test, open your store in a browser, right-click any product image, and copy the image address. The host in that URL is the value to use as the Base URL in your source.

3. Add Autorender settings to your theme

These settings give store owners a toggle to enable or disable Autorender and a place to enter their workspace credentials — all from the Shopify admin, with no code edits. In your Shopify admin, go to Online Store → Themes → Edit code. Under config/, open (or create) settings_schema.json. Add the following object to the top-level array in that file:
After you save, these fields appear under Customize → Theme settings → Autorender in your Shopify admin.

4. Create the Autorender snippet

This snippet rewrites any Shopify image URL to serve through Autorender. It’s a drop-in helper you call from other templates. Under snippets/ in your theme, create a file named autorender.liquid and paste the following:
Always pass the master imageimage_url with no width — and let Autorender resize through the width param. The /w_{width} segment is what resizes, so a single image and every srcset entry call the same snippet. When Autorender is disabled, the snippet returns a Shopify-sized URL (falling back to Shopify’s own ?width= resize), so toggling the setting off never ships full-resolution images.

5. Enable Autorender in your theme settings

  1. In your Shopify admin, go to Online Store → Themes → Customize.
  2. Open Theme settings (gear icon) → Autorender.
  3. Enter your Workspace ID and Origin Name from step 1.
  4. Check Enable Autorender.
  5. Save.
Open a collection or product page and inspect an image URL in browser devtools. A correctly rewritten URL starts with your Autorender delivery prefix:
If the URL still points to Shopify’s CDN, the theme template hasn’t been updated yet.

6. Update your theme templates

Back up your theme before changing any template files. In your Shopify admin, go to Online Store → Themes → ⋯ → Duplicate to create a copy you can restore from.
Most Shopify themes render product images with srcset for responsive loading. Call the same autorender.liquid snippet for each entry — capture the master image once, then render the snippet per width. One snippet handles every image on the page, so the rewrite logic never gets duplicated or out of sync. Find where a template outputs its <img> (product cards, the gallery, and so on) and replace it with this pattern:
img is the master image (image_url with no width). Each render call adds its own /w_{width}, so Autorender resizes every candidate from the master. Match the width list and sizes value to what the original template used.
Start with the snippets that render product cards and the product gallery — they cover most of the image traffic in a Shopify store.

Put the width in the path, not the query

Most themes already build a srcset from Shopify’s own sized URLs. The tempting shortcut is to swap only the host and leave those URLs alone:
Autorender resizes from the path (/w_600), not from the ?width= query. It drops the query, fetches the master, and serves it unresized — so every srcset candidate downloads the full master. A 1600 px master then ships at ~30 KB for every size instead of ~4.5 KB at w_246, and the browser gains nothing from the srcset. The render 'autorender' pattern above puts the width in the path (/w_600), where Autorender reads it. Confirm it by copying one srcset URL from devtools — it must contain /w_600/, not ?width=600. Verify after each template change After you save a file, reload your store and open browser devtools (Network tab, filter by image). Confirm the updated template’s images come from assets.autorender.io. Any image still loading from Shopify’s CDN points to a template file you haven’t updated yet.

Integrate with an AI coding agent

If you edit your theme in an AI coding agent (Cursor, Claude Code, or similar), copy the prompt below. It carries the snippet contract and the rules that keep the integration correct, so the agent wires up the settings, snippet, and templates for you.

Wire up the Autorender Shopify integration — settings group, snippet, and templates.

Open in Cursor

Troubleshooting

If images aren’t delivering as expected, work through this table by symptom.

Next steps

Source path

How Autorender fetches originals from a remote host.

Resize and aspect ratio

Control width, height, and fit on every delivery URL.