function avif (options) {
  return this.heif({ ...options, compression: 'av1' });
}
Use these AVIF options for output image.

AVIF image sequences are not supported.
Prebuilt binaries support a bitdepth of 8 only.

This feature is experimental on the Windows ARM64 platform
and requires a CPU with ARM64v8.4 or later.

@example
const data = await sharp(input)
  .avif({ effort: 2 })
  .toBuffer();

@example
const data = await sharp(input)
  .avif({ lossless: true })
  .toBuffer();

@since 0.27.0

@param {Object} [options] - output options
@param {number} [options.quality=50] - quality, integer 1-100
@param {boolean} [options.lossless=false] - use lossless compression
@param {number} [options.effort=4] - CPU effort, between 0 (fastest) and 9 (slowest)
@param {string} [options.chromaSubsampling='4:4:4'] - set to '4:2:0' to use chroma subsampling
@param {number} [options.bitdepth=8] - set bitdepth to 8, 10 or 12 bit
@returns {Sharp}
@throws {Error} Invalid options