Skip to content

Commit

Permalink
feat: add more image mimetypes
Browse files Browse the repository at this point in the history
  • Loading branch information
shaynethiessen committed Apr 23, 2024
1 parent 84aa0f1 commit 51881e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/mimetype/src/mimeCheck.ts
Expand Up @@ -58,6 +58,8 @@ export function isImage(mimetype: string): boolean {
case 'image/tif':
case 'image/tiff':
case 'image/bmp':
case 'image/avif':
case 'image/heic':
case 'image/*': // This is not a valid mimetype, but it is used for images sometimes
return true;
default:
Expand Down

0 comments on commit 51881e4

Please sign in to comment.