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.
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
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.
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.
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.
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.
/* 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;
}<img src="hero.jpg" width="1600" height="900" alt="Team at work" style="max-width:100%;height:auto;">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.
Regenerate thumbnails
If a theme change altered the crop sizes, regenerate thumbnails with a plugin such as Regenerate Thumbnails, then check again.
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.
Set the image ratio in the theme
Go to Online Store > Themes > Customize. In the product or collection section, find the image ratio setting (for example Adapt to image, Portrait, Square) and choose one that fits your photos.
Use consistent product photos
Upload product images with the same ratio so a fixed-ratio setting does not crop or squash some of them.
Not a tag issue
GTM does not control image shape. Only check it if a custom HTML tag injects images or CSS that sets fixed sizes.
Set the image fit
Select the image, open the Style panel, and under Size set Fit to Cover (crops) or Contain (shows all). Avoid Fill.
Use auto height
Set Height to Auto if the image should keep its natural ratio.
Edit the image element
In the funnel or website builder, select the image and open its settings. Turn off any fixed height and choose a fit option such as Cover instead of stretching.
Check mobile view
Switch to the mobile preview and check the image separately, as height can be set per device.
Change the crop or fit
Select the image, open Settings, and choose Fill or Fit as the image scaling. Use Crop Image to set the shape yourself.
Check strips and galleries
For galleries and strips, pick a layout that keeps the original ratio or crop images to the same shape.
Use the focal point
Edit the image, open the design or image settings, and set the focal point so cropping keeps the main subject. Check the section's image ratio option if one is shown.
Pick a fitting layout
If images in a grid look squashed, change the aspect ratio setting for that block to match your photos.
Remove fixed width and height in CSS
Use max-width: 100% and height: auto, or set aspect-ratio with object-fit: cover.
Add width and height attributes
Add the real pixel size to each img tag so the browser knows the ratio before the file loads.
How to confirm it's fixed
- 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
- 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.
Related issues
- PRF-139Broken hero or product imageFix guide
- PRF-151Blurry/low-resolution images on retina screensFix guide
- PRF-152Product images missing (placeholder image shown)Fix guide
- PRF-138Broken image (404) on a funnel pageFix guide
- PRF-153Open Graph image missing so shared links look brokenFix guide
- PRF-140Image hotlinked from another site that now blocks itFix guide