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.- Go to Sources in your Autorender dashboard.
- 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:
width param is optional. When omitted, the URL is rewritten without any transform — useful when you want Autorender for format conversion and caching only. When Autorender is disabled, the snippet outputs the original Shopify URL unchanged.
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 usingsrcset for responsive loading. The autorender.liquid snippet handles a single URL, so for srcset you apply the same rewriting logic inline in your snippet files.
The pattern has three parts.
1. Build the Autorender prefix once
Add this at the top of any snippet that renders images:
/w_{width} directly between the prefix and the path. Autorender applies the resize; Shopify’s ?width= param remains for the origin fetch:
<img> tag
Use a capture block to build the full srcset string, then output the <img>:
ar_prefix is blank (Autorender disabled), every branch falls back to the original Shopify URL, so toggling the setting is safe without further code changes.
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.
Troubleshooting
Image returns a 404 through Autorender Confirm the Base URL in your source matches the exact host Shopify uses (check the raw image URL in your store). Also verify the origin name and workspace ID entered in theme settings match what’s in your Autorender dashboard. Images still load from Shopify directly Check that Enable Autorender is checked in theme settings and that you’ve calledrender 'autorender' in the correct template file.
Format is not WebP
Autorender serves WebP automatically when the browser signals support via the Accept header. If you test with a tool that doesn’t send browser-like headers, the original format may be returned.
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.