mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-14 17:24:46 +03:00
check imIn mode, not mode to convert to
This commit is contained in:
parent
8ae262e977
commit
60d4376cff
|
@ -1706,10 +1706,10 @@ ImagingConvertTransparent(Imaging imIn, const char *mode, int r, int g, int b) {
|
|||
return (Imaging)ImagingError_ModeError();
|
||||
}
|
||||
|
||||
int rgbIn = strcmp(mode, "rgb") == 0;
|
||||
int bitIn = strcmp(mode, "1") == 0;
|
||||
int iIn = strcmp(mode, "I") == 0;
|
||||
int lIn = strcmp(mode, "L") == 0;
|
||||
int rgbIn = strcmp(imIn->mode, "rgb") == 0;
|
||||
int bitIn = strcmp(imIn->mode, "1") == 0;
|
||||
int iIn = strcmp(imIn->mode, "I") == 0;
|
||||
int lIn = strcmp(imIn->mode, "L") == 0;
|
||||
int rgbaOut = strcmp(mode, "RGBA") == 0;
|
||||
int laOut = strcmp(mode, "LA") == 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user