mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
6a246d1152
This allows for constructs like: ``` {{ $filters := slice (images.GaussianBlur 8) (images.Grayscale) (images.Process "jpg q30 resize 200x") }} {{ $img = $img | images.Filter $filters }} ``` Note that the `action` option in `images.Process` is optional (`resize` in the example above), so you can use the above to just set the target format, e.g.: ``` {{ $filters := slice (images.GaussianBlur 8) (images.Grayscale) (images.Process "jpg") }} {{ $img = $img | images.Filter $filters }} ``` Fixes #8439 |
||
---|---|---|
.. | ||
exif | ||
webp | ||
color.go | ||
color_test.go | ||
config.go | ||
config_test.go | ||
filters.go | ||
filters_test.go | ||
image.go | ||
image_resource.go | ||
opacity.go | ||
overlay.go | ||
process.go | ||
resampling.go | ||
smartcrop.go | ||
text.go |