Proper WebP support
Image processing library currently used by Repacker, ImageSharp, doesn't have fully implemented animated WebP support yet. And I don't really want to switch to Magick (which does have support for it) because of its unreasonable file size for a one feature in something that's supposed to be a lightweight tool.
There are two solutions to consider:
- use this modified wrapper for WebP library
- make a basic parser utility class in Repacker to transform animated WebP into a list of static WebP images and viceversa.
In both cases, it's a temporary workaround that should be removed when proper support for loading and storing animated WebP comes to ImageSharp.
It seems that version v3.1.0 of ImageSharp has added a support for animated WebP's!
For legacy support, I propose adding GIF as an optional file format for AnimatedTextures, and making WebP the main one. Also, someone could legitimately want to make their custom animated sprites as GIFs.
Unfortunately, previously mentioned version of ImageSharp dropped support for old versions of .NET I am not really sure if it's possible to use it with Repacker at that state without some work, so the idea of using WebP might need to wait.
Nobody likes WebP anyways.
Don't @ me if anyone comes crying because their animated sprites need more than 256 colors. Leaving this open in case someone happens to know a neat solution.