From 40e105994a04d0af40b8789815b5776568dc4eb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Wed, 27 Nov 2024 20:38:39 +0800 Subject: [PATCH] fix: pic size --- src/core/helper/msg.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/helper/msg.ts b/src/core/helper/msg.ts index dd910bef..e1d3992e 100644 --- a/src/core/helper/msg.ts +++ b/src/core/helper/msg.ts @@ -3,12 +3,12 @@ import { PicType } from '../types'; export async function getFileTypeForSendType(picPath: string): Promise { const fileTypeResult = (await fileType.fileTypeFromFile(picPath))?.ext ?? 'jpg'; const picTypeMap: { [key: string]: PicType } = { - 'webp': PicType.NEWPIC_WEBP, + //'webp': PicType.NEWPIC_WEBP, 'gif': PicType.NEWPIC_GIF, - 'png': PicType.NEWPIC_APNG, - 'jpg': PicType.NEWPIC_JPEG, - 'jpeg': PicType.NEWPIC_JPEG, - 'bmp': PicType.NEWPIC_BMP, + // 'png': PicType.NEWPIC_APNG, + // 'jpg': PicType.NEWPIC_JPEG, + // 'jpeg': PicType.NEWPIC_JPEG, + // 'bmp': PicType.NEWPIC_BMP, }; return picTypeMap[fileTypeResult] ?? PicType.NEWPIC_JPEG; } \ No newline at end of file