node.js image compression

2019-02-22 05:41发布

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

6条回答
萌系小妹纸
2楼-- · 2019-02-22 06:07

Try this library jimp for node js

查看更多
看我几分像从前
3楼-- · 2019-02-22 06:15

Detected path and can use combination compressing. SVG JPG PNG GIF

https://www.npmjs.com/package/compress-images

查看更多
一夜七次
5楼-- · 2019-02-22 06:18

You can use GraphicsMagick for node.js.

查看更多
Viruses.
6楼-- · 2019-02-22 06:24

maybe you can use imagemin

github:https://github.com/imagemin/imagemin

It can work.

查看更多
看我几分像从前
7楼-- · 2019-02-22 06:24

For anyone googling this, GraphicsMagic is hosted on NPM as gm: https://www.npmjs.org/package/gm

查看更多
登录 后发表回答