How to create AVIF images from PNG, JPEG, etc.

check out the command line solution by lovell.

Category Coding

further details here:

https://github.com/lovell/avif-cli

css-tricks.com/useful-tools-for-creating-avif-images/

 

1. Install the package

npm install avif

2. run the package

npx avif --input="./imgs/*" --output="./output/" --verbose

 

where

./imgs/ is the folder containing the images to be converted

./output is the foler containing the avif images