mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Improve generated image quality
This commit is contained in:
parent
1abf74e464
commit
fb2dc40858
12 changed files with 18 additions and 3 deletions
|
@ -380,7 +380,7 @@ async function generateImageFromVideoFile (options: {
|
|||
|
||||
try {
|
||||
const framesToAnalyze = CONFIG.THUMBNAILS.GENERATION_FROM_VIDEO.FRAMES_TO_ANALYZE
|
||||
await generateThumbnailFromVideo({ fromPath, output: pendingImagePath, framesToAnalyze, ffprobe })
|
||||
await generateThumbnailFromVideo({ fromPath, output: pendingImagePath, framesToAnalyze, ffprobe, scale: size })
|
||||
|
||||
const destination = join(folder, imageName)
|
||||
await processImageFromWorker({ path: pendingImagePath, destination, newSize: size })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue