mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Docs: fix typo in gif example (#3201)
This commit is contained in:
parent
d396a4e65d
commit
75e5afcd42
@ -334,7 +334,7 @@ The first entry in the palette is reserved for transparency.
|
|||||||
// Convert PNG to GIF
|
// Convert PNG to GIF
|
||||||
await sharp(pngBuffer)
|
await sharp(pngBuffer)
|
||||||
.gif()
|
.gif()
|
||||||
.toBuffer());
|
.toBuffer();
|
||||||
```
|
```
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
|
@ -516,7 +516,7 @@ function webp (options) {
|
|||||||
* // Convert PNG to GIF
|
* // Convert PNG to GIF
|
||||||
* await sharp(pngBuffer)
|
* await sharp(pngBuffer)
|
||||||
* .gif()
|
* .gif()
|
||||||
* .toBuffer());
|
* .toBuffer();
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
* // Convert animated WebP to animated GIF
|
* // Convert animated WebP to animated GIF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user