We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 068cd03 commit 545c13aCopy full SHA for 545c13a
1 file changed
packages/docs/src/content/docs/guides/migrate-to-v1.mdx
@@ -116,7 +116,7 @@ const image = new Jimp(...);
116
const resized = await image
117
.resize(512, Jimp.AUTO)
118
.quality(80)
119
- .getBufferAsync(Jimp.MIME_JPEG);
+ .getBuffer(Jimp.MIME_JPEG);
120
```
121
122
In v1 the options are passed when you get the encoded image:
@@ -128,7 +128,7 @@ const image = new Jimp(...);
128
129
130
.resize({ w: 512 })
131
- .getBufferAsync('image/jpeg', { quality: 80 });
+ .getBuffer('image/jpeg', { quality: 80 });
132
133
134
## Removed Constants
0 commit comments