Browse Source

Update README.md

Removed the unnecessary trailing comma from example and added a missing curly bracket.
Found this after realizing the sample code throws an exception
pull/129/head
mohanaravind 7 years ago committed by GitHub
parent
commit
3a3365113b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      README.md

3
README.md

@ -142,6 +142,7 @@ compare(image1, image2, options, function (err, data) {
}
});
}
```
### Node.js
@ -191,7 +192,7 @@ const options = {
const data = await compareImages(
await fs.readFile('./demoassets/People.jpg'),
await fs.readFile('./demoassets/People2.jpg'),
options,
options
);
await fs.writeFile('./output.png', data.getBuffer());

Loading…
Cancel
Save