From fc590918ed88773751be1fba617e65e02f32dcc3 Mon Sep 17 00:00:00 2001 From: JustTestCode <65500757+JustTestCode@users.noreply.github.com> Date: Sun, 30 May 2021 12:16:58 +0800 Subject: [PATCH] Update README.md I check 2 hours, why can't run... --- libsquoosh/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsquoosh/README.md b/libsquoosh/README.md index 18fd9be2..6b9c0d2b 100644 --- a/libsquoosh/README.md +++ b/libsquoosh/README.md @@ -81,7 +81,7 @@ When you have encoded an image, you normally want to write it to a file. This example takes an image that has been encoded as a `jpg` and writes it to a file: ```js -const rawEncodedImage = (await image.encodedWidth.mozjpeg).binary; +const rawEncodedImage = (await image.encodedWith.mozjpeg).binary; fs.writeFile('/path/to/new/image.jpg', rawEncodedImage); ```