From 76dcddfa3d6042b6a23239cf0e139ce93bf53ab5 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Wed, 2 Sep 2020 09:06:15 +0100 Subject: [PATCH] Changelog, credit, doc update for #2348 --- docs/api-constructor.md | 2 +- docs/changelog.md | 4 ++++ docs/humans.txt | 6 ++++++ lib/constructor.js | 2 +- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/api-constructor.md b/docs/api-constructor.md index 28c9a1db..a5ae63bf 100644 --- a/docs/api-constructor.md +++ b/docs/api-constructor.md @@ -25,7 +25,7 @@ Implements the [stream.Duplex][1] class. An integral Number of pixels, zero or false to remove limit, true to use default limit of 268402689 (0x3FFF x 0x3FFF). (optional, default `268402689`) - `options.sequentialRead` **[boolean][5]** Set this to `true` to use sequential rather than random access where possible. This can reduce memory usage and might improve performance on some systems. (optional, default `false`) - - `options.density` **[number][6]** number representing the DPI for vector images. (optional, default `72`) + - `options.density` **[number][6]** number representing the DPI for vector images in the range 1 to 100000. (optional, default `72`) - `options.pages` **[number][6]** number of pages to extract for multi-page input (GIF, TIFF, PDF), use -1 for all pages. (optional, default `1`) - `options.page` **[number][6]** page number to start extracting from for multi-page input (GIF, TIFF, PDF), zero based. (optional, default `0`) - `options.level` **[number][6]** level to extract from a multi-level input (OpenSlide), zero based. (optional, default `0`) diff --git a/docs/changelog.md b/docs/changelog.md index a67003fb..bea92cc7 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -10,6 +10,10 @@ Requires libvips v8.10.0 [#2343](https://github.com/lovell/sharp/pull/2343) [@derom](https://github.com/derom) +* Allow input density range up to 100000 DPI. + [#2348](https://github.com/lovell/sharp/pull/2348) + [@stefanprobst](https://github.com/stefanprobst) + ### v0.26.0 - 25th August 2020 * Prebuilt libvips binaries are now statically-linked and Brotli-compressed, requiring Node.js 10.16.0+. diff --git a/docs/humans.txt b/docs/humans.txt index 9b99efe7..50b7a2f0 100644 --- a/docs/humans.txt +++ b/docs/humans.txt @@ -197,3 +197,9 @@ GitHub: https://github.com/deftomat Name: Robert O'Rourke GitHub: https://github.com/roborourke + +Name: Denis Soldatov +GitHub: https://github.com/derom + +Name: Stefan Probst +GitHub: https://github.com/stefanprobst diff --git a/lib/constructor.js b/lib/constructor.js index eb89e455..e1691889 100644 --- a/lib/constructor.js +++ b/lib/constructor.js @@ -102,7 +102,7 @@ const debuglog = util.debuglog('sharp'); * An integral Number of pixels, zero or false to remove limit, true to use default limit of 268402689 (0x3FFF x 0x3FFF). * @param {boolean} [options.sequentialRead=false] - Set this to `true` to use sequential rather than random access where possible. * This can reduce memory usage and might improve performance on some systems. - * @param {number} [options.density=72] - number representing the DPI for vector images. + * @param {number} [options.density=72] - number representing the DPI for vector images in the range 1 to 100000. * @param {number} [options.pages=1] - number of pages to extract for multi-page input (GIF, TIFF, PDF), use -1 for all pages. * @param {number} [options.page=0] - page number to start extracting from for multi-page input (GIF, TIFF, PDF), zero based. * @param {number} [options.level=0] - level to extract from a multi-level input (OpenSlide), zero based.