Blog · How to

How to Fix Image Size in WordPress

Oct 6, 2026By Vladimir Mrkela
Share LinkedInX
How to Fix Image Size in WordPress

Images shape how a WordPress site looks and performs, but the same file can look crisp in one place and awkwardly cropped or blurry elsewhere.

That makes image sizing important for anyone who wants pages to look consistent across layouts and screen sizes.

Understanding how WordPress handles image dimensions can help you avoid distorted visuals and keep images suited to the spaces where they appear.

Here’s a closer look at fixing image sizes in WordPress.

Choose WordPress Image Sizes for Your Theme

Start by choosing image sizes that match the places they’ll appear in your theme. Before you upload files, check how your theme displays images in posts, pages, and archives. A large banner needs different dimensions than a small thumbnail, and using the right size helps keep layouts tidy.

Choose image sizes to fit each theme layout before uploading, keeping banners, thumbnails, and other images suited to their spaces.

Select Theme Image Dimensions

Open a few pages on your site and note where images appear. Check the width of the main content area, featured image, and sidebar. Choose dimensions that fit those spaces without stretching or cropping important details. For example, a 1200-pixel-wide image may suit a full-width feature, while a 400-pixel image may work for a card.

Map Sizes to Templates

Match each size to a template, such as a single post, category page, or gallery. Keep proportions consistent within each template, and test a sample image before updating your whole library.

Resize Images in the WordPress Editor

Once you’ve chosen sizes for your theme, you can adjust an image in the WordPress editor to fit a specific post or page. Select the image in your post, then use the toolbar or sidebar controls to change how it appears.

Adjust an image

  1. Click the image block to open its settings.
  2. Choose a preset size, such as Thumbnail, Medium, or Large, if available.
  3. For more control, use Adjusting image dimensions in block settings to enter a width or height. Keep the proportions linked when possible, so the image doesn’t look stretched.
  4. Check the preview on desktop and mobile, then revise the values if the image feels too large or small.

These WordPress editor image resizing shortcuts change display size, not the original file. To reduce file size before uploading, you can also resize and compress images without a noticeable loss of quality.

If you need the same dimensions across many posts, update the image size settings in your theme or use a consistent preset.

Crop WordPress Images Without Losing Details

To crop a WordPress image without losing important details, keep the original file intact and adjust the crop to focus on the subject.

In the Media Library, open the image editor, choose the Crop tool, and select the area you want to keep. Preview the result before saving, especially if the image appears in several places on your site.

Use these checks to preserve detail:

  • Keep faces, products, or key text inside the crop area.
  • Choose a crop ratio that matches the space where the image will appear.
  • Save a copy first, so you can restore the full image if needed.

When you crop image files, avoid trimming too tightly around the subject.

Leave a little space for different screen sizes, and check the result on the page where you’ll use it.

Fix Blurry or Distorted WordPress Images

Even a well-cropped image can look blurry or distorted if WordPress displays it at the wrong size or stretches it to fit a space. To fix the problem, check image resolution before uploading. Choose an image that’s at least as wide and tall as the space where you’ll display it. A small image enlarged beyond its original dimensions will lose sharpness.

Next, prevent image stretching by checking the image settings in your page or theme editor. Keep the image’s aspect ratio locked when you resize it, so its width and height change together. If the image looks squeezed, restore its original proportions rather than adjusting one dimension alone.

Also review the display size on desktop and mobile. Set a suitable maximum width, and use responsive image options when available. Preview your page at different screen sizes to confirm the image stays clear and proportional.

Regenerate WordPress Thumbnails After Size Changes

When you change image sizes in WordPress, existing thumbnails don’t automatically update, so they may still appear cropped or blurry.

Regenerate existing thumbnails after changing registered image dimensions to create new files that match your current settings.

Before you start, back up your site and check that your server has enough storage for extra image files. Then choose a regeneration method:

  • Install a trusted thumbnail regeneration plugin, and open its tools page.
  • Select the option to regenerate all images, or choose specific files if you only changed a few.
  • Keep the page open until processing finishes, especially on larger sites.

This process can replace outdated thumbnail files across the media library, but it won’t change your original images.

Afterward, clear your site and browser caches, then check key pages on desktop and mobile. If images still look wrong, review your theme’s registered sizes and regenerate again.

Frequently Asked Questions

How Do I Compress Images Before Uploading Them to WordPress?

Compress images before uploading by resizing them to your display dimensions and saving as optimized WebP or JPEG files. Use Image compression tools for smaller files, and Batch image resizing when processing multiple images at once.

Which Image File Formats Does WordPress Support?

WordPress image formats include JPEG, PNG, GIF, and WebP; you can also upload AVIF on supported, updated installations. Check format compatibility with your hosting setup and plugins, since support varies across WordPress versions and servers.

How Can I Add Alt Text to WordPress Images?

To add alt text, select an image in your WordPress Media Library, enter text in the Alt Text field, and save. Add alt text in Media Library; Write descriptive image alt tags that explain each image clearly.

Do Large Images Slow Down My WordPress Site?

Yes, large images can slow your WordPress site by increasing download times. Image file size impact matters, especially on mobile. Use compression and responsive image delivery to show visitors appropriately sized images and improve loading speed.

How Do I Prevent Hotlinking of My WordPress Images?

Prevent hotlinking by adding server rules that block other sites from loading your images, or install a security plugin. Protect Media Files, Block External Embeds, and allow trusted domains so your visitors can still view images.

Conclusion

To fix image sizes in WordPress, first match your theme’s image settings to the sizes your pages need. Resize or crop images in the editor, keeping the original file intact when possible. If an image looks blurry, upload a larger source rather than stretching a small one. After changing size settings, regenerate thumbnails so older uploads use the new dimensions. Check key pages on desktop and mobile, then adjust settings if images still appear cropped or distorted.

Tags
  • image resolution
  • media settings
  • WordPress image sizes

About the author

Vladimir Mrkela

Vladimir Mrkela

Senior WordPress Developer

I’m a senior WordPress developer and co-founder of Pixel Industry. I’ve spent more than 12 years building websites, custom plugins, and integrations for all kinds of projects. I enjoy working on complex architecture, solving tricky problems, and sharing what I learn along the way.

Ready to build?

Have a WordPress project that needs expert judgment?

Get a Free ConsultationTell us about your project and we will get back to you soon.