mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
Docs: clarify stats.isOpaque (#2094)
This commit is contained in:
parent
86264e7733
commit
03dad5f2b2
@ -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)
|
- `minY` (y-coordinate of one of the pixel where the minimum lies)
|
||||||
- `maxX` (x-coordinate of one of the pixel where the maximum 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)
|
- `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)
|
- `entropy`: Histogram-based estimation of greyscale entropy, discarding alpha channel if any (experimental)
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
@ -277,7 +277,7 @@ function metadata (callback) {
|
|||||||
* - `minY` (y-coordinate of one of the pixel where the minimum lies)
|
* - `minY` (y-coordinate of one of the pixel where the minimum lies)
|
||||||
* - `maxX` (x-coordinate of one of the pixel where the maximum 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)
|
* - `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)
|
* - `entropy`: Histogram-based estimation of greyscale entropy, discarding alpha channel if any (experimental)
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
|
Loading…
x
Reference in New Issue
Block a user