diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-06-08 18:47:53 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-06-08 18:47:53 +0200 |
commit | 162f41d0efdd4a5e12e489cf8ecf8490b45884da (patch) | |
tree | a7e2337c45a581e150d35b3be97afb52b1e4de27 /docs/content/en/content-management/image-processing/index.md | |
parent | 552cef5c576ae4dbf4626f77f3c8b15b42a9e7f3 (diff) | |
parent | 32ba623541d74ee0b7ae4efb1b8326dc49af28b8 (diff) |
Merge commit '32ba623541d74ee0b7ae4efb1b8326dc49af28b8'
Diffstat (limited to 'docs/content/en/content-management/image-processing/index.md')
-rw-r--r-- | docs/content/en/content-management/image-processing/index.md | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/docs/content/en/content-management/image-processing/index.md b/docs/content/en/content-management/image-processing/index.md index 9eefa1f73..40af0d6ab 100644 --- a/docs/content/en/content-management/image-processing/index.md +++ b/docs/content/en/content-management/image-processing/index.md @@ -167,21 +167,23 @@ For color codes, see https://www.google.com/search?q=color+picker **Note** that you also set a default background color to use, see [Image Processing Config](#image-processing-config). -### JPEG and Webp Quality +### JPEG and WebP Quality -Only relevant for JPEG and Webp images, values 1 to 100 inclusive, higher is better. Default is 75. +Only relevant for JPEG and WebP images, values 1 to 100 inclusive, higher is better. Default is 75. ```go {{ $image.Resize "600x q50" }} ``` -{{< new-in "0.83.0" >}} Webp support was added in Hugo 0.83.0. +{{< new-in "0.83.0" >}} WebP support was added in Hugo 0.83.0. ### Hint {{< new-in "0.83.0" >}} -Hint about what type of image this is. Currently only used when encoding to Webp. + {{< new-in "0.83.0" >}} + +Hint about what type of image this is. Currently only used when encoding to WebP. Default value is `photo`. @@ -227,12 +229,14 @@ See https://github.com/disintegration/imaging for more. If you want to trade qua By default the images is encoded in the source format, but you can set the target format as an option. -Valid values are `jpg`, `png`, `tif`, `bmp`, and `gif`. +Valid values are `jpg`, `png`, `tif`, `bmp`, `gif` and `webp`. ```go {{ $image.Resize "600x jpg" }} ``` +{{< new-in "0.83.0" >}} WebP support was added in Hugo 0.83.0. + ## Image Processing Examples _The photo of the sunset used in the examples below is Copyright [Bjørn Erik Pedersen](https://commons.wikimedia.org/wiki/User:Bep) (Creative Commons Attribution-Share Alike 4.0 International license)_ @@ -274,10 +278,10 @@ You can configure an `imaging` section in `config.toml` with default image proce # See https://github.com/disintegration/imaging resampleFilter = "box" -# Default JPEG or WEBP quality setting. Default is 75. +# Default JPEG or WebP quality setting. Default is 75. quality = 75 -# Default hint about what type of image. Currently only used for Webp encoding. +# Default hint about what type of image. Currently only used for WebP encoding. # Default is "photo". # Valid values are "picture", "photo", "drawing", "icon", or "text". hint = "photo" |