dwitter
dwitter copied to clipboard
Gif creation performance improvements possible?
The processing of gifs takes a while. I'm curious to know exactly where that time goes and if there are ways we could speed it up a bit.
Looks like the GIF is rendered in Full HD. That's pretty large for a GIF. My gut feeling is that the processing would be a lot faster if the captured frames are resized to something smaller early in the processing pipeline.
@iver56 Some dweets use 1 pixel wide lines, when you resize those, they become a mess
I guess that depends on the image scaling algorithm. Do you have examples of such problematic dweets?
Using MediaRecorder to make .webm movies instead of gifs is probably quite a bit faster (and produces smaller files with better quality :D )
It has a bad support across browsers, mainly for Edge and Safari
It would work with the GIF recorder as a fallback
http://capjs.3d2k.com/ has a pretty good implementation