mirror of
https://github.com/immich-app/immich.git
synced 2026-04-24 01:59:42 -04:00
feat(server): add MPO file type support (#27963)
* feat(server): add MPO file type support * fix(server): document description error
This commit is contained in:
parent
d9011c0829
commit
be1b9a5f67
@ -18,6 +18,7 @@ For the full list, refer to the [Immich source code](https://github.com/immich-a
|
||||
| `JPEG 2000` | `.jp2` | :white_check_mark: | |
|
||||
| `JPEG` | `.jpeg` `.jpg` `.jpe` `.insp` | :white_check_mark: | |
|
||||
| `JPEG XL` | `.jxl` | :white_check_mark: | |
|
||||
| `MPO` | `.mpo` | :white_check_mark: | Multi-Picture |
|
||||
| `PNG` | `.png` | :white_check_mark: | |
|
||||
| `PSD` | `.psd` | :white_check_mark: | Adobe Photoshop |
|
||||
| `RAW` | `.raw` | :white_check_mark: | |
|
||||
|
||||
@ -223,6 +223,7 @@ export const setupBaseMockApiRoutes = async (context: BrowserContext, adminUserI
|
||||
'.jp2',
|
||||
'.jpe',
|
||||
'.jxl',
|
||||
'.mpo',
|
||||
'.svg',
|
||||
'.tif',
|
||||
'.tiff',
|
||||
|
||||
@ -163,6 +163,7 @@ where
|
||||
'%.jp2',
|
||||
'%.jpe',
|
||||
'%.jxl',
|
||||
'%.mpo',
|
||||
'%.svg',
|
||||
'%.tif',
|
||||
'%.tiff'
|
||||
|
||||
@ -80,6 +80,7 @@ const validImages = [
|
||||
'.jxl',
|
||||
'.k25',
|
||||
'.kdc',
|
||||
'.mpo',
|
||||
'.mrw',
|
||||
'.nef',
|
||||
'.orf',
|
||||
|
||||
@ -26,6 +26,7 @@ describe('mimeTypes', () => {
|
||||
{ mimetype: 'image/jpeg', extension: '.jpe' },
|
||||
{ mimetype: 'image/jpeg', extension: '.jpeg' },
|
||||
{ mimetype: 'image/jpeg', extension: '.jpg' },
|
||||
{ mimetype: 'image/jpeg', extension: '.mpo' },
|
||||
{ mimetype: 'image/jxl', extension: '.jxl' },
|
||||
{ mimetype: 'image/k25', extension: '.k25' },
|
||||
{ mimetype: 'image/kdc', extension: '.kdc' },
|
||||
|
||||
@ -58,6 +58,7 @@ const webUnsupportedImage = {
|
||||
'.jp2': ['image/jp2'],
|
||||
'.jpe': ['image/jpeg'],
|
||||
'.jxl': ['image/jxl'],
|
||||
'.mpo': ['image/jpeg'],
|
||||
'.svg': ['image/svg'],
|
||||
'.tif': ['image/tiff'],
|
||||
'.tiff': ['image/tiff'],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user