
The crop parameter is a completely new option that Shopify has provided. One thing to note, is that if you do specify both dimensions like '750x750' and the photo is not equal on both sides Shopify will make a calculation to maintain the aspect ratio.

If only one dimension is chosen Shopify calculates the other to maintain the correct aspect ratio of the photo. It's also possible to set only the width by '750x' or set only the height by 'x750'. Technically size was already available, but now you can choose any size you'd like by setting the exact pixel value. More specifically to the product_img_url, collection_img_url, and the article_img_url. Recently Shopify added new parameters and options to the img_url.

This is quite a few options, but especially when selecting from the larger options, there's a good chance the actual product photos you have don't conform to these sizings New Parameters Up until now, Shopify has only offered a specific set of sizes available for use with the img_url filter. This would create a link something like this: For more detailed image you can check out the Shopify Docsīelow is an example of how you might use the product image url to create a link using liquid templating. There are img_urls available on a number of Shopify objects such as product, variant, line item, collection, article, and image. That's why it's really exciting that Shopify has added new options for the img_url filter! The img_url Filterįor a little background the img_url (and all it's variants) is a liquid filter that returns the url of the image. Having the best images you can for your product is a great way to market a product. Arguably one of the most important aspects of any Shopify store is the product photography.
