Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions apps/lightcraft-web/src/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ impl Store for FilesStore {
self.0.truncate(name, len as usize);
Ok(())
}
/// The browser always runs the newest build, and its storage is small.
fn keeps_replaced_formats(&self) -> bool {
false
}
fn describe(&self) -> String {
"browser storage".into()
}
Expand Down
229 changes: 229 additions & 0 deletions crates/catalog/src/develop_defaults.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,229 @@
{
"version": 1,
"profile": {
"id": "lc.color",
"amount": 100.0,
"camera_local_tone": false
},
"treatment": "color",
"wb": {
"mode": "asShot",
"temp": 6500.0,
"tint": 0.0,
"scale": "legacy"
},
"light": {
"exposure": 0.0,
"contrast": 0.0,
"highlights": 0.0,
"shadows": 0.0,
"whites": 0.0,
"blacks": 0.0
},
"hdr": {
"enabled": false,
"max_ev": 3.0,
"sdr_brightness": 0.0,
"sdr_clarity": 0.0,
"sdr_contrast": 0.0,
"sdr_highlights": 0.0,
"sdr_shadows": 0.0,
"sdr_whites": 0.0
},
"curve": {
"highlights": 0.0,
"lights": 0.0,
"darks": 0.0,
"shadows": 0.0,
"split_shadows": 25.0,
"split_mid": 50.0,
"split_highlights": 75.0,
"master": [],
"red": [],
"green": [],
"blue": [],
"refine_saturation": 100.0
},
"color": {
"vibrance": 0.0,
"saturation": 0.0
},
"mixer": {
"red": {
"hue": 0.0,
"sat": 0.0,
"lum": 0.0
},
"orange": {
"hue": 0.0,
"sat": 0.0,
"lum": 0.0
},
"yellow": {
"hue": 0.0,
"sat": 0.0,
"lum": 0.0
},
"green": {
"hue": 0.0,
"sat": 0.0,
"lum": 0.0
},
"aqua": {
"hue": 0.0,
"sat": 0.0,
"lum": 0.0
},
"blue": {
"hue": 0.0,
"sat": 0.0,
"lum": 0.0
},
"purple": {
"hue": 0.0,
"sat": 0.0,
"lum": 0.0
},
"magenta": {
"hue": 0.0,
"sat": 0.0,
"lum": 0.0
}
},
"point_colors": [],
"bw_mix": {
"red": 0.0,
"orange": 0.0,
"yellow": 0.0,
"green": 0.0,
"aqua": 0.0,
"blue": 0.0,
"purple": 0.0,
"magenta": 0.0
},
"grading": {
"shadows": {
"hue": 0.0,
"sat": 0.0,
"lum": 0.0
},
"midtones": {
"hue": 0.0,
"sat": 0.0,
"lum": 0.0
},
"highlights": {
"hue": 0.0,
"sat": 0.0,
"lum": 0.0
},
"global": {
"hue": 0.0,
"sat": 0.0,
"lum": 0.0
},
"blending": 50.0,
"balance": 0.0
},
"effects": {
"texture": 0.0,
"clarity": 0.0,
"dehaze": 0.0
},
"vignette": {
"amount": 0.0,
"midpoint": 50.0,
"roundness": 0.0,
"feather": 50.0,
"highlights": 0.0,
"style": "highlightPriority"
},
"grain": {
"amount": 0.0,
"size": 25.0,
"roughness": 50.0,
"seed": 0
},
"detail": {
"sharpen_amount": 0.0,
"sharpen_radius": 1.0,
"sharpen_detail": 25.0,
"sharpen_masking": 0.0,
"nr_luminance": 0.0,
"nr_detail": 50.0,
"nr_contrast": 0.0,
"nr_color": 0.0,
"nr_color_detail": 50.0,
"nr_color_smoothness": 50.0
},
"optics": {
"remove_ca": false,
"lens_profile": false,
"profile_distortion": 100.0,
"profile_vignetting": 100.0,
"defringe_purple_amount": 0.0,
"defringe_purple_hue_lo": 30.0,
"defringe_purple_hue_hi": 70.0,
"defringe_green_amount": 0.0,
"defringe_green_hue_lo": 40.0,
"defringe_green_hue_hi": 60.0,
"distortion": 0.0,
"vignetting": 0.0,
"vignetting_midpoint": 50.0,
"ca_red": 0.0,
"ca_blue": 0.0
},
"geometry": {
"upright": "off",
"guides": [],
"upright_transform": null,
"vertical": 0.0,
"horizontal": 0.0,
"rotate": 0.0,
"aspect": 0.0,
"scale": 100.0,
"offset_x": 0.0,
"offset_y": 0.0,
"constrain_crop": false
},
"crop": {
"geometry": {
"rect": {
"x0": 0.0,
"y0": 0.0,
"x1": 1.0,
"y1": 1.0
},
"angle": 0.0
},
"aspect": null,
"flip_h": false,
"flip_v": false
},
"orientation": "Normal",
"masks": [],
"spots": [],
"red_eye": [],
"lens_blur": {
"enabled": false,
"amount": 0.0,
"focal_distance": 0.0,
"focal_range": 0.0
},
"enhance": {
"denoise": 0.0,
"raw_details": false,
"super_resolution": false,
"denoise_on": null
},
"calibration": {
"shadows_tint": 0.0,
"red_hue": 0.0,
"red_sat": 0.0,
"green_hue": 0.0,
"green_sat": 0.0,
"blue_hue": 0.0,
"blue_sat": 0.0
},
"disabled_sections": []
}
7 changes: 7 additions & 0 deletions crates/catalog/src/fixtures/v10-catalog.log.jsonl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{"seq":4,"crc":24908816,"op":{"op":"setDevelop","id":8,"settings":{"wb":{"temp":7000.0}},"label":"Temperature","edited":"2026-10-10T14:00:00"}}
{"seq":5,"crc":2749520832,"op":{"op":"pushHistory","id":8,"step":{"label":"Temperature","settings":{"wb":{"temp":7000.0}}}}}
{"seq":6,"crc":1078812333,"op":{"op":"setMeta","id":8,"meta":{"title":"Harbour","keywords":["boats"]}}}
{"seq":7,"crc":4123692544,"op":{"op":"setRating","id":9,"rating":3}}
{"seq":8,"crc":1378474312,"op":{"op":"setVersions","id":9,"versions":[{"name":"Rich","created":"2026-10-10T14:05:00","settings":{"crop":{"aspect":[3,2],"flip_h":true,"geometry":{"angle":1.5,"rect":{"x0":0.0,"x1":1.0,"y0":0.0,"y1":1.0}}},"curve":{"master":[{"x":0.0,"y":0.0},{"x":0.4,"y":0.55},{"x":1.0,"y":1.0}],"red":[{"x":0.0,"y":0.1},{"x":1.0,"y":0.9}]},"disabled_sections":["detail","light"],"geometry":{"guides":[[{"x":0.1,"y":0.1},{"x":0.1,"y":0.9}],[{"x":0.9,"y":0.1},{"x":0.8,"y":0.9}]],"upright_transform":[1.0,0.01,0.0,-0.01,1.0,0.0,0.0,0.002,1.0]},"masks":[{"adjust":{"amount":100.0,"blacks":0.0,"clarity":0.0,"color_hue":0.0,"color_sat":0.0,"contrast":0.0,"defringe":0.0,"dehaze":0.0,"exposure":0.0,"highlights":0.0,"hue":0.0,"moire":0.0,"noise":0.0,"saturation":0.0,"shadows":0.0,"sharpness":0.0,"temp":0.0,"texture":0.0,"tint":0.0,"whites":0.0},"components":[{"invert":false,"op":"add","shape":{"end":{"x":0.5,"y":0.4},"kind":"linear","start":{"x":0.5,"y":0.0}}},{"invert":true,"name":"Sun","op":"add","shape":{"angle":0.0,"center":{"x":0.7,"y":0.2},"feather":50.0,"invert":false,"kind":"radial","rx":0.1,"ry":0.1}},{"invert":false,"op":"add","shape":{"hi":1.0,"hi_feather":0.0,"kind":"luminanceRange","lo":0.6,"lo_feather":0.1}}],"id":1,"invert":false,"name":"Sky","refine":30.0,"visible":true},{"adjust":{"amount":100.0,"blacks":0.0,"clarity":0.0,"color_hue":0.0,"color_sat":0.0,"contrast":0.0,"defringe":0.0,"dehaze":0.0,"exposure":0.0,"highlights":0.0,"hue":0.0,"moire":0.0,"noise":0.0,"saturation":0.0,"shadows":0.0,"sharpness":0.0,"temp":0.0,"texture":0.0,"tint":0.0,"whites":0.0},"components":[{"invert":false,"op":"add","shape":{"detail":[{"data":"eJxjYAAAAAEAAQ==","rect":[0.1,0.2,0.6,0.7],"side":128},{"data":"eJxjYAAAAAEAAQ==","rect":[0.1,0.2,0.6,0.7],"side":64}],"edge":2.0,"exclude":[{"x":0.1,"y":0.1}],"hint":[{"x":0.4,"y":0.6}],"kind":"object","seg":{"data":"eJxjYAAAAAEAAQ==","rect":[0.1,0.2,0.6,0.7],"side":256}}},{"invert":false,"op":"add","shape":{"kind":"prompt","text":"the red boat"}},{"invert":false,"op":"add","shape":{"kind":"colorRange","refine":40.0,"samples":[[0.5,0.1,0.2]]}},{"invert":false,"op":"add","shape":{"kind":"people","parts":["face"],"person":1}},{"invert":false,"op":"add","shape":{"kind":"subject"}}],"id":2,"invert":false,"name":"Boat","visible":true}],"point_colors":[{"chroma":0.1,"hue":0.0,"hue_range":50.0,"hue_shift":20.0,"lum":0.5,"lum_range":50.0,"lum_shift":0.0,"range":50.0,"sat_range":50.0,"sat_shift":0.0,"variance":0.0}],"profile":{"amount":150.0,"camera_local_tone":true,"id":"lc.mono"},"red_eye":[{"catchlight":{"x":0.1,"y":-0.1},"center":{"x":0.5,"y":0.4},"darken":50.0,"pet":false,"pupil_size":50.0,"rx":0.02,"ry":0.015}],"spots":[{"feather":50.0,"mode":"remove","opacity":100.0,"points":[{"x":0.3,"y":0.3},{"x":0.32,"y":0.31}],"size":0.02,"source_offset":{"x":0.05,"y":0.0}}],"treatment":"bw","wb":{"tint":12.0}},"auto":false}]}}
{"seq":9,"crc":1772878675,"op":{"op":"setAsShotWb","id":8,"wb":[5200.0,8.0]}}
{"seq":10,"crc":4045689318,"op":{"op":"setDevelop","id":8,"settings":{"wb":{"scale":"kelvin","temp":5200.0,"tint":8.0}},"label":"White Balance","edited":"2026-10-11T09:00:00"}}
Loading
Loading