Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement support for GIF #8

Open
jonasob opened this issue Dec 11, 2014 · 1 comment
Open

Implement support for GIF #8

jonasob opened this issue Dec 11, 2014 · 1 comment

Comments

@jonasob
Copy link
Member

jonasob commented Dec 11, 2014

It would be useful to be able to support GIF. This is some JS code for a GIF decoder that may be useful in this: https://github.com/deanm/omggif

@qgustavor
Copy link

This, as other issues, can be resolved simply by using in browser decoding tool, i.e. canvas. The getImageData() API is almost the same as the libraries used in this one and it supports any type of image that the browser understands (like .gif, .webp, .bmp).

In fact I'm just using blockhashData instead of blockhash as I'm getting images via drag and drop and decoding with canvas ( not via XHR ). I don't know if there is a good server side alternative like canvas is, but as seems this library is focused on browsers ( as server side doesn't support XMLHttpRequest ) that is a good improvement using canvas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants