From a47072bcbe117324a2373cc96d733f07bee267d7 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 15 Apr 2021 19:01:12 +1000 Subject: [PATCH] Treat previous contents of first frame as transparent --- Tests/images/dispose_prev_first_frame.gif | Bin 0 -> 530 bytes Tests/images/dispose_prev_first_frame_seeked.gif | Bin 0 -> 1028 bytes Tests/test_file_gif.py | 8 ++++++++ src/PIL/GifImagePlugin.py | 8 ++++++++ 4 files changed, 16 insertions(+) create mode 100644 Tests/images/dispose_prev_first_frame.gif create mode 100644 Tests/images/dispose_prev_first_frame_seeked.gif diff --git a/Tests/images/dispose_prev_first_frame.gif b/Tests/images/dispose_prev_first_frame.gif new file mode 100644 index 0000000000000000000000000000000000000000..4c19dd1ed43d2347a7914062e63d8dcfd1f55d4a GIT binary patch literal 530 zcmZ?wbhEHbOkpr$Xk-9^|6meGDE?&OO##w6AOVm(1II%KMh+Q|4GRu7a|ny^9N4h% zaJzuA*PI^#3y*e7a0cBuv2pR?9tCH;FCLqoxKGqDo)zP1wA8y>CpoXi^Yel;vjwwX z$#iT^KRnmE_7}^l;0*soroE3`yn*Sc@Zy<5~$9r!M07uVZ!M`j1;yY8#~>&4O&@FC$48}D-$o1l-L$82Qn z+jty4rJR^nA0#$o=EJmebM3?V{_ZShxVS8E^1V5`zGR(R8@d0O&FsRQ8(RhMFPj@# qnty$ND*JKUIoqE$VEP&qD)2A?h5$1n1Xu=b2*_Xw0b?RVz#0H&uIHKn literal 0 HcmV?d00001 diff --git a/Tests/images/dispose_prev_first_frame_seeked.gif b/Tests/images/dispose_prev_first_frame_seeked.gif new file mode 100644 index 0000000000000000000000000000000000000000..bc3eb1393c104f8490ecb8f26fc579f548c37516 GIT binary patch literal 1028 zcmV+f1pE6(Nk%w1VPpU@0EYko0003000000000001Ox;H1qB8M1_uWR2nYxX2?+`c z3JVJh3=9kn4Gj(s4i66x5D*X%5fKs+5)%^>6ciK{6%`g178e&67#J8C85tTH8XFrM z92^`S9UUGX9v>ec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