Import TIFF through the server and survive a wedged raw decoder

Browsers have no TIFF decoder, so TIFF import failed at createImageBitmap
and the develop canvas asked for the undecodable original. TIFF now takes
the raw proxy path (original stored, sharp writes the JPEG proxy) and the
editor reads that proxy. LibRaw demosaic and preview calls are bounded so
one bad file falls back to the embedded preview instead of hanging.
This commit is contained in:
2026-11-28 20:49:25 +00:00
parent 8aafdcfb16
commit 27360ffae7
11 changed files with 96 additions and 25 deletions
+7 -1
View File
@@ -1481,7 +1481,13 @@ export function NavigatorPanel({
{photo.name}
</div>
<div className="muted small navigator-meta">
{photo.raw ? (photo.decode === 'embedded' ? 'Raw · camera preview' : 'Raw · demosaiced') : 'JPEG/PNG'}{' '}
{photo.raw
? photo.decode === 'embedded'
? 'Raw · camera preview'
: 'Raw · demosaiced'
: photo.decode === 'sharp'
? 'TIFF · server JPEG'
: 'JPEG/PNG'}{' '}
· {photo.width}×{photo.height}
</div>
</div>