feat: 絵文字のサイズ削減したい

This commit is contained in:
mattyatea 2023-09-17 19:31:03 +09:00
parent cd45dfcc1a
commit 523bdc295c
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ export class FileServerService {
} else { } else {
const data = (await sharpBmp(file.path, file.mime, { animated: !('static' in request.query) })) const data = (await sharpBmp(file.path, file.mime, { animated: !('static' in request.query) }))
.resize({ .resize({
height: 'emoji' in request.query ? 128 : 320, height: 'emoji' in request.query ? 64 : 128,
withoutEnlargement: true, withoutEnlargement: true,
}) })
.webp(webpDefault); .webp(webpDefault);