diff --git a/docs/api-output.md b/docs/api-output.md index c25aca90..8f60f1e7 100644 --- a/docs/api-output.md +++ b/docs/api-output.md @@ -147,8 +147,9 @@ const data = await sharp(input) } }) .toBuffer(); +``` - * @example +```javascript // Set output metadata to 96 DPI const data = await sharp(input) .withMetadata({ density: 96 }) @@ -534,8 +535,6 @@ Use tile-based deep zoom (image pyramid) output. Set the format and options for tile images via the `toFormat`, `jpeg`, `png` or `webp` functions. Use a `.zip` or `.szi` file extension with `toFile` to write to a compressed archive file format. -Warning: multiple sharp instances concurrently producing tile output can expose a possible race condition in some versions of libgsf. - ### Parameters * `options` **[Object][6]?** diff --git a/lib/output.js b/lib/output.js index cb7e451a..3926932c 100644 --- a/lib/output.js +++ b/lib/output.js @@ -168,7 +168,7 @@ function toBuffer (options, callback) { * }) * .toBuffer(); * - * * @example + * @example * // Set output metadata to 96 DPI * const data = await sharp(input) * .withMetadata({ density: 96 }) @@ -911,8 +911,6 @@ function raw (options) { * Set the format and options for tile images via the `toFormat`, `jpeg`, `png` or `webp` functions. * Use a `.zip` or `.szi` file extension with `toFile` to write to a compressed archive file format. * - * Warning: multiple sharp instances concurrently producing tile output can expose a possible race condition in some versions of libgsf. - * * @example * sharp('input.tiff') * .png()