diff --git a/docs/api-input.md b/docs/api-input.md index 94babf0e..6f1c6bde 100644 --- a/docs/api-input.md +++ b/docs/api-input.md @@ -68,7 +68,7 @@ A `Promise` is returned when `callback` is not provided. - `minY` (y-coordinate of one of the pixel where the minimum lies) - `maxX` (x-coordinate of one of the pixel where the maximum lies) - `maxY` (y-coordinate of one of the pixel where the maximum lies) -- `isOpaque`: Value to identify if the image is opaque or transparent, based on the presence and use of alpha channel +- `isOpaque`: Is the image fully opaque? Will be `true` if the image has no alpha channel or if every pixel is fully opaque. - `entropy`: Histogram-based estimation of greyscale entropy, discarding alpha channel if any (experimental) ### Parameters diff --git a/lib/input.js b/lib/input.js index 71eb0b6b..f0a6d93f 100644 --- a/lib/input.js +++ b/lib/input.js @@ -277,7 +277,7 @@ function metadata (callback) { * - `minY` (y-coordinate of one of the pixel where the minimum lies) * - `maxX` (x-coordinate of one of the pixel where the maximum lies) * - `maxY` (y-coordinate of one of the pixel where the maximum lies) - * - `isOpaque`: Value to identify if the image is opaque or transparent, based on the presence and use of alpha channel + * - `isOpaque`: Is the image fully opaque? Will be `true` if the image has no alpha channel or if every pixel is fully opaque. * - `entropy`: Histogram-based estimation of greyscale entropy, discarding alpha channel if any (experimental) * * @example