fix(library): fix RAW develop fallback & optimize STUDIO to LIBRARY transition speed
This commit is contained in:
@@ -664,8 +664,12 @@ export async function developRaw(bytes: Uint8Array): Promise<Uint8Array> {
|
||||
// The preview still opens the file when the sensor will not: a RAW whose
|
||||
// colour data is missing (some DNG) is not a RAW that cannot be shown.
|
||||
if (preview) return preview;
|
||||
const fallback = await rawThumbnail(bytes).catch(() => null);
|
||||
if (fallback) return fallback;
|
||||
throw err;
|
||||
} finally {
|
||||
raw.dispose();
|
||||
try {
|
||||
raw.dispose();
|
||||
} catch {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user