mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
Merge commit '9b0050e9aabe4be65c78ccf292a348f309d50ccd' as 'docs'
``` git subtree add --prefix=docs/ https://github.com/gohugoio/hugoDocs.git master --squash ``` Closes #11925
This commit is contained in:
36
docs/content/en/functions/images/Saturation.md
Normal file
36
docs/content/en/functions/images/Saturation.md
Normal file
@@ -0,0 +1,36 @@
|
||||
---
|
||||
title: images.Saturation
|
||||
description: Returns an image filter that changes the saturation of an image.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
aliases: []
|
||||
related:
|
||||
- functions/images/Filter
|
||||
- methods/resource/Filter
|
||||
returnType: images.filter
|
||||
signatures: [images.Saturation PERCENTAGE]
|
||||
toc: true
|
||||
---
|
||||
|
||||
The percentage must be in the range [-100, 500] where 0 has no effect.
|
||||
|
||||
## Usage
|
||||
|
||||
Create the filter:
|
||||
|
||||
```go-html-template
|
||||
{{ $filter := images.Saturation 65 }}
|
||||
```
|
||||
|
||||
{{% include "functions/images/_common/apply-image-filter.md" %}}
|
||||
|
||||
## Example
|
||||
|
||||
{{< img
|
||||
src="images/examples/zion-national-park.jpg"
|
||||
alt="Zion National Park"
|
||||
filter="Saturation"
|
||||
filterArgs="65"
|
||||
example=true
|
||||
>}}
|
Reference in New Issue
Block a user