Skip to content

Commit

Permalink
aheckmann#297 Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
pwlmaciejewski committed Jul 2, 2014
1 parent 631beec commit c7aee32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ Currently `gm.compare` only accepts file paths.
gm.compare(path1, path2 [, options], callback)

```js
gm.compare('/path/to/image1.jpg', '/path/to/another.png', function (err, isEqual, equality, raw) {
gm.compare('/path/to/image1.jpg', '/path/to/another.png', function (err, isEqual, equality, raw, path1, path2) {
if (err) return handle(err);

// if the images were considered equal, `isEqual` will be true, otherwise, false.
Expand All @@ -512,7 +512,10 @@ gm.compare('/path/to/image1.jpg', '/path/to/another.png', function (err, isEqual
console.log('Actual equality: %d', equality);

// inspect the raw output
console.log(raw)
console.log(raw);

// print file paths
console.log(path1, path2);
})
```

Expand Down
1 change: 1 addition & 0 deletions test/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var assert = require('assert')
module.exports = function (_, dir, finish, gm) {

assert.equal('function', typeof gm.utils.escape);
assert.equal('function', typeof gm.utils.unescape);
finish();

}

0 comments on commit c7aee32

Please sign in to comment.