From 583e4b4fa12c8374ea068d3e74197a1c4f449c97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=82=E3=82=8F=E3=82=8F=E3=82=8F=E3=81=A8=E3=83=BC?= =?UTF-8?q?=E3=81=AB=E3=82=85?= <17376330+u1-liquid@users.noreply.github.com> Date: Thu, 19 Dec 2024 05:35:45 +0900 Subject: [PATCH 1/2] =?UTF-8?q?enhance(backend):=20blurhash=E7=94=9F?= =?UTF-8?q?=E6=88=90=E6=99=82=E3=80=81=E3=83=AA=E3=82=B5=E3=82=A4=E3=82=BA?= =?UTF-8?q?=E3=81=97=E3=81=A6=E3=81=8B=E3=82=89Raw=E3=81=AB=E5=A4=89?= =?UTF-8?q?=E6=8F=9B=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=20(Missk?= =?UTF-8?q?eyIO#832)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/core/FileInfoService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/core/FileInfoService.ts b/packages/backend/src/core/FileInfoService.ts index 6bd6cb8d9b..9195d0eb4b 100644 --- a/packages/backend/src/core/FileInfoService.ts +++ b/packages/backend/src/core/FileInfoService.ts @@ -458,9 +458,9 @@ export class FileInfoService { private getBlurhash(path: string, type: string): Promise { return new Promise(async (resolve, reject) => { (await sharpBmp(path, type)) - .raw() - .ensureAlpha() .resize(64, 64, { fit: 'inside' }) + .ensureAlpha() + .raw() .toBuffer((err, buffer, info) => { if (err) return reject(err); From a7b82df4443b49dd9a8663cfefd5bf0c52c41e5d Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Thu, 19 Dec 2024 23:51:32 +0900 Subject: [PATCH 2/2] Update Changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b9ae480af..28519695cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ (Cherry-picked from https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/803) ### Server +- Enhance: blurhash生成時、リサイズしてからRawに変換するように + (Cherry-picked from https://github.com/MisskeyIO/misskey/pull/832) - Fix: ユーザーのプロフィール画面をアドレス入力などで直接表示した際に概要タブの描画に失敗する問題の修正( #15032 ) - Fix: 起動前の疎通チェックが機能しなくなっていた問題を修正 (Cherry-picked from https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/737)