Skip to content

Commit

Permalink
Docs: update old links
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Aug 2, 2024
1 parent 9be121c commit 65ff8e2
Show file tree
Hide file tree
Showing 19 changed files with 23 additions and 23 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# wasm-vips

[libvips](https://libvips.github.io/libvips) for the browser and Node.js,
compiled to WebAssembly with Emscripten.
[libvips](https://www.libvips.org/) for the browser and Node.js, compiled
to WebAssembly with Emscripten.

Programs that use wasm-vips don't manipulate images directly, instead
they create pipelines of image processing operations building on a source
Expand All @@ -16,7 +16,7 @@ https://github.com/kleisauke/wasm-vips/issues/1).

## Engine support

An engine that [supports WebAssembly SIMD](https://webassembly.org/roadmap/).
An engine that [supports WebAssembly SIMD](https://webassembly.org/features/).
This is present on most major browser engines.

For V8-based engines, at least version 9.1.54 is required to match the final
Expand All @@ -30,7 +30,7 @@ at least version 615.1.17 is required. This corresponds to Safari 16.4.

| ![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 |
|:---:|:---:|:---:|:---:|:---:|:---:|
| :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) |
| :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) |

## Installation

Expand Down Expand Up @@ -127,7 +127,7 @@ let im = vips.Image.newFromFile('owl.jpg');
// Put im at position (100, 100) in a 3000 x 3000 pixel image,
// make the other pixels in the image by mirroring im up / down /
// left / right, see
// https://libvips.github.io/libvips/API/current/libvips-conversion.html#vips-embed
// https://www.libvips.org/API/current/libvips-conversion.html#vips-embed
im = im.embed(100, 100, 3000, 3000, {
extend: 'mirror'
});
Expand Down
2 changes: 1 addition & 1 deletion playground/samples/edge-detection/canny/sample.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Load an image from a preloaded file
// Image source: https://www.flickr.com/photos/jasonidzerda/3987784466
// Image source: https://flickr.com/photos/jasonidzerda/3987784466
let im = vips.Image.newFromFile('owl.jpg');

// Optionally, convert to greyscale
Expand Down
2 changes: 1 addition & 1 deletion playground/samples/edge-detection/sobel/sample.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Load an image from a preloaded file
// Image source: https://www.flickr.com/photos/jasonidzerda/3987784466
// Image source: https://flickr.com/photos/jasonidzerda/3987784466
let im = vips.Image.newFromFile('owl.jpg', {
access: vips.Access.sequential // 'sequential'
});
Expand Down
2 changes: 1 addition & 1 deletion playground/samples/filter/duotone/sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ lut = lut.colourspace(vips.Interpretation.srgb/* 'srgb' */, {
});

// Load an image from a preloaded file
// Image source: https://www.flickr.com/photos/jasonidzerda/3987784466
// Image source: https://flickr.com/photos/jasonidzerda/3987784466
let im = vips.Image.newFromFile('owl.jpg');
// let im = vips.Image.newFromFile('owl.tif');
// let im = vips.Image.newFromFile('owl.jxl');
Expand Down
2 changes: 1 addition & 1 deletion playground/samples/filter/emboss/sample.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Load an image from a preloaded file
// Image source: https://www.flickr.com/photos/jasonidzerda/3987784466
// Image source: https://flickr.com/photos/jasonidzerda/3987784466
let im = vips.Image.newFromFile('owl.jpg');

// The four primary emboss kernels
Expand Down
2 changes: 1 addition & 1 deletion playground/samples/filter/gaussian-blur/sample.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Load an image from a preloaded file
// Image source: https://www.flickr.com/photos/jasonidzerda/3987784466
// Image source: https://flickr.com/photos/jasonidzerda/3987784466
let im = vips.Image.newFromFile('owl.jpg');

// Apply a gaussian blur
Expand Down
2 changes: 1 addition & 1 deletion playground/samples/filter/modulate/sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if (hue < 0) {
}

// Load an image from a preloaded file
// Image source: https://www.flickr.com/photos/jasonidzerda/3987784466
// Image source: https://flickr.com/photos/jasonidzerda/3987784466
let im = vips.Image.newFromFile('owl.jpg');

// Get original colorspace
Expand Down
2 changes: 1 addition & 1 deletion playground/samples/filter/sepia/sample.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Load an image from a preloaded file
// Image source: https://www.flickr.com/photos/jasonidzerda/3987784466
// Image source: https://flickr.com/photos/jasonidzerda/3987784466
let im = vips.Image.newFromFile('owl.jpg');

// A matrix for a sepia-like effect
Expand Down
2 changes: 1 addition & 1 deletion playground/samples/filter/sharpen/sample.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Load an image from a preloaded file
// Image source: https://www.flickr.com/photos/jasonidzerda/3987784466
// Image source: https://flickr.com/photos/jasonidzerda/3987784466
let im = vips.Image.newFromFile('owl.jpg');

// Sharpen of the L channel in the LAB colour space
Expand Down
2 changes: 1 addition & 1 deletion playground/samples/filter/tint/sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const tint = [74.93, 23.94, 78.96];

// Load an image from a preloaded file
// Image source: https://www.flickr.com/photos/jasonidzerda/3987784466
// Image source: https://flickr.com/photos/jasonidzerda/3987784466
const im = vips.Image.newFromFile('owl.jpg');

// Get original colorspace
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Load an image from a preloaded file
// Image source: https://www.flickr.com/photos/jasonidzerda/3987784466
// Image source: https://flickr.com/photos/jasonidzerda/3987784466
let im = vips.Image.newFromFile('owl.jpg');

// Put im at position (im.width, im.height) in a (im.width * 2) * (im.height * 2) pixel
Expand Down
2 changes: 1 addition & 1 deletion playground/samples/other/json-output/sample.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Load an image from a preloaded file
// Image source: https://www.flickr.com/photos/jasonidzerda/3987784466
// Image source: https://flickr.com/photos/jasonidzerda/3987784466
const im = vips.Image.newFromFile('owl.jpg');

document.getElementById('json').innerText = JSON.stringify({
Expand Down
2 changes: 1 addition & 1 deletion playground/samples/other/optional-output/sample.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Load an image from a preloaded file
// Image source: https://www.flickr.com/photos/jasonidzerda/3987784466
// Image source: https://flickr.com/photos/jasonidzerda/3987784466
const im = vips.Image.newFromFile('owl.jpg');

// Find image minimum
Expand Down
2 changes: 1 addition & 1 deletion playground/samples/other/smartcrop/sample.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Smart crop to 500x500 using the attention strategy
// (searches the image for features which might catch a human eye)
// Image source: https://www.flickr.com/photos/jasonidzerda/3987784466
// Image source: https://flickr.com/photos/jasonidzerda/3987784466
const thumbnail = vips.Image.thumbnail('owl.jpg', 500, {
height: 500,
no_rotate: true,
Expand Down
2 changes: 1 addition & 1 deletion playground/samples/other/watermark/sample.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Image source: https://www.flickr.com/photos/jasonidzerda/3987784466
// Image source: https://flickr.com/photos/jasonidzerda/3987784466
let im = vips.Image.newFromFile('owl.jpg', {
access: vips.Access.sequential // 'sequential'
});
Expand Down
2 changes: 1 addition & 1 deletion playground/src/images/INFO.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[`owl.jpg`](owl.jpg):
```
https://www.flickr.com/photos/jasonidzerda/3987784466
https://flickr.com/photos/jasonidzerda/3987784466
```

[`owl.tif`](owl.tif):
Expand Down
2 changes: 1 addition & 1 deletion playground/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h1>wasm-vips playground</h1>
This is a playground for experimenting with wasm-vips, written by <a href="https://kleisauke.nl/">Kleis Auke Wolthuizen</a>.
</p>
<p>
All embedded demos are intended to run in the browser that <a href="https://webassembly.org/roadmap/">supports WebAssembly SIMD</a>
All embedded demos are intended to run in the browser that <a href="https://webassembly.org/features/">supports WebAssembly SIMD</a>
and <a href="https://caniuse.com/sharedarraybuffer">the SharedArrayBuffer API</a>. This is present on most major browser engines.
</p>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion test/bench/images.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function getPath (filename) {
return './images/' + filename;
}

// https://www.flickr.com/photos/grizdave/2569067123/
// https://flickr.com/photos/grizdave/2569067123/
export const inputJpg = getPath('2569067123_aca715a2ee_o.jpg');

// https://gist.github.com/gasi/769cfb9f2359a1fbedc5
Expand Down
2 changes: 1 addition & 1 deletion test/bench/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// See: https://github.com/libvips/libvips/pull/1639
const height = 10000000; // = VIPS_MAX_COORD

// https://www.flickr.com/photos/grizdave/2569067123/
// https://flickr.com/photos/grizdave/2569067123/
const jpegFile = '2569067123_aca715a2ee_o.jpg';

// https://gist.github.com/gasi/769cfb9f2359a1fbedc5
Expand Down

0 comments on commit 65ff8e2

Please sign in to comment.