fix: support AVIF compress and fix hardcoded content type

This commit is contained in:
ashim-hq
2026-04-20 22:13:53 +08:00
parent 491e6fb554
commit c738f16107
4 changed files with 6 additions and 1 deletions
+1
View File
@@ -17,6 +17,7 @@ const FORMAT_MAP: Record<
gif: { format: "gif", extension: "gif", contentType: "image/gif" },
tiff: { format: "tiff", extension: "tiff", contentType: "image/tiff" },
avif: { format: "avif", extension: "avif", contentType: "image/avif" },
heif: { format: "avif", extension: "avif", contentType: "image/avif" },
};
const DEFAULT_QUALITY = 95;