file-type
Detect the file type of a file, stream, or data
sharp
High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images
omggif
omggif is a JavaScript implementation of a GIF 89a encoder and decoder.
gifwrap
A Jimp-compatible library for working with GIFs