This post explores optimising images with WordPress and some of the best practices for doing so. There are many different ways to ensure images are uploaded correctly with WordPress so in this post we’ll only touch on a few of the basics for those looking to improve image optimisation or just getting to grips with it.
Before we explore some of the methods for optimising images with WordPress it’s important to first understand why you would want to do this. So we’ve covered some of the main reasons below:
1. Site speed benefits – Having smaller images on your site will speed your website up, the smaller the image from a data perspective the quicker it will be downloaded. For example a 1MB image will take longer to download than a 200kb image.
2. SEO benefits – Search engines tend to favour sites that load faster, therefore if the image sizes on your website are reduced and your pages load quickly your site has the potential to rank better than similar sites that load slowly.
3. User Experience Benefits – A site that loads faster for the user will generally provide a better experience when using the site.
4. Reduced server load – Not only does uploading larger image sizes increase the bandwidth usage of your site it will directly increase the server disk space, this may require you to spend more on hosting than you need to.
As shown above there are some very clear reasons for optimising images when using WordPress so now let’s take a look at some of the best practices and how to optimise your images.
1. Optimising images before uploading them to WordPress
By ensuring that any images you upload to WordPress aren’t overly large, in most circumstances images under 350kb will be fine on most devices. This of course depends on the size of the image however, for example a slider image may need to be larger and a thumbnail picture won’t need to be as big. When images are uploaded to WordPress the site creates multiple versions of that image e.g. the Thumbnail version, full size version etc. this further reduces the size of the media library on your site so by keeping the initial image small you keep the overall data size that the image adds to a reasonable level.
2. Scaling image sizes once images are uploaded to the media library
This is a less effective way to scale images as the original image file will still be stored on the server but it will at least serve the smaller image on the front end of the site. To do this simply upload an image to the WordPress media library, click edit and then set the pixel width. For example, if you upload an image that is 1500 x 1500 pixels that is being used in a section such as a product image that will never be above 500×500 pixels in size, by setting it to 500 x 500 you will considerably reduce the data size of that image making it load much faster with little to no loss in quality.
3. Using plugins with WordPress to compress images
This can be a good option when your site has a considerable amount of images on it as the plugin will do most or all of the work to compress them size wise. Some good examples of plugins are:
1. Smush – https://wordpress.org/plugins/wp-smushit
2. Imagify – https://wordpress.org/plugins/imagify
3. WP Optimize – https://wordpress.org/plugins/wp-optimize
These are only some of the image plugins available and there are a number of great ones throughout the WordPress plugin repository.
Using a CDN:
Another option for improving image performance on your website is to use a CDN which stands for Content Delivery Network. A CDN effectively sits between your site and the user storing images on the CDN’s servers providing overall better global delivery and performance for images.
Serving Images in Next Generation Formats:
Serving images in Next Generation formats can be a great way to speed your site up. We won’t go into detail about it in this article as it’s a topic entirely in itself however formats such as Jpeg2000 and Webp have the potential to provide higher quality images whilst using less data.
Further reading:
5 great places to find free stock images
We hope this helps when it comes to optimising images with your WordPress site. We’d appreciate a share or any comments if you found this useful, thanks!








