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:
@@ -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) : '—'],
|
||||
|
||||
Reference in New Issue
Block a user