Bắt đầu sửa lỗi
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
export type FrameId = 'none' | 'polaroid' | 'classic-white' | 'cinematic';
|
||||
|
||||
export interface ColorAdjustments {
|
||||
exposure: number; // -10 to +10 (mapped to matrix multiplier or offset)
|
||||
contrast: number; // -10 to +10
|
||||
saturation: number; // -10 to +10
|
||||
temperature: number; // 2500 to 10000 (Kelvin)
|
||||
tint: number; // -10 to +10
|
||||
highlight: number; // -10 to +10 (Highlight contrast adjustment)
|
||||
shadow: number; // -10 to +10 (Shadow contrast adjustment)
|
||||
denoise: number; // 0 to 10 (mapped to blur sigma)
|
||||
clarity: number; // -10 to +10 (mapped to matrix convolution / bloom)
|
||||
grain: number; // 0 to 10 (mapped to noise turbulence opacity/scale)
|
||||
colorChrome: 'none' | 'weak' | 'strong'; // Chrome effect
|
||||
}
|
||||
|
||||
export interface Recipe {
|
||||
id: string;
|
||||
name: string;
|
||||
isCustom?: boolean;
|
||||
baseFilter: 'classic-neg' | 'provia' | 'velvia' | 'monochrome' | 'none';
|
||||
adjustments: ColorAdjustments;
|
||||
frameId?: FrameId; // e.g. 'none', 'polaroid', 'classic-white', 'cinematic'
|
||||
useGeotag: boolean;
|
||||
}
|
||||
|
||||
export interface GPSInfo {
|
||||
latitude: number;
|
||||
longitude: number;
|
||||
locality?: string;
|
||||
country?: string;
|
||||
timestamp: number;
|
||||
}
|
||||
Reference in New Issue
Block a user