Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jimp/plugin-scale

Package Overview
Dependencies
Maintainers
2
Versions
215
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jimp/plugin-scale - npm Package Compare versions

Comparing version 0.17.6--canary.cd893f3.0 to 0.17.6

2

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc