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 309,00 NOKRegular priceUnit price / perSale price 309,00 NOK -
Add multiple upload fields to a product
Regular price 206,00 NOKRegular priceUnit price / perSale price 206,00 NOK -
Apply a circle crop to an uploaded image
Regular price 360,00 NOKRegular priceUnit price / perSale price 360,00 NOK -
Upload multiple files of any type
Regular price 21,00 NOKRegular priceUnit price / perSale price 21,00 NOK -
Add a field for optional printing (add-on pricing)
Regular price From 26,00 NOKRegular priceUnit price / perSale price From 26,00 NOK -
Allow customers to upload files post-purchase
Regular price 155,00 NOKRegular priceUnit price / perSale price 155,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 103,00 NOKRegular priceUnit price / perSale price 103,00 NOK -
Enable a text field for uploaded files
Regular price 257,00 NOKRegular priceUnit price / perSale price 257,00 NOK -
Upload fields for multiple subjects (custom pricing)
Regular price From 463,00 NOKRegular priceUnit price / perSale price From 463,00 NOK -
Change where your field appears in your product template
Regular price 1.018,00 NOKRegular priceUnit price / perSale price 1.018,00 NOK -
Open file picker automatically
Regular price 247,00 NOKRegular priceUnit price / perSale price 247,00 NOK -
Add a photo guidelines popup
Regular price 360,00 NOKRegular priceUnit price / perSale price 360,00 NOK -
Ensure customers confirm their image crop
Regular price 93,00 NOKRegular priceUnit price / perSale price 93,00 NOK -
Preview 3D models
Regular price 93,00 NOKRegular priceUnit price / perSale price 93,00 NOK -
Preview PDF files
Regular price 93,00 NOKRegular priceUnit price / perSale price 93,00 NOK -
Set up different aspect ratios for different variants
Regular price From 206,00 NOKRegular priceUnit price / perSale price From 206,00 NOK