mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'
This commit is contained in:
@@ -3,14 +3,11 @@ title: images.Contrast
|
||||
description: Returns an image filter that changes the contrast of an image.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
aliases: []
|
||||
related:
|
||||
- functions/images/Filter
|
||||
- methods/resource/Filter
|
||||
returnType: images.filter
|
||||
signatures: [images.Contrast PERCENTAGE]
|
||||
toc: true
|
||||
params:
|
||||
functions_and_methods:
|
||||
aliases: []
|
||||
returnType: images.filter
|
||||
signatures: [images.Contrast PERCENTAGE]
|
||||
---
|
||||
|
||||
The percentage must be in the range [-100, 100] where 0 has no effect. A value of `-100` produces a solid grey image, and a value of `100` produces an over-contrasted image.
|
||||
@@ -23,7 +20,7 @@ Create the filter:
|
||||
{{ $filter := images.Contrast -20 }}
|
||||
```
|
||||
|
||||
{{% include "functions/images/_common/apply-image-filter.md" %}}
|
||||
{{% include "/_common/functions/images/apply-image-filter.md" %}}
|
||||
|
||||
## Example
|
||||
|
||||
|
Reference in New Issue
Block a user