Image files (size method)
For every image uploaded to ShopWired, ShopWired creates 5 separate image files (the original and four resized versions).
ShopWired provides a method that can be applied to image URLs to return a specifically sized image.
Four separate image sizes are available:
Size | Method argument | Image size |
---|---|---|
Small | small | no larger than 300px width |
Medium | medium | no larger than 500px width |
Large | large | no larger than 1000px width |
Extra large | extra-large | no larger than 1600px width |
To return an image in the required size, use the image method, e.g.
product.photo_url('small')
You can replace product.photo_url
with the variable for the image you want to return.