diff options
Diffstat (limited to 'resources/transform.go')
-rw-r--r-- | resources/transform.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/resources/transform.go b/resources/transform.go index 72b9479df..0792515c4 100644 --- a/resources/transform.go +++ b/resources/transform.go @@ -21,6 +21,7 @@ import ( "strings" "sync" + "github.com/disintegration/gift" "github.com/spf13/afero" bp "github.com/gohugoio/hugo/bufferpool" @@ -172,6 +173,10 @@ func (r *resourceAdapter) Fit(spec string) (resource.Image, error) { return r.getImageOps().Fit(spec) } +func (r *resourceAdapter) Filter(filters ...gift.Filter) (resource.Image, error) { + return r.getImageOps().Filter(filters...) +} + func (r *resourceAdapter) Height() int { return r.getImageOps().Height() } |