As NodeJS professionals we’re always in search of new efficient and promising tools. And it’s wonderful when we find something like Sharp! Sharp is a high-speed Node.js module is to convert large images.
How it works exactly?
Sharp is able to convert large images into smaller, web-friendly JPEG, PNG and WebP images of different dimensions. Its main features include:
- The module can resize an image 4x-5x faster than the quickest ImageMagick and GraphicsMagick settings because it uses libvips.
- There is a handy set of color spaces, embedded ICC profiles, as well as alpha transparency. Lanczos resampling makes it possible to have both a high-quality image and great speed.
- There are other operations you can use, like rotation, extraction, compositing and gamma correction.
- You don’t need additional install or runtime dependencies, as modern 64-bit OS X, Windows and Linux systems running Node versions 8, 10, 12 and 13 don’t require this.
The detailed guide on how to use the module can be found here.