版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013862108/article/details/82804742
参考博客: https://blog.csdn.net/wengye1990/article/details/71120743?locationNum=9&fps=1
github地址: https://github.com/Automattic/node-canvas
mac 依赖安装 :
brew install pkg-config cairo libpng jpeg giflib
npm install canvas --save