Reputation: 927
Ok, so here is the situation, i have an animated gif's url, for example let it be http://host.com/myimage.gif. I want to convert this image to binary data without loosing gif's animation informations (which would happen if using canvas to draw and store image). Is there a possibility to do that somehow? Maybe via FileReader? This all should be done on browser JavaScript, without node.js
Upvotes: 2
Views: 1075
Reputation: 119
Maybe libgif library might be helpful. The file libgif.js implements reading a gif file and preserving the frames (if you like to go through the code). It also supports controlling the gif animation.
Upvotes: 1