yuv418 / emotes

Upload and use custom emotes on Discord without Nitro and Telegram without hassle using memorable URLs
1 stars 2 forks source link

Gifs aren't processed correctly #14

Open rfblock opened 4 years ago

rfblock commented 4 years ago

Thinkspin is using .webp format, which was chosen because it can be animatable in 16-bit colorspace with RGBA. However, in order to downscale it into a gif, it needs to break apart each individual frame, process them, and then stitch the frames back together with the original metadata.

This is an issue because the metadata controls the frame speed and the background, however the metadata for Thinkspin (and probably other .webp's) doesn't get added correctly to the restitched file, creating a gif with the wrong speed and no frame disposal