updated the supported file list
This commit is contained in:
parent
89e14c9848
commit
4e7bd830f1
|
@ -27,15 +27,14 @@ export const RAW_FORMATS = [
|
|||
'nef',
|
||||
'psd',
|
||||
'dng',
|
||||
'tif',
|
||||
];
|
||||
export const SUPPORTED_RAW_FORMATS = [
|
||||
'heic',
|
||||
'rw2',
|
||||
'tiff',
|
||||
'arw',
|
||||
'cr3',
|
||||
'cr2',
|
||||
'raf',
|
||||
'nef',
|
||||
'psd',
|
||||
'dng',
|
||||
|
|
|
@ -355,7 +355,7 @@ export async function getRenderableImage(fileName: string, imageBlob: Blob) {
|
|||
} catch (e) {
|
||||
try {
|
||||
if (!isFileHEIC(exactType)) {
|
||||
throw Error(CustomError.UNSUPPORTED_RAW_FORMAT);
|
||||
throw e;
|
||||
}
|
||||
addLogLine(
|
||||
`HEICConverter called for ${fileName}-${convertBytesToHumanReadable(
|
||||
|
@ -367,7 +367,9 @@ export async function getRenderableImage(fileName: string, imageBlob: Blob) {
|
|||
);
|
||||
addLogLine(`${fileName} successfully converted`);
|
||||
} catch (e) {
|
||||
logError(e, 'get Renderable Image failed');
|
||||
logError(e, 'get Renderable Image failed', {
|
||||
fileType: exactType,
|
||||
});
|
||||
throw Error(CustomError.NON_PREVIEWABLE_FILE);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue