v0.0.459
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m16s

This commit is contained in:
Mike Schwörer 2024-05-20 00:20:31 +02:00
parent d8b2d01274
commit 73b80a66bc
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
package goext package goext
const GoextVersion = "0.0.458" const GoextVersion = "0.0.459"
const GoextVersionTimestamp = "2024-05-20T00:15:24+0200" const GoextVersionTimestamp = "2024-05-20T00:20:31+0200"

View File

@ -254,7 +254,7 @@ func ObjectFitImage(img image.Image, bbw float64, bbh float64, fit ImageFit, fil
} else if fit == ImageFitContainTopLeft { } else if fit == ImageFitContainTopLeft {
destBounds = image.Rect(0, 0, dw, dh) destBounds = image.Rect(0, 0, dw, dh)
} else if fit == ImageFitContainTopRight { } else if fit == ImageFitContainTopRight {
destBounds = image.Rect(ow-dw, 0, dw, dh) destBounds = image.Rect(ow-dw, 0, ow, dh)
} else if fit == ImageFitContainBottomLeft { } else if fit == ImageFitContainBottomLeft {
destBounds = image.Rect(0, oh-dh, dw, oh) destBounds = image.Rect(0, oh-dh, dw, oh)
} else if fit == ImageFitContainBottomRight { } else if fit == ImageFitContainBottomRight {