Chapter 7. Tutorial: Optimize Your Site Step by Step

Step 2: Optimize Your Images Pro

Images are usually the heaviest part of a page. The Optimize Images service compresses them, so they download faster with no visible loss of quality, and can create WebP and AVIF versions (modern formats that are much smaller) and smaller copies for phones. The originals are backed up, so you can restore them.

This step only creates the optimized files. Your pages start using the WebP, AVIF and phone-sized versions in Step 4.

Procedure 7.4. Optimize your images
  1. Make sure your Download ID is entered.

  2. On the settings page, open the Optimize Images tab and check the options. The defaults suit most sites: lossy compression, WebP and AVIF generated, responsive images generated.

  3. Open the Optimize Images page and choose how to find your images:

    • Optimize By URLs crawls your site's pages and optimizes the images it finds on them. This is the easiest way to cover everything visitors actually see.

    • Optimize By Folders lets you pick folders or individual images from a file tree, for example your images or wp-content/uploads folder.

  4. Click the button to start and leave the page open until it finishes. A progress bar shows how far it has got.

Figure 7.5. Optimizing images
The Joomla Optimize Images page with the folder tree and the Optimize By Folders and Optimize By URLs buttons.

Joomla

The WordPress Optimize Images tab with the folder tree and the optimize buttons.

WordPress


Tip

A site with thousands of images can take a while, and your plan allows a certain number of images per hour. Let scheduled image optimization work through them in the background instead.

The original of each image is kept in the backup folder, and images are always optimized again from their originals, never from their optimized files. So when you change the image settings later (turn on AVIF, change the quality), optimizing again makes the new copies from the full-quality image. If you aren't happy with the result, the Restore Original Images utility puts the originals back. Delete Backup Images frees the disk space the originals use, but there is no undo, and images are then optimized again from their optimized files, which loses a little more quality each time.