Control: retitle -1 Pillow claims GIF frame to be mode RGB instead of P Control: reassign -1 pillow 9.0.0
Hi, Quoting Matthias Klose (2022-01-13 12:23:39) > img2pdf's autopkg tests fail with pillow 9.0.0, as seen at > https://tracker.debian.org/pkg/img2pdf > > =========================== short test summary info > ============================ > FAILED src/img2pdf_test.py::test_general[animation.gif-internal] - > AssertionE... > FAILED src/img2pdf_test.py::test_general[animation.gif-pikepdf] - > AssertionEr... > ERROR src/img2pdf_test.py::test_gif_animation[internal] - TypeError: object > i... > ERROR src/img2pdf_test.py::test_gif_animation[pikepdf] - TypeError: object > is... > > there is a new upstream version available. thanks for the bug report! The img2pdf autopkgtest has found a regression in Pillow. Minimal reproducer with the attached gif: python3 -c 'from PIL import Image;img=Image.open("animation.gif");img.seek(1);print(img.mode)' With 9.0.0 this will output "RGB" even though frame 1 is a palette based image. With Pillow 8.4.0 above one-liner will correctly print "P". I tracked this down to this commit: b383a175be70da0df33babea3d480efd9768e937 Thanks! cheers, josch
signature.asc
Description: signature