Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix resize examples to follow ResizeOptionsSchema #1370

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/docs/src/content/docs/guides/custom-jimp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const MyJimp = createJimp({

const image = await MyJimp.read("test/image.png");

image.resize({ width: 100 });
image.resize({ w: 100 });

await image.write("test/output.png");
```
2 changes: 1 addition & 1 deletion packages/docs/src/content/docs/guides/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The workflow for using jimp
2. Manipulate the image.

```ts
image.resize({ width: 100 });
image.resize({ w: 100 });
```

3. Save the image.
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Load an image, manipulate it, and save it.
2. Manipulate the image.

```ts
image.resize({ width: 100 });
image.resize({ w: 100 });
```

3. Save the image.
Expand Down
2 changes: 1 addition & 1 deletion packages/jimp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const { Jimp } = require("jimp");
// open a file called "lenna.png"
const image = await Jimp.read("test.png");

image.resize(256, 256); // resize
image.resize({w: 256, h: 256}); // resize

await image.write("test-small.jpg"); // save
```