diff --git a/img.js b/img.js index 5cd19b8..686eb56 100644 --- a/img.js +++ b/img.js @@ -365,11 +365,17 @@ class Image { if(fs.existsSync(this.src)) { let fileContents = this.getFileContents(); - // remove all newlines for hashing for better cross-OS hash compatibility (Issue #122) - let fileContentsStr = fileContents.toString(); - let firstFour = fileContentsStr.trim().slice(0, 5); - if(firstFour === "