mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-30 19:24:34 +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");
|
return ImagingError_ValueError("scale must be > 0");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (xscale == 1 && yscale == 1) {
|
||||||
|
imOut = ImagingCopy(imIn);
|
||||||
|
} else {
|
||||||
imOut = ImagingReduce(imIn, xscale, yscale);
|
imOut = ImagingReduce(imIn, xscale, yscale);
|
||||||
|
}
|
||||||
|
|
||||||
return PyImagingNew(imOut);
|
return PyImagingNew(imOut);
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user