boppreh / steamgrid

Downloads images to fill your Steam grid view
MIT License
675 stars 42 forks source link

Handle WEBP animations. #116

Open kmicki opened 2 years ago

kmicki commented 2 years ago

Requires use of a package github.com/kmicki/webpanimation which is forked from github.com/sizeofint/webpanimation. The fork adds necessary functions for decoding WEBP animation into single frames (original package only supports encoding single frames into an animation).

The webpanimation package uses cgo to bind to libwebp, so gcc is necessary to build the application from now on.

It is working on Linux (tested on Arch/SteamOS) and Windows (tested on Windows 10 with mingw installed). It was not tested on a Mac but should also work.

The extension is changed to .png when the file is saved anyway, otherwise Steam will not use it. But it works with a changed extension.