mirror of
https://github.com/lovell/sharp.git
synced 2026-02-04 05:36:18 +01:00
Docs: fix typo in gif example (#3201)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user