Convert images from jpg, jpeg, tif, tiff, webp, png, gif, svg to avif format, a new format optimized to be used at web with or without lossing quality.
- Clone this repo;
- Open a terminal inside the downloaded folder;
- Run
npm install
;- Delete the txt files inside the folders;
- Put the original images at the
input
folder;- Run one of the following commands:
npm run convert:50
to convert it to avif format, with a 50% quality;npm run convert:80
to convert it to avif format, with a 80% quality;npm run convert:lossless
to convert it to avif format, without lossing quality.
Be patient, it take some minutes, depending of the number of images and the quality selected.