Do not load transparent pixels from subsequent GIF frames #5333
Each frame of a GIF can have a different transparency. However, as Pillow reads the frames in, we also merge them into the result of the previous frames.
The premise of this PR is that this means that the merged second frame may have transparent pixels on one P index from the first frame, and transparent pixels from a different P index from the second frame. In other words, a single transparency is insufficient.
Instead, cherry-picking part of #3434, when loading the second frame, don't write the transparent pixels at all.
I have also added a new commit to only set
The text was updated successfully, but these errors were encountered: