fix(library): fix RAW develop fallback & optimize STUDIO to LIBRARY transition speed

This commit is contained in:
2026-10-06 13:24:20 +07:00
parent 2e1feb195a
commit 5db943ddd5
5 changed files with 9 additions and 11 deletions
+5 -1
View File
@@ -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 {}
}
}