gif.js icon indicating copy to clipboard operation
gif.js copied to clipboard

please support adding raw pixel data

Open yesilcimenahmet opened this issue 5 years ago • 2 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

yesilcimenahmet avatar Dec 04 '19 10:12 yesilcimenahmet

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

pancelor avatar Jan 08 '20 19:01 pancelor

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.

mootari avatar Apr 25 '20 18:04 mootari