wasm-vips 0.0.13 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/lib/vips-es6.js +207 -234
- package/lib/vips-heif.wasm +0 -0
- package/lib/vips-jxl.wasm +0 -0
- package/lib/vips-node.js +219 -247
- package/lib/vips-node.mjs +220 -242
- package/lib/vips-resvg.wasm +0 -0
- package/lib/vips.d.ts +355 -1691
- package/lib/vips.js +207 -240
- package/lib/vips.wasm +0 -0
- package/package.json +2 -2
- package/versions.json +11 -11
package/README.md
CHANGED
|
@@ -16,8 +16,9 @@ https://github.com/kleisauke/wasm-vips/issues/1).
|
|
|
16
16
|
|
|
17
17
|
## Engine support
|
|
18
18
|
|
|
19
|
-
An engine that
|
|
20
|
-
This is present on most major browser engines
|
|
19
|
+
An engine that supports [WebAssembly SIMD](https://webassembly.org/features/).
|
|
20
|
+
This is present on most major browser engines and is part of [Baseline 2023](
|
|
21
|
+
https://web.dev/baseline/2023).
|
|
21
22
|
|
|
22
23
|
For V8-based engines, at least version 9.1.54 is required to match the final
|
|
23
24
|
SIMD opcodes, this corresponds to Chrome 91, Node.js 16.4.0 and Deno 1.9.0.
|
|
@@ -30,7 +31,7 @@ at least version 615.1.17 is required. This corresponds to Safari 16.4.
|
|
|
30
31
|
|
|
31
32
|
| <br>Chrome | <br>Firefox | <br>Safari | <br>Edge | <br>Node.js | <br>Deno |
|
|
32
33
|
|:---:|:---:|:---:|:---:|:---:|:---:|
|
|
33
|
-
| :heavy_check_mark:<br>[version 91+](https://chromestatus.com/feature/6533147810332672) | :heavy_check_mark:<br>[version 89+](https://
|
|
34
|
+
| :heavy_check_mark:<br>[version 91+](https://chromestatus.com/feature/6533147810332672) | :heavy_check_mark:<br>[version 89+](https://bugzil.la/1695585) | :heavy_check_mark:<br>[version 16.4+](https://webkit.org/blog/13966/webkit-features-in-safari-16-4/#javascript-and-webassembly) | :heavy_check_mark:<br>[version 91+](https://chromestatus.com/feature/6533147810332672) | :heavy_check_mark:<br>[version 16.4+](https://github.com/nodejs/node/pull/38273) | :heavy_check_mark:<br>[version 1.9+](https://github.com/denoland/deno/pull/10152) |
|
|
34
35
|
|
|
35
36
|
## Installation
|
|
36
37
|
|
|
@@ -127,7 +128,7 @@ using im = vips.Image.newFromFile('owl.jpg');
|
|
|
127
128
|
// Put im at position (100, 100) in a 3000 x 3000 pixel image,
|
|
128
129
|
// make the other pixels in the image by mirroring im up / down /
|
|
129
130
|
// left / right, see
|
|
130
|
-
// https://www.libvips.org/API/current/
|
|
131
|
+
// https://www.libvips.org/API/current/method.Image.embed.html
|
|
131
132
|
using embed = im.embed(100, 100, 3000, 3000, {
|
|
132
133
|
extend: 'mirror'
|
|
133
134
|
});
|