Skip to content

Commit

Permalink
Docs: correct links to libvips documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed May 22, 2022
1 parent 04c31b3 commit 7bf6cbd
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If a [similar request](https://github.com/lovell/sharp/labels/enhancement) exist
it's probably fastest to add a comment to it about your requirement.

Implementation is usually straightforward if libvips
[already supports](https://libvips.github.io/libvips/API/current/func-list.html)
[already supports](https://www.libvips.org/API/current/func-list.html)
the feature you need.

## Submit a Pull Request to fix a bug
Expand Down
4 changes: 2 additions & 2 deletions docs/api-composite.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `blend` option can be one of `clear`, `source`, `over`, `in`, `out`, `atop`,
`hard-light`, `soft-light`, `difference`, `exclusion`.

More information about blend modes can be found at
[https://libvips.github.io/libvips/API/current/libvips-conversion.html#VipsBlendMode][1]
[https://www.libvips.org/API/current/libvips-conversion.html#VipsBlendMode][1]
and [https://www.cairographics.org/operators/][2]

### Parameters
Expand Down Expand Up @@ -89,7 +89,7 @@ Returns **Sharp**

* **since**: 0.22.0

[1]: https://libvips.github.io/libvips/API/current/libvips-conversion.html#VipsBlendMode
[1]: https://www.libvips.org/API/current/libvips-conversion.html#VipsBlendMode

[2]: https://www.cairographics.org/operators/

Expand Down
4 changes: 2 additions & 2 deletions docs/api-input.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ const stats = await sharp(part).stats();

Returns **[Promise][5]<[Object][6]>**

[1]: https://libvips.github.io/libvips/API/current/VipsImage.html#VipsInterpretation
[1]: https://www.libvips.org/API/current/VipsImage.html#VipsInterpretation

[2]: https://libvips.github.io/libvips/API/current/VipsImage.html#VipsBandFormat
[2]: https://www.libvips.org/API/current/VipsImage.html#VipsBandFormat

[3]: https://www.npmjs.com/package/icc

Expand Down
4 changes: 2 additions & 2 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ To use a custom, globally-installed version of libvips instead of the provided b
make sure it is at least the version listed under `config.libvips` in the `package.json` file
and that it can be located using `pkg-config --modversion vips-cpp`.

For help compiling libvips from source, please see
[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).
For help compiling libvips and its dependencies, please see
[building libvips from source](https://www.libvips.org/install.html#building-libvips-from-source).

The use of a globally-installed libvips is unsupported on Windows.

Expand Down
2 changes: 1 addition & 1 deletion lib/composite.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const blend = {
* `hard-light`, `soft-light`, `difference`, `exclusion`.
*
* More information about blend modes can be found at
* https://libvips.github.io/libvips/API/current/libvips-conversion.html#VipsBlendMode
* https://www.libvips.org/API/current/libvips-conversion.html#VipsBlendMode
* and https://www.cairographics.org/operators/
*
* @since 0.22.0
Expand Down
4 changes: 2 additions & 2 deletions lib/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,9 @@ function _isStreamInput () {
* - `size`: Total size of image in bytes, for Stream and Buffer input only
* - `width`: Number of pixels wide (EXIF orientation is not taken into consideration, see example below)
* - `height`: Number of pixels high (EXIF orientation is not taken into consideration, see example below)
* - `space`: Name of colour space interpretation e.g. `srgb`, `rgb`, `cmyk`, `lab`, `b-w` [...](https://libvips.github.io/libvips/API/current/VipsImage.html#VipsInterpretation)
* - `space`: Name of colour space interpretation e.g. `srgb`, `rgb`, `cmyk`, `lab`, `b-w` [...](https://www.libvips.org/API/current/VipsImage.html#VipsInterpretation)
* - `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://libvips.github.io/libvips/API/current/VipsImage.html#VipsBandFormat)
* - `depth`: Name of pixel depth format e.g. `uchar`, `char`, `ushort`, `float` [...](https://www.libvips.org/API/current/VipsImage.html#VipsBandFormat)
* - `density`: Number of pixels per inch (DPI), if present
* - `chromaSubsampling`: String containing JPEG chroma subsampling, `4:2:0` or `4:4:4` for RGB, `4:2:0:4` or `4:4:4:4` for CMYK
* - `isProgressive`: Boolean indicating whether the image is interlaced using a progressive scan
Expand Down

0 comments on commit 7bf6cbd

Please sign in to comment.