Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Images stretched or squashed: how to find and fix wrong aspect ratio

PRF-150Low impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

Every image has an aspect ratio: its width divided by its height. A 1600 x 900 photo is 16:9. If a page makes that image 400 pixels wide and 400 pixels tall, the browser has to distort it to fit. People look wider, circles turn into ovals and product shots look wrong.

Why it costs you leads or sales

Distorted images make a page look careless. On a product page, a squashed product can make visitors doubt the quality or the real size. On a landing page, a stretched hero or a warped face weakens trust right where you ask for a form fill or a purchase. The impact is usually small and does not stop anyone from converting, but it is easy to fix and it affects first impressions.

Distorted vs correct image

Stretched

  • CSS sets width: 100% and height: 300px on a 16:9 image
  • Faces look wide, logos look warped
  • Looks different on phone and desktop

Correct ratio

  • height: auto keeps the original shape
  • Or object-fit: cover crops instead of stretching
  • Same proportions on every screen size

How to check if your site has it

Find distorted images
  1. Look at the page on desktop and phone

    Open your key funnel pages (landing page, product page, checkout) at a wide window and at phone width. Look for warped faces, oval logos and odd product shapes.

  2. Compare displayed size with the real file

    In Chrome, right-click the image, choose Inspect, then hover the img tag. DevTools shows the rendered size and the intrinsic size (the file's real size). If the two ratios differ, the image is distorted.

  3. Check the CSS

    In the Styles panel, look for fixed width and height on the image or a parent, and for object-fit set to fill (the default) or none.

  4. Test other screen sizes

    Use the device toolbar in DevTools to try a few widths. Ratio bugs often appear only at one breakpoint.

How to fix it

Pick the approach that matches what you want. If the whole image should show, let its height follow its width. If the box must have a fixed shape (cards, galleries), crop the image to fit instead of stretching it.

Keep the original ratio, or crop to a fixed boxcss
/* Option 1: show the whole image, keep its shape */
img {
  max-width: 100%;
  height: auto;
}

/* Option 2: fixed shape box, crop instead of stretch */
.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
Add real dimensions so the browser reserves the right shapehtml
<img src="hero.jpg" width="1600" height="900" alt="Team at work" style="max-width:100%;height:auto;">
Fix by platform
  1. Check the image size in the block

    In the block editor, select the image and look at Image dimensions in the sidebar. Reset to the original ratio or pick a size such as Large or Full.

  2. Regenerate thumbnails

    If a theme change altered the crop sizes, regenerate thumbnails with a plugin such as Regenerate Thumbnails, then check again.

  3. Remove forced heights

    Search your theme CSS or Additional CSS (Appearance > Customize) for fixed height values on img elements and replace them with height: auto.

How to confirm it's fixed

Confirm the fix
  • Hard refresh the page and clear any cache or CDN cache
  • Inspect the image: rendered ratio matches the file ratio, or it is cropped with object-fit
  • Check faces, logos and round shapes look natural
  • Test at phone, tablet and desktop widths
  • Check the page in a second browser, such as Safari or Firefox

How to prevent it happening again

Habits that stop it coming back
  • Use a global CSS rule: img { max-width: 100%; height: auto; }
  • Always add width and height attributes to images
  • Use the same ratio for sets of images, such as product photos
  • Use cover for fixed-shape cards and galleries
  • Review key pages on mobile after every theme, template or plugin change

How FunnelGuard handles this

FunnelGuard does not check image aspect ratio today. It is a possible future check. FunnelGuard runs your real customer journeys (lead forms, checkouts, booking and chat buttons) on a schedule, checks each step and the tracking hits, and sends one alert with a screenshot when a journey breaks. That helps with problems nearby, such as a step that fails to load, but a stretched image that still loads will not stop a journey.

To watch for it yourself, review your main funnel pages on desktop and phone after each design or theme update. You can also run a free browser audit such as Lighthouse in Chrome DevTools, which flags images displayed at an incorrect aspect ratio in its best-practices checks.

Questions people ask

Why are my images stretched on my website?

The image is being forced into a box with a different width-to-height ratio than the file. This usually comes from fixed width and height values in CSS, a theme crop setting, or a page builder set to stretch. Set height to auto or use object-fit: cover.

How do I stop an image from stretching in CSS?

Use max-width: 100%; height: auto; to keep the natural ratio. If the box must have a fixed shape, use aspect-ratio with object-fit: cover so the image is cropped instead of distorted.

What is the difference between object-fit cover and contain?

Cover fills the whole box and crops the parts that do not fit. Contain shows the whole image and leaves empty space if the ratios differ. Both keep the original proportions.

Why do my Shopify product images look squashed?

Your theme may use a fixed image ratio that does not match your photos. In Online Store > Themes > Customize, change the image ratio setting to Adapt to image, or upload photos with the same ratio.

Do width and height attributes on images matter?

Yes. They tell the browser the image's ratio before it loads, which stops the layout from jumping. Combined with height: auto in CSS, they keep the image in proportion at any width.

Can stretched images hurt conversions?

They can make a page look less professional and lower trust, especially on product and landing pages. The effect is usually small, but the fix is quick.

Why does my image look fine on desktop but squashed on mobile?

A height set for one breakpoint may still apply on small screens. Check the mobile styles or mobile editor and remove the fixed height, or use object-fit: cover.

Does FunnelGuard check for stretched images?

No. FunnelGuard does not check image aspect ratio yet; it is a possible future check. It monitors journeys, tracking and lead delivery, so review image shapes manually or with Lighthouse.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.