diff --git a/docs/api-constructor.md b/docs/api-constructor.md index bf4858bb..305a0222 100644 --- a/docs/api-constructor.md +++ b/docs/api-constructor.md @@ -57,7 +57,7 @@ Implements the [stream.Duplex](http://nodejs.org/api/stream.html#stream_class_st | [options.text.dpi] | number | 72 | the resolution (size) at which to render the text. Does not take effect if `height` is specified. | | [options.text.rgba] | boolean | false | set this to true to enable RGBA output. This is useful for colour emoji rendering, or support for pango markup features like `Red!`. | | [options.text.spacing] | number | 0 | text line height in points. Will use the font line height if none is specified. | -| [options.text.wrap] | number | 'word' | word wrapping style when width is provided, one of: 'word', 'char', 'charWord' (prefer char, fallback to word) or 'none'. | +| [options.text.wrap] | string | "'word'" | word wrapping style when width is provided, one of: 'word', 'char', 'charWord' (prefer char, fallback to word) or 'none'. | **Example** ```js diff --git a/docs/api-input.md b/docs/api-input.md index 3d78e78d..d68e03dd 100644 --- a/docs/api-input.md +++ b/docs/api-input.md @@ -37,6 +37,7 @@ A `Promise` is returned when `callback` is not provided. - `iptc`: Buffer containing raw IPTC data, if present - `xmp`: Buffer containing raw XMP data, if present - `tifftagPhotoshop`: Buffer containing raw TIFFTAG_PHOTOSHOP data, if present +- `formatMagick`: String containing format for images loaded via *magick diff --git a/lib/constructor.js b/lib/constructor.js index 87a56f83..b69adb73 100644 --- a/lib/constructor.js +++ b/lib/constructor.js @@ -157,7 +157,7 @@ const debuglog = util.debuglog('sharp'); * @param {number} [options.text.dpi=72] - the resolution (size) at which to render the text. Does not take effect if `height` is specified. * @param {boolean} [options.text.rgba=false] - set this to true to enable RGBA output. This is useful for colour emoji rendering, or support for pango markup features like `Red!`. * @param {number} [options.text.spacing=0] - text line height in points. Will use the font line height if none is specified. - * @param {number} [options.text.wrap='word'] - word wrapping style when width is provided, one of: 'word', 'char', 'charWord' (prefer char, fallback to word) or 'none'. + * @param {string} [options.text.wrap='word'] - word wrapping style when width is provided, one of: 'word', 'char', 'charWord' (prefer char, fallback to word) or 'none'. * @returns {Sharp} * @throws {Error} Invalid parameters */ diff --git a/lib/input.js b/lib/input.js index ed8d9558..3b403d89 100644 --- a/lib/input.js +++ b/lib/input.js @@ -430,6 +430,7 @@ function _isStreamInput () { * - `iptc`: Buffer containing raw IPTC data, if present * - `xmp`: Buffer containing raw XMP data, if present * - `tifftagPhotoshop`: Buffer containing raw TIFFTAG_PHOTOSHOP data, if present + * - `formatMagick`: String containing format for images loaded via *magick * * @example * const metadata = await sharp(input).metadata();