@jimp/plugin-scale
Advanced tools
Comparing version 0.17.5 to 0.17.6--canary.1137.5e459dc.0
@@ -62,3 +62,3 @@ "use strict"; | ||
var f = w / h > this.bitmap.width / this.bitmap.height ? h / this.bitmap.height : w / this.bitmap.width; | ||
var f = Math.max(h / this.bitmap.height, w / this.bitmap.width); | ||
this.scale(f, mode); | ||
@@ -65,0 +65,0 @@ |
{ | ||
"name": "@jimp/plugin-scale", | ||
"version": "0.17.5", | ||
"version": "0.17.6--canary.1137.5e459dc.0", | ||
"description": "scale an image.", | ||
"main": "dist/index.js", | ||
"module": "es/index.js", | ||
"repository": "jimp-dev/jimp", | ||
"types": "index.d.ts", | ||
@@ -21,3 +22,3 @@ "scripts": { | ||
"@babel/runtime": "^7.7.2", | ||
"@jimp/utils": "^0.17.5" | ||
"@jimp/utils": "0.17.6--canary.1137.5e459dc.0" | ||
}, | ||
@@ -31,3 +32,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "de36d7c895dbf2aa403186c21258c8710c6b5708" | ||
"gitHead": "5e459dcddf39031c2f852fb9b0cf8bb057455156" | ||
} |
@@ -54,6 +54,3 @@ import { isNodePattern, throwError } from "@jimp/utils"; | ||
const f = | ||
w / h > this.bitmap.width / this.bitmap.height | ||
? h / this.bitmap.height | ||
: w / this.bitmap.width; | ||
const f = Math.max(h / this.bitmap.height, w / this.bitmap.width); | ||
this.scale(f, mode); | ||
@@ -60,0 +57,0 @@ |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
12959
126
+ Added@jimp/utils@0.17.6--canary.1137.5e459dc.0(transitive)
- Removed@jimp/utils@0.17.10(transitive)