Set output format to AVIF. Requires an OS AV1 encoder (macOS on Apple Silicon M3+, or Windows with the AV1 Video Extension) — the terminal rejects with error.code === "ERR_IMAGE_FORMAT_UNSUPPORTED" elsewhere.
method
Image.avif
avif(
options?: { quality: number }
): this;