Added support for avif images

This commit is contained in:
2026-03-10 21:07:36 +01:00
parent 88e151f792
commit 22cde819ec
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ const storage = multer.diskStorage({
});
const ALLOWED_MIMES = [
'image/jpeg', 'image/png', 'image/webp', 'image/heic',
'image/jpeg', 'image/png', 'image/webp', 'image/heic', 'image/avif',
'application/pdf',
];

View File

@@ -14,7 +14,7 @@ const VARIANTS: VariantSpec[] = [
];
const RESIZABLE_MIMES = new Set([
'image/jpeg', 'image/png', 'image/webp', 'image/heic',
'image/jpeg', 'image/png', 'image/webp', 'image/heic', 'image/avif',
]);
export function isResizable(mimeType: string): boolean {