Closed lpatiny closed 11 months ago
Seems a bug.
There may be some more confusion between component
and channel
in various function. We call the option channel
but nevertherless we allow alpha component like in
as pointed by @Xstoudi
Alpha is a channel
Is validateChannel correct ?
channel > image.channels
If we want to validate a channel I think it should be
channel >= image.channels
https://github.com/image-js/image-js-typescript/blob/ce6a4f4a28f61f5968df56db69cceed887866fbb/src/utils/validators.ts#L20-L29
WDYT ?