Add Canon CR2 and CR3 support for v0.8
This commit is contained in:
1 parent
8ed5490afc
commit
4e3c442b26
8 files changed
+99
-42
No files matched your search
+3
-1
@@ -124,11 +124,13 @@ function formatType(filename) {
|
||||
if (extension === 'tif' || extension === 'tiff') return 'TIFF';
|
||||
if (extension === 'heic' || extension === 'heif' || extension === 'hif') return 'HEIF';
|
||||
if (extension === 'dng') return 'DNG';
|
||||
if (extension === 'cr2') return 'CR2';
|
||||
if (extension === 'cr3') return 'CR3';
|
||||
return extension.toUpperCase();
|
||||
}
|
||||
|
||||
function requiresServerPreview(photo) {
|
||||
return photo.format === 'TIFF' || photo.format === 'HEIF' || photo.format === 'DNG';
|
||||
return ['TIFF', 'HEIF', 'DNG', 'CR2', 'CR3'].includes(photo.format);
|
||||
}
|
||||
|
||||
function isEnabledFilename(filename) {
|
||||
|
||||
Reference in new issue
Block a user