AV1 / AVIF is a new broadly adopted image file format, that allows great compression while retaining good image quality.
How to convert to AVIF on Windows
You need the Image Magick program to convert files in bulk, you can download it here: https://imagemagick.org/script/download.php
- Open the folder with the JPG or PNG files you want to convert.
- In the Windows Explorer file path, type CMD, and press enter
- This will open up a command prompt with the path set to the folder with the files you wish to convert. Copy and paste the command below, and change the file type variable accordingly.
- Press enter to run the command. You should start seeing images with the file suffix .avif appear in your folder. If not, try pressing F5 to refresh your folder. The conversion can take some time, depending on how many images are in the folder.
Command
Copy the following command, and paste it by right-clicking on the command prompt window:
magick mogrify -resize 2000 -format avif -sampling-factor 4:2:2 -quality 40 -metric SSIM -depth 8 -define heic:speed=2 *.jpg
You can replace the last *jpg with *png if you need to convert .png files.
You can replace the last *jpg with *png if you need to convert .png files.
Note that this command also scales the image to a maximum width of 2000px.