Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hacksparrow committed May 3, 2015
1 parent de844ba commit 16ea595
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions easyimage.js
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
1 change: 1 addition & 0 deletions test/test.js
Expand Up @@ -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');
Expand Down

0 comments on commit 16ea595

Please sign in to comment.