From c7f4488e77fad9e70b047306e540bf070ba44524 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Sun, 4 Jun 2017 19:51:22 +0100 Subject: [PATCH] Docs and changelog entry for #828 --- docs/api-output.md | 2 ++ docs/changelog.md | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/docs/api-output.md b/docs/api-output.md index 595035e3..f992c238 100644 --- a/docs/api-output.md +++ b/docs/api-output.md @@ -140,6 +140,8 @@ Use these TIFF options for output image. - `options.force` **[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** force TIFF output, otherwise attempt to use input format (optional, default `true`) - `options.compression` **[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** compression options: lzw, deflate, jpeg (optional, default `'jpeg'`) - `options.predictor` **[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** compression predictor options: none, horizontal, float (optional, default `'none'`) + - `options.xres` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** horizontal resolution in pixels/mm (optional, default `1.0`) + - `options.yres` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** vertical resolution in pixels/mm (optional, default `1.0`) - `options.squash` **[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** squash 8-bit images down to 1 bit (optional, default `false`) diff --git a/docs/changelog.md b/docs/changelog.md index fc015927..93209952 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -4,6 +4,12 @@ Requires libvips v8.5.5. +#### v0.18.2 - TBD + +* Expose libvips' xres and yres properties for TIFF output. + [#828](https://github.com/lovell/sharp/pull/828) + [@YvesBos](https://github.com/YvesBos) + #### v0.18.1 - 30th May 2017 * Remove regression from #781 that could cause incorrect shrink calculation.