FEZRepacker icon indicating copy to clipboard operation
FEZRepacker copied to clipboard

Proper WebP support

Open Krzyhau opened this issue 2 years ago • 4 comments

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:

In both cases, it's a temporary workaround that should be removed when proper support for loading and storing animated WebP comes to ImageSharp.

Krzyhau avatar Feb 08 '23 22:02 Krzyhau

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.

Krzyhau avatar Dec 24 '23 22:12 Krzyhau

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.

Krzyhau avatar Dec 25 '23 22:12 Krzyhau

Nobody likes WebP anyways.

Jenna1337 avatar Dec 25 '23 22:12 Jenna1337

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.

Krzyhau avatar Dec 29 '23 11:12 Krzyhau