diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-04-21 10:59:13 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-04-27 23:53:56 +0200 |
commit | fa80fe3c8ab523846178f94fdc65c997d8eef10c (patch) | |
tree | 4266bc03b2f594ffdb10b87d7956d2ed956f4bec /tpl | |
parent | 11047534e47f2f2c710a6f8504d7415ff27d6024 (diff) |
Some godoc adjustments and image struct renames
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/images/images.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tpl/images/images.go b/tpl/images/images.go index ad3b5d9b3..20af019cf 100644 --- a/tpl/images/images.go +++ b/tpl/images/images.go @@ -21,7 +21,6 @@ import ( "github.com/pkg/errors" "github.com/gohugoio/hugo/resources/images" - "github.com/gohugoio/hugo/resources/resource" // Importing image codecs for image.DecodeConfig _ "image/gif" @@ -92,12 +91,12 @@ func (ns *Namespace) Config(path any) (image.Config, error) { return config, nil } -func (ns *Namespace) Filter(args ...any) (resource.Image, error) { +func (ns *Namespace) Filter(args ...any) (images.ImageResource, error) { if len(args) < 2 { return nil, errors.New("must provide an image and one or more filters") } - img := args[len(args)-1].(resource.Image) + img := args[len(args)-1].(images.ImageResource) filtersv := args[:len(args)-1] return img.Filter(filtersv...) |