UploadKit Demo
Set up different aspect ratios for different variants
Set up different aspect ratios for different variants
We've seen that we can automatically crop uploaded images to a specific aspect ratio, but what if you have a product with multiple variants, each with a different shape?
UploadKit can help here. This is a bit advanced, but let's walk through it together.
For this demo, we have three variants: frames for 12×12", 12×10" and 12×8" pictures. The option name is called "Size" when we created the product in Shopify.
Once we've created an upload field in UploadKit that matches our product and all variants, we scroll down to Behavior and enable cropping, selecting 'Use different aspect ratios for different product variants':
Then we enter our variant option name ('Size'), choose a default crop if we need, and add our three variants with the crop aspect ratios. Make sure to match the option name and values from Shopify exactly:
Because our product can be rotated to accept portrait or landscape photos, we've added both portrait and landscape aspect ratios. The aspect ratios need to be in whole numbers, no decimals. If you need, say, 1:1.5, multiply them up so they are whole numbers: 2:3 in this example.
Now the correct crop settings will be shown for each variant automatically, and if the user changes the variant after uploading an image, it will automatically be re-cropped to match the selected variant.
Couldn't load pickup availability
Share

More UploadKit options
-
Accept a single image only and allow enhancements
Regular price 293,00 NOKRegular priceUnit price / perSale price 293,00 NOK -
Add multiple upload fields to a product
Regular price 196,00 NOKRegular priceUnit price / perSale price 196,00 NOK -
Apply a circle crop to an uploaded image
Regular price 342,00 NOKRegular priceUnit price / perSale price 342,00 NOK -
Upload multiple files of any type
Regular price 20,00 NOKRegular priceUnit price / perSale price 20,00 NOK -
Add a field for optional printing (add-on pricing)
Regular price From 25,00 NOKRegular priceUnit price / perSale price From 25,00 NOK -
Allow customers to upload files post-purchase
Regular price 147,00 NOKRegular priceUnit price / perSale price 147,00 NOK -
Require an exact number of files to be uploaded
Regular price 0,00 NOKRegular priceUnit price / perSale price 0,00 NOK -
Automatically crop images to a specific shape
Regular price 98,00 NOKRegular priceUnit price / perSale price 98,00 NOK -
Enable a text field for uploaded files
Regular price 245,00 NOKRegular priceUnit price / perSale price 245,00 NOK -
Upload fields for multiple subjects (custom pricing)
Regular price From 440,00 NOKRegular priceUnit price / perSale price From 440,00 NOK -
Change where your field appears in your product template
Regular price 967,00 NOKRegular priceUnit price / perSale price 967,00 NOK -
Open file picker automatically
Regular price 235,00 NOKRegular priceUnit price / perSale price 235,00 NOK -
Add a photo guidelines popup
Regular price 342,00 NOKRegular priceUnit price / perSale price 342,00 NOK -
Ensure customers confirm their image crop
Regular price 88,00 NOKRegular priceUnit price / perSale price 88,00 NOK -
Preview 3D models
Regular price 88,00 NOKRegular priceUnit price / perSale price 88,00 NOK -
Preview PDF files
Regular price 88,00 NOKRegular priceUnit price / perSale price 88,00 NOK -
Set up different aspect ratios for different variants
Regular price From 196,00 NOKRegular priceUnit price / perSale price From 196,00 NOK