Fix image thumbnail generation (#2524)

* Better logging for thumbnail generation errors
* Reduce verbosity for thumbnail generation
* Provide stdin during thumbnail generation
This commit is contained in:
WithoutPants
2022-04-25 15:56:06 +10:00
committed by GitHub
parent 9e606feb76
commit 1b91937004
6 changed files with 25 additions and 4 deletions

View File

@@ -117,5 +117,5 @@ func (e *ThumbnailEncoder) ffmpegImageThumbnail(image *bytes.Buffer, format stri
Quality: ffmpegImageQuality,
})
return e.ffmpeg.GenerateOutput(context.TODO(), args)
return e.ffmpeg.GenerateOutput(context.TODO(), args, image)
}