We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b4c7c0 commit bd6e70fCopy full SHA for bd6e70f
1 file changed
src/libImaging/Chops.c
@@ -64,7 +64,8 @@ create(Imaging im1, Imaging im2, const ModeID mode) {
64
int xsize, ysize;
65
66
if (!im1 || !im2 || im1->type != IMAGING_TYPE_UINT8 ||
67
- (mode != IMAGING_MODE_UNKNOWN && (im1->mode != mode || im2->mode != mode))) {
+ (mode != IMAGING_MODE_UNKNOWN &&
68
+ (im1->mode != IMAGING_MODE_1 || im2->mode != IMAGING_MODE_1))) {
69
return (Imaging)ImagingError_ModeError();
70
}
71
if (im1->type != im2->type || im1->bands != im2->bands) {
0 commit comments