diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-27 11:53:12 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-27 11:53:12 +0200 |
commit | 3a54605d4e7ec5b4f47131e8d23255be35b7beac (patch) | |
tree | fce9d34812a7638d4a0253b076f05aabd15a2ce9 /scripts/regenerate-thumbnails.ts | |
parent | 88edc66edadcab1b0372679e23bf2a7a6ff50131 (diff) | |
download | PeerTube-3a54605d4e7ec5b4f47131e8d23255be35b7beac.tar.gz PeerTube-3a54605d4e7ec5b4f47131e8d23255be35b7beac.tar.zst PeerTube-3a54605d4e7ec5b4f47131e8d23255be35b7beac.zip |
Process images in a dedicated worker
Diffstat (limited to 'scripts/regenerate-thumbnails.ts')
-rw-r--r-- | scripts/regenerate-thumbnails.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/regenerate-thumbnails.ts b/scripts/regenerate-thumbnails.ts index a377baa61..061819387 100644 --- a/scripts/regenerate-thumbnails.ts +++ b/scripts/regenerate-thumbnails.ts | |||
@@ -52,7 +52,7 @@ async function processVideo (id: number) { | |||
52 | thumbnail.height = size.height | 52 | thumbnail.height = size.height |
53 | 53 | ||
54 | const thumbnailPath = thumbnail.getPath() | 54 | const thumbnailPath = thumbnail.getPath() |
55 | await processImage(previewPath, thumbnailPath, size, true) | 55 | await processImage({ path: previewPath, destination: thumbnailPath, newSize: size, keepOriginal: true }) |
56 | 56 | ||
57 | // Save new attributes | 57 | // Save new attributes |
58 | await thumbnail.save() | 58 | await thumbnail.save() |