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 286,00 NOKRegular priceUnit price / perSale price 286,00 NOK -
Add multiple upload fields to a product
Regular price 191,00 NOKRegular priceUnit price / perSale price 191,00 NOK -
Apply a circle crop to an uploaded image
Regular price 333,00 NOKRegular priceUnit price / perSale price 333,00 NOK -
Upload multiple files of any type
Regular price 19,00 NOKRegular priceUnit price / perSale price 19,00 NOK -
Add a field for optional printing (add-on pricing)
Regular price From 24,00 NOKRegular priceUnit price / perSale price From 24,00 NOK -
Allow customers to upload files post-purchase
Regular price 143,00 NOKRegular priceUnit price / perSale price 143,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 95,00 NOKRegular priceUnit price / perSale price 95,00 NOK -
Enable a text field for uploaded files
Regular price 238,00 NOKRegular priceUnit price / perSale price 238,00 NOK -
Upload fields for multiple subjects (custom pricing)
Regular price From 428,00 NOKRegular priceUnit price / perSale price From 428,00 NOK -
Change where your field appears in your product template
Regular price 942,00 NOKRegular priceUnit price / perSale price 942,00 NOK -
Open file picker automatically
Regular price 229,00 NOKRegular priceUnit price / perSale price 229,00 NOK -
Add a photo guidelines popup
Regular price 333,00 NOKRegular priceUnit price / perSale price 333,00 NOK -
Ensure customers confirm their image crop
Regular price 86,00 NOKRegular priceUnit price / perSale price 86,00 NOK -
Preview 3D models
Regular price 86,00 NOKRegular priceUnit price / perSale price 86,00 NOK -
Preview PDF files
Regular price 86,00 NOKRegular priceUnit price / perSale price 86,00 NOK -
Set up different aspect ratios for different variants
Regular price From 191,00 NOKRegular priceUnit price / perSale price From 191,00 NOK