wasm-vips 0.0.3 → 0.0.4
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 +27 -6
- package/lib/node-commonjs/vips.js +285 -199
- package/lib/node-commonjs/vips.worker.js +1 -1
- package/lib/node-es6/vips.mjs +289 -203
- package/lib/node-es6/vips.worker.js +1 -0
- package/lib/vips-es6.js +289 -205
- package/lib/vips-es6.worker.js +1 -1
- package/lib/vips-jxl.wasm +0 -0
- package/lib/vips.d.ts +47 -1
- package/lib/vips.js +289 -205
- package/lib/vips.wasm +0 -0
- package/lib/vips.worker.js +1 -1
- package/package.json +6 -2
- package/lib/node-es6/vips.worker.mjs +0 -1
package/README.md
CHANGED
|
@@ -10,17 +10,27 @@ pipeline executes at once, streaming the image in parallel from source to
|
|
|
10
10
|
destination a section at a time. Because wasm-vips is parallel, it's quick,
|
|
11
11
|
and because it doesn't need to keep entire images in memory, it's light.
|
|
12
12
|
|
|
13
|
-
> **Note**: This library is still under early development. See: [#1](
|
|
13
|
+
> **Note**: This library is still under early development. See: [#1](
|
|
14
|
+
https://github.com/kleisauke/wasm-vips/issues/1).
|
|
14
15
|
|
|
15
16
|
## Engine support
|
|
16
17
|
|
|
17
18
|
An engine that [supports WebAssembly SIMD](https://webassembly.org/roadmap/).
|
|
18
|
-
This is present on most major browser engines.
|
|
19
|
-
to match the final SIMD opcodes.
|
|
19
|
+
This is present on most major browser engines.
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
For V8-based engines, at least version 9.1.54 is required to match the final
|
|
22
|
+
SIMD opcodes, this corresponds to Chrome 91, Node.js 16.4.0 and Deno 1.9.0.
|
|
23
|
+
|
|
24
|
+
For Spidermonkey-based engines, the JavaScript engine used in Mozilla Firefox
|
|
25
|
+
and whose version numbers are aligned, at least version 89 is required.
|
|
26
|
+
|
|
27
|
+
JavaScriptCore-based (e.g. Safari, Bun) engines are currently not supported,
|
|
28
|
+
you can follow the status in [this tracking bug](
|
|
29
|
+
https://bugs.webkit.org/show_bug.cgi?id=222382).
|
|
30
|
+
|
|
31
|
+
| <br>Chrome | <br>Firefox | <br>Safari | <br>Edge | <br>Node.js | <br>Deno |
|
|
32
|
+
|:---:|:---:|:---:|:---:|:---:|:---:|
|
|
33
|
+
| :heavy_check_mark:<br>[version 91+](https://www.chromestatus.com/feature/6533147810332672) | :heavy_check_mark:<br>[version 89+](https://bugzilla.mozilla.org/show_bug.cgi?id=1695585) | :x:<br>[Tracking bug](https://bugs.webkit.org/show_bug.cgi?id=222382) | :heavy_check_mark:<br>[version 91+](https://www.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) |
|
|
24
34
|
|
|
25
35
|
## Installation
|
|
26
36
|
|
|
@@ -97,6 +107,17 @@ Vips().then(vips => {
|
|
|
97
107
|
});
|
|
98
108
|
```
|
|
99
109
|
|
|
110
|
+
### Deno
|
|
111
|
+
|
|
112
|
+
On Deno, the web ES6 module can be reused and imported from a CDN such as
|
|
113
|
+
[jsDelivr](https://www.jsdelivr.com/):
|
|
114
|
+
|
|
115
|
+
```js
|
|
116
|
+
import Vips from 'https://cdn.jsdelivr.net/npm/wasm-vips/lib/vips-es6.js';
|
|
117
|
+
|
|
118
|
+
const vips = await Vips();
|
|
119
|
+
```
|
|
120
|
+
|
|
100
121
|
## Example
|
|
101
122
|
|
|
102
123
|
```js
|