1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-09 23:17:29 +02:00

feat: JPEG XL (#2893)

Support the JPEG XL format (.jxl).

JPEG XL is reported as supported by `sharp.format`:

```
jxl: {
  id: 'jxl',
  input: { file: true, buffer: true, stream: true, fileSuffix: [Array] },
  output: { file: true, buffer: true, stream: true }
}
```

Fixes: #2743
This commit is contained in:
Thomas
2023-06-21 13:29:02 +01:00
committed by GitHub
parent 868f629f32
commit 80d02e8a8d
7 changed files with 174 additions and 56 deletions

View File

@@ -134,6 +134,9 @@ class FileHelper {
case 'cin':
return {"type": "image", "subType": "x-phantom-cin"};
case 'jxl':
return {"type": "image", "subType": "jxl"};
default:
return {"type": "unsupport", "subType": "unsupport"};
}