We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f39c25 commit 60a2107Copy full SHA for 60a2107
lib/src/image/image.dart
@@ -554,7 +554,7 @@ class Image extends Iterable<Pixel> {
554
int get bitsPerChannel => data?.bitsPerChannel ?? 0;
555
556
/// True if the Image has an alpha channel.
557
- bool get hasAlpha => numChannels == 4;
+ bool get hasAlpha => numChannels == 2 || numChannels == 4;
558
559
/// Remap the color channels to the given [order]. Normally Image color
560
/// channels are stored in rgba order for 4 channel images, and
0 commit comments