jnordberg / gif.js

JavaScript GIF encoding library

Home Page:http://jnordberg.github.io/gif.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

please support adding raw pixel data

yesilcimenahmet opened this issue · comments

Please consider adding Raw pixels frame. It is very useful to import raw pixels from other programming languages into the javascript interface and add frames.

Thanks

as a workaround, you can put your raw pixels into an ImageData object and then add that ImageData object; see https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Pixel_manipulation_with_canvas for a good starting point

I wouldn't even call that a workaround. ImageData is a reasonable interface.

In my opinion this issue can be closed, as the possibility to add raw pixel data exists.