imagemagick-native
Advanced tools
Comparing version 0.2.8 to 0.2.9
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "0.2.8", | ||
"version": "0.2.9", | ||
"repository": { | ||
@@ -13,0 +13,0 @@ "type": "git", |
@@ -194,2 +194,28 @@ var test = require('tap').test | ||
test( 'convert to rotate 90 degrees', function (t) { | ||
var buffer = imagemagick.convert({ | ||
srcData: require('fs').readFileSync( "./test/test.jpg" ), | ||
rotate: 90, | ||
debug: debug | ||
}); | ||
var info = imagemagick.identify({srcData: buffer }); | ||
t.equal( info.width, 66 ); | ||
t.equal( info.height, 58 ); | ||
saveToFileIfDebug( buffer, "./test/out.jpg-rotate90.jpg" ); | ||
t.end(); | ||
}); | ||
test( 'convert to rotate -90 degrees', function (t) { | ||
var buffer = imagemagick.convert({ | ||
srcData: require('fs').readFileSync( "./test/test.jpg" ), | ||
rotate: -90, | ||
debug: debug | ||
}); | ||
var info = imagemagick.identify({srcData: buffer }); | ||
t.equal( info.width, 66 ); | ||
t.equal( info.height, 58 ); | ||
saveToFileIfDebug( buffer, "./test/out.jpg-rotate-90.jpg" ); | ||
t.end(); | ||
}); | ||
test( 'identify invalid number of arguments', function (t) { | ||
@@ -196,0 +222,0 @@ var error = 0; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
132615
507
186
25