mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 22:16:02 +00:00
1 parent
61959591c1
commit
a1151b0fde
1 file changed
+13
@@ -34,6 +34,19 @@ A shorter version of the above, if you only need to apply the filter once:
|
||||
|
||||
The above will overlay `$logo` in the upper left corner of `$img` (at position `x=50, y=50`).
|
||||
|
||||
## Opacity
|
||||
|
||||
{{% funcsig %}}
|
||||
images.Opacity SRC OPACITY
|
||||
{{% /funcsig %}}
|
||||
|
||||
Opacity creates a filter that changes the opacity of an image.
|
||||
The OPACITY parameter must be in range (0, 1).
|
||||
|
||||
```go-html-template
|
||||
{{ $img := $img.Filter (images.Opacity 0.5 )}}
|
||||
```
|
||||
|
||||
## Text
|
||||
|
||||
Using the `Text` filter, you can add text to an image.
|
||||
|
||||
Reference in new issue
Block a user