How to optimise images for your website using Squoosh.
Optimising your images is very important for keeping your website running as smooth as possible.
There are very noticeable differences in loading times between a web page with unoptimized images and one with optimised images.
There are a couple of things that you can easily adjust to reduce the file size of your images for a website:
1. Image Dimensions
2. Image Quality
Below we will guide you through optimising the image dimensions & quality using Squoosh.
Once on the website, you can click the big pink button to upload an image or you can also drag and drop an image from your files.
Step 2 - Optimising your image
Once the image is uploaded, the optimisation settings will appear.
There is a before/after slider that appears over your image, you can drag this left and right to preview the quality of your image with the adjusted settings.
Changing Image Dimensions
To adjust the image dimensions, click on the resize button to open the resize settings.
Here you can adjust the dimensions by percentage or by a target width/height.
Changing the width will automatically change the height and vice versa to preserve the aspect ratio.
The example image we are using is 3872px wide, by reducing the width to 1920px we have already reduced the file size from 6.7MB to 2.36MB. You will notice the height also changed automatically.
An ideal width for a banner image is 1920px
Changing Image Quality
Once you have the desired image size, you can adjust the quality.
To adjust the quality, you can use the 'Quality' slider shown below.
By using the before/after slider you can see how much the quality slider effects the end result.
Try and find a balance between image quality and file size.
The ideal file size ranges from 100kb - 400kb
Step 3 - Download Your Image
Once you are happy with the optimisation settings, all you need to do to is click the blue download button shown below.
Now you will have an optimised image ready to upload to your website.