diff --git a/docs/src/content/docs/api-input.md b/docs/src/content/docs/api-input.md index a5a9e373..8477f1ff 100644 --- a/docs/src/content/docs/api-input.md +++ b/docs/src/content/docs/api-input.md @@ -17,7 +17,7 @@ Dimensions in the response will respect the `page` and `pages` properties of the A `Promise` is returned when `callback` is not provided. -- `format`: Name of decoder used to decompress image data e.g. `jpeg`, `png`, `webp`, `gif`, `svg` +- `format`: Name of decoder used to parse image e.g. `jpeg`, `png`, `webp`, `gif`, `svg`, `heif`, `tiff` - `size`: Total size of image in bytes, for Stream and Buffer input only - `width`: Number of pixels wide (EXIF orientation is not taken into consideration, see example below) - `height`: Number of pixels high (EXIF orientation is not taken into consideration, see example below) diff --git a/lib/input.js b/lib/input.js index 728b7188..48388a1d 100644 --- a/lib/input.js +++ b/lib/input.js @@ -574,7 +574,7 @@ function _isStreamInput () { * * A `Promise` is returned when `callback` is not provided. * - * - `format`: Name of decoder used to decompress image data e.g. `jpeg`, `png`, `webp`, `gif`, `svg` + * - `format`: Name of decoder used to parse image e.g. `jpeg`, `png`, `webp`, `gif`, `svg`, `heif`, `tiff` * - `size`: Total size of image in bytes, for Stream and Buffer input only * - `width`: Number of pixels wide (EXIF orientation is not taken into consideration, see example below) * - `height`: Number of pixels high (EXIF orientation is not taken into consideration, see example below)