Skip to content

Commit

Permalink
sys, be gone!
Browse files Browse the repository at this point in the history
  • Loading branch information
rsms committed Feb 18, 2011
1 parent c46e613 commit 72553e2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Expand Up @@ -11,7 +11,7 @@ You can install this module using [npm](http://github.com/isaacs/npm):
var im = require('imagemagick');
im.readMetadata('kittens.jpg', function(err, metadata){
if (err) throw err;
sys.puts('Shot at '+metadata.exif.dateTimeOriginal);
console.log('Shot at '+metadata.exif.dateTimeOriginal);
})
// -> Shot at Tue, 06 Feb 2007 21:13:54 GMT

Expand All @@ -33,7 +33,7 @@ Example:

im.identify('kittens.jpg', function(err, features){
if (err) throw err
sys.p(features)
console.log(features)
// { format: 'JPEG', width: 3904, height: 2622, depth: 8 }
})

Expand All @@ -45,7 +45,7 @@ Example:

im.identify(['-format', '%wx%h', 'kittens.jpg'], function(err, output){
if (err) throw err
sys.puts('dimension: '+output)
console.log('dimension: '+output)
// dimension: 3904x2622
})

Expand All @@ -57,7 +57,7 @@ Example:

im.readMetadata('kittens.jpg', function(err, metadata){
if (err) throw err
sys.puts('Shot at '+metadata.exif.dateTimeOriginal)
console.log('Shot at '+metadata.exif.dateTimeOriginal)
})
// -> Shot at Tue, 06 Feb 2007 21:13:54 GMT

Expand All @@ -71,7 +71,7 @@ Example:
im.convert(['kittens.jpg', '-resize', '25x120', 'kittens-small.jpg'],
function(err, metadata){
if (err) throw err
sys.puts('stdout: '+sys.inspect(stdout));
console.log('stdout:', stdout);
})

### resize(options, callback(err, stdout, stderr))
Expand Down Expand Up @@ -106,7 +106,7 @@ Example:
width: 256
}, function(err, stdout, stderr){
if (err) throw err
sys.puts('resized kittens.jpg to fit within 256x256px')
console.log('resized kittens.jpg to fit within 256x256px')
});

Example with stdin/stdout:
Expand All @@ -118,7 +118,7 @@ Example with stdin/stdout:
}, function(err, stdout, stderr){
if (err) throw err
fs.writeFileSync('kittens-resized.jpg', stdout, 'binary');
sys.puts('resized kittens.jpg to fit within 256x256px')
console.log('resized kittens.jpg to fit within 256x256px')
});

### crop(options, callback) ###
Expand Down

0 comments on commit 72553e2

Please sign in to comment.