Skip to content

Commit

Permalink
apply the fix for the black line pr h2non#250 on main repo thx @lasto…
Browse files Browse the repository at this point in the history
  • Loading branch information
evrenkutar committed Jul 24, 2019
1 parent f1ceb5f commit 288921f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion image.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func calculateDestinationFitDimension(imageWidth, imageHeight, fitWidth, fitHeig
fitHeight = int(math.Round(float64(fitWidth) * float64(imageHeight) / float64(imageWidth)))
} else {
// constrained by height
fitWidth = int(math.Round(float64(fitHeight) * float64(imageWidth) / float64(imageHeight)))
fitWidth = int(math.Ceil(float64(fitHeight) * float64(imageWidth) / float64(imageHeight)))
}

return fitWidth, fitHeight
Expand Down

0 comments on commit 288921f

Please sign in to comment.