问题
I'm looking for a node.js module.
A node.js module that I can use to serve compressed images of the sort by the smushit service.
Is there such a module?
Thanks
回答1:
Maybe https://github.com/bentruyman/pulverizr?
回答2:
maybe you can use imagemin
github:https://github.com/imagemin/imagemin
It can work.
回答3:
You can use GraphicsMagick for node.js.
回答4:
For anyone googling this, GraphicsMagic is hosted on NPM as gm: https://www.npmjs.org/package/gm
回答5:
Detected path and can use combination compressing. SVG
JPG
PNG
GIF
https://www.npmjs.com/package/compress-images
回答6:
Try this library jimp for node js
回答7:
I switched from gm
to https://github.com/lovell/sharp for better performance.
来源:https://stackoverflow.com/questions/7073784/node-js-image-compression