Skip to content

Commit dc4cd61

Browse files
committed
Add IMGPROXY_WEBP_EFFORT and IMGPROXY_WEBP_PRESET configs docs
1 parent ee63aed commit dc4cd61

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docs/configuration/options.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,14 @@ Cookies can contain sensitive information. Be careful when using `IMGPROXY_COOKI
234234

235235
* [`IMGPROXY_WEBP_COMPRESSION`]: ((pro)) the compression method to use. Supported values are `lossy`, `near_lossless`, and `lossless`. Default: `lossy`
236236
* [`IMGPROXY_WEBP_SMART_SUBSAMPLE`]: ((pro)) when `true`, enables smart subsampling. Smart subsampling increases the resulting file size and compression time but improves quality. Default: `false`
237+
* [`IMGPROXY_WEBP_EFFORT`]: controls the CPU effort spent improving compression. The larger the value, the slower the encoding process but the better the compression. The value should be between 1 and 6. Default: `4`
238+
* [`IMGPROXY_WEBP_PRESET`]: a hint to the encoder about the type of image being compressed. Supported values are:
239+
* `default`: _(default)_ a general-purpose preset
240+
* `photo`: a digital picture, like portrait, inner shot
241+
* `picture`: an outdoor photograph, with natural lighting
242+
* `drawing`: a hand or line drawing, with high-contrast details
243+
* `icon`: a small-sized colorful image
244+
* `text`: a text image, with large areas of uniform color
237245

238246
### Advanced AVIF compression
239247

0 commit comments

Comments
 (0)