From daa8348714f6677188c4220ef756e1da5f67daa1 Mon Sep 17 00:00:00 2001 From: Greg Brimble Date: Thu, 10 Sep 2020 11:06:38 +0100 Subject: [PATCH] Add AVIF Format for Image Resizing --- index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 4c51c1cf..0addd600 100644 --- a/index.d.ts +++ b/index.d.ts @@ -106,13 +106,14 @@ interface RequestInitCfProperties { quality?: number; /** * Output format to generate. It can be: + * - avif: generate images in AVIF format. * - webp: generate images in Google WebP format. Set quality to 100 to get * the WebP-lossless format. * - json: instead of generating an image, outputs information about the * image, in JSON format. The JSON object will contain image size * (before and after resizing), source image’s MIME type, file size, etc. */ - format?: 'webp' | 'json'; + format?: 'avif' | 'webp' | 'json'; /** * What EXIF data should be preserved in the output image. Note that EXIF * rotation and embedded color profiles are always applied ("baked in" into