Build image links from file names
Set up an image URL convention so your Shopify product push builds image links from your CDN prefix and file name patterns.
In Uphance, you set up an image URL convention so your Shopify product push builds image links from your CDN prefix and file name patterns. Each active color gets one main image link followed by its alt image links, in color order.
Before you build image links from file names
- Both the Pro-Fashion Shopify integration and image URL conventions need to be on for your organization, or your convention won't shape the Shopify product push.
- To set how many alt images each color gets, the alt images setting for product colors must be on, because the Alt Image Count column only appears on a product's Colors section when it is.
- Uphance turns this on for your organization when you ask, so contact Uphance support to ask for it.
Build image links from file names
Your convention tells the Shopify push how to turn each product's active colors into image links. It also decides how those links sit alongside any images you've uploaded.
- Go to Apps > My apps. On the Image URL Conventions form, enter your CDN Prefix, the base URL that goes in front of every image path.

- Fill in the Main Image Pattern (a new form starts with {style}_{color}), and end it with the file extension, such as .jpg, because none is added for you.
- Fill in the Alt Image Pattern, which takes the same placeholders as the main pattern plus {n}, a counter that starts at 1, and include the file extension here too.
- Enter an Alt Text Pattern; a new form starts with Product image of {title}.
- Choose an Image Precedence: Convention first then uploads, Uploads first then convention, Convention only, or Uploads only.
- Click Save Convention with the CDN prefix, main pattern, alt pattern and alt text pattern all filled in, because a saved convention needs every one of them.
Once a CDN prefix and a main pattern are saved, a URL Preview panel appears on the form with example main and alt links, using style 1503 and color Navy as sample values. From then on, each active color gets one main image link followed by its alt image links, in color order.
Good to know
- Set an Alt Image Count on each product color, because that count decides how many alt convention images the color gets, and it counts as zero when no product color record is found.
- Don't worry about a trailing slash on your CDN prefix: it's removed, and the prefix is joined to the file name with a single slash.
- Expect {color} and {title} to be URL-encoded when they go into an image link.
- Expect off-sale colors to be skipped: when variant status is on, colors that are off-sale by their own status are left out of the push and get no convention images.
If something goes wrong
- If the form warns that conventions won't affect the Shopify push, image URL conventions are off for your organization, which is how every organization starts, so contact Uphance support to ask for them.
- If a color's images are missing and the style number is blank, the {style} placeholder uses the product identifier, falling back to the style number, and raises a missing-placeholder error when both are blank.
- If the Alt Image Count column is missing from a product's Colors section, the alt images setting for product colors is off; once it's on, the column accepts a value from 0 to 20.
- If an archived product color is left out of the push, that's expected: when the Pro-Fashion Shopify integration and product colors are both on, archived colors are excluded and get no convention images.
- If you don't see My apps, it may not be turned on for you yet. Uphance turns this on for your organization when you ask, so contact Uphance support to ask for it.
Related articles
- Connect Shopify
- Send products to Shopify
- Add product images, videos and descriptions
- Build your color list
Common questions
Why isn't the Shopify push using my image URL convention?
An image URL convention only shapes the Shopify product push when both the Pro-Fashion Shopify integration setting and the image URL conventions setting are on for your organization. The image URL conventions setting starts off for every organization.
Why are a color's images missing when the style number is blank?
The {style} placeholder in an image pattern uses the product identifier, falling back to the style number. When both are blank, it raises a missing-placeholder error.
Why is the Alt Image Count column missing on product colors?
The Alt Image Count column on a product's Colors section only appears when the alt images setting for product colors is on. Once it appears, it accepts a value from 0 to 20.
How do uploaded images and convention images combine in the Shopify push?
An image URL convention's Image Precedence decides it: Convention only gives just convention images, Uploads only gives just uploaded images, Convention first puts convention images before uploads, and Uploads first puts uploads before convention images.
Does a trailing slash on my CDN prefix break image links?
A trailing slash on an image URL convention's CDN prefix is removed, and the prefix is joined to the file name pattern with a single slash.