]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/regenerate-thumbnails.ts
Process images in a dedicated worker
[github/Chocobozzz/PeerTube.git] / scripts / regenerate-thumbnails.ts
index a377baa61b6a9569771cc4a80e7638adb26c9a0b..061819387ac0420ba1fe6092653ec960239d1039 100644 (file)
@@ -52,7 +52,7 @@ async function processVideo (id: number) {
   thumbnail.height = size.height
 
   const thumbnailPath = thumbnail.getPath()
-  await processImage(previewPath, thumbnailPath, size, true)
+  await processImage({ path: previewPath, destination: thumbnailPath, newSize: size, keepOriginal: true })
 
   // Save new attributes
   await thumbnail.save()