Skip to content

Images resize and compression in WordPress

images,resize images,compress images

Large images cause your site to load slowly, resulting in a poor user experience.

Image optimization is the process of reducing the size of an image’s file using a plugin or script, which improves the page’s load time.

Each image can save 50-75 percent of its file size by resizing and then compressing it. When you have a lot of photographs on your site, this adds up and helps keep your database efficient!

Many image compressing software are available on the internet, but my favourites are CompressJPEG and CompressPNG. I’d also look into Bulk Resize Photos. They make bulk compression of up to 100 photos a breeze.

  1. To begin, open the image you want to put on your website. In Preview, Photo Viewer, or your preferred software, check the image dimensions. Proceed to Step 3 if the image is already the correct size.
  2. After that, resize the image to its proper dimensions. If you don’t know the exact dimensions, make sure the image is under 2500 pixels wide.
  3. Then, upload your image to CompressJPEG. The image will begin to compress.
  4. Finally, save and submit your image to your website
  5. Compare the original image to the compressed image to ensure that the quality has not been harmed.

Hover over the image and click “Settings” if the image was not compressed at all. After that, change the percent quality and click Apply. When using CompressJPEG, I normally select a quality threshold of 75 percent to 90 percent for JPEGs.

Improve the quality of images that have already been posted

You now know how to submit a picture to your WordPress site correctly!

But what about previously uploaded images?

What can I do to improve them?

This can be accomplished in a variety of ways.

Whatever method you use, make sure to back up your data first.

Alternatively, practise on a few photographs to be sure you’ve got the hang of it!

A) Plugin technique (any size site)

Use the ShortPixel plugin to automatically optimise past photos in batch.

ShortPixel offers a free subscription that allows you to upload up to 100 photos each month. If you have a larger site, I would propose paying $9.99 for a one-time bulk optimization of 10,000 pictures or $4.99 each month for up to 5,000 images. If you do not wish to use them again, you can cancel. Another advantage of ShortPixel is that when you submit new photographs, they instantly optimise them for you. I would also recommend Imagify, which is another great bulk image optimization tool.

B) Manual technique  (small sites)

The best way to do this is the old-fashioned manner if you have a small site (less than 10 pages). You will not be using a plugin as a result of this!

  • To begin, go to your WordPress Media Library and download each image one at a time.
  • Next, use CompressJPEG or CompressPNG to resize and compress your images.
  • Then, for each individual page on your site, re-upload your images.
  • Finally, double-check your website to ensure that there are no major flaws.
    Bonus: go back to your WordPress media collection and delete the old photos.

I understand that this way takes longer than utilising a plugin. If you have less than 10 pages on your site, this should take less than an hour. You’ll also discover and comprehend which photographs are the largest and cause the most optimization issues!