You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure what you mean by "image file", but omggif produces an array of pixels. See the methods like gr.decodeAndBlitFrameRGBA. There is an example in the repository of how to do this with Plask (plask_viewer.js), the idea is similar but the APIs different for .
The basic idea for would be something like:
var imagedata = canvas_context.createImageData(width, height);
gif_reader.decodeAndBlitFrameRGBA(frame_num, imagedata.data);
canvas_context.putImageData(imagedata, 0, 0);
I can go from a gif to an array of frame objects.
How can I get an image file of some sort, for example to draw to canvas, from the objects?
The text was updated successfully, but these errors were encountered: