1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-06 03:46:47 +01:00

feat(server): add support for .psd files (#4192)

This commit is contained in:
Andreas 2023-09-24 17:03:14 +02:00 committed by GitHub
parent b8fec26115
commit 1564ed3256
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 0 deletions

View file

@ -34,6 +34,7 @@ const other = [
'orf', 'orf',
'ori', 'ori',
'pef', 'pef',
'psd',
'raf', 'raf',
'raw', 'raw',
'rwl', 'rwl',

View file

@ -96,6 +96,7 @@ const validImages = [
'.ori', '.ori',
'.pef', '.pef',
'.png', '.png',
'.psd',
'.raf', '.raf',
'.raw', '.raw',
'.rwl', '.rwl',

View file

@ -31,6 +31,7 @@ describe('mimeTypes', () => {
{ mimetype: 'image/ori', extension: '.ori' }, { mimetype: 'image/ori', extension: '.ori' },
{ mimetype: 'image/pef', extension: '.pef' }, { mimetype: 'image/pef', extension: '.pef' },
{ mimetype: 'image/png', extension: '.png' }, { mimetype: 'image/png', extension: '.png' },
{ mimetype: 'image/psd', extension: '.psd' },
{ mimetype: 'image/raf', extension: '.raf' }, { mimetype: 'image/raf', extension: '.raf' },
{ mimetype: 'image/raw', extension: '.raw' }, { mimetype: 'image/raw', extension: '.raw' },
{ mimetype: 'image/rwl', extension: '.rwl' }, { mimetype: 'image/rwl', extension: '.rwl' },
@ -40,6 +41,7 @@ describe('mimeTypes', () => {
{ mimetype: 'image/tiff', extension: '.tif' }, { mimetype: 'image/tiff', extension: '.tif' },
{ mimetype: 'image/tiff', extension: '.tiff' }, { mimetype: 'image/tiff', extension: '.tiff' },
{ mimetype: 'image/webp', extension: '.webp' }, { mimetype: 'image/webp', extension: '.webp' },
{ mimetype: 'image/vnd.adobe.photoshop', extension: '.psd' },
{ mimetype: 'image/x-adobe-dng', extension: '.dng' }, { mimetype: 'image/x-adobe-dng', extension: '.dng' },
{ mimetype: 'image/x-arriflex-ari', extension: '.ari' }, { mimetype: 'image/x-arriflex-ari', extension: '.ari' },
{ mimetype: 'image/x-canon-cr2', extension: '.cr2' }, { mimetype: 'image/x-canon-cr2', extension: '.cr2' },

View file

@ -53,6 +53,7 @@ const image: Record<string, string[]> = {
'.ori': ['image/ori', 'image/x-olympus-ori'], '.ori': ['image/ori', 'image/x-olympus-ori'],
'.pef': ['image/pef', 'image/x-pentax-pef'], '.pef': ['image/pef', 'image/x-pentax-pef'],
'.png': ['image/png'], '.png': ['image/png'],
'.psd': ['image/psd', 'image/vnd.adobe.photoshop'],
'.raf': ['image/raf', 'image/x-fuji-raf'], '.raf': ['image/raf', 'image/x-fuji-raf'],
'.raw': ['image/raw', 'image/x-panasonic-raw'], '.raw': ['image/raw', 'image/x-panasonic-raw'],
'.rwl': ['image/rwl', 'image/x-leica-rwl'], '.rwl': ['image/rwl', 'image/x-leica-rwl'],