Use transparency behind first GIF frame and when disposing to background#5557
Conversation
This test is fixed by the next commits.
|
Using transparency behind the first frame is one remaining part of #3434. The other part is a change to dispose to transparency for disposal method 2, instead of to background color. I've found https://legacy.imagemagick.org/Usage/anim_basics/#dispose. In the 'Dispose Background' section, it states that
So I'm going with that. I've now added the rest of #3434 to this issue. |
Resolves #5548
The issue provides a single frame GIF with a
dispose_extentof (0, 0, 27, 32) - which is not the full size of the image.The spec states that
However, other software shows this area as transparent instead. This PR is where I give in to this apparently universal convention.
I created the test image here with Pillow.
Credit to df10a72 for the start of this code - although that commit falls back to the background color if there is no transparency. I don't find that behaviour from other software, so I've not included it here.