You open a collection in your Shopify admin, pick a nice new banner for it, click Save… and Shopify answers with a red message: “Error updating collection with this image”. Sometimes it even shows up in a strange format like {:src=>"Error updating collection with this image"}. The image looks fine on your computer, the product images upload without problems, but the collection simply refuses to keep it.
In this tutorial, we will learn how to fix the Shopify error updating collection with this image step by step. I went through the reports from merchants on the Shopify Community and Shopify’s own image requirements, and in almost every case the cause is one of these: the file is too big (in megabytes or in megapixels), the format isn’t supported, the file name is messy, or the old collection image is “stuck” and blocks the new one.
Previously, I published a guide on how to choose the right Shopify image size for products, collections and banners. If you just want to know which dimensions look good in your theme, read that one too. This article focuses on getting rid of the error when your collection image won’t upload.
Contents
- Why Shopify shows “Error updating collection with this image”
- Step 1: Check the image format, file size and megapixels
- Step 2: Rename the image file
- Step 3: Remove the old collection image and save
- Step 4: Upload the new image and save the collection
- Step 5: Try a private window or another browser
- Fix for developers: the error in the Admin API
- Common errors
- Wrapping up
Why Shopify shows “Error updating collection with this image”
The error is generic: Shopify doesn’t tell you what is wrong with the file, only that it couldn’t attach it to the collection. Based on Shopify’s requirements and the fixes confirmed by merchants, these are the usual causes:
- The image is too large. Shopify accepts images up to 20 MB and 25 megapixels. A file can be under 20 MB and still be rejected because its dimensions are over 25 MP (for example a 7200 x 4800 px photo straight from a camera or a design tool).
- The format isn’t supported. Supported formats are JPEG, Progressive JPEG, PNG, GIF, HEIC and WebP. Some merchants also report that GIF and WebP files fail as collection images even though they work elsewhere.
- The file name is messy. Spaces, brackets, leading symbols or several dots in the name (
Summer Sale (final).v2.png) are a frequent trigger mentioned by Shopify support staff on the forum. - The old image is stuck. Replacing an existing collection image directly sometimes fails, while removing the old one first, saving, and then uploading the new one works.
- Browser cache or an extension interferes with the upload request.
So instead of resizing the same image ten times, let’s go through the fixes in order. Most stores are fixed after Step 3 or Step 4.
Step 1: Check the image format, file size and megapixels
Start with the file itself. On Windows, right-click the image and open Properties > Details. On a Mac, select the image and press Cmd + I. Write down three values: the file type, the size in MB and the dimensions in pixels.
Then compare them with Shopify’s limits:
- File size: maximum 20 MB.
- Resolution: maximum 25 megapixels (width x height must be 25,000,000 pixels or less). Shopify recommends staying at or below
5000 x 5000px. - Format:
.jpg,.jpeg,.png,.gif,.heicor.webp.
A collection image never needs to be that big anyway. For a collection banner, something around 2000 - 3000 px on the long side is plenty. If you have ImageMagick installed, you can check and resize the image from the terminal in a few seconds:
# show file name, dimensions and size magick identify -format "%f %wx%h %b\n" "Summer Sale (final).v2.png" # resize so the longest side is 3000 px and save as an optimized JPG magick "Summer Sale (final).v2.png" -resize 3000x3000 -quality 85 summer-sale.jpg
In the example above, the original PNG is 7200 x 4800 px, which is about 34.6 million pixels, well over the 25 MP limit, and the 31.4 MB file is also over the 20 MB limit. After resizing, the JPG is 3000 x 2000 px and only about 600 KB. If you don’t use the terminal, any image editor (Photoshop, GIMP, Preview on Mac, Paint on Windows) or a free online compressor does the same job: export as JPG or PNG, with the long side at 3000 px or less.
Tip: if your file is a GIF or WebP and it keeps failing, export it as a normal JPG or PNG. It’s the quickest way to rule out a format problem.
Step 2: Rename the image file
This one sounds too simple, but it is the fix most often suggested by Shopify staff for this exact error. Rename the file so it only uses lowercase letters, numbers and hyphens, with a single dot before the extension:
Bad: Summer Sale (final).v2.png Bad: #new-banner!!.JPG Bad: collection.image.2026.final.jpg Good: summer-sale.jpg Good: mens-shoes-collection.png
A clean file name is also good for SEO, because Shopify keeps it in the image URL on your storefront.
Step 3: Remove the old collection image and save
If the collection already has an image, don’t try to replace it directly. Several merchants confirmed that this sequence solved the error without touching the image at all:
- In your Shopify admin, go to Products > Collections and open the collection.
- In the Image card, hover over the current image, click the … (more actions) icon and choose Remove.
- Click Save to save the collection without an image.
- Refresh the page (
F5orCmd + R).
Saving the collection without an image “resets” it, so the next upload starts clean.
Step 4: Upload the new image and save the collection
Now add the prepared image (resized in Step 1 and renamed in Step 2):
- In the Image card of the collection, click Add image (or drag the file into the card).
- Select your file, for example
summer-sale.jpg. - Optional but recommended: click the image menu and choose Edit alt text to describe the collection for accessibility and SEO.
- Click Save.
You should see the “Collection updated” confirmation and the image stays in the card after a refresh. Open the collection on your storefront to make sure your theme displays it. If the collection doesn’t appear in your navigation yet, follow my tutorial on how to add a drop-down menu and add collections to the menu in Shopify.
Shopify’s help center also describes changing a collection image from the collection details page: see Editing collection details and layout.
Step 5: Try a private window or another browser
If the same clean, small JPG still fails, the problem is probably on the browser side:
- Open the Shopify admin in a private/incognito window and repeat Step 3 and Step 4.
- Disable ad blockers, image optimizers or privacy extensions for
admin.shopify.com. - Clear your browser cache and cookies, or try a different browser.
- Try the Shopify mobile app: open Products > Collections, tap the collection, then tap the image area to add a new image.
Fix for developers: the error in the Admin API
If you see Error updating collection with this image in an app or a script that calls the Admin API (for example the collectionUpdate GraphQL mutation), the same rules apply, plus one more: the src URL must be a public, direct link to the image file that Shopify’s servers can download. A URL behind a login, a redirect to an HTML page or a localhost address will fail.
mutation {
collectionUpdate(input: {
id: "gid://shopify/Collection/1234567890",
image: {
src: "https://cdn.example.com/images/summer-sale.jpg",
altText: "Summer sale collection banner"
}
}) {
collection { id image { url altText } }
userErrors { field message }
}
}
Some developers reported on the Shopify Community that the error can be returned in userErrors even when the image is attached a moment later, so query the collection again before retrying. If you need to remove a broken image first, send image: null in the same mutation, exactly like Step 3 in the admin.
Common errors
“Image upload failed” on product images too. If product images also fail, it’s almost certainly the file size, megapixels or the browser. The checks in Step 1 and Step 5 apply to every image in Shopify. When you bulk upload product images with a spreadsheet, image URLs must also be public, as explained in my guide on how to import products into Shopify with CSV.
The image saves but looks blurry or cropped on the storefront. That’s not an upload problem but a theme setting. Each theme crops collection images differently (square, landscape or full-width banner). Check the collection banner section in the theme editor and use the dimensions from the image size guide linked above.
The image saves but the collection page still shows the old one. Your theme or a CDN may be serving a cached version. Wait a few minutes and hard-refresh the storefront (Ctrl + Shift + R).
Nothing works. Contact Shopify Support from your admin (Help > Chat with us) and include the collection name, the file you tried and a screenshot of the error. Shopify’s official image requirements are useful to quote in your ticket.
Wrapping up
The Shopify “Error updating collection with this image” message looks scary, but the fix is usually quick: make sure the file is a JPG or PNG under 20 MB and 25 megapixels, give it a clean file name, remove the old collection image and save, then upload the new one and save again. If it still fails, switch to a private window or another browser, and for API users, double-check that the image URL is public.
Which step fixed the error in your store? Leave a comment below and let me know, so other merchants can find the solution faster.





