Cropped images are a common issue when designing a website. Here is our answer to why your images are cropped and how to prevent cropping.
The ratio between the width and height of your image forms its aspect ratio. Let's take, for example, 16:9. The first number (16) refers to the width, and the second (9) refers to the height. If you upload a 16:9 image to a 1:1 section, your image will be cropped due to the difference between the width and height of the section and your image. Cropping prevents your picture from being stretched and deformed.
However, if you upload an image with the same aspect ratio as the section, your image will not get cropped.
You will need to crop the image placeholder of the section to get the image resolution.
You must turn on your snipping tool for Windows users to crop out the image section.
For Mac users, click Command + Shift + 4 to turn on the screen cropping tool.
Go to the section in which you would want to get the image aspect ratio:
Here is what your cropped image should look like. Be sure to be as precise as possible:
Save the image on your desktop, right-click, and click on properties or file info. From there, you must locate the image's dimensions to use them to calculate the aspect ratio.
Windows:
Mac:
In this situation, we will be working with 467x468 (Windows example). Use this aspect ratio calculator to identify the aspect ratio you must use: https://ww.digitalrebellion.com/webapps/aspectcalc.
After doing this, you now have the aspect ratio of the section, and you know what image resolution you need. Note: Your image resolution can be different and still have the same aspect ratio as shown in the example below:
Always select a low-mid resolution to make your images lighter and improve site speed.
Let's upload a 1000x1000 and 1920x1080 image into the section that we just worked with:
- 1000x1000 Dimensions / 1:1 Aspect Ratio
- 1920x1080 Dimensions / 16:9 Aspect Ratio
Since the 1000x1000 image has the same aspect ratio as the section, it does not get cropped as opposed to the 1920x1080 image.
How both images get displayed in the store: