Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions imagemagick.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function parseIdentify(input) {

lines.shift(); //drop first line (Image: name.jpg)

for (i in lines) {
for (i in lines) if(lines.hasOwnProperty(i)) {
currentLine = lines[i];
indent = currentLine.search(/\S/);
if (indent >= 0) {
Expand Down Expand Up @@ -356,7 +356,7 @@ exports.resizeArgs = function(options) {
// check options
if (typeof options !== 'object')
throw new Error('first argument must be an object');
for (var k in opt) if (k in options) opt[k] = options[k];
for (var k in opt) if (k in options && opt.hasOwnProperty(k)) opt[k] = options[k];
if (!opt.srcPath && !opt.srcData)
throw new Error('both srcPath and srcData are empty');

Expand Down