updated the supported file list

This commit is contained in:
Abhinav 2023-06-05 21:41:49 +05:30
parent 89e14c9848
commit 4e7bd830f1
2 changed files with 5 additions and 4 deletions

View file

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

View file

@ -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);
}
}