From 2512a4d32a86bf592524a89f77e35297e611e62d Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 24 Dec 2022 15:15:48 +0000 Subject: [PATCH 1/2] chore: Delete comment that is not true --- packages/backend/src/core/VideoProcessingService.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/backend/src/core/VideoProcessingService.ts b/packages/backend/src/core/VideoProcessingService.ts index 2807960cb..ad0458fe3 100644 --- a/packages/backend/src/core/VideoProcessingService.ts +++ b/packages/backend/src/core/VideoProcessingService.ts @@ -35,8 +35,7 @@ export class VideoProcessingService { timestamps: ['5%'], }); }); - - // JPEGに変換 (Webpでもいいが、MastodonはWebpをサポートせず表示できなくなる) + return await this.imageProcessingService.convertToJpeg(`${dir}/out.png`, 498, 280); } finally { cleanup(); From a47bf483396d11c26d0cdf3810e451e17b8153c5 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 24 Dec 2022 16:03:05 +0000 Subject: [PATCH 2/2] enhance: convert video thumbnail to webp --- packages/backend/src/core/VideoProcessingService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/core/VideoProcessingService.ts b/packages/backend/src/core/VideoProcessingService.ts index ad0458fe3..ea5701dec 100644 --- a/packages/backend/src/core/VideoProcessingService.ts +++ b/packages/backend/src/core/VideoProcessingService.ts @@ -36,7 +36,7 @@ export class VideoProcessingService { }); }); - return await this.imageProcessingService.convertToJpeg(`${dir}/out.png`, 498, 280); + return await this.imageProcessingService.convertToWebp(`${dir}/out.png`, 498, 280); } finally { cleanup(); }