diff --git a/resize.go b/resize.go index 0d7fbf6..549d425 100644 --- a/resize.go +++ b/resize.go @@ -89,7 +89,7 @@ func Resize(width, height uint, img image.Image, interp InterpolationFunction) i } // Trivial case: return input image - if int(width) == img.Bounds().Dx() && int(height) == img.Bounds().Dy() { + if int(width) == img.Bounds().Max.X && int(height) == img.Bounds().Max.Y { return img }