Installation
npm install --save @types/imagemagick
Summary
This package contains type definitions for imagemagick (https://github.com/rsms/node-imagemagick).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/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 module identify {
export var path: string;
}
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 module convert {
export var path: string;
}
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;
export declare function resizeArgs(options: Options): ResizeArgs;
export interface Features {
format?: string | undefined;
width?: number | undefined;
height?: number | undefined;
depth?: number | undefined;
}
export interface Options {
srcPath?: string | undefined;
srcData?: string | undefined;
srcFormat?: string | undefined;
dstPath?: string | undefined;
quality?: number | undefined;
format?: string | undefined;
progressive?: boolean | undefined;
colorspace?: any;
width?: number | undefined;
height?: number | undefined;
strip?: boolean | undefined;
filter?: string | undefined;
sharpening?: number | undefined;
customArgs?: any[] | undefined;
timeout?: number | undefined;
}
export interface ResizeArgs {
opt: Options;
args: string[];
}
Additional Details
- Last updated: Thu, 08 Jul 2021 14:23:08 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by Carlos Ballesteros Velasco.