Show camera profiles in every view and remember proof and DCP settings.

A profile chosen for a raw only changed Develop and exports, so the grid,
Compare and preset previews could disagree with the file. They now grade
camera-native samples, while the proof profile persists with a rendering
intent and DCP matrices can be reused per camera body.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
2026-11-28 04:04:44 +00:00
parent 0c113e7a91
commit 637629385a
16 changed files with 720 additions and 39 deletions
+25
View File
@@ -141,6 +141,30 @@ export async function removePreview16(id) {
if (found) await fsp.rm(found, { force: true });
}
/**
* Camera-native grid thumbnail: the sidecar's samples at the JPEG thumbnail's
* size, so the grid can honour a per-photo camera profile without downloading
* the full sidecar. Lives beside the sidecar and is regenerated on demand.
*/
export async function writeThumb16(id, data) {
ensureDirs();
const target = path.join(storageRoot(), 'previews', `${safeId(id)}.t16.png`);
await fsp.writeFile(target, data);
return target;
}
export function findThumb16(id) {
const safe = lookupId(id);
if (!safe) return null;
const p = path.join(dirs().previews, `${safe}.t16.png`);
return fs.existsSync(p) ? p : null;
}
export async function removeThumb16(id) {
const found = findThumb16(id);
if (found) await fsp.rm(found, { force: true });
}
/**
* Denoised proxies, keyed by the hash of the parameters that produced them, so
* switching Amount back to a previous value reuses the file instead of spending
@@ -234,6 +258,7 @@ export async function removeAsset(id) {
findOriginal(id),
findPreview(id),
findPreview16(id),
findThumb16(id),
findThumb(id),
findProof(id),
findProofThumb(id),