Skip to content

Commit

Permalink
Merge branch 'master' of github.com:aheckmann/gm
Browse files Browse the repository at this point in the history
  • Loading branch information
rwky committed Sep 23, 2015
2 parents de8b57d + d113cc2 commit 7c7dd39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,12 @@ gm('/path/to/my/img.jpg')
// gm will provide image data in that format
gm('/path/to/my/img.jpg')
.stream('png', function (err, stdout, stderr) {
var writeStream = fs.createWriteStream('/path/to/my/reformated.png');
var writeStream = fs.createWriteStream('/path/to/my/reformatted.png');
stdout.pipe(writeStream);
});

// or without the callback
var writeStream = fs.createWriteStream('/path/to/my/reformated.png');
var writeStream = fs.createWriteStream('/path/to/my/reformatted.png');
gm('/path/to/my/img.jpg')
.stream('png')
.pipe(writeStream);
Expand Down

0 comments on commit 7c7dd39

Please sign in to comment.