ShortPixel Image Optimizer: The only WP plugin that creates AVIF images

AVIF images are the next big step in image compression, and we have already been talking about it. AVIF promises images 50% smaller than JPG, and still keeping the same image quality. In comparison, WebP makes the image about 30% smaller, so it’s easy to see why you will want AVIF.

Starting with version 4.22, ShortPixel Image Optimizer (SPIO) is able to generate AVIF images! No need to use any hacks or manually upload them to your site. You just need the good old ShortPixel Image Optimizer.

How to generate AVIF with ShortPixel

The process to generate AVIF images is as easy as always:

  1. Install ShortPixel Image Optimizer from the WordPress repository: Step-by-step guide to install and use ShortPixel Image Optimizer (SPIO)
  2. Go to Settings > ShortPixel > Advanced
  3. Look for the “Next Generation Images” section and activate the option “Also create AVIF versions of the images
  4. Start optimizing!

Notice that, for now, the creation of AVIF and/or WebP files with ShortPixel is dependent on the optimization of a file. This means that you must optimize an image in order to create its AVIF/WebP counterpart.

However, we are happy to share with you that we are working on a feature to generate AVIFs and WebPs independently of the optimization. Our aim is to have it ready for the next major version 5.0. We will keep you updated!

How to deliver AVIF with ShortPixel

If you want to serve AVIF files with ShortPixel, you can do that as well. Simply go to Settings > ShortPixel > Advanced (same place as before) and activate the option “Deliver the next generation versions of the images in the front-end“.

AVIF

You will see that you have two different methods to deliver the AVIF files. To learn more about them, click here.

It is important to know that the second method (without altering the page code, via .htaccess) will not work on NGINX servers. If your site is running on NGINX, and you do not want to use the first method (using the <picture> tag syntax), you will need to manually update your NGINX configuration files. For more information, we created a small tutorial on how to do that here: How to configure your web server to deliver AVIF images

How much does it cost?

Even though the generation of AVIF files is very CPU intensive and takes up a lot of resources, it will cost only 1 credit per AVIF file created. Take into account that depending on your theme and plugins, you will have a certain number of thumbnails attached to each image. Each of these thumbnails will also have an AVIF counterpart and will cost an additional credit.

Starting May 10th 2021, the same will apply to the generation of WebP files: each WebP file will cost 1 additional credit. To know more about why the WebP generation is not free anymore, check out this article.

Also, remember that as always, if an image cannot be optimized by at least 5 percent when using the Lossy or Glossy methods, its optimization will still be free of charge.

Separating features to save credits

Now, if you were already a ShortPixel client, you may remember that until now you were not able to deliver your WebP files without creating them first. Well, good news! With the most recent update we have separated the two features: you can now create your AVIF and/or WebP files with any other tool and choose to deliver them with ShortPixel. This way you will not spend any additional credits.

The process you need to follow is easy:

  1. Disable the options “Also create AVIF versions of the images” and “Also create WebP versions of the images”
  2. Enable the option “Deliver the next generation versions of the images in the front-end” and choose a delivery method.
  3. Upload your own WebP and/or AVIF files and if they have the same filename as the original image, but with the .webp/.avif extension (please also take into account all thumbnails!), then ShortPixel will deliver them

We are here to help you out if you have any questions, so feel free to send us a message!