diff --git a/easyimage.js b/easyimage.js index 239e41f..a8e9f71 100644 --- a/easyimage.js +++ b/easyimage.js @@ -38,10 +38,10 @@ function info(file) { child = exec('identify', args, function(err, stdout, stderr) { var info = {}; - + //console.log(stdout) //Basic error handling if (stdout) { - var temp = stdout.replace(/PixelsPerInch/g, '').replace(/PixelsPerCentimeter/g, '').replace(/Undefined/g, '').split(/\s+/g); + var temp = stdout.replace(/PixelsPerInch/g, '').replace(/PixelsPerCentimeter/g, '').replace(/Undefined/g, '').split(/\s+/g); //Basic error handling: if (temp.length < 7) { diff --git a/package.json b/package.json index 6cdd11f..c69789a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "easyimage", - "version": "2.0.0", + "version": "2.0.1", "description": "A promise-based, user-friendly module for processing images in Node.js", "main": "easyimage.js", "scripts": { diff --git a/test/test.js b/test/test.js index dbb131b..b035683 100644 --- a/test/test.js +++ b/test/test.js @@ -18,6 +18,7 @@ describe('.info - ', function () { describe('valid file type', function () { it('should show file info', function () { return easyimg.info(srcimg).then(function (file) { + //console.log(file); file.should.be.an('object'); file.should.have.property('name'); file.name.should.be.a('string');