Cover raw and TIFF import in tests and show decode details

The new tests pin the CR2/NEF/CR3/DNG and TIFF routing, container
signatures and TIFF proxy decoding, with an opt-in fixture run for real
raw files. The Info panel now reports the decoder and the proxy size, so
a file that fell back to a camera preview is visible at a glance.
This commit is contained in:
2026-11-28 20:57:53 +00:00
parent 27360ffae7
commit edfc6cdc80
8 changed files with 176 additions and 0 deletions
+12
View File
@@ -2615,10 +2615,22 @@ export function MetadataPanel({
const event = events.find((e) => e.id === photo.eventId);
const [keyword, setKeyword] = useState('');
const [presetId, setPresetId] = useState('');
const decodeLabel = photo.raw
? photo.decode === 'embedded'
? 'LibRaw · camera preview fallback'
: 'LibRaw demosaic'
: photo.decode === 'sharp'
? 'sharp JPEG proxy'
: 'Browser';
const proxyLabel = `${photo.width} × ${photo.height}${
photo.proxyBytes ? ` · ${(photo.proxyBytes / (1024 * 1024)).toFixed(1)} MB` : ''
}`;
const rows: [string, string][] = [
['File', photo.name],
['Dimensions', `${photo.width} × ${photo.height}`],
['Size', `${(photo.size / (1024 * 1024)).toFixed(2)} MB`],
['Decode', decodeLabel],
['Proxy', proxyLabel],
['Camera', photo.meta.camera ?? '—'],
['Lens', photo.meta.lens ?? '—'],
['ISO', photo.meta.iso ? String(photo.meta.iso) : '—'],