mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
Update README.md (#913)
This commit is contained in:
parent
e0d622d347
commit
791fd35c35
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user