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

TypeScript definitions for imagemagick

  • 0.0.31
  • ts3.6
  • ts3.7
  • ts3.8
  • ts3.9
  • ts4.0
  • ts4.1
  • ts4.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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.

index.d.ts

// Type definitions for imagemagick
// Project: https://github.com/rsms/node-imagemagick
// Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

// Imported from: https://github.com/soywiz/typescript-node-definitions/imagemagick.d.ts

/// <reference types="node" />


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; //: 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
}

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.

FAQs

Package last updated on 08 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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