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)
.resize(320, 240)
.toFile('output.webp', (err, info) => ... );
// A Promises/A+ promise is returned when callback is not provided.
```
```javascript
sharp('input.jpg')
.rotate()