mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 09:44:31 +03:00
raise on special cases even if imIn->image8
This commit is contained in:
parent
d48324bd21
commit
babaaf9bbe
|
@ -326,7 +326,9 @@ ImagingResample(Imaging imIn, int xsize, int ysize, int filter)
|
||||||
if (strcmp(imIn->mode, "P") == 0 || strcmp(imIn->mode, "1") == 0)
|
if (strcmp(imIn->mode, "P") == 0 || strcmp(imIn->mode, "1") == 0)
|
||||||
return (Imaging) ImagingError_ModeError();
|
return (Imaging) ImagingError_ModeError();
|
||||||
|
|
||||||
if (imIn->image8) {
|
if (imIn->type == IMAGING_TYPE_SPECIAL) {
|
||||||
|
return (Imaging) ImagingError_ModeError();
|
||||||
|
} else if (imIn->image8) {
|
||||||
ResampleHorizontal = ImagingResampleHorizontal_8bpc;
|
ResampleHorizontal = ImagingResampleHorizontal_8bpc;
|
||||||
} else {
|
} else {
|
||||||
switch(imIn->type) {
|
switch(imIn->type) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user