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.5 to 0.17.6--canary.1137.5e459dc.0

2

dist/index.js

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

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