mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
docs: Even more about images.Process
This commit is contained in:
@@ -17,7 +17,7 @@ See [images.Filter](#filter) for how to apply these filters to an image.
|
|||||||
{{< new-in "0.119.0" >}}
|
{{< new-in "0.119.0" >}}
|
||||||
|
|
||||||
{{% funcsig %}}
|
{{% funcsig %}}
|
||||||
images.Overlay SRC SPEC
|
images.Process SRC SPEC
|
||||||
{{% /funcsig %}}
|
{{% /funcsig %}}
|
||||||
|
|
||||||
A general purpose image processing function.
|
A general purpose image processing function.
|
||||||
@@ -70,7 +70,7 @@ The OPACITY parameter must be in range (0, 1).
|
|||||||
{{ $img := $img.Filter (images.Opacity 0.5 )}}
|
{{ $img := $img.Filter (images.Opacity 0.5 )}}
|
||||||
```
|
```
|
||||||
|
|
||||||
Note that target format must support transparency, e.g. PNG. If the source image is e.g. JPG, the most effective way would be to combine it with the [`Process`] filter:
|
This filter is most useful for target formats that support transparency, e.g. PNG. If the source image is e.g. JPG, the most effective way would be to combine it with the [`Process`] filter:
|
||||||
|
|
||||||
```go-html-template
|
```go-html-template
|
||||||
{{ $png := $jpg.Filter
|
{{ $png := $jpg.Filter
|
||||||
|
Reference in New Issue
Block a user