node.js image compression

人盡茶涼 提交于 2019-12-30 18:10:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!