From 2ce166ab0a59092756027eaf9d616a18f729e88d Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Fri, 21 Sep 2018 20:33:01 +0100 Subject: [PATCH] Update links to libvips, now in its own GitHub org --- CONTRIBUTING.md | 2 +- docs/api-colour.md | 2 +- docs/api-input.md | 4 ++-- docs/api-utility.md | 11 ++++------- docs/index.md | 2 +- docs/install.md | 2 +- lib/colour.js | 2 +- lib/input.js | 4 ++-- src/operations.cc | 2 +- test/leak/leak.sh | 2 +- 10 files changed, 15 insertions(+), 18 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 23e53bc7..d10212cf 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,7 +14,7 @@ New bugs are assigned a `triage` label whilst under investigation. If a [similar request](https://github.com/lovell/sharp/labels/enhancement) exists, it's probably fastest to add a comment to it about your requirement. -Implementation is usually straightforward if _libvips_ [already supports](https://jcupitt.github.io/libvips/API/current/) the feature you need. +Implementation is usually straightforward if _libvips_ [already supports](https://libvips.github.io/libvips/API/current/) the feature you need. ## Submit a Pull Request to fix a bug diff --git a/docs/api-colour.md b/docs/api-colour.md index ca667160..9900aa06 100644 --- a/docs/api-colour.md +++ b/docs/api-colour.md @@ -94,4 +94,4 @@ Returns **Sharp** [5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean -[6]: https://github.com/jcupitt/libvips/blob/master/libvips/iofuncs/enumtypes.c#L568 +[6]: https://github.com/libvips/libvips/blob/master/libvips/iofuncs/enumtypes.c#L568 diff --git a/docs/api-input.md b/docs/api-input.md index 9a6dd4d1..ba94da13 100644 --- a/docs/api-input.md +++ b/docs/api-input.md @@ -126,9 +126,9 @@ The default behaviour _before_ function call is `false`, meaning the libvips acc Returns **Sharp** -[1]: https://github.com/jcupitt/libvips/blob/master/libvips/iofuncs/enumtypes.c#L636 +[1]: https://github.com/libvips/libvips/blob/master/libvips/iofuncs/enumtypes.c#L636 -[2]: https://github.com/jcupitt/libvips/blob/master/libvips/iofuncs/enumtypes.c#L672 +[2]: https://github.com/libvips/libvips/blob/master/libvips/iofuncs/enumtypes.c#L672 [3]: https://www.npmjs.com/package/icc diff --git a/docs/api-utility.md b/docs/api-utility.md index a2af0c08..3c6413e8 100644 --- a/docs/api-utility.md +++ b/docs/api-utility.md @@ -77,23 +77,20 @@ Requires libvips to have been compiled with liborc support. Improves the performance of `resize`, `blur` and `sharpen` operations by taking advantage of the SIMD vector unit of the CPU, e.g. Intel SSE and ARM NEON. -This feature is currently off by default but future versions may reverse this. -Versions of liborc prior to 0.4.25 are known to segfault under heavy load. - ### Parameters -- `simd` **[Boolean][2]** (optional, default `false`) +- `simd` **[Boolean][2]** (optional, default `true`) ### Examples ```javascript const simd = sharp.simd(); -// simd is `true` if SIMD is currently enabled +// simd is `true` if the runtime use of liborc is currently enabled ``` ```javascript -const simd = sharp.simd(true); -// attempts to enable the use of SIMD, returning true if available +const simd = sharp.simd(false); +// prevent libvips from using liborc at runtime ``` Returns **[Boolean][2]** diff --git a/docs/index.md b/docs/index.md index 236ef3fd..9235cef5 100644 --- a/docs/index.md +++ b/docs/index.md @@ -37,7 +37,7 @@ and [Leaflet](https://github.com/turban/Leaflet.Zoomify). ### Fast This module is powered by the blazingly fast -[libvips](https://github.com/jcupitt/libvips) image processing library, +[libvips](https://github.com/libvips/libvips) image processing library, originally created in 1989 at Birkbeck College and currently maintained by [John Cupitt](https://github.com/jcupitt). diff --git a/docs/install.md b/docs/install.md index eedfdb67..f378ebfc 100644 --- a/docs/install.md +++ b/docs/install.md @@ -64,7 +64,7 @@ This allows the use of newer versions of libvips with older versions of sharp. For 32-bit Intel CPUs and older Linux-based operating systems such as Centos 6, compiling libvips from source is recommended. -[https://jcupitt.github.io/libvips/install.html#building-libvips-from-a-source-tarball](https://jcupitt.github.io/libvips/install.html#building-libvips-from-a-source-tarball) +[https://libvips.github.io/libvips/install.html#building-libvips-from-a-source-tarball](https://libvips.github.io/libvips/install.html#building-libvips-from-a-source-tarball) #### Alpine Linux diff --git a/lib/colour.js b/lib/colour.js index d36cbd06..278fabf7 100644 --- a/lib/colour.js +++ b/lib/colour.js @@ -80,7 +80,7 @@ function grayscale (grayscale) { /** * Set the output colourspace. * By default output image will be web-friendly sRGB, with additional channels interpreted as alpha channels. - * @param {String} [colourspace] - output colourspace e.g. `srgb`, `rgb`, `cmyk`, `lab`, `b-w` [...](https://github.com/jcupitt/libvips/blob/master/libvips/iofuncs/enumtypes.c#L568) + * @param {String} [colourspace] - output colourspace e.g. `srgb`, `rgb`, `cmyk`, `lab`, `b-w` [...](https://github.com/libvips/libvips/blob/master/libvips/iofuncs/enumtypes.c#L568) * @returns {Sharp} * @throws {Error} Invalid parameters */ diff --git a/lib/input.js b/lib/input.js index bcc2a18c..0182df49 100644 --- a/lib/input.js +++ b/lib/input.js @@ -179,9 +179,9 @@ function clone () { * - `format`: Name of decoder used to decompress image data e.g. `jpeg`, `png`, `webp`, `gif`, `svg` * - `width`: Number of pixels wide (EXIF orientation is not taken into consideration) * - `height`: Number of pixels high (EXIF orientation is not taken into consideration) - * - `space`: Name of colour space interpretation e.g. `srgb`, `rgb`, `cmyk`, `lab`, `b-w` [...](https://github.com/jcupitt/libvips/blob/master/libvips/iofuncs/enumtypes.c#L636) + * - `space`: Name of colour space interpretation e.g. `srgb`, `rgb`, `cmyk`, `lab`, `b-w` [...](https://github.com/libvips/libvips/blob/master/libvips/iofuncs/enumtypes.c#L636) * - `channels`: Number of bands e.g. `3` for sRGB, `4` for CMYK - * - `depth`: Name of pixel depth format e.g. `uchar`, `char`, `ushort`, `float` [...](https://github.com/jcupitt/libvips/blob/master/libvips/iofuncs/enumtypes.c#L672) + * - `depth`: Name of pixel depth format e.g. `uchar`, `char`, `ushort`, `float` [...](https://github.com/libvips/libvips/blob/master/libvips/iofuncs/enumtypes.c#L672) * - `density`: Number of pixels per inch (DPI), if present * - `hasProfile`: Boolean indicating the presence of an embedded ICC profile * - `hasAlpha`: Boolean indicating the presence of an alpha transparency channel diff --git a/src/operations.cc b/src/operations.cc index b783a1c2..0a07be8a 100644 --- a/src/operations.cc +++ b/src/operations.cc @@ -78,7 +78,7 @@ namespace sharp { // // References: // - http://en.wikipedia.org/wiki/Alpha_compositing#Alpha_blending - // - https://github.com/jcupitt/ruby-vips/issues/28#issuecomment-9014826 + // - https://github.com/libvips/ruby-vips/issues/28#issuecomment-9014826 // // out_a = src_a + dst_a * (1 - src_a) // ^^^^^^^^^^^ diff --git a/test/leak/leak.sh b/test/leak/leak.sh index 98c96eb3..6b6d01d1 100755 --- a/test/leak/leak.sh +++ b/test/leak/leak.sh @@ -5,7 +5,7 @@ if ! type valgrind >/dev/null; then exit 1 fi -curl -o ./test/leak/libvips.supp https://raw.githubusercontent.com/jcupitt/libvips/master/libvips.supp +curl -o ./test/leak/libvips.supp https://raw.githubusercontent.com/libvips/libvips/master/libvips.supp for test in ./test/unit/*.js; do G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind \