【问题标题】:Whats the best way to compress different type of files uploaded via multer in NodeJS?在 NodeJS 中压缩通过 multer 上传的不同类型文件的最佳方法是什么?
【发布时间】:2017-10-12 23:04:38
【问题描述】:

我正在使用compression 压缩请求以提高我的应用程序的性能。

压缩通过multer 上传的不同类型文件的最佳方法是什么?

尤其是 PNG/JPEG/PDF 类型的文件。

【问题讨论】:

    标签: node.js compression multer


    【解决方案1】:

    最好的方法是使用适当的命令行工具 + fs.exec
    并且您可以在终端中轻松测试它们的压缩率。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-06
      • 2017-08-30
      • 2014-11-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多