diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-12-25 08:27:09 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-12-25 08:27:09 +0900 |
| commit | ef87a9db7b9a5ccdb6409abd279ded342700107a (patch) | |
| tree | 220224b667b450c8e385dd5d7a65fb6daadec0eb | |
| parent | chore: fix reporisotry name (diff) | |
| parent | enhance: convert video thumbnail to webp (diff) | |
| download | sharkey-ef87a9db7b9a5ccdb6409abd279ded342700107a.tar.gz sharkey-ef87a9db7b9a5ccdb6409abd279ded342700107a.tar.bz2 sharkey-ef87a9db7b9a5ccdb6409abd279ded342700107a.zip | |
Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop
| -rw-r--r-- | packages/backend/src/core/VideoProcessingService.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/backend/src/core/VideoProcessingService.ts b/packages/backend/src/core/VideoProcessingService.ts index 2807960cb7..ea5701decc 100644 --- a/packages/backend/src/core/VideoProcessingService.ts +++ b/packages/backend/src/core/VideoProcessingService.ts @@ -35,9 +35,8 @@ export class VideoProcessingService { timestamps: ['5%'], }); }); - - // JPEGに変換 (Webpでもいいが、MastodonはWebpをサポートせず表示できなくなる) - return await this.imageProcessingService.convertToJpeg(`${dir}/out.png`, 498, 280); + + return await this.imageProcessingService.convertToWebp(`${dir}/out.png`, 498, 280); } finally { cleanup(); } |