mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 10:26:19 +03:00
final set of special cases
This commit is contained in:
parent
e6c305511e
commit
fba833e1f4
|
@ -1846,7 +1846,11 @@ _reduce(ImagingObject* self, PyObject* args)
|
|||
return ImagingError_ValueError("scale must be > 0");
|
||||
}
|
||||
|
||||
imOut = ImagingReduce(imIn, xscale, yscale);
|
||||
if (xscale == 1 && yscale == 1) {
|
||||
imOut = ImagingCopy(imIn);
|
||||
} else {
|
||||
imOut = ImagingReduce(imIn, xscale, yscale);
|
||||
}
|
||||
|
||||
return PyImagingNew(imOut);
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user