Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #59 from GregBrimble/master
Browse files Browse the repository at this point in the history
Add AVIF Format for Image Resizing
  • Loading branch information
1000hz committed Sep 10, 2020
2 parents 83c2a10 + daa8348 commit 69168ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 69168ea

Please sign in to comment.