Skip to content

Commit c81f2f5

Browse files
authored
Merge pull request #8740 from radarhere/tuple
2 parents b57b4e5 + b59dea6 commit c81f2f5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/PIL/WebPImagePlugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ def _open(self) -> None:
4646
self._decoder = _webp.WebPAnimDecoder(self.fp.read())
4747

4848
# Get info from decoder
49-
width, height, loop_count, bgcolor, frame_count, mode = self._decoder.get_info()
50-
self._size = width, height
49+
self._size, loop_count, bgcolor, frame_count, mode = self._decoder.get_info()
5150
self.info["loop"] = loop_count
5251
bg_a, bg_r, bg_g, bg_b = (
5352
(bgcolor >> 24) & 0xFF,

src/_webp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ _anim_decoder_get_info(PyObject *self) {
449449
WebPAnimInfo *info = &(decp->info);
450450

451451
return Py_BuildValue(
452-
"IIIIIs",
452+
"(II)IIIs",
453453
info->canvas_width,
454454
info->canvas_height,
455455
info->loop_count,

0 commit comments

Comments
 (0)