aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/migrations/peertube-4.2.ts2
-rw-r--r--scripts/regenerate-thumbnails.ts2
2 files changed, 2 insertions, 2 deletions
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) {
110 const source = join(CONFIG.STORAGE.ACTOR_IMAGES, sourceFilename) 110 const source = join(CONFIG.STORAGE.ACTOR_IMAGES, sourceFilename)
111 const destination = join(CONFIG.STORAGE.ACTOR_IMAGES, newImageName) 111 const destination = join(CONFIG.STORAGE.ACTOR_IMAGES, newImageName)
112 112
113 await processImage(source, destination, imageSize, true) 113 await processImage({ path: source, destination, newSize: imageSize, keepOriginal: true })
114 114
115 const actorImageInfo = { 115 const actorImageInfo = {
116 name: newImageName, 116 name: newImageName,
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()