Skip to content

Commit a6c0882

Browse files
authored
Fix resizing issue with Jimp.AUTO (#880) (#1202)
1 parent a626fb2 commit a6c0882

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/plugin-resize/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ export default () => ({
4848
}
4949

5050
// round inputs
51-
w = Math.round(w);
52-
h = Math.round(h);
51+
w = Math.round(w) || 1;
52+
h = Math.round(h) || 1;
5353

5454
if (typeof Resize2[mode] === "function") {
5555
const dst = {

0 commit comments

Comments
 (0)