jnordberg / gif.js

JavaScript GIF encoding library
http://jnordberg.github.io/gif.js/
MIT License
4.76k stars 668 forks source link

globalCompositeOperation weirdness? #28

Closed naeluh closed 10 years ago

naeluh commented 10 years ago

Hey gif.js is awesome !

I was wondering why using globalCompositeOperation was causing some weirdness

Like ex.

Only working with some :

http://jsfiddle.net/TC8q3/6/

but with just plain drawImage it works ?

http://jsfiddle.net/TC8q3/9/

Am I missing something ?

Anyway this is great !!!

thanks !

naeluh commented 10 years ago

yeah it kinda gives this error every time

Uncaught TypeError: Object # has no method 'currentFrame'

naeluh commented 10 years ago

here is another example

http://jsfiddle.net/naeluh/5s5k7/6/

naeluh commented 10 years ago

I added an load function which improved but its still not right at all

       if (gif.loaded === true) {
            //do stuff 
        }

heres an example - > http://jsfiddle.net/TC8q3/10/

jnordberg commented 10 years ago

I think you are confusing gif libraries :)

naeluh commented 10 years ago

which library should i use ?

naeluh commented 10 years ago

thanks again for the help !