Skip to content
This repository was archived by the owner on Sep 28, 2023. It is now read-only.

Commit 2c01842

Browse files
committed
Size is (width, height)
The size argument to Image.resize should be (width, height) to match PIL behavior.
1 parent ebcc887 commit 2c01842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

accimagemodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static PyObject* Image_resize(ImageObject* self, PyObject* args, PyObject* kwds)
3030
return NULL;
3131
}
3232

33-
if (!PyArg_ParseTuple(size, "ii", &new_height, &new_width)) {
33+
if (!PyArg_ParseTuple(size, "ii", &new_width, &new_height)) {
3434
return NULL;
3535
}
3636

0 commit comments

Comments
 (0)