Skip to content

Commit

Permalink
Add warning about possible concurrent tile race #1151
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed May 25, 2018
1 parent 54a71fc commit ddc2349
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/api-output.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ 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**

- `tile` **[Object][15]?**
Expand Down
2 changes: 2 additions & 0 deletions lib/output.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,8 @@ function toFormat (format, 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()
Expand Down

0 comments on commit ddc2349

Please sign in to comment.