node.js image compression

2019-02-22 05:24发布

问题:

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