Skip to content

Commit

Permalink
fix incorrect usage in docs (#1318)
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie authored Sep 2, 2024
1 parent 068cd03 commit 545c13a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/docs/src/content/docs/guides/migrate-to-v1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const image = new Jimp(...);
const resized = await image
.resize(512, Jimp.AUTO)
.quality(80)
.getBufferAsync(Jimp.MIME_JPEG);
.getBuffer(Jimp.MIME_JPEG);
```

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

const resized = await image
.resize({ w: 512 })
.getBufferAsync('image/jpeg', { quality: 80 });
.getBuffer('image/jpeg', { quality: 80 });
```

## Removed Constants
Expand Down

0 comments on commit 545c13a

Please sign in to comment.