v0.0.459
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m16s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m16s
This commit is contained in:
parent
d8b2d01274
commit
73b80a66bc
@ -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"
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user