Skip to content

Commit

Permalink
fix: do not set SizeBoth when the aspect ratio for the thumbnail is n…
Browse files Browse the repository at this point in the history
…ot set
  • Loading branch information
jvahldick committed Oct 12, 2023
1 parent aeef301 commit 46a2ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vips/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (v *Processor) watermark(ctx context.Context, img *Image, load imagor.LoadF
}
} else {
if overlay, err = v.NewThumbnail(
ctx, blob, v.MaxWidth, v.MaxHeight, InterestingNone, SizeBoth, n, 1, 0,
ctx, blob, v.MaxWidth, v.MaxHeight, InterestingNone, SizeDown, n, 1, 0,
); err != nil {
return
}
Expand Down

0 comments on commit 46a2ff5

Please sign in to comment.