查看 responsive-loader 时了解到 sharp 和 jimp,之前项目用到了 gm 看到 sharp 的介绍还是有点好奇,所以决定研究一下。
介绍
sharp
https://sharp.pixelplumbing.com/
High performance Node.js image processing,resizing an image is typically 4x-5x faster than using the quickest ImageMagick and GraphicsMagick settings due to its use of libvips .
libvips
https://github.com/libvips/libvips
A fast image processing library with low memory needs