Closed 19hours closed 2 years ago
When I check the jpeg file it is a valid jpeg image
The code looks reasonable to me. I have a few things I'd sanity check on:
pixels
data in RGB or RGBA? (gif-encoder
expects RGBA, https://github.com/twolfson/gif-encoder)
pixels.length
should equal width * height * 4
(width height RGBA)Hope that helps =)
Dimensions was the problem, thanks ~
Thanks for building this lib, I am facing some problems generating a gif. Is it my data that is corrupted?
The end result is this 1 frame gif: