Open OzerOzdemir opened 1 month ago
The issue exists not in this library, but in https://github.com/bitbank2/AnimatedGIF (or rather the provided sample code). While your fix has improved things, it didn't completely solve all the ghosting issues I had.
I found a workaround:
This will turn the GIF into a slideshow of full frames, no transparency or layers involved. After doing this, I got a 3100 frame GIF to play flawlessly.
When a transparent gif has layers with different sizes, the animation looks off with lots of artifacts. This is present in multiple example sources, and also seems to be the original root cause of https://github.com/mrcodetastic/ESP32-HUB75-MatrixPanel-DMA/issues/631
The fix is to set x to pDraw->iX, similar to how y is set to
y = pDraw->iY + pDraw->y; // current line