How to prevent your images from getting cropped

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.

Understanding Image Aspect Ratio

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.

How do I get the aspect ratio that the section requires me to use?

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.

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.



In this situation, we will be working with 467x468 (Windows example). Use this aspect ratio calculator to identify the aspect ratio you must use:

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.

Last updated