Convert JPEG/PNG to AVIF format using libavif.
Environment
- macOS Sonoma
- Apple M2 MacBook Pro
Install libavif
Install via Homebrew.
brew install libavifConvert JPEG/PNG to AVIF
Convert single file with the following command.
avifenc input.jpg output.avifConvert All Images in Directory
For batch processing all images in a directory with shell, prepare a batch processing script.
hsb.horse