@jimp/plugin-resize
Advanced tools
Comparing version 0.22.4 to 0.22.5
@@ -0,1 +1,17 @@ | ||
# v0.22.5 (Tue Feb 21 2023) | ||
:tada: This release contains work from a new contributor! :tada: | ||
Thank you, Charly Poirier ([@charlypoirier](https://github.com/charlypoirier)), for all your work! | ||
#### 🐛 Bug Fix | ||
- Fix resizing issue with Jimp.AUTO [#1202](https://github.com/jimp-dev/jimp/pull/1202) ([@charlypoirier](https://github.com/charlypoirier)) | ||
#### Authors: 1 | ||
- Charly Poirier ([@charlypoirier](https://github.com/charlypoirier)) | ||
--- | ||
# v0.22.1 (Mon Feb 06 2023) | ||
@@ -2,0 +18,0 @@ |
@@ -50,4 +50,4 @@ "use strict"; | ||
// round inputs | ||
w = Math.round(w); | ||
h = Math.round(h); | ||
w = Math.round(w) || 1; | ||
h = Math.round(h) || 1; | ||
if (typeof _resize2.default[mode] === "function") { | ||
@@ -54,0 +54,0 @@ const dst = { |
@@ -43,4 +43,4 @@ import { throwError, isNodePattern } from "@jimp/utils"; | ||
// 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") { | ||
@@ -47,0 +47,0 @@ const dst = { |
{ | ||
"name": "@jimp/plugin-resize", | ||
"version": "0.22.4", | ||
"version": "0.22.5", | ||
"description": "Resize an image.", | ||
@@ -24,3 +24,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@jimp/utils": "^0.22.4" | ||
"@jimp/utils": "^0.22.5" | ||
}, | ||
@@ -31,4 +31,4 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@jimp/custom": "^0.22.4", | ||
"@jimp/test-utils": "^0.22.4" | ||
"@jimp/custom": "^0.22.5", | ||
"@jimp/test-utils": "^0.22.5" | ||
}, | ||
@@ -38,3 +38,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "81bddef2b8a93841f4a6b561fff94cbd5d9f01e9" | ||
"gitHead": "8360424c88fff7aeef4c22f68f797c138e440274" | ||
} |
@@ -51,4 +51,4 @@ import { throwError, isNodePattern } from "@jimp/utils"; | ||
// round inputs | ||
w = Math.round(w); | ||
h = Math.round(h); | ||
w = Math.round(w) || 1; | ||
h = Math.round(h) || 1; | ||
@@ -55,0 +55,0 @@ if (typeof Resize2[mode] === "function") { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
227123
Updated@jimp/utils@^0.22.5