首先是搜索了npm包的性能比较,找到了这篇:

https://github.com/ivanoff/images-manipulation-performance

性能最好的当属sharp,由于安装不上,最后选择了lwip

然后遇到了奇葩的问题,路径问题,准确地说是NodeJS的路径问题,相对路径是相对那个目录?

最后弄明白了是相对于Node的工作目录:process.cwd()

 

相关文章:

  • 2022-12-23
  • 2021-10-16
  • 2021-04-13
  • 2022-02-08
  • 2022-02-16
  • 2022-12-23
  • 2021-04-18
  • 2021-11-23
猜你喜欢
  • 2022-12-23
  • 2021-08-28
  • 2021-08-06
  • 2022-12-23
  • 2021-11-25
  • 2022-02-23
  • 2022-12-23
相关资源
相似解决方案