Image groups
Shopify lets you link one image to a variant. Most products have several photos per colour. So before the app can move “the Red images” it has to decide which images those are. That decision is the grouping, and everything else follows from it.
Four sources, in order of trust
Section titled “Four sources, in order of trust”- The link you set in Shopify. If a variant’s own image is this photo, the photo belongs to that variant. This is exact and is never second-guessed.
- The filename. Photos whose names share a base belong together.
red-shirt.jpg,red-shirt-2.jpgandRed_Shirt_3.jpgare one group. If any one of them is linked to the Red variant, the whole group is Red’s. - An option value in the filename.
beanie-deep-purple-back.jpgnames the Deep Purple variant even though it shares no base name withbeanie-deep-purple-front.jpg. The rules are below. - Where the photo sits in the gallery. For products whose photos were uploaded colour by colour, the app reads the gallery as equal blocks, one colour per block, and checks that reading against every image you linked. The rules are below.
The last two are readings, not facts, and they fail in different ways: a filename can use a colour word for something else, and a gallery can open with a lifestyle shot. So both always run, over the whole gallery, and are compared:
- A photo they agree about is linked, with no switch on.
red-shirt-2.jpgsitting right after the linkedbeautiful Red Shirt.jpgis named Red and placed in Red’s block, so it is Red’s. - A photo they disagree about is left alone, whatever the switches say.
- A photo only one of them can place is linked only if that reading’s switch in Settings is on. The two switches, Trust a filename that names an option value on its own and Trust the gallery’s layout on its own, mean exactly that: believe this reading with nothing to back it up. Both are off until you turn them on.
- One exception: a filename is believed on its own once two or more of the images you linked are named for their colour, because you have then shown the habit yourself.
Neither reading ever overrules the first two sources, or adds a photo to a group they placed.
How names are compared
Section titled “How names are compared”Before comparing, the app normalises a filename so that merchants’ habits do not split a group:
| Rule | Example |
|---|---|
| Case is ignored | Red-Shirt.jpg and red-shirt.jpg match |
| Spaces, underscores and dashes are the same | red shirt.jpg, red_shirt.jpg, red-shirt.jpg match |
| A trailing sibling number is ignored | red-shirt-2.jpg and red-shirt_3.jpg join red-shirt.jpg |
| A trailing size marker is ignored | red-shirt-600x.jpg joins red-shirt.jpg |
| Accented and encoded characters are unified | Rot%C3%A9.jpg and Roté.jpg match |
Matching filenames to SKUs
Section titled “Matching filenames to SKUs”If your photos are named after SKUs (22080067P.jpg), the app can match them to the variant with that SKU even
with no link set in Shopify. Match filenames to SKUs in Settings is on by default and only kicks in when your
store actually uses SKU-shaped filenames, so a coincidence cannot attach a photo to the wrong variant.
Matching filenames to option values
Section titled “Matching filenames to option values”Many stores name their extra photos for what they show rather than as numbered siblings:
beanie-deep-purple-front.jpg, beanie-deep-purple-back.jpg, beanie-deep-purple-texture.jpg. Those share no
base name, so filename grouping sees three separate images, and only the one you linked in Shopify moves.
The app reads the product’s own option values out of each filename, and believes what it reads when the gallery’s layout says the same, or when two or more of the images you linked are named for their colour. Turn on Trust a filename that names an option value on its own in Settings and one such linked image is enough. It is off by default because a filename alone is weak evidence, and the reading fails closed:
- It only runs on a product that proves the habit: an image you linked yourself must be named for that variant’s
value.
IMG_4821.jpgproves nothing, so nothing is inferred. - It is proved one option at a time. A product whose linked images name their colour but not their size has
colours inferred and sizes left alone, so a second photo numbered
-2can never be read as size 2. - The longest value claims the words first.
rose-gold-back.jpgis Rose Gold, not Gold, andblack-orange.jpgis Black/Orange when your product has that value. The product’s own name claims its words the same way, so a product called Orange County Tee does not make every photo orange. - Two different values of one option in one filename is an ambiguity, and the file is left alone. So is a word that could equally be part of the product’s name.
- It never overrules a link you set in Shopify or a SKU match.
What it cannot tell is a colour word used for something else: white-background-lifestyle.jpg reads as White.
With the switch off that photo moves with White only if it also sits in White’s block; with the switch on it
moves regardless. Rename such photos, or leave the switch off on a store that names files that way.
Reading the gallery as blocks
Section titled “Reading the gallery as blocks”Some products defeat all three of the sources above at once. One image linked per colour, filenames straight off
a camera or an image generator (IMG_4821.jpg, ChatGPT_Image_Aug_10_2026_02_42_37_PM.png), no SKUs, no alt
text. Nothing in the data names a colour, so only the one photo you linked in Shopify moves, and a shopper still
sees the sold out colour near the top.
What such a gallery usually does say is the order it was uploaded in: three photos of brown, then three of navy, then one of olive. The app always reads that shape, and believes it where a filename says the same. Turn on Trust the gallery’s layout on its own in Settings and the shape is enough by itself.
It is a check, not a guess. The images you linked yourself are what the reading has to survive:
- Every block is the same size. “Four photos per colour” is a shape; “this photo belongs to the one above it” is not, and a single wrong cut then shows up as a contradiction somewhere else in the gallery.
- No block may contain two colours you linked. If it does, that block size is thrown away.
- The photo you linked sits in the same place in every block, and that has to hold in at least two full blocks before it counts as a habit rather than a coincidence.
- If two different block sizes explain your gallery equally well and disagree, the app leaves the whole product alone.
- A block with none of your links in it claims nothing, so a size chart or a lookbook shot at the end of the gallery is left where it is. So is any block holding a video or a 3D model.
- It never overrules a link you set or a SKU match, and it never adds a photo to a group either of those placed.
Unlike the two matchers above, this one reads no text at all, so it keeps working when you group by alt text.
What it cannot tell you, and the reason it is off until you turn it on: a lifestyle or hero photo at the very top of an otherwise blocked gallery sits in the first colour’s block and moves with that colour. Nothing separates it from that colour’s own first photo. Galleries where the colours have different numbers of photos are declined rather than guessed at, so an irregular store simply gets no help from this.
It also cannot help a product where nothing is linked to a variant. It works out where your links extend to, so with no links there is nothing to extend.
Grouping by alt text instead
Section titled “Grouping by alt text instead”Some stores put the colour in each image’s alt text rather than the filename. Group images by in Settings lets you group by alt text instead of filename. Note that this switches both filename matchers off, SKUs and option values alike, because they read a filename and alt text is not one; the Settings page says so in a banner when you pick it. Reading the gallery as blocks is unaffected, because it reads position rather than any text.
Images that belong to nobody
Section titled “Images that belong to nobody”A photo that is not linked to any variant and shares no name with one is product-level content: a lifestyle shot, a size chart, a packaging photo, a video. The app never moves it. It is part of the product, not of a colour.
Images that are shared
Section titled “Images that are shared”If the same image belongs to an unavailable variant and to a variant a shopper can still buy, it stays put. Moving it would hide something that is on sale. The app’s answer for such a product is “Every image belonging to the unavailable variant is also used by a variant a shopper can still buy, so moving it would hide something that is on sale”.
Consistent filenames make grouping better
Section titled “Consistent filenames make grouping better”Names of the shape red-shirt-1.jpg, red-shirt-2.jpg are exactly what the grouping understands, and a store
that names its files that way finds the app gets more of its products right. The name only has to be consistent
within a product: nothing has to match across your catalogue.