LinuxCommandLibrary

cavif

PNG/JPEG to AVIF converter.

TLDR

Convert a JPEG file to AVIF

$ cavif [path/to/file.jpg]
copy


Adjust the image quality (1-100) and convert a PNG file to AVIF
$ cavif --quality [60] [path/to/file.png]
copy


Set the output location explicitly
$ cavif [path/to/file.jpg] --output [path/to/file.avif]
copy


Overwrite the destination file if it already exists
$ cavif --overwrite [path/to/file.jpg]
copy

Copied to clipboard