mirror of
https://github.com/immich-app/immich.git
synced 2025-01-04 02:46:47 +01:00
feat(server): add support for the tif extension (#3743)
This commit is contained in:
parent
8ba338fbe1
commit
cdb45364c3
2 changed files with 3 additions and 1 deletions
|
@ -37,6 +37,7 @@ describe('mimeTypes', () => {
|
|||
{ mimetype: 'image/sr2', extension: '.sr2' },
|
||||
{ mimetype: 'image/srf', extension: '.srf' },
|
||||
{ mimetype: 'image/srw', extension: '.srw' },
|
||||
{ mimetype: 'image/tiff', extension: '.tif' },
|
||||
{ mimetype: 'image/tiff', extension: '.tiff' },
|
||||
{ mimetype: 'image/webp', extension: '.webp' },
|
||||
{ mimetype: 'image/x-adobe-dng', extension: '.dng' },
|
||||
|
@ -82,7 +83,7 @@ describe('mimeTypes', () => {
|
|||
{ mimetype: 'video/x-ms-wmv', extension: '.wmv' },
|
||||
{ mimetype: 'video/x-msvideo', extension: '.avi' },
|
||||
]) {
|
||||
it(`should map ${extension} to ${mimetype}`, async () => {
|
||||
it(`should map ${extension} to ${mimetype}`, () => {
|
||||
expect({ ...mimeTypes.image, ...mimeTypes.video }[extension]).toContain(mimetype);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -66,6 +66,7 @@ const image: Record<string, string[]> = {
|
|||
'.sr2': ['image/sr2', 'image/x-sony-sr2'],
|
||||
'.srf': ['image/srf', 'image/x-sony-srf'],
|
||||
'.srw': ['image/srw', 'image/x-samsung-srw'],
|
||||
'.tif': ['image/tiff'],
|
||||
'.tiff': ['image/tiff'],
|
||||
'.webp': ['image/webp'],
|
||||
'.x3f': ['image/x3f', 'image/x-sigma-x3f'],
|
||||
|
|
Loading…
Reference in a new issue