Yes, with some caveats.
As you know, ShortPixel Image Optimizer (SPIO) can create WebP and/or AVIF files when your Media Library is optimized. Moreover, you can also deliver them to compatible browsers:
Steps #
If you have your own WebP/AVIF files and want ShortPixel to deliver them, you just need to do the following:
- Enable one of ShortPixel’s local WebP/AVIF delivery options. For that, go to your ShortPixel dashboard and then to Settings > ShortPixel > WebP/AVIF & CDN. Enable the “Serve WebP/AVIF images from locally hosted files (without using a CDN)” option and then choose one of the two sub-options.
- Upload your WebP/AVIF files to the same folder as your original images with the same name but different extension (.webp or .avif). For example:
Caveats #
- If you do not have the original file (JPG, PNG or GIF), ShortPixel will ignore the WebP/AVIF file you uploaded. In other words, you must have the original file next to the WebP/AVIF file if you want to use ShortPixel’s delivery features.
- If you have enabled the WebP/AVIF file creation (different from “delivery”), and have not yet optimized your WebP files, and have uploaded your own files, ShortPixel will see an existing .webp or .avif file when optimizing your files and therefore create a .jpg.webp or .jpg.avif to avoid overwriting the file you have already uploaded. For that reason, we recommend to simply turn off the “Create WebP Images” / “Create AVIF Images” options.