aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-06-02 15:52:55 +0200
committerChocobozzz <me@florianbigard.com>2023-06-29 10:16:57 +0200
commitb7f946892bcd63d5e01e50df3a40c56d3cb7577b (patch)
tree5a8dac769cbd043ec448036596b74ae0db408d28 /server/helpers
parent318aa9c42250c38c845f007a83ee84a0884436c1 (diff)
downloadPeerTube-b7f946892bcd63d5e01e50df3a40c56d3cb7577b.tar.gz
PeerTube-b7f946892bcd63d5e01e50df3a40c56d3cb7577b.tar.zst
PeerTube-b7f946892bcd63d5e01e50df3a40c56d3cb7577b.zip
Simpler thumbnail generation
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/image-utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/image-utils.ts b/server/helpers/image-utils.ts
index f86f7216d..7b77e694a 100644
--- a/server/helpers/image-utils.ts
+++ b/server/helpers/image-utils.ts
@@ -51,7 +51,7 @@ async function generateImageFromVideoFile (options: {
51 const pendingImagePath = join(folder, pendingImageName) 51 const pendingImagePath = join(folder, pendingImageName)
52 52
53 try { 53 try {
54 await generateThumbnailFromVideo({ fromPath, folder, imageName }) 54 await generateThumbnailFromVideo({ fromPath, output: pendingImagePath })
55 55
56 const destination = join(folder, imageName) 56 const destination = join(folder, imageName)
57 await processImage({ path: pendingImagePath, destination, newSize: size }) 57 await processImage({ path: pendingImagePath, destination, newSize: size })