Optimising images for WordPress means balancing visual quality with the amount of data visitors must download. An image much larger than its display area can add unnecessary weight to a page. Start on your computer, then check the uploaded file and the Image block settings in WordPress.
1. Choose dimensions for the intended use
Decide whether the image will be a thumbnail, an article illustration or a wide cover. Prepare a copy with dimensions suited to that space, allowing for high-density screens when appropriate. There is no universal width: an image in a narrow column does not need the same dimensions as a full-width hero.
2. Choose a format and export quality
For photographs, consider JPEG or a modern format supported by your environment, such as WebP. Use PNG when transparency or the kind of artwork calls for it. Export with progressively stronger compression and inspect the result at 100%. Look for damaged detail and avoid making text in graphics hard to read.
3. Upload the web-ready copy
Keep the original and give the exported copy a descriptive filename. Open Media > Add Media File and upload it. Do not assume the upload screen automatically applies the best compression to every file. Additional conversions or optimisation depend on the website configuration and any tools that have been installed.
4. Check dimensions and file size
Open the attachment details and compare pixel dimensions with file size. The generic 1200 × 800 geometric illustration is around 30 KB; a detailed photograph at the same dimensions may be much larger. Consider both measurements together rather than assuming that pixel dimensions alone determine download weight.
5. Scale an existing image when needed
Use Edit Image > Scale to reduce the dimensions of an uploaded picture. Preserve its proportions and check the result before saving. Enlarging a small source cannot recreate missing detail. Scaling can correct oversized dimensions, but it does not replace careful format selection and compression before uploading.
6. Choose the block resolution
Select the image in your post, open its settings and check Resolution. Choose a suitable source size and inspect the page on a phone as well as a desktop. WordPress can generate several image sizes and serve responsive images. Check the actual visual result and page performance, especially in image-heavy posts.
Frequently asked questions
What file size should I aim for?
There is no correct number for every image. Use the smallest file that retains suitable quality for its purpose and consider the total weight of the page.
Does alternative text compress an image?
No. Alternative text communicates the purpose or content of an image. Compression, format and dimensions determine the file size.