Clarify hint option in image processing spec

This commit is contained in:
Joe Mooring 2023-11-10 10:05:03 -08:00 committed by Joe Mooring
parent 310849daa5
commit 526d06b90a
3 changed files with 9 additions and 4 deletions

View File

@ -346,9 +346,9 @@ The default value is 75. You may override the default value in the [site configu
### Hint ### Hint
<!-- Specifies a libwebp preset, not a libwebp image hint. --> Applicable to WebP images, this option corresponds to a set of predefined encoding parameters, and is equivalent to the `-preset` flag for the [`cwebp`] encoder.
Applicable to WebP images, this option corresponds to a set of predefined encoding parameters. [`cwebp`]: https://developers.google.com/speed/webp/docs/cwebp
Value|Example Value|Example
:--|:-- :--|:--

View File

@ -66,7 +66,10 @@ quality
``` ```
hint hint
: Applicable to WebP images. Specify zero or one of `drawing`, `icon`, `photo`, `picture`, or `text`. Default is `photo`. See&nbsp;[details](/content-management/image-processing/#hint). : Applicable to WebP images and equivalent to the `-preset` flag for the [`cwebp`] encoder. Specify zero or one of `drawing`, `icon`, `photo`, `picture`, or `text`. Default is `photo`. See&nbsp;[details](/content-management/image-processing/#hint).
[`cwebp`]: https://developers.google.com/speed/webp/docs/cwebp
```go-html-template ```go-html-template
{{ $filter := images.Process "webp" "icon" }} {{ $filter := images.Process "webp" "icon" }}

View File

@ -25,7 +25,9 @@ quality
: Applicable to JPEG and WebP images. Optionally specify `qN` where `N` is an integer in the range [0, 100]. Default is `75`. See&nbsp;[details](/content-management/image-processing/#quality). : Applicable to JPEG and WebP images. Optionally specify `qN` where `N` is an integer in the range [0, 100]. Default is `75`. See&nbsp;[details](/content-management/image-processing/#quality).
hint hint
: Applicable to WebP images. Specify zero or one of `drawing`, `icon`, `photo`, `picture`, or `text`. Default is `photo`. See&nbsp;[details](/content-management/image-processing/#hint). : Applicable to WebP images and equivalent to the `-preset` flag for the [`cwebp`] encoder. Specify zero or one of `drawing`, `icon`, `photo`, `picture`, or `text`. Default is `photo`. See&nbsp;[details](/content-management/image-processing/#hint).
[`cwebp`]: https://developers.google.com/speed/webp/docs/cwebp
background color background color
: When converting a PNG or WebP with transparency to a format that does not support transparency, optionally specify a background color using a 3-digit or a 6-digit hexadecimal color code. Default is `#ffffff` (white). See&nbsp;[details](/content-management/image-processing/#background-color). : When converting a PNG or WebP with transparency to a format that does not support transparency, optionally specify a background color using a 3-digit or a 6-digit hexadecimal color code. Default is `#ffffff` (white). See&nbsp;[details](/content-management/image-processing/#background-color).