Skip to content

Commit 9f806b6

Browse files
committed
Add IMGPROXY_AVIF_SUBSAMPLE and avif_options docs
1 parent e12bf2f commit 9f806b6

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

docs/configuration/options.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,10 @@ Cookies can contain sensitive information. Be careful when using `IMGPROXY_COOKI
247247
### Advanced AVIF compression
248248

249249
* [`IMGPROXY_AVIF_SPEED`]: controls the CPU effort spent improving compression. The lowest speed is at 0 and the fastest is at 9. Default: `8`
250+
* [`IMGPROXY_AVIF_SUBSAMPLE`]: ((pro)) controls when chroma subsampling is used. Supported values are:
251+
* `auto`: _(default)_ use subsampling when the image is saved with quality less than `90`
252+
* `on`: always use subsampling
253+
* `off`: never use subsampling
250254

251255
### Advanced JPEG XL compression
252256

docs/usage/processing.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,15 @@ webpo:%compression:%smart_subsample:%preset
861861

862862
Allows redefining WebP saving options. All arguments have the same meaning as with the [Advanced WebP compression](../configuration/options.mdx#advanced-webp-compression) configs. All arguments are optional and can be omitted.
863863

864+
### AVIF options ((pro)) {#avif-options}
865+
866+
```imgproxy_url_option
867+
avif_options:%subsample
868+
avifo:%subsample
869+
```
870+
871+
Allows redefining AVIF saving options. All arguments have the same meaning as with the [Advanced AVIF compression](../configuration/options.mdx#advanced-avif-compression) configs. All arguments are optional and can be omitted.
872+
864873
### Format
865874

866875
```imgproxy_url_option

0 commit comments

Comments
 (0)