diff --git a/_imaging.c b/_imaging.c index 4da764d01..40159c6a2 100644 --- a/_imaging.c +++ b/_imaging.c @@ -2996,6 +2996,9 @@ static struct PyMethodDef methods[] = { {"rankfilter", (PyCFunction)_rankfilter, 1}, #endif {"resize", (PyCFunction)_resize, 1}, + // There were two methods for image resize before. + // Starting from Pillow 2.7.0 stretch is depreciated. + {"stretch", (PyCFunction)_resize, 1}, {"transpose", (PyCFunction)_transpose, 1}, {"transform2", (PyCFunction)_transform2, 1},