Fix:Check failed ffmpeg image command +additional errors logs #239

This commit is contained in:
advplyr 2021-12-14 15:19:23 -06:00
parent ac4a0830a0
commit b18af414b6
2 changed files with 3 additions and 1 deletions

View file

@ -37,6 +37,8 @@ class CacheManager {
await fs.ensureDir(this.CoverCachePath)
let writtenFile = await resizeImage(audiobook.book.coverFullPath, path, width, height)
if (!writtenFile) return res.sendStatus(400)
var readStream = fs.createReadStream(writtenFile)
readStream.pipe(res)
}