From 3e7cc5b3dd2b3a65be540dfc6018c501b52dec07 Mon Sep 17 00:00:00 2001 From: Diretnan Domnan Date: Thu, 13 Mar 2025 19:37:46 +0100 Subject: [PATCH] Introducing quality levels --- src/content/partials/images/quality.mdx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/content/partials/images/quality.mdx b/src/content/partials/images/quality.mdx index 1e3d7ed0c414e41..3a7dadd45c92dc1 100644 --- a/src/content/partials/images/quality.mdx +++ b/src/content/partials/images/quality.mdx @@ -9,20 +9,34 @@ At the moment, this setting only works directly with [image transformations](/im 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. +We also allow setting one of the perceptual quality levels `high|medium-high|medium-low|low` + ```js quality=50 + + OR + + quality=low ``` ```js q=50 + + OR + + q=medium-high ``` ```js cf: {image: {quality: 50}} + + OR + + cf: {image: {quality: "high"}} ``` - \ No newline at end of file +