# @types/imagemagick

> TypeScript definitions for imagemagick

Latest version **0.0.35** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/imagemagick
pnpm add @types/imagemagick
yarn add @types/imagemagick
bun add @types/imagemagick
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.35 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51443 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/imagemagick
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/imagemagick
- npm.io page: https://npm.io/package/@types/imagemagick

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 0.0.35 (latest) — 2023-11-07
- 0.0.32 (ts4.3) — 2023-08-25
- 0.0.31 (ts3.6) — 2021-07-08
- 0.0.30 (ts2.0) — 2017-08-21
- 0.0.34 — 2023-10-18
- 0.0.33 — 2023-09-26
- 0.0.29 — 2016-09-19
- 0.0.28 — 2016-07-14
- 0.0.27-alpha — 2016-07-12
- 0.8.27-alpha — 2016-07-08
- 0.8.26-alpha — 2016-07-04
- 0.8.25-alpha — 2016-07-02
- 0.8.24-alpha — 2016-07-01
- 0.8.23-alpha — 2016-07-01
- 0.8.22-alpha — 2016-05-25
- … 3 more at https://npm.io/package/@types/imagemagick/versions

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/imagemagick/index.d.ts)
````ts
// 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 namespace 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 namespace 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: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Carlos Ballesteros Velasco](https://github.com/soywiz).

---
_Source: https://npm.io/package/@types/imagemagick · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
