Skip to content
This repository has been archived by the owner on Sep 11, 2022. It is now read-only.

Fix issue when checking the image size #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resize.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down