@jimp/plugin-scale
Advanced tools
Comparing version 0.17.6--canary.cd893f3.0 to 0.17.6
@@ -62,3 +62,3 @@ "use strict"; | ||
var f = Math.max(h / this.bitmap.height, w / this.bitmap.width); | ||
var f = w / h > this.bitmap.width / this.bitmap.height ? h / this.bitmap.height : w / this.bitmap.width; | ||
this.scale(f, mode); | ||
@@ -65,0 +65,0 @@ |
{ | ||
"name": "@jimp/plugin-scale", | ||
"version": "0.17.6--canary.cd893f3.0", | ||
"version": "0.17.6", | ||
"description": "scale an image.", | ||
"main": "dist/index.js", | ||
"module": "es/index.js", | ||
"repository": "jimp-dev/jimp", | ||
"types": "index.d.ts", | ||
@@ -22,3 +21,3 @@ "scripts": { | ||
"@babel/runtime": "^7.7.2", | ||
"@jimp/utils": "0.17.6--canary.cd893f3.0" | ||
"@jimp/utils": "^0.17.6" | ||
}, | ||
@@ -32,3 +31,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "cd893f3e113bcee78e58fdef28068a06a2aabd1e" | ||
"gitHead": "ce35a2fc40dc8e02b2b67225fe8f752e7e1cdb0e" | ||
} |
@@ -54,3 +54,6 @@ import { isNodePattern, throwError } from "@jimp/utils"; | ||
const f = Math.max(h / this.bitmap.height, w / this.bitmap.width); | ||
const f = | ||
w / h > this.bitmap.width / this.bitmap.height | ||
? h / this.bitmap.height | ||
: w / this.bitmap.width; | ||
this.scale(f, mode); | ||
@@ -57,0 +60,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
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
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
13085
129
+ Added@jimp/utils@0.17.10(transitive)
- Removed@jimp/utils@0.17.6--canary.cd893f3.0(transitive)
Updated@jimp/utils@^0.17.6