A photo can look small on a page and still make visitors download a large file. Before uploading an image to WordPress, prepare a copy that fits its job: enough detail for the layout, a suitable format, and careful compression.
This guide walks through a repeatable workflow for blog photos, screenshots, and illustrations. You do not need a new WordPress plugin to prepare the file in an image editor you already use.
Pixels and file size mean different things
Dimensions, such as 1600 × 1200 pixels, describe the image’s width and height. File size, shown in KB or MB, tells you how much data the file contains. Two images with identical dimensions can have very different file sizes because their detail, format, and compression differ.
Resizing changes the pixel dimensions. Compression reduces the data needed to store the image. Use both thoughtfully rather than trying to reach one universal file-size target.
1. Keep the original and choose a useful width
Save the original separately and work on a copy. Start with where the image will appear: a small card, the main article column, or a wide banner. Check the layout before choosing an export width.
For example, an image displayed at 800 CSS pixels wide may benefit from a 1600-pixel-wide source on a screen with a 2× pixel density. That is an example, not a rule for every website. A full-width banner and a thumbnail have different needs. Responsive image markup can offer several sizes so the browser can choose a suitable file; web.dev explains how image dimensions and display density work together.
2. Resize without stretching
Open the copy in your image editor and find its resize or scale controls. Keep the aspect ratio locked so changing the width also adjusts the height. A 4000 × 3000 image resized proportionally to 1600 pixels wide becomes 1600 × 1200.
If the layout needs a different shape, crop deliberately instead of forcing unrelated width and height values. Keep the important subject inside the crop. Avoid enlarging a tiny image and expecting it to recover missing detail.
For an image already uploaded, WordPress has basic cropping and scaling controls in Media → Library. Its Edit Media documentation explains the available tools. Keep your own original copy even when the editor offers a restore option.
3. Choose a format that suits the image
- JPEG: a practical starting point for photographs. Its lossy compression can reduce file size, but aggressive settings can damage fine detail.
- PNG: useful when you need transparency or crisp graphics. A large photograph saved as PNG can be unnecessarily heavy.
- WebP: supports lossy and lossless compression, as well as transparency. Compare the exported result rather than assuming it will always be the best choice.
See Google’s WebP overview for format details. WordPress supports WebP, but server-side image processing depends on your hosting environment; the WordPress WebP support notes explain that dependency. Confirm a new format uploads and displays correctly on your own site.
4. Compress, then compare the result
Export the resized copy and adjust compression or quality gradually. Compare the result with your original at the size readers will actually see. Look closely at faces, lettering, sharp edges, and smooth gradients. Blotches, halos, or broken-looking text mean the setting needs another pass.
There is no quality number or KB limit that works for every image. A simple illustration and a detailed photograph behave differently. Keep the smallest version that still communicates clearly. Save each new test from the original or a clean working copy, rather than repeatedly recompressing the same lossy file.
5. Upload and add useful alternative text
Give the file a readable name, then upload it through Media → Add New or an Image block. Add alternative text that communicates what an informative image contributes in its context. For a screenshot, describe the relevant control or result instead of listing every visible detail.
A purely decorative image should have an empty alt attribute. Do not fill that field with repeated keywords. W3C’s guidance on informative images and decorative images helps you decide. Check the image’s settings in the actual post too: changing Media Library text may not update images already inserted into content.
6. Preview on desktop and mobile
Open the page preview at a wide and a narrow width. Check that the image stays within the content area, its subject remains visible, and any essential text is readable. Check the featured-image crop separately because the theme may display it differently from an image inside the article.
If you are replacing an older image, update the intended block and preview again. Keep the old media item until you have checked whether other posts, pages, or templates still use it. Preparing one image does not justify deleting shared media.
Before you publish
- The original is saved separately
- The dimensions suit the layout and the image is not stretched
- The exported format works on your WordPress site
- Compression has not damaged important details
- The alternative text matches the image’s purpose
- The desktop and mobile previews look right
For background on how image delivery affects loading, read web.dev’s image performance guide. The useful habit is simple: resize, compress, and check the actual page before publishing.
Planning a wider round of website changes? Our guide to backing up WordPress before an update covers keeping a recovery point before you begin.