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

@types/imagemagick

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/imagemagick - npm Package Compare versions

Comparing version 0.0.32 to 0.0.33

57

imagemagick/index.d.ts

@@ -10,14 +10,26 @@ // Type definitions for imagemagick

import child_process = require("child_process");
export declare function identify(path: string, callback: (err: Error, features: Features) => void): child_process.ChildProcess;
export declare function identify(path: any[], callback: (err: Error, result: string) => void): child_process.ChildProcess;
export declare function identify(
path: string,
callback: (err: Error, features: Features) => void,
): child_process.ChildProcess;
export declare function identify(
path: any[],
callback: (err: Error, result: string) => void,
): child_process.ChildProcess;
export declare namespace identify {
export var path: string;
}
export declare function readMetadata(path: string, callback: (err: Error, result: any) => void): child_process.ChildProcess;
export declare function readMetadata(
path: string,
callback: (err: Error, result: any) => void,
): child_process.ChildProcess;
export declare function convert(args: any, callback: (err: Error, result: any) => void): child_process.ChildProcess;
export declare function convert(args: any, timeout: number, callback: (err: Error, result: any) => void): child_process.ChildProcess;
export declare function convert(
args: any,
timeout: number,
callback: (err: Error, result: any) => void,
): child_process.ChildProcess;
export declare namespace convert {

@@ -27,3 +39,6 @@ export var path: string;

export declare function resize(options: Options, callback: (err: Error, result: any) => void): child_process.ChildProcess;
export declare function resize(
options: Options,
callback: (err: Error, result: any) => void,
): child_process.ChildProcess;
export declare function crop(options: Options, callback: (err: Error, result: any) => void): child_process.ChildProcess;

@@ -40,17 +55,17 @@ export declare function resizeArgs(options: Options): ResizeArgs;

export interface Options {
srcPath?: string | undefined; //: null,
srcData?: string | undefined; //: null,
srcFormat?: string | undefined; //: null,
dstPath?: string | undefined; //: null,
quality?: number | undefined; //: 0.8,
format?: string | undefined; //: 'jpg',
progressive?: boolean | undefined; //: false,
colorspace?: any; //: null,
width?: number | undefined; //: 0,
height?: number | undefined; //: 0,
strip?: boolean | undefined; //: true,
filter?: string | undefined; //: 'Lagrange',
sharpening?: number | undefined; //: 0.2,
customArgs?: any[] | undefined; //: [],
timeout?: number | undefined; //: 0
srcPath?: string | undefined; // : null,
srcData?: string | undefined; // : null,
srcFormat?: string | undefined; // : null,
dstPath?: string | undefined; // : null,
quality?: number | undefined; // : 0.8,
format?: string | undefined; // : 'jpg',
progressive?: boolean | undefined; // : false,
colorspace?: any; // : null,
width?: number | undefined; // : 0,
height?: number | undefined; // : 0,
strip?: boolean | undefined; // : true,
filter?: string | undefined; // : 'Lagrange',
sharpening?: number | undefined; // : 0.2,
customArgs?: any[] | undefined; // : [],
timeout?: number | undefined; // : 0
}

@@ -57,0 +72,0 @@

{
"name": "@types/imagemagick",
"version": "0.0.32",
"version": "0.0.33",
"description": "TypeScript definitions for imagemagick",

@@ -25,4 +25,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/imagemagick",

},
"typesPublisherContentHash": "eedcdfac8393cb80d647ee166587d298f740885e9aab7313c636987e7bd79832",
"typeScriptVersion": "4.3"
"typesPublisherContentHash": "97329663a44582ba208bd58e5dfe3ebffd2b201fcc17941d15de3218b45fc3b5",
"typeScriptVersion": "4.5"
}

@@ -20,14 +20,26 @@ # Installation

import child_process = require("child_process");
export declare function identify(path: string, callback: (err: Error, features: Features) => void): child_process.ChildProcess;
export declare function identify(path: any[], callback: (err: Error, result: string) => void): child_process.ChildProcess;
export declare function identify(
path: string,
callback: (err: Error, features: Features) => void,
): child_process.ChildProcess;
export declare function identify(
path: any[],
callback: (err: Error, result: string) => void,
): child_process.ChildProcess;
export declare namespace identify {
export var path: string;
}
export declare function readMetadata(path: string, callback: (err: Error, result: any) => void): child_process.ChildProcess;
export declare function readMetadata(
path: string,
callback: (err: Error, result: any) => void,
): child_process.ChildProcess;
export declare function convert(args: any, callback: (err: Error, result: any) => void): child_process.ChildProcess;
export declare function convert(args: any, timeout: number, callback: (err: Error, result: any) => void): child_process.ChildProcess;
export declare function convert(
args: any,
timeout: number,
callback: (err: Error, result: any) => void,
): child_process.ChildProcess;
export declare namespace convert {

@@ -37,3 +49,6 @@ export var path: string;

export declare function resize(options: Options, callback: (err: Error, result: any) => void): child_process.ChildProcess;
export declare function resize(
options: Options,
callback: (err: Error, result: any) => void,
): child_process.ChildProcess;
export declare function crop(options: Options, callback: (err: Error, result: any) => void): child_process.ChildProcess;

@@ -50,17 +65,17 @@ export declare function resizeArgs(options: Options): ResizeArgs;

export interface Options {
srcPath?: string | undefined; //: null,
srcData?: string | undefined; //: null,
srcFormat?: string | undefined; //: null,
dstPath?: string | undefined; //: null,
quality?: number | undefined; //: 0.8,
format?: string | undefined; //: 'jpg',
progressive?: boolean | undefined; //: false,
colorspace?: any; //: null,
width?: number | undefined; //: 0,
height?: number | undefined; //: 0,
strip?: boolean | undefined; //: true,
filter?: string | undefined; //: 'Lagrange',
sharpening?: number | undefined; //: 0.2,
customArgs?: any[] | undefined; //: [],
timeout?: number | undefined; //: 0
srcPath?: string | undefined; // : null,
srcData?: string | undefined; // : null,
srcFormat?: string | undefined; // : null,
dstPath?: string | undefined; // : null,
quality?: number | undefined; // : 0.8,
format?: string | undefined; // : 'jpg',
progressive?: boolean | undefined; // : false,
colorspace?: any; // : null,
width?: number | undefined; // : 0,
height?: number | undefined; // : 0,
strip?: boolean | undefined; // : true,
filter?: string | undefined; // : 'Lagrange',
sharpening?: number | undefined; // : 0.2,
customArgs?: any[] | undefined; // : [],
timeout?: number | undefined; // : 0
}

@@ -76,3 +91,3 @@

### Additional Details
* Last updated: Fri, 25 Aug 2023 17:33:44 GMT
* Last updated: Tue, 26 Sep 2023 14:36:22 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -79,0 +94,0 @@ * Global values: none

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