From acdfc1064e77b2e4c78981c7c1988b21331d91d2 Mon Sep 17 00:00:00 2001 From: Nolan Evans <22493+nolman@users.noreply.github.com> Date: Thu, 23 May 2024 00:10:34 -0700 Subject: [PATCH] handle resizing watermarks (#435) --- vips/filter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vips/filter.go b/vips/filter.go index 155e6789e..6c3b98f73 100644 --- a/vips/filter.go +++ b/vips/filter.go @@ -48,7 +48,7 @@ func (v *Processor) watermark(ctx context.Context, img *Image, load imagor.LoadF h = img.PageHeight() * h / 100 } if overlay, err = v.NewThumbnail( - ctx, blob, w, h, InterestingNone, SizeDown, n, 1, 0, + ctx, blob, w, h, InterestingNone, SizeBoth, n, 1, 0, ); err != nil { return }