Update README.md (#913)

This commit is contained in:
Jasper Blues 2017-08-16 19:09:02 +08:00 committed by Lovell Fuller
parent e0d622d347
commit 791fd35c35

View File

@ -30,8 +30,11 @@ import sharp from 'sharp';
sharp(inputBuffer) sharp(inputBuffer)
.resize(320, 240) .resize(320, 240)
.toFile('output.webp', (err, info) => ... ); .toFile('output.webp', (err, info) => ... );
// A Promises/A+ promise is returned when callback is not provided.
``` ```
```javascript ```javascript
sharp('input.jpg') sharp('input.jpg')
.rotate() .rotate()