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:w_360):
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.- Open Configurations → Sources in the Autorender dashboard (app.autorender.io/sources).
- Click Create Source.
- Fill in the form:
Leave Canonical Header and Forward Header at their defaults unless your store requires otherwise.
- 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: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. Underconfig/, open (or create) settings_schema.json.
Add the following object to the top-level array in that file:
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. Undersnippets/ in your theme, create a file named autorender.liquid and paste the following:
image_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
- In your Shopify admin, go to Online Store → Themes → Customize.
- Open Theme settings (gear icon) → Autorender.
- Enter your Workspace ID and Origin Name from step 1.
- Check Enable Autorender.
- Save.
6. Update your theme templates
Most Shopify themes render product images withsrcset 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.
Put the width in the path, not the query
Most themes already build asrcset from Shopify’s own sized URLs. The tempting shortcut is to swap only the host and leave those URLs alone:
/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.
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.