hexaclue / pride-overlay

Easily turn your profile picture into an LGBTQ+ profile picture!
https://pride-pfp.xyz
Apache License 2.0
13 stars 4 forks source link

Use single color table for animated rotating flags #13

Open SomeAspy opened 1 month ago

SomeAspy commented 1 month ago

I couldn't help but notice that animated gifs made by this tool can be unreasonably large. Using a single color table for all frames can (at times) dramatically reduce the size. (~30% in my cases) if this method is applied during creation and not retroactively, this could also improve animation times.

since you are not supporting gifs (at least not yet) it may be worth applying this option compression method to all gifs. I'm not well versed in gif creation/editing in JS/TS so I can't offer much advice other than that. image

hexaclue commented 1 month ago

True! The lib that's currently used (gifshot) has been taken down as well for whatever reason, so porting the gif exporting to a different library is probably a good idea. Haven't looked a lot into it yet, but gif.js looks like a good contender.

Will look further into it when I have more time