diff --git a/packages/docs/src/content/docs/guides/custom-jimp.mdx b/packages/docs/src/content/docs/guides/custom-jimp.mdx index 0beb2b9f..ddbe43a5 100644 --- a/packages/docs/src/content/docs/guides/custom-jimp.mdx +++ b/packages/docs/src/content/docs/guides/custom-jimp.mdx @@ -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"); ``` diff --git a/packages/docs/src/content/docs/guides/getting-started.mdx b/packages/docs/src/content/docs/guides/getting-started.mdx index a8f74e1b..b8d29664 100644 --- a/packages/docs/src/content/docs/guides/getting-started.mdx +++ b/packages/docs/src/content/docs/guides/getting-started.mdx @@ -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. diff --git a/packages/docs/src/content/docs/index.mdx b/packages/docs/src/content/docs/index.mdx index 552eedaa..d72fda2c 100644 --- a/packages/docs/src/content/docs/index.mdx +++ b/packages/docs/src/content/docs/index.mdx @@ -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. diff --git a/packages/jimp/README.md b/packages/jimp/README.md index 81942f85..230a3b79 100644 --- a/packages/jimp/README.md +++ b/packages/jimp/README.md @@ -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 ```