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

@jimp/plugin-crop

Package Overview
Dependencies
Maintainers
2
Versions
242
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jimp/plugin-crop - npm Package Compare versions

Comparing version 0.8.3 to 0.8.4-canary.798.377.0

55

index.d.ts
import { Jimp, ImageCallback } from '@jimp/core';
interface Crop<This = Jimp> {
class: {
crop(x: number, y: number, w: number, h: number, cb?: ImageCallback): This;
cropQuiet(
x: number,
y: number,
w: number,
h: number,
cb?: ImageCallback
): This;
interface CropClass {
crop(x: number, y: number, w: number, h: number, cb?: ImageCallback<this>): this;
cropQuiet(
x: number,
y: number,
w: number,
h: number,
cb?: ImageCallback<this>
): this;
autocrop(tolerance?: number, cb?: ImageCallback<this>): this;
autocrop(cropOnlyFrames?: boolean, cb?: ImageCallback<this>): this;
autocrop(
tolerance?: number,
cropOnlyFrames?: boolean,
cb?: ImageCallback<this>
): this;
autocrop(
options: {
tolerance?: number;
cropOnlyFrames?: boolean;
cropSymmetric?: boolean;
leaveBorder?: number;
},
cb?: ImageCallback<this>
): this;
}
autocrop(tolerance?: number, cb?: ImageCallback): This;
autocrop(cropOnlyFrames?: boolean, cb?: ImageCallback): This;
autocrop(
tolerance?: number,
cropOnlyFrames?: boolean,
cb?: ImageCallback
): This;
autocrop(
options: {
tolerance?: number;
cropOnlyFrames?: boolean;
cropSymmetric?: boolean;
leaveBorder?: number;
},
cb?: ImageCallback
): This;
}
interface Crop {
class: CropClass
}
export default function(): Crop;
{
"name": "@jimp/plugin-crop",
"version": "0.8.3",
"version": "0.8.4-canary.798.377.0",
"description": "crop an image.",

@@ -23,8 +23,8 @@ "main": "dist/index.js",

"dependencies": {
"@jimp/utils": "^0.8.3",
"@jimp/utils": "0.8.4-canary.798.377.0",
"core-js": "^2.5.7"
},
"devDependencies": {
"@jimp/custom": "^0.8.3",
"@jimp/test-utils": "^0.8.3"
"@jimp/custom": "0.8.4-canary.798.377.0",
"@jimp/test-utils": "0.8.4-canary.798.377.0"
},

@@ -37,3 +37,3 @@ "peerDependencies": {

},
"gitHead": "42e184cf4681b71bc1594c8822be3553d152b5e2"
"gitHead": "44c5ed24135627bcd9ddf9fa47d3c78e4a37457e"
}
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