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
jimp
An image processing library written entirely in JavaScript.
pngjs
PNG encoder/decoder in pure JS, supporting any bit size & interlace, async & sync with full test suite.