Land camera-native raw profiles, real ICC soft proofing and 16-bit proxies.

Camera profiles, proofing tables and the half-float sidecar all have to agree
with the pixels the editor actually grades, so they land together with the
preset filter menu that was unusable while thumbnails streamed in.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
2026-11-28 03:59:55 +00:00
parent 6dfddffc14
commit 0c113e7a91
53 changed files with 9217 additions and 476 deletions
+42
View File
@@ -68,6 +68,8 @@ export interface LocalLayer {
id: string;
name: string;
kind: LocalMaskKind;
/** How this mask combines with the layer above it in the list. */
mode: 'add' | 'subtract' | 'intersect';
inverted: boolean;
/** softness of the mask edge, 0–100 */
feather: number;
@@ -89,9 +91,19 @@ export interface LocalLayer {
contrast: number;
highlights: number;
shadows: number;
whites: number;
blacks: number;
temp: number;
tint: number;
saturation: number;
vibrance: number;
/** hue rotation in degrees, -180–180 */
hue: number;
/** detail and haze tools, applied after the global finish pass */
texture: number;
clarity: number;
dehaze: number;
sharpen: number;
};
}
@@ -127,8 +139,15 @@ export interface GeometryEdits {
}
export interface Edits {
/** relative warm/cool offset, used when `kelvin` is null */
temp: number;
tint: number;
/**
* Scene illuminant in Kelvin, or null to use the relative Temp offset. The
* gains are computed against a 5500 K daylight reference, which is also what
* the demosaiced proxy is assumed to be balanced for.
*/
kelvin: number | null;
exposure: number;
/** pulls clipped highlights back into range without shifting hue */
recovery: number;
@@ -142,12 +161,19 @@ export interface Edits {
dehaze: number;
vibrance: number;
saturation: number;
/**
* Redscale film response, 0–100: simulates colour film exposed through its
* base, where the red-sensitive layer is hit first and blue is absorbed.
*/
redscale: number;
bw: boolean;
/** colored filter simulated in black & white mode */
bwFilter: BwFilter;
/** how strongly that filter acts, 0–100 */
bwFilterAmount: number;
curve: Record<CurveChannel, CurvePoint[]>;
/** input black/white points and midtone gamma, applied before the curves */
levels: { black: number; white: number; gamma: number };
/** region tone shaping applied on top of the point curve */
parametric: { highlights: number; lights: number; darks: number; blacks: number };
hsl: { hue: number[]; sat: number[]; lum: number[] };
@@ -160,6 +186,11 @@ export interface Edits {
sharpen: { amount: number; radius: number; detail: number; mask: number; lensSoftness: number };
/** paper/output simulation for soft proofing */
proof: { enabled: boolean; paper: 'matte' | 'gloss' | 'newsprint'; blackPoint: number; gamut: boolean };
/**
* Camera profile override for a raw file, as the camera-to-sRGB matrix derived
* from a DCP's ColorMatrix. Null renders with the matrix the body supplied.
*/
cameraProfile: { name: string; matrix: number[] } | null;
/** chroma is the colour-noise amount; chromaDetail trades smoothing for fine colour */
noise: { luminance: number; detail: number; chroma: number; chromaDetail: number };
/**
@@ -268,6 +299,8 @@ export interface PhotoRecord {
previewUrl?: string;
/** server URL for the grid thumbnail */
thumbUrl?: string;
/** Bumped when the stored RAW is re-decoded, to invalidate cached previews. */
previewVersion?: number;
/** set when this photo was imported from an Immich album */
immich?: { albumId: string; assetId: string; checksum: string };
/** timestamp of the last rendered client proof published to the server */
@@ -326,7 +359,16 @@ export type SortKey = 'taken' | 'added' | 'name' | 'rating' | 'custom';
export interface Preset {
id: string;
name: string;
/** brand for film stocks, sub-collection for creative looks */
group: string;
/** top-level browser category, e.g. "Colour Negative" or "Portrait" */
category?: string;
/** one-line description of the look, shown in the preset browser */
description?: string;
/** free-text search terms */
tags?: string[];
/** present only on film emulations; drives the push/pull variants */
film?: { speed?: number; process?: string };
edits: Partial<Omit<Edits, 'crop'>>;
custom?: boolean;
}