mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: support AVIF compress and fix hardcoded content type
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user