mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat: add support for JPEG 2000 (#15710)
* chore(server): add support for .jp2 * docs: add support for .jp2 * chore: fix tests * fix formatting * unify sorting
This commit is contained in:
parent
da580d4685
commit
cc0cbd705e
4 changed files with 20 additions and 16 deletions
|
|
@ -73,6 +73,7 @@ const validImages = [
|
|||
'.heic',
|
||||
'.heif',
|
||||
'.iiq',
|
||||
'.jp2',
|
||||
'.jpeg',
|
||||
'.jpg',
|
||||
'.jxl',
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ describe('mimeTypes', () => {
|
|||
{ mimetype: 'image/heif', extension: '.heif' },
|
||||
{ mimetype: 'image/hif', extension: '.hif' },
|
||||
{ mimetype: 'image/iiq', extension: '.iiq' },
|
||||
{ mimetype: 'image/jp2', extension: '.jp2' },
|
||||
{ mimetype: 'image/jpeg', extension: '.jpe' },
|
||||
{ mimetype: 'image/jpeg', extension: '.jpeg' },
|
||||
{ mimetype: 'image/jpeg', extension: '.jpg' },
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ const image: Record<string, string[]> = {
|
|||
'.heif': ['image/heif'],
|
||||
'.hif': ['image/hif'],
|
||||
'.insp': ['image/jpeg'],
|
||||
'.jp2': ['image/jp2'],
|
||||
'.jpe': ['image/jpeg'],
|
||||
'.jpeg': ['image/jpeg'],
|
||||
'.jpg': ['image/jpeg'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue