Skip to content

Commit

Permalink
chore: docs for quality and format (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
inian committed Apr 9, 2023
1 parent 3aa1b27 commit 2c3fcde
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,16 @@ export interface TransformOptions {
*/
resize?: 'cover' | 'contain' | 'fill'
/**
* Set the quality of the returned image, this is percentage based, default 80
* Set the quality of the returned image.
* A number from 20 to 100, with 100 being the highest quality.
* Defaults to 80
*/
quality?: number
/**
* Specify the format of the image requested.
*
* When using 'origin' we force the format to be the same as the original image,
* bypassing automatic browser optimisation such as webp conversion
* When using 'origin' we force the format to be the same as the original image.
* When this option is not passed in, images are optimized to modern image formats like Webp.
*/
format?: 'origin'
}

0 comments on commit 2c3fcde

Please sign in to comment.