Skip to content

Commit a99584e

Browse files
authored
Introducing quality levels (#20802)
1 parent ed295f6 commit a99584e

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/content/partials/images/quality.mdx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,34 @@ At the moment, this setting only works directly with [image transformations](/im
99

1010
Specifies quality for images in JPEG, WebP, and AVIF formats. The quality is in a 1-100 scale, but useful values are between `50` (low quality, small file size) and `90` (high quality, large file size). `85` is the default. When using the PNG format, an explicit quality setting allows use of PNG8 (palette) variant of the format.
1111

12+
We also allow setting one of the perceptual quality levels `high|medium-high|medium-low|low`
13+
1214
<Tabs>
1315
<TabItem label="URL format">
1416
```js
1517
quality=50
18+
19+
OR
20+
21+
quality=low
1622
```
1723
</TabItem>
1824
<TabItem label="URL format alias">
1925
```js
2026
q=50
27+
28+
OR
29+
30+
q=medium-high
2131
```
2232
</TabItem>
2333
<TabItem label="Workers">
2434
```js
2535
cf: {image: {quality: 50}}
36+
37+
OR
38+
39+
cf: {image: {quality: "high"}}
2640
```
2741
</TabItem>
28-
</Tabs>
42+
</Tabs>

0 commit comments

Comments
 (0)