Files
DefinitelyTyped/imagemagick/imagemagick-tests.ts
Bart van der Schoor 09f3d7a8dc imported 25 definitions from typescript-node-definitions
first batch: the easy pickings

- as per https://github.com/borisyankov/DefinitelyTyped/issues/115
- added DT headers (scraped creators from git history)
- added tests
- some modifications
- added CONTRIBUTORS.md for the substantial defs (>50 LOC)
2014-04-22 22:09:35 +02:00

28 lines
575 B
TypeScript

/// <reference path="imagemagick.d.ts" />
/// <reference path="../node/node.d.ts" />
import imagemagick = require('imagemagick');
import child_process = require('child_process');
var str: string = null;
var num: number = 0;
var cp: child_process.ChildProcess;
cp = imagemagick.identify(str, (err: Error, res: imagemagick.Features) => {
str = res.format;
num = res.width;
num = res.height;
num = res.depth;
});
cp = imagemagick.convert(str, num, (err: Error, res: any) => {
});
cp = imagemagick.resize({
width: num,
height: num
}, (err: Error, res: any) => {
});