diff --git a/docs/api-output.md b/docs/api-output.md index 46203993..06687088 100644 --- a/docs/api-output.md +++ b/docs/api-output.md @@ -183,6 +183,7 @@ Use a `.zip` or `.szi` file extension with `toFile` to write to a compressed arc - `tile` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** - `tile.size` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** tile size in pixels, a value between 1 and 8192. (optional, default `256`) - `tile.overlap` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** tile overlap in pixels, a value between 0 and 8192. (optional, default `0`) + - `tile.angle` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** tile angle of rotation, must be a multiple of 90. (optional, default `0`) - `tile.container` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** tile container, with value `fs` (filesystem) or `zip` (compressed file). (optional, default `'fs'`) - `tile.layout` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** filesystem layout, possible values are `dz`, `zoomify` or `google`. (optional, default `'dz'`) diff --git a/docs/changelog.md b/docs/changelog.md index 927d04a5..5712d2d7 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -10,6 +10,10 @@ Requires libvips v8.6.1. [#1024](https://github.com/lovell/sharp/pull/1024) [@3epnm](https://github.com/3epnm) +* Expose angle option for tile-based output. + [#1121](https://github.com/lovell/sharp/pull/1121) + [@BiancoA](https://github.com/BiancoA) + #### v0.19.0 - 11th January 2018 * Expose offset coordinates of strategy-based crop. diff --git a/docs/index.md b/docs/index.md index dcaf8fd1..75a392b1 100644 --- a/docs/index.md +++ b/docs/index.md @@ -107,6 +107,7 @@ the help and code contributions of the following people: * [Kenric D'Souza](https://github.com/AzureByte) * [Oleh Aleinyk](https://github.com/oaleynik) * [Marcel Bretschneider](https://github.com/3epnm) +* [Andrea Bianco](https://github.com/BiancoA) Thank you! diff --git a/lib/output.js b/lib/output.js index e5a19696..163d0a6c 100644 --- a/lib/output.js +++ b/lib/output.js @@ -319,7 +319,7 @@ function toFormat (format, options) { * @param {Object} [tile] * @param {Number} [tile.size=256] tile size in pixels, a value between 1 and 8192. * @param {Number} [tile.overlap=0] tile overlap in pixels, a value between 0 and 8192. - * @param {Number} [tile.angle=0] tile, angle of rotation, must be a multiple of 90.. + * @param {Number} [tile.angle=0] tile angle of rotation, must be a multiple of 90. * @param {String} [tile.container='fs'] tile container, with value `fs` (filesystem) or `zip` (compressed file). * @param {String} [tile.layout='dz'] filesystem layout, possible values are `dz`, `zoomify` or `google`. * @returns {Sharp} diff --git a/package.json b/package.json index 38799ea3..f83bd291 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,8 @@ "Jarda Kotěšovec ", "Kenric D'Souza ", "Oleh Aleinyk ", - "Marcel Bretschneider " + "Marcel Bretschneider ", + "Andrea Bianco " ], "scripts": { "clean": "rm -rf node_modules/ build/ vendor/ coverage/ test/fixtures/output.*",