Closed Wodki closed 7 years ago
I'm going to guess you're using gif-stream
for GIFDecoder
:
https://www.npmjs.com/package/gif-stream
This package returns an array of RGB pixels whereas we expect RGBA. As a result, we are likely reading the second frame's red channel as our alpha channel.
I suggest attacking this in 2 parts:
checkerboard-pixels.json
and verify it looks good
gif-stream
data to include alpha channel or move to a library that loads GIF frames with an alpha channel (e.g. get-pixels
)
so I am trying to add a single frame to the gif, that is my image/other gif/whatever but I cant at best I get a black gif, any ideas? I have been trying to do so for the past 2-3 days with this and other modules but with no success, any help will be really appreciated, thanks.
ps: I also tried converting a png to base64 but as I came to understand it doesnt accept base 64.