Deanimator is a Go package that can detect animated images and "deanimate" them by rendering just the first frame as a static image.
Busy Slack:
Becomes Calm Slack:
Add the module via go mod:
go get github.com/slackhq/deanimator When using the module, make sure to import / register the deanimation libraries you want to support (similar to the image package in the standard library). For example:
import ( // Animated GIF image support _ "github.com/slackhq/deanimator/gif" // Animated PNG image support _ "github.com/slackhq/deanimator/png" // Animated WebP image support _ "github.com/slackhq/deanimator/webp" ) More information can be found in the Go package documentation.

