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.

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. Go to Sources in your Autorender dashboard.
  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:
The 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

  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 using srcset 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:
2. Rewrite each srcset entry Since the width is known at each entry, insert /w_{width} directly between the prefix and the path. Autorender applies the resize; Shopify’s ?width= param remains for the origin fetch:
3. Output the <img> tag Use a capture block to build the full srcset string, then output the <img>:
When 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.
Start with the snippets that render product cards and gallery images, since those cover the majority of image traffic in a Shopify store.
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 called render '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.