wasm-vips 0.0.8 → 0.0.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  # wasm-vips
2
2
 
3
- [libvips](https://libvips.github.io/libvips) for the browser and Node.js,
4
- compiled to WebAssembly with Emscripten.
3
+ [libvips](https://www.libvips.org/) for the browser and Node.js, compiled
4
+ to WebAssembly with Emscripten.
5
5
 
6
6
  Programs that use wasm-vips don't manipulate images directly, instead
7
7
  they create pipelines of image processing operations building on a source
@@ -16,7 +16,7 @@ https://github.com/kleisauke/wasm-vips/issues/1).
16
16
 
17
17
  ## Engine support
18
18
 
19
- An engine that [supports WebAssembly SIMD](https://webassembly.org/roadmap/).
19
+ An engine that [supports WebAssembly SIMD](https://webassembly.org/features/).
20
20
  This is present on most major browser engines.
21
21
 
22
22
  For V8-based engines, at least version 9.1.54 is required to match the final
@@ -30,7 +30,7 @@ at least version 615.1.17 is required. This corresponds to Safari 16.4.
30
30
 
31
31
  | ![Chrome](https://github.com/alrra/browser-logos/raw/main/src/chrome/chrome_32x32.png)<br>Chrome | ![Firefox](https://github.com/alrra/browser-logos/raw/main/src/firefox/firefox_32x32.png)<br>Firefox | ![Safari](https://github.com/alrra/browser-logos/raw/main/src/safari/safari_32x32.png)<br>Safari | ![Edge](https://github.com/alrra/browser-logos/raw/main/src/edge/edge_32x32.png)<br>Edge | ![Node.js](https://github.com/alrra/browser-logos/raw/main/src/node.js/node.js_32x32.png)<br>Node.js | ![Deno](https://github.com/alrra/browser-logos/raw/main/src/deno/deno_32x32.png)<br>Deno |
32
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) | :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://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) |
33
+ | :heavy_check_mark:<br>[version 91+](https://chromestatus.com/feature/6533147810332672) | :heavy_check_mark:<br>[version 89+](https://bugzilla.mozilla.org/show_bug.cgi?id=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
34
 
35
35
  ## Installation
36
36
 
@@ -48,14 +48,13 @@ yarn add wasm-vips
48
48
 
49
49
  ### Browser
50
50
 
51
- Requires `vips.js`, `vips.wasm` and `vips.worker.js` to be served from
52
- the same directory. Additionally, when using ES6 modules, it's necessary
53
- to also serve the `vips-es6.js` and `vips-es6.worker.js` files.
51
+ Requires `vips.js` (or `vips-es6.js`) and `vips.wasm` to be served from
52
+ the same directory.
54
53
 
55
54
  Since wasm-vips requires [the `SharedArrayBuffer` API](
56
55
  https://caniuse.com/sharedarraybuffer), the website needs to opt-in to
57
56
  a cross-origin isolated state, by serving the following HTTP headers on
58
- both the main document and worker script (`*.worker.js`):
57
+ both the main document and `vips*.js` script:
59
58
 
60
59
  ```http
61
60
  Cross-Origin-Embedder-Policy: require-corp
@@ -128,7 +127,7 @@ let im = vips.Image.newFromFile('owl.jpg');
128
127
  // Put im at position (100, 100) in a 3000 x 3000 pixel image,
129
128
  // make the other pixels in the image by mirroring im up / down /
130
129
  // left / right, see
131
- // https://libvips.github.io/libvips/API/current/libvips-conversion.html#vips-embed
130
+ // https://www.libvips.org/API/current/libvips-conversion.html#vips-embed
132
131
  im = im.embed(100, 100, 3000, 3000, {
133
132
  extend: 'mirror'
134
133
  });