Animated GIF Encoder + HTML5

Hi everyone, I’m trying to use the OpenFL GIF extension from Steve Richey while targeting html5

Unfortunately it won’t work since is not available on this target.

I’ve had a look at js.html.File but I’m not familiar with JS at all - that’s why i use haxe / openFL! The class has a very different implementation than and doesn’t seem to work with ByteArrays.

Any tips on what I should do? Or is there an html5 animated GIF lib out there that I missed?

Replace the #if !flash declarations in this file

to #if sys instead and I think it will work :slight_smile:

Thanks, that removes some errors! I realize the lib is filled with a lot of bugs though. Some strange logic in the code too. I think i might look for another solution… :confused: