1
有无问题,当尝试使用LWIP调整 它的功能LWIP错误:未知参数配置
function resize(path, width, height) {
lwip.open(path, function(err, image){
console.log(image)
console.log(path)
console.error(err)
image.resize(width, height)
})}
resize("/home/peter/webstorm/testProject/public/upload/image.png", 150, 150);
控制台日志:
图片{ __lwip:LwipImage {}, __locked:假的, __trans :假的, __metadata:空}
/home/peter/webstorm/testProject/public/upload/image.png
空
错误是:
错误:未知的参数配置,150,150