BOTLANNER / godot-gif

GDExtension for Godot 4+ to load GIF files as AnimatedTexture and/or SpriteFrames.
https://godotengine.org/asset-library/asset/2255
MIT License
52 stars 5 forks source link

Animated webp/apng support? #2

Open Crystalwarrior opened 1 year ago

Crystalwarrior commented 1 year ago

This tool is pretty awesome! I was wondering if webp and/or apng support is also on the table for importing? For webp I'd imagine you would need to add libwebp, as for apng I'm not sure. However I am mostly prioritizing webp support as that's where this tool would save the most time for me as I have a lot of webp assets that could be converted to Godot.

BOTLANNER commented 1 year ago

This would be useful, anyone is welcome to pick this up and PR back. Not sure when I would be able to get to it otherwise.

BOTLANNER commented 1 year ago

In the meantime a potential workaround would be to use an online webp to gif converter and go from there.

Crystalwarrior commented 1 year ago

Sadly that'll screw up the colors and remove alpha, at which point a better option is to split into individual frames

BlackDragonBE commented 12 months ago

@Crystalwarrior This tool worked for me and preserved the alpha with the files I tested: https://ezgif.com/webp-to-gif