Displays images with incorrect aspect ratio

In plain wordsImages keep their shape.

A photo forced into a box of the wrong shape looks stretched or squashed. Faces and logos show it at once, and it makes a site look careless.

  • Mobile
  • 2 of 148 points
  • Easy with access to the site settings

What it means

Every image has a shape: its width against its height. When a page forces an image into a box of a different shape, the picture is stretched or squashed. Faces look wide, logos look flattened, and the whole site looks careless.

Google compares the shape each image is shown in with the shape of the file. Small differences are ignored. Our rule passes when no image is distorted.

What causes it

  • A fixed width and a fixed height in the stylesheet that do not match the image.
  • A grid of cards that forces every photo to the same size.
  • A width and height written into the tag by hand, from a different image.

How to fix it

  1. Show each image in the same proportions as the file itself.
  2. In the stylesheet, "object-fit: cover" crops an image to fill its box without distorting it.
Let the browser crop to fill the box, which keeps the proportions.
Before
.card img { width: 300px; height: 300px; }
After
.card img { width: 300px; height: 300px; object-fit: cover; }

Check it yourself

Look at logos and photos of people on a phone. A stretched one is easy to spot.

Or run a free audit: it checks this and 53 other things on your page in about a minute, and shows the proof for each one.

How we test it

What we look at
Google's check of every image on the loaded page: the shape it is shown in against the shape of the file.
It passes when
No image is stretched or squashed.
What it is worth
2 of 148 points in rule book 0.5, in Mobile. A rule that cannot be checked on a page counts neither for nor against it.

Questions

What is the difference between cover and contain?

"cover" fills the box and crops what does not fit. "contain" shows the whole image and leaves empty space. Neither distorts it.

Can I control which part gets cropped?

Yes, with "object-position", for example "object-position: top" to keep faces in view.

Sources

Where to read more, and where to check what this page says. Opened and read on 20 and 24 November 2026.

Also useful: what a good website score is, how we compare with PageSpeed Insights and the full rule book.

Does your website have this problem?

A free audit checks this and 53 other things, and shows the proof. About a minute, no email needed.