mirror of
https://github.com/immich-app/immich.git
synced 2024-12-25 10:43:13 +02:00
feat(server): add support for .psd files (#4192)
This commit is contained in:
parent
b8fec26115
commit
1564ed3256
@ -34,6 +34,7 @@ const other = [
|
||||
'orf',
|
||||
'ori',
|
||||
'pef',
|
||||
'psd',
|
||||
'raf',
|
||||
'raw',
|
||||
'rwl',
|
||||
|
@ -96,6 +96,7 @@ const validImages = [
|
||||
'.ori',
|
||||
'.pef',
|
||||
'.png',
|
||||
'.psd',
|
||||
'.raf',
|
||||
'.raw',
|
||||
'.rwl',
|
||||
|
@ -31,6 +31,7 @@ describe('mimeTypes', () => {
|
||||
{ mimetype: 'image/ori', extension: '.ori' },
|
||||
{ mimetype: 'image/pef', extension: '.pef' },
|
||||
{ mimetype: 'image/png', extension: '.png' },
|
||||
{ mimetype: 'image/psd', extension: '.psd' },
|
||||
{ mimetype: 'image/raf', extension: '.raf' },
|
||||
{ mimetype: 'image/raw', extension: '.raw' },
|
||||
{ mimetype: 'image/rwl', extension: '.rwl' },
|
||||
@ -40,6 +41,7 @@ describe('mimeTypes', () => {
|
||||
{ mimetype: 'image/tiff', extension: '.tif' },
|
||||
{ mimetype: 'image/tiff', extension: '.tiff' },
|
||||
{ mimetype: 'image/webp', extension: '.webp' },
|
||||
{ mimetype: 'image/vnd.adobe.photoshop', extension: '.psd' },
|
||||
{ mimetype: 'image/x-adobe-dng', extension: '.dng' },
|
||||
{ mimetype: 'image/x-arriflex-ari', extension: '.ari' },
|
||||
{ mimetype: 'image/x-canon-cr2', extension: '.cr2' },
|
||||
|
@ -53,6 +53,7 @@ const image: Record<string, string[]> = {
|
||||
'.ori': ['image/ori', 'image/x-olympus-ori'],
|
||||
'.pef': ['image/pef', 'image/x-pentax-pef'],
|
||||
'.png': ['image/png'],
|
||||
'.psd': ['image/psd', 'image/vnd.adobe.photoshop'],
|
||||
'.raf': ['image/raf', 'image/x-fuji-raf'],
|
||||
'.raw': ['image/raw', 'image/x-panasonic-raw'],
|
||||
'.rwl': ['image/rwl', 'image/x-leica-rwl'],
|
||||
|
Loading…
Reference in New Issue
Block a user