Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use single color table for animated rotating flags #13

Open
SomeAspy opened this issue Jun 3, 2024 · 1 comment
Open

Use single color table for animated rotating flags #13

SomeAspy opened this issue Jun 3, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@SomeAspy
Copy link

SomeAspy commented Jun 3, 2024

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
Copy link
Owner

hexaclue commented Jun 4, 2024

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

@hexaclue hexaclue added the enhancement New feature or request label Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants