gpt4 book ai didi

Firebase 云函数错误生成缩略图 : spawn convert ENOENT

转载 作者:行者123 更新时间:2023-12-04 17:44:04 24 4
gpt4 key购买 nike

云功能在更新之前运行良好。这是现在发生错误的代码:

return spawn('convert' ,[tempLocalFile, '-thumbnail', `${THUMB_MAX_WIDTH}x${THUMB_MAX_HEIGHT}`, tempLocalThumbFile], {capture: ['stdout', 'stderr']});

以下是错误的详细信息:
generateThumbnail Error: { 
Error: spawn convert ENOENT at _errnoException
(util.js:1022:11) at Process.ChildProcess._handle.onexit
(internal/child_process.js:190:19) at onErrorNT
(internal/child_process.js:372:16) at _combinedTickCallback
(internal/process/next_tick.js:138:11) at process._tickDomainCallback
(internal/process/next_tick.js:218:9)
code: 'ENOENT',
errno: 'ENOENT',
syscall: 'spawn convert',
path: 'convert',
spawnargs: [
'/tmp/images/E32NIXQKgVUxjUGDmPkr_aaaa',
'-thumbnail',
'400x220',
'/tmp/images/thumb_E32NIXQKgVUxjUGDmPkr_aaaa'
]
}

是我做错了什么还是 Firebase 云错误?

最佳答案

本地开发:brew install imagemagick

关于Firebase 云函数错误生成缩略图 : spawn convert ENOENT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53020820/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com