hugo/resources
Bjørn Erik Pedersen 6a246d1152 Add images.Process filter
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
2023-09-24 11:54:29 +02:00
..
assets Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
images Add images.Process filter 2023-09-24 11:54:29 +02:00
internal Only invoke a given cached partial once 2023-01-25 17:35:23 +01:00
jsconfig all: Fix typos in function names and comments 2023-06-19 09:26:29 +02:00
kinds Deprecate taxonomyTerm 2023-07-28 15:14:24 +02:00
page Add $image.Process 2023-09-24 11:54:29 +02:00
postpub all: Fix comments for exported functions and packages 2023-05-18 21:25:27 +02:00
resource Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
resource_factories Try to make test more stable 2023-08-05 11:40:18 +02:00
resource_transformers Improve error messages for PostCSS etc. 2023-07-17 20:42:32 +02:00
testdata Add images.Opacity filter 2023-09-22 15:03:16 +02:00
docs.go Misc doc, code refactoring to improve documentation 2023-01-04 18:01:26 +01:00
errorResource.go Add $image.Process 2023-09-24 11:54:29 +02:00
image.go Add images.Process filter 2023-09-24 11:54:29 +02:00
image_cache.go resources: Fix spelling in method name 2023-07-30 21:12:33 +02:00
image_extended_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
image_test.go Add $image.Process 2023-09-24 11:54:29 +02:00
integration_test.go Add images.Process filter 2023-09-24 11:54:29 +02:00
post_publish.go Add basic "post resource publish support" 2020-04-07 21:59:20 +02:00
resource.go resources: Fix spelling in method name 2023-07-30 21:12:33 +02:00
resource_cache.go Add cache busting config to support Tailwind 3 2023-05-22 14:14:35 +02:00
resource_cache_test.go Improve the server assets cache invalidation logic 2019-08-13 18:09:46 +02:00
resource_metadata.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
resource_spec.go Replace the old log setup, with structured logging etc. 2023-06-18 13:03:04 +02:00
resource_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
testhelpers_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
transform.go Add $image.Process 2023-09-24 11:54:29 +02:00
transform_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00