Skip to content

Commit

Permalink
Fix resizing issue with Jimp.AUTO (#880) (#1202)
Browse files Browse the repository at this point in the history
  • Loading branch information
charleprr authored Feb 21, 2023
1 parent a626fb2 commit a6c0882
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-resize/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export default () => ({
}

// round inputs
w = Math.round(w);
h = Math.round(h);
w = Math.round(w) || 1;
h = Math.round(h) || 1;

if (typeof Resize2[mode] === "function") {
const dst = {
Expand Down

0 comments on commit a6c0882

Please sign in to comment.