Merge pull request #8740 from radarhere/tuple

This commit is contained in:
Hugo van Kemenade 2025-02-09 16:05:29 +02:00 committed by GitHub
commit c81f2f5014
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -46,8 +46,7 @@ class WebPImageFile(ImageFile.ImageFile):
self._decoder = _webp.WebPAnimDecoder(self.fp.read())
# Get info from decoder
width, height, loop_count, bgcolor, frame_count, mode = self._decoder.get_info()
self._size = width, height
self._size, loop_count, bgcolor, frame_count, mode = self._decoder.get_info()
self.info["loop"] = loop_count
bg_a, bg_r, bg_g, bg_b = (
(bgcolor >> 24) & 0xFF,

View File

@ -449,7 +449,7 @@ _anim_decoder_get_info(PyObject *self) {
WebPAnimInfo *info = &(decp->info);
return Py_BuildValue(
"IIIIIs",
"(II)IIIs",
info->canvas_width,
info->canvas_height,
info->loop_count,