Shopify Image Woes? How to Stop Pages from Stretching Your Pictures

Hey everyone,

You know that feeling, right? You’ve spent ages crafting the perfect image for your Shopify store – maybe it’s your brand logo, a beautiful product shot, or an engaging graphic for your About Us page. You upload it, excited to see it shine, only to find it looking... well, a bit like it went through a funhouse mirror. Stretched, blurry, completely out of proportion. Frustrating, isn't it?

That's exactly what a fellow store owner, Geronim0, ran into recently in the Shopify community forums. Geronim0 was trying to add a 200x200px PNG logo to their About Us page, placing it right under the header. Despite resizing it perfectly beforehand, the image kept appearing large and distorted. Take a look at what they were seeing:

Sound familiar? This is a pretty common hiccup on Shopify, especially when themes try to be "helpful" by automatically scaling images to fit the full width of a content section, often overriding your careful resizing efforts. The good news is, the community jumped in with a super straightforward fix!

The Simple Fix: Custom CSS to the Rescue

Our brilliant community member, Ploqo, stepped up with a solution that involves a little bit of custom CSS. Don't let "CSS" scare you – it's incredibly easy to implement, even if you've never touched code before. This snippet tells your theme to respect the image's natural dimensions and center it, preventing that unsightly stretching.

Here’s how Ploqo walked Geronim0, and now you, through it:

Step-by-Step Guide to Fixing Distorted Page Images

First, let's look at the difference this small change makes. Check out these before and after shots:

Pretty dramatic improvement, right? Here are the steps to achieve it:

  1. From your Shopify admin, click Online Store.
  2. Next, click Edit theme on your current theme. This will open the theme editor.

  1. In the menu at the top of the editor, use the dropdown to pick Pages.
  2. Then, click Default page (or select the specific template your About Us page, or any other affected page, uses).

  1. In the left sidebar, scroll down and click on Page under the "Template" section.

  1. Scroll down further until you find and open the Custom CSS section.
  2. Paste this exact code into the box:
.page-content img {
  width: auto;
  margin: 0 auto;
}

  1. Finally, click Save in the top right corner.

Understanding the CSS: Desktop and Mobile Covered

After implementing the fix, Geronim0 had a smart follow-up question: "Does this custom CSS code apply for both Desktop & Mobile? Any specific code for mobile view?"

This is a fantastic question, as mobile responsiveness is absolutely critical for any online store today. Ploqo confirmed that, yes, this simple CSS snippet covers both desktop and mobile views automatically. You don't need any extra code for phones!

The width: auto; property tells the browser to use the image's intrinsic width, preventing it from being forced to 100% of its container. The margin: 0 auto; then centers the image horizontally within its available space. Because modern Shopify themes are built with responsiveness in mind, this simple instruction is usually enough to ensure your images look great across all devices.

On a phone, for example, your logo will gracefully stay at its intended 200x200px size, sitting neatly in the middle under the page title. Here’s what that looks like:

So there you have it! A quick, effective, and community-tested way to ensure your images on Shopify pages appear exactly as you intend them – crisp, correctly sized, and perfectly centered. It's a small change that makes a huge difference in the professionalism and overall user experience of your store. Big thanks to Ploqo and Geronim0 for sharing this valuable insight with the community!

Share:

Start with the tools

Explore migration tools

See options, compare methods, and pick the path that fits your store.

Explore migration tools