diff --git a/imagemagick.js b/imagemagick.js index b846c0c..4fe620a 100644 --- a/imagemagick.js +++ b/imagemagick.js @@ -121,7 +121,8 @@ function parseIdentify(input) { } if (comps.length < 2) { props.push(prop); - prop = prop[currentLine.split(':')[0].trim().toLowerCase()] = {}; + if(currentLine.indexOf(':')>=0) + prop[currentLine.split(':')[0].trim().toLowerCase()] = {}; } else { prop[comps[0].trim().toLowerCase()] = comps[1].trim() }