Open 3400442579 opened 3 years ago
gifenc cannot handle alpha channel using option "rgba4444", apng could not convert to animated gif. Original: Result:
gifenc offers no dithering. Original: Result:
I'm not sure if these are issues or just statements about Pnnquant?
gifenc should already support transparency. If you wish to add dithering you can do so with something like floyd-steinberg module before writing the frame.
@mattdesl any more details on how to add dithering? currently if you record anything else than flat 2D graphics the banding is very noticeable
There’s a variety of modules for dithering on npm. A popular technique is Floyd Steinberg- you can see it in action with gifenc here, feel free to use this code:
(also see dither.js in that repo)
https://github.com/mcychan/PnnQuant.js