-
Notifications
You must be signed in to change notification settings - Fork 14
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
Quantize colors from a RGB(A) buffer. #68
Comments
Hi @srijan-paul. Great feature request! We are working on a |
Amazing, thank you for working on this. |
@srijan-paul The RGB API isn't released so it's still unstable. It should still work though the file size of the resulting GIFs won't be ideal: As of now, it creates one local color palette per frame. In the future we are planning to support quantizing to a single global color palette as well. |
Got it. |
(I'd be happy to contribute this feature if PRs are welcome).
Currently, we have to set the global/local color table manually.
However, when writing an RGBA buffer, it would be much easier if the library could quantize the colors into a 256-bit space.
GIFLIB, for example, has a
GifQuantizeColors
function that is very handy for creating frame-local color tables.The text was updated successfully, but these errors were encountered: