diff --git a/docs/api-input.md b/docs/api-input.md index 067d5c06..76d76452 100644 --- a/docs/api-input.md +++ b/docs/api-input.md @@ -34,6 +34,8 @@ A Promises/A+ promise is returned when `callback` is not provided. - `density`: Number of pixels per inch (DPI), if present - `chromaSubsampling`: String containing JPEG chroma subsampling, `4:2:0` or `4:4:4` for RGB, `4:2:0:4` or `4:4:4:4` for CMYK - `isProgressive`: Boolean indicating whether the image is interlaced using a progressive scan +- `pages`: Number of pages this TIFF, GIF or PDF image contains. +- `pageHeight`: Number of pixels high each page in this PDF image will be. - `hasProfile`: Boolean indicating the presence of an embedded ICC profile - `hasAlpha`: Boolean indicating the presence of an alpha transparency channel - `orientation`: Number value of the EXIF Orientation header, if present diff --git a/lib/input.js b/lib/input.js index f3760d73..ef8afc5a 100644 --- a/lib/input.js +++ b/lib/input.js @@ -186,6 +186,8 @@ function clone () { * - `density`: Number of pixels per inch (DPI), if present * - `chromaSubsampling`: String containing JPEG chroma subsampling, `4:2:0` or `4:4:4` for RGB, `4:2:0:4` or `4:4:4:4` for CMYK * - `isProgressive`: Boolean indicating whether the image is interlaced using a progressive scan + * - `pages`: Number of pages this TIFF, GIF or PDF image contains. + * - `pageHeight`: Number of pixels high each page in this PDF image will be. * - `hasProfile`: Boolean indicating the presence of an embedded ICC profile * - `hasAlpha`: Boolean indicating the presence of an alpha transparency channel * - `orientation`: Number value of the EXIF Orientation header, if present