scaled images are those whose size corresponds exactly to the size defined in CSS or HTML. Say a user of a website carries a dimension image of 400 x 400 and uses it as a miniature 40 x 40 using HTML / CSS. This means that the browser will have to first download the large file and reduce it before displaying it. A more efficient method would be to resize the image to 40 x 40 so that the browser did not have to download and zoom out inefficiently.
The use of appropriately sized image can save many bytes of data and improve the performance of your website, especially on mobile devices or tablets. A scaled image will occupy less space, will load faster and reduce the use of resources. It is also one of the recommendations provided by website optimization tools. Having a better score will improve the ranking of your website in Google and boost SEO.
Before beginning this guide, you need the following:
For this step, we recommend using GTmetrix because it also specifies the exact image dimensions that should be used.
As an example, we analyze a WordPress site created quickly with GTmetrix and receive a list of images with its exact location and the recommended values.
According to the analysis, the response to a scale image reduce the size of each image in more than 50% percent. The more image have, the faster will be loaded after the climb.
In order to reduce your photos, you must first download the files. The images specified in Step 1 can be downloaded using any FTP client. After that, you can use an image editor (Photoshop) or online tools to climb the images. Using PicResize we scale all images to the recommended ranges.
We also recommend preserving the same file name in the pictures. This way, you only need to replace the old images without having to make changes to the script / code. Once the old images are replaced with the newly dimensioned, the only thing left is to test again.
For comparison, here are the results after uploading properly scaled images:
The most important thing is to make sure that the returned images have the same file name to avoid 404 errors.
In this brief guide, we learn how to serve scaled images and thus reduce the use of resources and improve the speed and site performance. The best part is that no coding knowledge is required for this. But if you have been in doubt, contact our support team.
Improving site performance: leveraging the browser cache
Improving site performance: gzip compression
Improving site performance: using JPEG p rogressivas
Improving Website Performance: Enabling Keep-Alive
Improving Website Performance: Using a CDN