Skip to content

Commit 545c13a

Browse files
fix incorrect usage in docs (#1318)
1 parent 068cd03 commit 545c13a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/docs/src/content/docs/guides/migrate-to-v1.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const image = new Jimp(...);
116116
const resized = await image
117117
.resize(512, Jimp.AUTO)
118118
.quality(80)
119-
.getBufferAsync(Jimp.MIME_JPEG);
119+
.getBuffer(Jimp.MIME_JPEG);
120120
```
121121

122122
In v1 the options are passed when you get the encoded image:
@@ -128,7 +128,7 @@ const image = new Jimp(...);
128128

129129
const resized = await image
130130
.resize({ w: 512 })
131-
.getBufferAsync('image/jpeg', { quality: 80 });
131+
.getBuffer('image/jpeg', { quality: 80 });
132132
```
133133

134134
## Removed Constants

0 commit comments

Comments
 (0)