如果我使用facebook url,则会显示以下错误。
<---------------代码---------------->
var url ='https://graph.facebook.com/890843584382401/picture?type=large&width=200&height=200'
var url1 = url.replace('?height = 90&width = 90','?type = large&width = 200&height = 200')
jimp.read(url1,function(err,image){
console.log(“ image ------>”,image)
<---------------错误---------------->
图片------>未定义
错误:{错误:找不到缓冲区的MIME
在Jimp.parseBitmap(/home/game/teenpatti-dev/node_modules/@jimp/core/dist/utils/image-bitmap.js:108:15)
在Jimp.parseBitmap(/home/game/teenpatti-dev/node_modules/@jimp/core/dist/index.js:498:32)
在/home/game/teenpatti-dev/node_modules/@jimp/core/dist/index.js:440:15
在/home/game/teenpatti-dev/node_modules/@jimp/core/dist/index.js:168:14
在/home/game/teenpatti-dev/node_modules/@jimp/core/dist/request.js:56:9
在IncomingMessage。 (/home/game/teenpatti-dev/node_modules/phin/lib/phin.compiled.js:1:2162)
在emitNone(events.js:111:20)
在IncomingMessage.emit(events.js:208:7)
在endReadableNT(_stream_visible.js:1064:12)