From 9d6dc83e2ff37db42bf76f95257ae2f2f2f3f997 Mon Sep 17 00:00:00 2001 From: f0x Date: Sun, 20 Oct 2024 17:58:06 +0200 Subject: [PATCH] match image/heic for conversion --- server/plugins/uploader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/plugins/uploader.ts b/server/plugins/uploader.ts index fbb9522d..6c6ecedd 100644 --- a/server/plugins/uploader.ts +++ b/server/plugins/uploader.ts @@ -75,7 +75,7 @@ class SharpDiskStorage implements multer.StorageEngine { const outStream = fs.createWriteStream(finalPath); outStream.on("error", callback); - if (file.mimetype === "image/heif") { + if (file.mimetype === "image/heif" || file.mimetype === "image/heic") { const converterStream = sharp() .rotate() .toFormat("jpeg");