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
46 stars 3 forks source link

Animated webp/apng support? #2

Open Crystalwarrior opened 11 months ago

Crystalwarrior commented 11 months 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 11 months 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 11 months ago

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

Crystalwarrior commented 11 months 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 10 months ago

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