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:
@@ -254,7 +254,7 @@ func ObjectFitImage(img image.Image, bbw float64, bbh float64, fit ImageFit, fil
|
||||
} else if fit == ImageFitContainTopLeft {
|
||||
destBounds = image.Rect(0, 0, dw, dh)
|
||||
} else if fit == ImageFitContainTopRight {
|
||||
destBounds = image.Rect(ow-dw, 0, dw, dh)
|
||||
destBounds = image.Rect(ow-dw, 0, ow, dh)
|
||||
} else if fit == ImageFitContainBottomLeft {
|
||||
destBounds = image.Rect(0, oh-dh, dw, oh)
|
||||
} else if fit == ImageFitContainBottomRight {
|
||||
|
Reference in New Issue
Block a user