Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit 1337857

Browse files
author
Julien Bier
committed
scaling: round destWidth and destHeight
1 parent a9eb2ab commit 1337857

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/load-image.js

+3
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@
258258
scaleDown()
259259
}
260260
}
261+
destWidth = Math.round(destWidth)
262+
destHeight = Math.round(destHeight)
263+
261264
if (useCanvas) {
262265
pixelRatio = options.pixelRatio
263266
if (pixelRatio > 1) {

0 commit comments

Comments
 (0)