Guides

How to add zoomable product images to Shopify

Upload the full-size product photo to ZoomHub, copy its embed code, and paste it into a Custom Liquid section of your product template. Shoppers can then zoom into the weave, the print or the engraving before they buy.

Try it: fabric, up close

Embroidered opening scene of the Bayeux Tapestry: King Edward the Confessor speaking with Harold
Bayeux Tapestry, scene 1, 5,895 × 3,790 pixels. Zoom in as a buyer would: every stitch shows.
HTML
<script src="https://zoomhub.net/a/BQizE2qvMPd.js?width=100%25&height=480px"></script>

Step by step

  1. Upload your product image

    On the ZoomHub homepage, choose the file or paste a link to it. JPEG, PNG, TIFF, WebP, GIF or PDF all work.

  2. Confirm your email

    Enter your email address and open the link I send you. If you’re signed in, there’s nothing to confirm.

  3. Copy the embed code

    When your image is ready, choose Embed on its page and copy the code: one line of HTML.

  4. Add a Custom Liquid section

    In your admin, open Online Store, then Themes, and edit your theme. Open a product template, add a Custom Liquid section or block, paste the code and save.

  5. Check the live product page

    Open the product on your live store and zoom in. Everything on a template shows on every product that uses it, so give a product its own template, or a metafield, when it needs its own image.

The facts

Your theme
Custom Liquid comes with the theme, so check that yours offers it in the theme editor. There’s no theme code to edit.
Shopify’s own images
Shopify takes product images up to 5,000 × 5,000 pixels, or 25 megapixels, and 20 MB. A ZoomHub embed shows the full file, however large.
Cost
A store is commercial use, which needs a paid plan. It also removes the “Powered by ZoomHub” badge.
Formats
JPEG, PNG, TIFF, WebP, GIF or PDF. A multi-page PDF becomes one zoomable document.
File size
Up to 1 GB per file on Free, and 5 GB on paid plans.

Questions

Does it replace my product photos?

It can take the main photo’s place on the product page, so shoppers zoom straight into the detail that sells it. Keep the photo in your store too: Shopify still uses it for thumbnails, the cart and search results.

How do I show a different image on each product?

Rather than a template per product, add a multi-line text metafield for products, say zoomhub_embed, and paste each product’s embed code into it. Then put {{ product.metafields.custom.zoomhub_embed.value }} in the Custom Liquid section: each product shows its own image, and one with an empty field shows nothing there.

Will it slow my store down?

The embed loads only as it nears the screen, and the viewer only streams the tiles on the screen, so a very large image adds little to the page.

Do I need an app?

No. The embed is one line of HTML, and the Custom Liquid section it goes in comes with your theme.

My embed doesn’t show. Why?

Check that you saved the template your product uses, not another one, and open the product on the live store. If you use a metafield, check that the product’s field holds the code.