A CLI tool to convert AV1 Image File Format (AVIF) files to JPEG.
- Node.js (tested with v16.15.0)
- npm (tested with 8.9.0)
- sharp # High performance Node.js image processing
Clone from this repository and install sharp by npm install
.
git clone https://github.com/funasoul/avif2jpg.git
cd avif2jpg
npm install sharp
# Convert all AVIF files under current directory with 85% (default) quality.
node avif2jpg.js .
# Convert all AVIF files under ~/Downloads/images/ directory with 70% quality.
node avif2jpg.js ~/Downloads/images 70