GitHub - lovell/sharp: High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images. Uses the libvips library.
Briefly

The article discusses a high-speed Node-API module designed for converting large images into smaller, web-compatible formats like JPEG, PNG, WebP, GIF, and AVIF. By utilizing libvips, it achieves a resizing speed of 4x-5x faster than standard tools like ImageMagick and GraphicsMagick while maintaining the quality of various color spaces and embedded profiles. It is compatible with JavaScript runtimes supporting Node-API v9, and operations beyond resizing, such as rotation and compositing, are also supported. Users can find installation instructions and documentation at sharp.pixelplumbing.com.
Resizing an image is typically 4x-5x faster than using the quickest ImageMagick and GraphicsMagick settings due to its use of libvips.
Colour spaces, embedded ICC profiles and alpha transparency channels are all handled correctly, ensuring quality is not sacrificed for speed.
As well as image resizing, operations such as rotation, extraction, compositing and gamma correction are available.
Most modern macOS, Windows and Linux systems do not require any additional install or runtime dependencies.
Read at GitHub
[
|
]