summaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
Diffstat (limited to 'tpl')
-rw-r--r--tpl/images/images.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/tpl/images/images.go b/tpl/images/images.go
index b64456876..1d12aea72 100644
--- a/tpl/images/images.go
+++ b/tpl/images/images.go
@@ -18,8 +18,6 @@ import (
"image"
"sync"
- "github.com/disintegration/gift"
-
"github.com/pkg/errors"
"github.com/gohugoio/hugo/resources/images"
@@ -101,10 +99,6 @@ func (ns *Namespace) Filter(args ...interface{}) (resource.Image, error) {
img := args[len(args)-1].(resource.Image)
filtersv := args[:len(args)-1]
- filters := make([]gift.Filter, len(filtersv))
- for i, f := range filtersv {
- filters[i] = f.(gift.Filter)
- }
- return img.Filter(filters...)
+ return img.Filter(filtersv...)
}