From 3a54605d4e7ec5b4f47131e8d23255be35b7beac Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 27 Jun 2022 11:53:12 +0200 Subject: Process images in a dedicated worker --- scripts/migrations/peertube-4.2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/migrations/peertube-4.2.ts') diff --git a/scripts/migrations/peertube-4.2.ts b/scripts/migrations/peertube-4.2.ts index b5e5dfebd..6a9007265 100644 --- a/scripts/migrations/peertube-4.2.ts +++ b/scripts/migrations/peertube-4.2.ts @@ -110,7 +110,7 @@ async function generateSmallerAvatar (actor: MActorDefault) { const source = join(CONFIG.STORAGE.ACTOR_IMAGES, sourceFilename) const destination = join(CONFIG.STORAGE.ACTOR_IMAGES, newImageName) - await processImage(source, destination, imageSize, true) + await processImage({ path: source, destination, newSize: imageSize, keepOriginal: true }) const actorImageInfo = { name: newImageName, -- cgit v1.2.3