1
0
Fork 0
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:
Chocobozzz 2024-02-26 10:37:44 +01:00
parent 1abf74e464
commit fb2dc40858
No known key found for this signature in database
GPG key ID: 583A612D890159BE
12 changed files with 18 additions and 3 deletions

View file

@ -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 })