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',
'ori',
'pef',
'psd',
'raf',
'raw',
'rwl',

View File

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

View File

@ -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' },

View File

@ -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'],