PhotoCraft: An open-source, photo editor written by scratch in pure Rust
Integration: track t09
aiongg1dc684a2b6c2
diff --cc contributors/people.tomlindex f8a49ee90,2d5cebdaf..08325ad35--- a/contributors/people.toml+++ b/contributors/people.toml@@@ -198,22 -192,5 +198,25 @@@ sync_github_name = tru[people.ha1des]sync_github_name = true+[people.webdevtodayjason]+display_name = "Jason Brashear"++[people.AndreeSalazar]+real_name = "Andreé Salazar"+sync_github_name = true++[people.LorenzoFasolino]+real_name = "Lorenzo Fasolino"+display_name = "Lorenzo Fasolino"+sync_github_name = false++[people.zolyy]+real_name = "Gall Zoltan"+sync_github_name = false++[people.theshubh77]+real_name = "Shubham Bhamare"+sync_github_name = true+++ [people.ksaxena149]+ sync_github_name = truediff --cc crates/engine/src/atn_cmds.rsindex bdfd7411a,7823ccdfe..3b974a34a--- a/crates/engine/src/atn_cmds.rs+++ b/crates/engine/src/atn_cmds.rs@@@ -2272,8 -2147,13 +2292,13 @@@ fn duplicate_to(id: &str, p: &Value) -if id == "layer.duplicate" && jstr(p, "document") == Some("new") {return None;}+ // Photoshop's Duplicate has no in-place flag: a plain one would place the artboard copy beside+ // the original on playback.+ if id == "layer.duplicate" && jbool(p, "inPlace") == Some(true) {+ return None;+ }let mut d = match id {- "layer.duplicate" => desc("null").with("null", layer_ref(p)),+ "layer.duplicate" => desc("null").with("null", layer_ref(p)?),"image.duplicate" => {desc("null").with("null", D::Reference(vec![ReferenceItem::Enumerated { class: class("Dcmn"), type_id: Id::new("Ordn"), value: Id::new("Frst") }]))}@@@ -2795,24 -2653,22 +2820,32 @@@ fn shadows_highlights_to(_: &str, p: &V}fn image_size_to(_: &str, p: &Value) -> Option<Descriptor> {+ // Resolution only with Resample on imports as keep-print-size; a command without it cannot be told apart.+ if jnum(p, "resolution").is_some()+ && jnum(p, "width").is_none()+ && jnum(p, "height").is_none()+ && jnum(p, "percent").is_none()+ && jstr(p, "resample").is_some_and(|r| r != "none")+ && jbool(p, "keepPrintSize") != Some(true)+ {+ return None;+ }let mut d = desc("null");- if let Some(pc) = jnum(p, "percent") {+ // `resample: "none"` changes the resolution only and the command ignores any size then. The+ // descriptor has no "none" (it is the absence of `Intr`), so writing the ignored size would+ // turn the step into a pixel resize on playback (#7189).+ let resolution_only = jstr(p, "resample") == Some("none");+ if resolution_only && jnum(p, "resolution").is_none() {+ // Nothing left to record: the step changes nothing.+ return None;+ }+ if let Some(pc) = jnum(p, "percent").filter(|_| !resolution_only) {d = d.with("Wdth", pct(pc)).with("Hght", pct(pc)).with("CnsP", D::Boolean(true));}- if let Some(w) = jnum(p, "width") {+ if let Some(w) = jnum(p, "width").filter(|_| !resolution_only) {d = d.with("Wdth", px(w));}- if let Some(h) = jnum(p, "height") {+ if let Some(h) = jnum(p, "height").filter(|_| !resolution_only) {d = d.with("Hght", px(h));}if let Some(r) = jnum(p, "resolution") {@@@ -3827,20 -3680,14 +3891,22 @@@ pub fn exportskipped.push(Skipped { action: a.name.clone(), step: i, id: id.clone() });continue;}- return Err(format!("step {} of `{}` (`{id}`) has no Photoshop equivalent; pass \"skipUnsupported\": true to leave it out", i + 1, a.name));+ let step_name = match params.get("layer") {+ Some(Value::Number(n)) => format!("`{id}` with numeric layer {n}"),+ _ => format!("`{id}`"),+ };+ return Err(format!(+ "step {} of `{}` ({step_name}) has no Photoshop equivalent; pass \"skipUnsupported\": true to leave it out",+ i + 1,+ a.name+ ));};- item.enabled = a.step_enabled(i);- item.with_dialog = a.dialogs.contains(&i);- item.dialog_options = if item.with_dialog { 2 } else { 0 };- out.items.push(item);+ for mut item in items {+ item.enabled = a.step_enabled(i);+ item.with_dialog = a.dialogs.contains(&i);+ item.dialog_options = if item.with_dialog { 2 } else { 0 };+ out.items.push(item);+ }}file.actions.push(out);}diff --cc crates/engine/src/atn_cmds/tests.rsindex bd08c8bb4,351774bd0..a50e4ceeb--- a/crates/engine/src/atn_cmds/tests.rs+++ b/crates/engine/src/atn_cmds/tests.rs@@@ -2196,215 -1927,90 +2352,303 @@@ fn adjustment_layer_reset_still_resets(assert_eq!(steps[1].1, json!({"midtones": [10, 0, 0], "kind": "colorBalance"}));}+/// A Free Transform recorded against an unlinked mask or an alpha channel must not export as a+/// layer transform that moves the layer's pixels on replay (#7195).+#[test]+fn transform_with_mask_or_channel_target_is_not_exported_as_layer_transform() {+ for target in [json!("mask"), json!({"channel": 0}), json!("quickMask")] {+ let a = Action {+ name: "Probe".into(),+ steps: vec![("edit.transform".into(), json!({"target": target, "dx": 3, "dy": 2, "scaleX": 100, "interpolation": "nearest"}))],+ ..Default::default()+ };+ assert!(export("Targets", &[&a], &[], false).is_err(), "{target} exported");+ let (_, skipped) = export("Targets", &[&a], &[], true).unwrap();+ assert_eq!(skipped, vec![Skipped { action: "Probe".into(), step: 0, id: "edit.transform".into() }]);+ }+ for params in [+ json!({"dx": 3, "dy": 2, "scaleX": 50, "interpolation": "nearest"}),+ json!({"target": "pixels", "dx": 3, "dy": 2, "scaleX": 50, "interpolation": "nearest"}),+ ] {+ let plain = Action { name: "Plain".into(), steps: vec![("edit.transform".into(), params)], ..Default::default() };+ let (bytes, skipped) = export("Targets", &[&plain], &[], false).unwrap();+ assert!(skipped.is_empty());+ let imported = import(&bytes).unwrap();+ assert_eq!(imported.actions[0].steps, vec![("edit.transform".to_string(), json!({"dx": 3, "dy": 2, "scaleX": 50, "interpolation": "nearest"}))]);+ }+ for form in [json!({"quad": [[0, 0], [1, 0], [1, 1], [0, 1]]}), json!({"matrix": [1, 0, 0, 1, 0, 0]}), json!({"rect": [0, 0, 1, 1]})] {+ assert!(transform_to("edit.transform", &form).is_none());+ }+}++/// Apply Image's optional blending mask has no `.atn` mapping: a strict export must refuse the+/// step rather than drop the mask and widen the edit to the whole layer.+#[test]+fn apply_image_with_blending_mask_is_not_exported_without_its_mask() {+ let source = json!({"layer": "Pixels", "channel": "green", "invert": true});+ for params in [json!({"source": source, "blending": "normal", "mask": {"channel": 0}}), json!({"source": source, "blending": "normal", "maskChannel": 0})] {+ let masked = Action { name: "Masked".into(), steps: vec![("image.applyImage".into(), params.clone())], ..Default::default() };+ assert!(export("Audit5", &[&masked], &[], false).is_err(), "{params}");+ let (_, skipped) = export("Audit5", &[&masked], &[], true).unwrap();+ assert_eq!(skipped, vec![Skipped { action: "Masked".into(), step: 0, id: "image.applyImage".into() }]);+ }+ for params in [json!({"source": source, "blending": "normal"}), json!({"source": source, "blending": "normal", "mask": {"channel": "none"}})] {+ let plain = Action { name: "Plain".into(), steps: vec![("image.applyImage".into(), params.clone())], ..Default::default() };+ let (bytes, skipped) = export("Audit5", &[&plain], &[], false).unwrap();+ assert!(skipped.is_empty());+ let imported = import(&bytes).unwrap();+ assert_eq!(imported.actions[0].steps, vec![("image.applyImage".to_string(), json!({"source": source, "blending": "normal"}))]);+ }+}++fn image_size_round_trip(params: &Value) -> Option<Value> {+ let item = export_item("image.imageSize", params, "S")?;+ let e = event_for(&item.event).unwrap();+ match (e.from)(item.descriptor.as_ref().unwrap()) {+ Mapped::Steps(steps) => Some(steps[0].1.clone()),+ _ => panic!("image size descriptor did not import as steps"),+ }+}++/// Photoshop's Select and Mask descriptor as mapped has no field for the Refine Edge Brush,+/// so a step with brush strokes must not export as a plain Select and Mask without them.+#[test]+fn refine_edge_with_brush_strokes_is_not_exported_without_them() {+ for mode in ["add", "subtract"] {+ let brushed = Action {+ name: "Probe".into(),+ steps: vec![("select.refineEdge".into(), json!({"radius": 1, "refineStrokes": [{"points": [[5, 4]], "size": 4, "mode": mode}]}))],+ ..Default::default()+ };+ assert!(export("Audit", &[&brushed], &[], false).is_err(), "{mode}");+ let (_, skipped) = export("Audit", &[&brushed], &[], true).unwrap();+ assert_eq!(skipped, vec![Skipped { action: "Probe".into(), step: 0, id: "select.refineEdge".into() }]);+ }+ for params in [json!({"radius": 1}), json!({"radius": 1, "refineStrokes": []}), json!({"radius": 1, "refineStrokes": null})] {+ let plain = Action { name: "Plain".into(), steps: vec![("select.refineEdge".into(), params)], ..Default::default() };+ let (bytes, skipped) = export("Audit", &[&plain], &[], false).unwrap();+ assert!(skipped.is_empty());+ let imported = import(&bytes).unwrap();+ assert_eq!(imported.actions[0].steps, vec![("select.refineEdge".to_string(), json!({"radius": 1}))]);+ }+}++#[test]+fn image_size_resolution_only_does_not_gain_keep_print_size() {+ // The .atn cannot tell resolution-only from keepPrintSize:true, so the former must not+ // export as a descriptor that imports back as keep-print-size.+ let params = json!({"resolution": 144, "resample": "nearest"});+ assert_eq!(image_size_round_trip(¶ms), None);+}++#[test]+fn image_size_intentional_controls_still_round_trip() {+ for params in [+ json!({"resolution": 144.0, "resample": "nearest", "keepPrintSize": true}),+ json!({"width": 12.0, "height": 10.0, "resolution": 144.0, "resample": "nearest"}),+ ] {+ assert_eq!(image_size_round_trip(¶ms), Some(params.clone()));+ }+}++#[test]+fn recorded_layer_select_exports_to_atn() {+ let mut s = Session::new();+ s.execute("file.new", json!({"width": 8, "height": 8})).unwrap();+ let l = s.execute("layer.new.layer", json!({"name": "Wanted"})).unwrap();+ let wanted_id = l["layer"].as_u64().unwrap();+ s.execute("actions.record", json!({"name": "SelectWanted"})).unwrap();+ s.execute("layer.select", json!({"layer": wanted_id})).unwrap();+ s.execute("actions.stop", json!({})).unwrap();++ let action = s.execute("actions.get", json!({"action": "SelectWanted"})).unwrap();+ assert_eq!(action["steps"][0], json!(["layer.select", {"name": "Wanted"}]));++ // Strict export should succeed and produce bytes without skipUnsupported+ let saved = s.execute("actions.save", json!({"action": "SelectWanted"})).unwrap();+ assert_eq!(saved["steps"], 1);+ assert_eq!(saved["skipped"], json!([]));++ // When exported with skipUnsupported: true, it shouldn't skip the step either+ let saved_skip = s.execute("actions.save", json!({"action": "SelectWanted", "skipUnsupported": true})).unwrap();+ assert_eq!(saved_skip["steps"], 1);+ assert_eq!(saved_skip["skipped"], json!([]));++ // If an action has an occurrence target (duplicate names), it cannot be represented unambiguously in .atn+ let bad_action = Action::new("Dup", vec![("layer.select".into(), json!({"name": "Wanted", "occurrence": 1}))]);+ let err = export("Set", &[&bad_action], &[], false);+ assert!(err.is_err(), "occurrence without representation must fail strict export");+}++#[test]+fn select_rect_mode_strict_export_rejects_unrepresentable_modes() {+ let mut s = Session::new();+ s.execute("file.new", json!({"width": 8, "height": 8})).unwrap();++ // Default or "replace" mode succeeds+ s.actions.list.push(Action::new("ReplaceAct", vec![("select.rect".into(), json!({"x": 4, "y": 4, "width": 2, "height": 2, "mode": "replace"}))]));+ let saved = s.execute("actions.save", json!({"action": "ReplaceAct"})).unwrap();+ assert_eq!(saved["steps"], 1);++ // "add" mode cannot be silently converted to replace (set) in strict export+ s.actions.list.push(Action::new("AddAct", vec![("select.rect".into(), json!({"x": 4, "y": 4, "width": 2, "height": 2, "mode": "add"}))]));+ let before_actions = s.actions.list.clone();+ let err = s.execute("actions.save", json!({"action": "AddAct"}));+ assert!(err.is_err(), "strict export must reject select.rect with add mode rather than converting to replace");+ assert_eq!(s.actions.list, before_actions, "actions list must remain unchanged after rejected save");++ // "subtract" mode cannot be silently converted to replace either+ s.actions.list.push(Action::new("SubtractAct", vec![("select.rect".into(), json!({"x": 4, "y": 4, "width": 2, "height": 2, "mode": "subtract"}))]));+ let before_actions_sub = s.actions.list.clone();+ let err_subtract = s.execute("actions.save", json!({"action": "SubtractAct"}));+ assert!(err_subtract.is_err(), "strict export must reject select.rect with subtract mode rather than converting to replace");+ assert_eq!(s.actions.list, before_actions_sub, "actions list must remain unchanged after rejected save");++ // With skipUnsupported: true, unrepresentable modes are reported in skipped+ let skipped = s.execute("actions.save", json!({"action": "AddAct", "skipUnsupported": true})).unwrap();+ assert_eq!(skipped["steps"], 0);+ assert_eq!(skipped["skipped"][0]["id"], "select.rect");+}++#[test]+fn radial_blur_off_center_strict_export_refuses_silent_recentering() {+ let mut s = Session::new();+ s.execute("file.new", json!({"width": 16, "height": 16})).unwrap();++ // Default center (omitted) exports successfully+ s.actions.list.push(Action::new("DefaultCenter", vec![("filter.blur.radialBlur".into(), json!({"amount": 50, "method": "spin", "quality": "good"}))]));+ let saved = s.execute("actions.save", json!({"action": "DefaultCenter"})).unwrap();+ assert_eq!(saved["steps"], 1);++ // Explicit (0.5, 0.5) center also exports successfully+ s.actions.list.push(Action::new(+ "ExplicitDefaultCenter",+ vec![("filter.blur.radialBlur".into(), json!({"amount": 50, "method": "spin", "quality": "good", "centerX": 0.5, "centerY": 0.5}))],+ ));+ let saved_exp = s.execute("actions.save", json!({"action": "ExplicitDefaultCenter"})).unwrap();+ assert_eq!(saved_exp["steps"], 1);++ // Off-center radial blur cannot be silently recentered in strict export+ s.actions.list.push(Action::new(+ "OffCenter",+ vec![("filter.blur.radialBlur".into(), json!({"amount": 50, "method": "spin", "quality": "good", "centerX": 0.1, "centerY": 0.2}))],+ ));+ let before_actions = s.actions.list.clone();+ let err = s.execute("actions.save", json!({"action": "OffCenter"}));+ assert!(err.is_err(), "strict export must reject off-center radial blur rather than silently recentering it");+ assert_eq!(s.actions.list, before_actions, "actions list must remain unchanged after rejected save");++ // With skipUnsupported: true, off-center radial blur is skipped+ let skipped = s.execute("actions.save", json!({"action": "OffCenter", "skipUnsupported": true})).unwrap();+ assert_eq!(skipped["steps"], 0);+ assert_eq!(skipped["skipped"][0]["id"], "filter.blur.radialBlur");++ // Radial blur targeting a mask must not export as a plain filter that edits pixels+ s.actions+ .list+ .push(Action::new("MaskTarget", vec![("filter.blur.radialBlur".into(), json!({"amount": 50, "method": "spin", "quality": "good", "target": "mask"}))]));+ let before_actions = s.actions.list.clone();+ let err_mask = s.execute("actions.save", json!({"action": "MaskTarget"}));+ assert!(err_mask.is_err(), "strict export must reject radial blur with non-pixel target");+ assert_eq!(s.actions.list, before_actions, "actions list must remain unchanged after rejected save");++ let skipped_mask = s.execute("actions.save", json!({"action": "MaskTarget", "skipUnsupported": true})).unwrap();+ assert_eq!(skipped_mask["steps"], 0);+ assert_eq!(skipped_mask["skipped"][0]["id"], "filter.blur.radialBlur");++ // Explicit pixels target exports successfully+ s.actions.list.push(Action::new(+ "PixelsTarget",+ vec![("filter.blur.radialBlur".into(), json!({"amount": 50, "method": "spin", "quality": "good", "target": "pixels"}))],+ ));+ let saved_pixels = s.execute("actions.save", json!({"action": "PixelsTarget"})).unwrap();+ assert_eq!(saved_pixels["steps"], 1);+}+++ /// A crop with W x H x Resolution output options must not export as a plain rectangle crop+ /// that keeps the old size and resolution on replay: the mapper has no field for them.+ #[test]+ fn crop_with_output_size_or_resolution_is_not_exported_as_plain_crop() {+ for params in [+ json!({"x": 1, "y": 1, "width": 4, "height": 3, "targetWidth": 8, "targetHeight": 6, "resolution": 144, "resample": "nearest"}),+ json!({"x": 1, "y": 1, "width": 4, "height": 3, "resolution": 144}),+ json!({"x": 1, "y": 1, "width": 4, "height": 3, "targetWidth": 8, "targetHeight": 6}),+ ] {+ let sized = Action { name: "Probe".into(), steps: vec![("image.crop".into(), params)], ..Default::default() };+ assert!(export("Audit", &[&sized], &[], false).is_err());+ let (_, skipped) = export("Audit", &[&sized], &[], true).unwrap();+ assert_eq!(skipped, vec![Skipped { action: "Probe".into(), step: 0, id: "image.crop".into() }]);+ }+ let plain = Action { name: "Plain".into(), steps: vec![("image.crop".into(), json!({"x": 1, "y": 1, "width": 4, "height": 3}))], ..Default::default() };+ let (bytes, skipped) = export("Audit", &[&plain], &[], false).unwrap();+ assert!(skipped.is_empty());+ let imported = import(&bytes).unwrap();+ assert_eq!(imported.actions[0].steps, vec![("image.crop".to_string(), json!({"x": 1, "y": 1, "width": 4, "height": 3, "deleteCroppedPixels": true}))]);+ }++ /// `image.imageSize` with `resample: "none"` ignores width, height and percent; the `.atn`+ /// round trip must not turn them into a pixel resize (#7189).+ #[test]+ fn image_size_resample_none_keeps_ignoring_its_size_through_atn_export() {+ let event = event_for(&export_item("image.imageSize", &json!({"resolution": 72}), "S").expect("exports").event).expect("a known event");+ let back = |p: Value| {+ let item = export_item("image.imageSize", &p, "S")?;+ let Mapped::Steps(steps) = (event.from)(item.descriptor.as_ref().unwrap()) else { panic!("does not import back") };+ let mut back = steps[0].1.clone();+ normalise(&mut back);+ Some(back)+ };+ for sized in [json!({"width": 12, "height": 10}), json!({"width": 12}), json!({"percent": 200}), json!({"width": 12, "percent": 50, "height": 3})] {+ let mut p = sized.clone();+ p["resolution"] = json!(144);+ p["resample"] = json!("none");+ assert_eq!(back(p.clone()), Some(json!({"resolution": 144, "resample": "none"})), "{p}");+ }+ // A step with nothing left to record is refused rather than exported as an empty (unsupported) event.+ assert_eq!(back(json!({"width": 12, "height": 10, "resample": "none"})), None);+ // Real resizes are untouched.+ assert_eq!(back(json!({"width": 12, "height": 10, "resample": "bicubic"})), Some(json!({"width": 12, "height": 10, "resample": "bicubic"})));+ }++ /// #8302, #8308: Hue/Saturation's hue is `H ` in Photoshop's `Hst2`, both ways. It was written+ /// and read as `Hue `: exported actions failed in Photoshop, and Photoshop-recorded ones lost+ /// their hue on import with no warning. PhotoCraft's own older files (`Hue `) still read.+ #[test]+ fn hue_saturation_uses_photoshops_hue_key() {+ let params = json!({"colorize": false, "hue": 30, "saturation": 20, "lightness": -7, "greens": {"hue": -12, "saturation": 0, "lightness": 0, "range": [75, 105, 135, 165]}});+ let a = Action::new("H", vec![("image.adjustments.hueSaturation".into(), params.clone())]);+ let (bytes, skipped) = export("S", &[&a], &[], false).unwrap();+ assert!(skipped.is_empty());+ let file = atn::parse(&bytes).unwrap();+ let d = file.actions[0].items[0].descriptor.clone().expect("a descriptor");+ let entries: Vec<Descriptor> =+ get_list(&d, "Adjs").expect("Adjs").iter().filter_map(|e| if let D::Descriptor(e) = e { Some(e.clone()) } else { None }).collect();+ assert_eq!(entries.len(), 2);+ assert_eq!(get_num(&entries[0], "H "), Some(30.0), "the master hue under H");+ assert_eq!(get_num(&entries[1], "H "), Some(-12.0), "a range's hue under H");+ assert!(entries.iter().all(|e| get_num(e, "Hue ").is_none()), "no Hue key");++ // A Photoshop-recorded step (H) and an older PhotoCraft one (Hue ) both import with the hue.+ let step = |key: &str| {+ desc("null")+ .with("presetKind", enm("presetKindType", "presetKindCustom"))+ .with("Clrz", D::Boolean(false))+ .with("Adjs", D::List(vec![D::Descriptor(desc("Hst2").with(key, long(30.0)).with("Strt", long(20.0)).with("Lght", long(-7.0)))]))+ };+ for key in ["H ", "Hue "] {+ let e = event_for(&item("HStr", "", None).event).expect("HStr imports");+ match (e.from)(&step(key)) {+ Mapped::Steps(steps) => {+ assert_eq!(steps[0].0, "image.adjustments.hueSaturation");+ assert_eq!(steps[0].1["hue"], json!(30.0), "{key:?}: {}", steps[0].1);+ assert_eq!(steps[0].1["saturation"], json!(20.0));+ }+ Mapped::Unsupported { .. } => panic!("{key:?} is unsupported"),+ }+ }+ // Through a whole file, saved and loaded back: the hue survives.+ let back = import(&bytes).unwrap();+ let mut p = back.actions[0].steps[0].1.clone();+ normalise(&mut p);+ assert_eq!(p["hue"], json!(30), "{p}");+ }diff --cc crates/engine/src/file_cmds.rsindex c5e9d464c,41c4762cf..b473210fc--- a/crates/engine/src/file_cmds.rs+++ b/crates/engine/src/file_cmds.rs@@@ -1925,7 -1823,7 +1962,7 @@@ pub fn specs() -> Vec<CommandSpec>"Batch…",&["File", "Automate"],None,- r##"{"steps":[[commandId,params]|{"command":id,"params":{}}…] (a recorded action),"input":folder|[paths],"includeSubfolders":bool=false (a folder input also takes the images in its subfolders, up to 32 levels and 100000 files; each result keeps its subfolder under output),"output":folder,"format":"same|png|jpg|psd|tiff|…"="same","quality":0..12?,"jpegFormat":"baseline|optimized|progressive"?,"naming":string? (blank keeps source names; {name}, {serial} padded to 3 digits, {date} as YYYY-MM-DD UTC; extension added automatically),"startingSerial":1..4294967295=1 (input position, including failed inputs),"tiffLayers":bool=false,"tiffCompression":"none|lzw|zip"?,"tgaBits":24|32?,"dpxBits":8|10|12|16? (DPX: bits per sample; unset, 8 for an 8-bit document, else 16),"ddsCompression":"none|bc1|bc2|bc3"="none" (DDS: uncompressed, or block compression; BC1 keeps alpha on or off),"ddsMipmaps":bool=false (DDS: also write the full mip chain),"calledActions":[{"name","steps"}…]? (the actions Play Action steps call; default: the session's)} → {files, errors} (an input whose output name was already written in the run goes to errors)"##,- r##"{"steps":[[commandId,params]|{"command":id,"params":{}}…] (a recorded action; a Save, Save As or Save a Copy step marks the document written to output, in this command's format and options: as the save found it if it was closed or another document is active at the end, else as the action leaves it; with no such step, the active document at the end),"input":folder|[paths],"includeSubfolders":bool=false (a folder input also takes the images in its subfolders, up to 32 levels and 100000 files; each result keeps its subfolder under output),"output":folder,"format":"same|png|jpg|psd|tiff|…"="same","quality":0..12?,"naming":string? (blank keeps source names; {name}, {serial} padded to 3 digits, {date} as YYYY-MM-DD UTC; extension added automatically),"startingSerial":1..4294967295=1 (input position, including failed inputs),"tiffLayers":bool=false,"tgaBits":24|32?,"dpxBits":8|10|12|16? (DPX: bits per sample; unset, 8 for an 8-bit document, else 16),"ddsCompression":"none|bc1|bc2|bc3"="none" (DDS: uncompressed, or block compression; BC1 keeps alpha on or off),"ddsMipmaps":bool=false (DDS: also write the full mip chain),"calledActions":[{"name","steps"}…]? (the actions Play Action steps call; default: the session's)} → {files, errors} (an input whose output name was already written in the run goes to errors)"##,++ r##"{"steps":[[commandId,params]|{"command":id,"params":{}}…] (a recorded action; a Save, Save As or Save a Copy step marks the document written to output, in this command's format and options: as the save found it if it was closed or another document is active at the end, else as the action leaves it; with no such step, the active document at the end),"input":folder|[paths],"includeSubfolders":bool=false (a folder input also takes the images in its subfolders, up to 32 levels and 100000 files; each result keeps its subfolder under output),"output":folder,"format":"same|png|jpg|psd|tiff|…"="same","quality":0..12?,"jpegFormat":"baseline|optimized|progressive"?,"naming":string? (blank keeps source names; {name}, {serial} padded to 3 digits, {date} as YYYY-MM-DD UTC; extension added automatically),"startingSerial":1..4294967295=1 (input position, including failed inputs),"tiffLayers":bool=false,"tiffCompression":"none|lzw|zip"?,"tgaBits":24|32?,"dpxBits":8|10|12|16? (DPX: bits per sample; unset, 8 for an 8-bit document, else 16),"ddsCompression":"none|bc1|bc2|bc3"="none" (DDS: uncompressed, or block compression; BC1 keeps alpha on or off),"ddsMipmaps":bool=false (DDS: also write the full mip chain),"calledActions":[{"name","steps"}…]? (the actions Play Action steps call; default: the session's)} → {files, errors} (an input whose output name was already written in the run goes to errors)"##,native,batch),diff --cc crates/engine/src/file_cmds/tests.rsindex 2a52155ca,5ada1dcd4..24bcd262d--- a/crates/engine/src/file_cmds/tests.rs+++ b/crates/engine/src/file_cmds/tests.rs@@@ -1587,9 -1459,86 +1587,86 @@@ fn batch_naming_rejects_outputs_that_reassert_eq!(std::fs::read(&second).unwrap(), before[1]);}+ /// Batch takes the result at the action's recorded Save, Save As or Save a Copy, as Photoshop's+ /// "Override Action 'Save As' Commands" does: a document closed after its save is written as the+ /// save found it. The usual "…, Save As, Close" ending failed on every file: the Save was dropped,+ /// and nothing was left open to save after the action.+ #[test]+ fn batch_saves_at_the_recorded_save_so_a_close_after_it_keeps_the_result() {+ let dir = tmp("batch-save-close");+ let red = png(&dir, "red.png", 8, 8, "#ff0000");+ let saved = |out: &str| photocraft_io::import("red.png", &std::fs::read(join(out, "red.png")).unwrap()).unwrap().document;+ let mut s = Session::new();+ let out = join(&dir, "close");+ let steps = json!([["image.adjustments.invert", {}], ["file.saveAs", {}], ["file.close", {}]]);+ let r = s.execute("file.automate.batch", json!({"input": [red], "output": out, "format": "png", "steps": steps})).unwrap();+ assert_eq!(r["errors"], json!([]), "{r}");+ assert_eq!(r["files"], json!([join(&out, "red.png")]));+ assert_eq!(photocraft_compose::render(&saved(&out), Rect::new(1, 1, 2, 2)).px[0], [0.0, 1.0, 1.0, 1.0], "the inverted red");++ // Save a Copy marks the result the same way, and its recorded path is never written.+ let out = join(&dir, "copy");+ let elsewhere = join(&dir, "elsewhere.png");+ let steps = json!([["image.adjustments.invert", {}], ["file.saveACopy", {"path": elsewhere}], ["file.close", {}]]);+ let r = s.execute("file.automate.batch", json!({"input": [red], "output": out, "format": "png", "steps": steps})).unwrap();+ assert_eq!(r["errors"], json!([]), "{r}");+ assert_eq!(photocraft_compose::render(&saved(&out), Rect::new(1, 1, 2, 2)).px[0], [0.0, 1.0, 1.0, 1.0]);+ assert!(!std::path::Path::new(&elsewhere).exists());++ // With no Save step the result is still saved after the action; with nothing left open then,+ // the file is an error, not a silent skip.+ let out = join(&dir, "closed");+ let r = s.execute("file.automate.batch", json!({"input": [red], "output": out, "format": "png", "steps": [["file.close", {}]]})).unwrap();+ assert_eq!(r["files"], json!([]), "{r}");+ assert!(r["errors"][0]["error"].as_str().unwrap().contains("no active document"), "{r}");+ }++ /// The document a recorded save marked is the result, not the one left active after it closed.+ /// Here the action saves and closes a second document it made, then inverts the input; the output+ /// used to be the inverted input, written in place of the result without an error.+ #[test]+ fn batch_saves_the_document_active_at_the_save_not_the_one_left_after_it() {+ let dir = tmp("batch-save-second");+ let red = png(&dir, "red.png", 8, 8, "#ff0000");+ let out = join(&dir, "out");+ let steps = json!([+ ["file.new", {"width": 4, "height": 4, "background": "#00ff00"}],+ ["file.save", {}],+ ["file.close", {}],+ ["image.adjustments.invert", {}]+ ]);+ let r = Session::new().execute("file.automate.batch", json!({"input": [red], "output": out, "format": "png", "steps": steps})).unwrap();+ assert_eq!(r["errors"], json!([]), "{r}");+ let saved = photocraft_io::import("red.png", &std::fs::read(join(&out, "red.png")).unwrap()).unwrap().document;+ assert_eq!((saved.size.width, saved.size.height), (4, 4));+ assert_eq!(photocraft_compose::render(&saved, Rect::new(1, 1, 2, 2)).px[0], [0.0, 1.0, 0.0, 1.0]);+ }++ /// While the saved document is open, the steps after its save still reach the result (#3058: a+ /// recorded Save then Rotate writes the rotated image). A step failing after the save writes+ /// nothing, as when Batch saved only after the action.+ #[test]+ fn batch_applies_the_steps_after_a_save_while_its_document_is_open() {+ let dir = tmp("batch-save-then-edit");+ let red = png(&dir, "red.png", 8, 8, "#ff0000");+ let mut s = Session::new();+ let out = join(&dir, "edited");+ let steps = json!([["file.saveAs", {}], ["image.adjustments.invert", {}]]);+ let r = s.execute("file.automate.batch", json!({"input": [red], "output": out, "format": "png", "steps": steps})).unwrap();+ assert_eq!(r["errors"], json!([]), "{r}");+ let saved = photocraft_io::import("red.png", &std::fs::read(join(&out, "red.png")).unwrap()).unwrap().document;+ assert_eq!(photocraft_compose::render(&saved, Rect::new(1, 1, 2, 2)).px[0], [0.0, 1.0, 1.0, 1.0]);++ let out = join(&dir, "failed");+ let steps = json!([["image.adjustments.invert", {}], ["file.saveAs", {}], ["layer.select", {"layer": "missing"}]]);+ let r = s.execute("file.automate.batch", json!({"input": [red], "output": out, "format": "png", "steps": steps})).unwrap();+ assert_eq!(r["errors"].as_array().unwrap().len(), 1, "{r}");+ assert!(!std::path::Path::new(&join(&out, "red.png")).exists(), "{r}");+ }+#[test]fn exposure_text_near_one_second_is_not_one_over_one() {- assert_eq!(exposure_text(0.996).as_deref(), Some("1 s"));+ assert_eq!(exposure_text(0.996).as_deref(), Some("0.996 s"), "not \"1/1 s\"; three significant digits");assert_eq!(exposure_text(0.99).as_deref(), Some("0.99 s"));assert_eq!(exposure_text(1.0 / 250.0).as_deref(), Some("1/250 s"));}diff --cc crates/engine/src/jobs.rsindex 6d98a6bc0,4d28614a1..57846617d--- a/crates/engine/src/jobs.rs+++ b/crates/engine/src/jobs.rs@@@ -906,8 -889,10 +906,9 @@@ impl Sessionif !crate::brush_cmds::coalesce_journal(self, id, ¶ms) {let params = match id {_ if self.actions.recording.is_none() => params,- "layer.select" => crate::layer_multi_cmds::recorded_selection(self, params),- "layer.duplicate" => crate::artboard_cmds::recorded_duplicate(self, params),++ "layer.duplicate" => crate::artboard_cmds::recorded_duplicate(self, crate::layer_multi_cmds::recorded_step(self, id, params, pre_selected)),"layerComp.apply" => crate::comps_cmds::recorded_apply(self, params),- _ => params,+ _ => crate::layer_multi_cmds::recorded_step(self, id, params, pre_selected),};self.journal.push((id.to_string(), params));}diff --cc crates/ui-egui/src/lib.rsindex c7123df81,42269986b..867439311--- a/crates/ui-egui/src/lib.rs+++ b/crates/ui-egui/src/lib.rs@@@ -3767,7 -3597,7 +3767,9 @@@ mod channel_tint_tests}}+ #[cfg(test)]+ mod browse_field_tests;#[cfg(test)]mod options_hit_area_tests;+#[cfg(test)]+mod select_and_mask_button_tests;diff --cc docs/gaps.mdindex eeb1b11e6,b3f0790cf..c93fc048d--- a/docs/gaps.md+++ b/docs/gaps.md@@@ -1,6 -1,6 +1,6 @@@# Where PhotoCraft falls short of Photoshop- > **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-19 · **Change:** minor (G14: the Nikon D4 white level follows the sample depth, so 12-bit D4 NEFs no longer open 2.6 stops dark, #5978; G14: a Nikon NEF's Adobe RGB preview is read as Adobe RGB (maker-note ColorSpace 0x001E), #5987; Apply Layer Comp action mapping, #7101; G10: JPEG Options dialog landed, FILE-215-19; G10: Cineon write; G10: DPX read and write, #1049, Cineon and Amiga IFF read; Classical Object Finder improvement; learned segmentation remains open; G9: Preferences › File Handling › Save in Background takes effect, #6207, 24 of 169 preferences do nothing; G7: Content-Aware Move previews every selection the command takes, coarse then exact, TOOL-213-4 done, #6680; G4: Pattern Stamp and Background Eraser draw live, TOOL-213-7; G9: Animated Zoom pref read: holding the Zoom tool zooms continuously, #6210, prefs that do nothing 25 of 166; G2: a cancelled 24 MP Gaussian Blur job stops in at most 44 ms, P25 under its 200 ms budget in local runs, baseline not re-run, #6205; G1: generated large-file fixtures, a 4.38 GB PSB opens on Windows through io, FILE-216-2 done, #5107; G9: fill and adjustment layers copy and paste whole, #2344; G1: smart filter masks show on PSD open, Photoshop-oracle floor 188/258; G10: DPX read and write, #1049, Cineon read; G1: CMYK Hue/Saturation and Color Balance keep the black ink; G1: CMYK Posterize on the stored values, psd-tools oracle floor 242/309; G1: CMYK adjustment layers composite on the document's inks, Photoshop-oracle floor 165/258; G1: CMYK Brightness/Contrast on the inks, CMYK Threshold's luma; G1: modern Brightness/Contrast's brightness curve matches Photoshop, Photoshop-oracle floor 151/258; G1: Lab documents composite on their stored L, a, b, Photoshop-oracle floor 152/258; G1: Levels on whole levels at every step, Photoshop-oracle floor 146/258, psd-tools 238/309; G1: 32-bit Brightness/Contrast legacy, Channel Mixer, Photo Filter and Black & White tint unclipped as in Photoshop, Photoshop-oracle floor 149/258; G1: mask feathers blur with their exact variance, psd-tools oracle floor 240/309; G1: Threshold splits on Photoshop's luminosity, psd-tools oracle floor 241/309; G1: pass-through clipping base with an adjustment renders isolated, psd-tools oracle floor 240/309; G1: 16-bit Posterize as Photoshop bins it, psd-tools oracle floor 241/309; G1: Gradient Map driven by the W3C luminosity, Photoshop-oracle floor 147/258; G7: Field Blur's on-canvas pins, #3373; G4: Hue Jitter amount track, #3825 partial; G4: minimum field interaction, #3825 partial; G1: CMYK Invert, Posterize and Threshold on the inks, 16-bit Lab Invert; Photoshop-oracle floor 145/258; G11: `.atn` import maps 112 events: Select and Mask, Filter Gallery Spatter, Ripple, Crystallize, Pattern Fill layers, mask targeting, Step Backward, nudges in points, Bitmap mode; G5: Free Transform H/V skew fields; G9: toolbar tool shortcut editing; refreshed against main: G2, G5, G7, G9, G10, G13, G14, G17 items that landed; G10: DPX read and write, #1049; G4: checkbox-only Brush Settings rows; G11: Load/Save Actions `.atn` landed, AUTO-219-2 partial; G5: hold-a-key spring-loaded tools landed, #2672; G1: #2465 fixed; stale missing-tool rows corrected: Color Replacement, Red Eye and Add/Delete Anchor Point are live tools, so only Art History Brush is missing; no estimate changed) · **Target:** Adobe Photoshop 2026-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-21 · **Change:** minor (G11: compound layer properties export as separate Photoshop Set events, rename last, #8304; G11: Batch and droplets take the result at the action's Save step, so actions ending in Save As and Close work; G11: `.atn` steps that switch to another open document import, play and save back, #7103; G9: Preferences › File Handling › Save in Background takes effect, #6207, 24 of 169 preferences do nothing; G7: Content-Aware Move previews every selection the command takes, coarse then exact, TOOL-213-4 done, #6680; G4: Pattern Stamp and Background Eraser draw live, TOOL-213-7; G9: Animated Zoom pref read: holding the Zoom tool zooms continuously, #6210, prefs that do nothing 25 of 166; G2: a cancelled 24 MP Gaussian Blur job stops in at most 44 ms, P25 under its 200 ms budget in local runs, baseline not re-run, #6205; G1: generated large-file fixtures, a 4.38 GB PSB opens on Windows through io, FILE-216-2 done, #5107; G9: fill and adjustment layers copy and paste whole, #2344; G1: smart filter masks show on PSD open, Photoshop-oracle floor 188/258; G10: DPX read and write, #1049, Cineon read; G1: CMYK Hue/Saturation and Color Balance keep the black ink; G1: CMYK Posterize on the stored values, psd-tools oracle floor 242/309; G1: CMYK adjustment layers composite on the document's inks, Photoshop-oracle floor 165/258; G1: CMYK Brightness/Contrast on the inks, CMYK Threshold's luma; G1: modern Brightness/Contrast's brightness curve matches Photoshop, Photoshop-oracle floor 151/258; G1: Lab documents composite on their stored L, a, b, Photoshop-oracle floor 152/258; G1: Levels on whole levels at every step, Photoshop-oracle floor 146/258, psd-tools 238/309; G1: 32-bit Brightness/Contrast legacy, Channel Mixer, Photo Filter and Black & White tint unclipped as in Photoshop, Photoshop-oracle floor 149/258; G1: mask feathers blur with their exact variance, psd-tools oracle floor 240/309; G1: Threshold splits on Photoshop's luminosity, psd-tools oracle floor 241/309; G1: pass-through clipping base with an adjustment renders isolated, psd-tools oracle floor 240/309; G1: 16-bit Posterize as Photoshop bins it, psd-tools oracle floor 241/309; G1: Gradient Map driven by the W3C luminosity, Photoshop-oracle floor 147/258; G7: Field Blur's on-canvas pins, #3373; G4: Hue Jitter amount track, #3825 partial; G4: minimum field interaction, #3825 partial; G1: CMYK Invert, Posterize and Threshold on the inks, 16-bit Lab Invert; Photoshop-oracle floor 145/258; G11: `.atn` import maps 112 events: Select and Mask, Filter Gallery Spatter, Ripple, Crystallize, Pattern Fill layers, mask targeting, Step Backward, nudges in points, Bitmap mode; G5: Free Transform H/V skew fields; G9: toolbar tool shortcut editing; refreshed against main: G2, G5, G7, G9, G10, G13, G14, G17 items that landed; G10: DPX read and write, #1049; G4: checkbox-only Brush Settings rows; G11: Load/Save Actions `.atn` landed, AUTO-219-2 partial; G5: hold-a-key spring-loaded tools landed, #2672; G1: #2465 fixed; stale missing-tool rows corrected: Color Replacement, Red Eye and Add/Delete Anchor Point are live tools, so only Art History Brush is missing; no estimate changed) · **Target:** Adobe Photoshop 2026++> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-21 · **Change:** minor (G11: compound layer properties export as separate Photoshop Set events, rename last, #8304; G11: Batch and droplets take the result at the action's Save step, so actions ending in Save As and Close work; G11: `.atn` steps that switch to another open document import, play and save back, #7103; G14: the Nikon D4 white level follows the sample depth, so 12-bit D4 NEFs no longer open 2.6 stops dark, #5978; G14: a Nikon NEF's Adobe RGB preview is read as Adobe RGB (maker-note ColorSpace 0x001E), #5987; Apply Layer Comp action mapping, #7101; G10: JPEG Options dialog landed, FILE-215-19; G10: Cineon write; G10: DPX read and write, #1049, Cineon and Amiga IFF read; Classical Object Finder improvement; learned segmentation remains open; G9: Preferences › File Handling › Save in Background takes effect, #6207, 24 of 169 preferences do nothing; G7: Content-Aware Move previews every selection the command takes, coarse then exact, TOOL-213-4 done, #6680; G4: Pattern Stamp and Background Eraser draw live, TOOL-213-7; G9: Animated Zoom pref read: holding the Zoom tool zooms continuously, #6210, prefs that do nothing 25 of 166; G2: a cancelled 24 MP Gaussian Blur job stops in at most 44 ms, P25 under its 200 ms budget in local runs, baseline not re-run, #6205; G1: generated large-file fixtures, a 4.38 GB PSB opens on Windows through io, FILE-216-2 done, #5107; G9: fill and adjustment layers copy and paste whole, #2344; G1: smart filter masks show on PSD open, Photoshop-oracle floor 188/258; G10: DPX read and write, #1049, Cineon read; G1: CMYK Hue/Saturation and Color Balance keep the black ink; G1: CMYK Posterize on the stored values, psd-tools oracle floor 242/309; G1: CMYK adjustment layers composite on the document's inks, Photoshop-oracle floor 165/258; G1: CMYK Brightness/Contrast on the inks, CMYK Threshold's luma; G1: modern Brightness/Contrast's brightness curve matches Photoshop, Photoshop-oracle floor 151/258; G1: Lab documents composite on their stored L, a, b, Photoshop-oracle floor 152/258; G1: Levels on whole levels at every step, Photoshop-oracle floor 146/258, psd-tools 238/309; G1: 32-bit Brightness/Contrast legacy, Channel Mixer, Photo Filter and Black & White tint unclipped as in Photoshop, Photoshop-oracle floor 149/258; G1: mask feathers blur with their exact variance, psd-tools oracle floor 240/309; G1: Threshold splits on Photoshop's luminosity, psd-tools oracle floor 241/309; G1: pass-through clipping base with an adjustment renders isolated, psd-tools oracle floor 240/309; G1: 16-bit Posterize as Photoshop bins it, psd-tools oracle floor 241/309; G1: Gradient Map driven by the W3C luminosity, Photoshop-oracle floor 147/258; G7: Field Blur's on-canvas pins, #3373; G4: Hue Jitter amount track, #3825 partial; G4: minimum field interaction, #3825 partial; G1: CMYK Invert, Posterize and Threshold on the inks, 16-bit Lab Invert; Photoshop-oracle floor 145/258; G11: `.atn` import maps 112 events: Select and Mask, Filter Gallery Spatter, Ripple, Crystallize, Pattern Fill layers, mask targeting, Step Backward, nudges in points, Bitmap mode; G5: Free Transform H/V skew fields; G9: toolbar tool shortcut editing; refreshed against main: G2, G5, G7, G9, G10, G13, G14, G17 items that landed; G10: DPX read and write, #1049; G4: checkbox-only Brush Settings rows; G11: Load/Save Actions `.atn` landed, AUTO-219-2 partial; G5: hold-a-key spring-loaded tools landed, #2672; G1: #2465 fixed; stale missing-tool rows corrected: Color Replacement, Red Eye and Add/Delete Anchor Point are live tools, so only Art History Brush is missing; no estimate changed) · **Target:** Adobe Photoshop 2026Every known shortfall against Photoshop 2026 (27.11.0), one entry each, ranked by user impacton the way to beta. This is the work list agents pick from: take the highest-ranked entry that@@@ -98,10 -98,10 +98,14 @@@ what an agent can't finish alone- **Estimate:** 120–200 h.### G11. Actions and scripting+ - **2026-10-21 evidence (#8304):** Save Actions expands compound layer-property edits into+ separate Photoshop Set events, with rename last so named layer references remain valid.+ Exported descriptors and native playback at RGB 8/16/32-bit have [regression coverage](../crates/engine/src/atn_cmds/layer_props_tests.rs);+ independent Photoshop replay of the fix is still pending. No readiness percentage or estimate changed.+- **Done 2026-10-17 (#7101):** `.atn` Apply Layer Comp steps with a named `compsClass`+ reference import as `layerComp.apply` and export to the same Photoshop event. Names resolve+ in the document being played; missing comps stop playback. Other reference forms stay kept+ Photoshop steps and are reported as unsupported. AUTO-219-2 remains partial.- **2026-10-13 evidence:** Batch supports [output naming templates](batch-naming.md) using`{name}`, `{serial}` and a captured UTC `{date}`, with a starting serial number. Collidingnames remain errors; custom output names cannot replace inputs. AUTO-219-5 stays partial.@@@ -316,16 -306,11 +332,19 @@@| Date | Change | Summary ||---|---|---|+ | 2026-10-21 | minor | #8304: compound layer properties export as separate Set events, rename last; independent Photoshop replay pending; percentages and estimates unchanged |+ | 2026-10-21 | minor | G11: Batch and droplets take the result at the action's recorded Save / Save As step (Photoshop's "Override Action 'Save As' Commands"); estimate unchanged |+| 2026-10-20 | minor | G8: Auto / Left-to-right / Right-to-left paragraph direction buttons in the Paragraph panel, Properties and the Type options bar; TYPE-218-2 partial (the visual RTL caret is still missing) |+| 2026-10-19 | minor | G10: JPEG Options dialog landed (FILE-215-19); no readiness percentage or estimate changed |+ | 2026-10-19 | minor | G11: `.atn` steps that select another open document by offset import as `document.activate {"offset"}`, play and save back (#7103); estimate unchanged |+| 2026-10-18 | minor | G13: Russian gained the 1,229 dynamic UI labels other catalogs already had (filter and adjustment parameters, Camera Raw, lighting, History/Layers/paths menus, metadata, System Info, status templates, dialogs); engine messages and native review remain open |+| 2026-10-17 | minor | Classical Object Finder improvement; learned segmentation remains open |+| 2026-10-15 | minor | G10: Cineon write landed (10-bit log gray/RGB, Save As `.cin`) |+| 2026-10-14 | minor | G1: 32-bit Hue/Saturation unclipped (slider on whole levels) and Colorize's saturation scaled by 1 − \|Lightness\|; photoshop rgb32 hue-saturation and hue-saturation-colorize pass |+| 2026-10-14 | minor | G1: Lab adjustment layers' results are whole samples (native Lab path); photoshop lab8 curves passes || 2026-10-15 | minor | G1 / #5972 A1: render only provably constant-RGB `GdFl` noise fills; variable noise synthesis remains open || 2026-10-18 | minor | G9: with no selection, Copy takes fill and adjustment layers whole and Paste recreates them (#2344); UI-217-23 stays partial (a single pixel layer copies its pixels only); estimate unchanged |+| 2026-10-17 | minor | G11: `.atn` Apply Layer Comp imports, plays and exports by comp name (#7101); other reference forms remain unsupported || 2026-10-15 | minor | G2: a cancelled 24 MP Gaussian Blur job stops within 44 ms max (P25, budget 200 ms; was about 400 ms; local runs, baseline not re-run), the uncancelled job on a locked-transparency layer about 40% faster; #6205 || 2026-10-15 | minor | G9: Animated Zoom preference takes effect (hold the Zoom tool to zoom continuously, #6210); prefs that do nothing 25 of 166; no estimate changed || 2026-10-16 | minor | G7: Content-Aware Move's live preview covers every selection the command takes (over 256 × 256: a coarse result solved scaled down, then the exact one); TOOL-213-4 done (#6680) |diff --cc docs/target-app-parity.mdindex 76c56c299,b7a1fbd4c..1e6cd36bb--- a/docs/target-app-parity.md+++ b/docs/target-app-parity.md@@@ -1,6 -1,6 +1,6 @@@# PhotoCraft vs Adobe Photoshop: target-app parity- > **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-19 · **Change:** minor (JPEG Options dialog landed, FILE-215-19; Content-Aware Move live preview for every selection size, TOOL-213-4 done, #6680; retouching evidence: Pattern Stamp and Background Eraser draw live, only the Mixer Brush is left of TOOL-213-7; fill and adjustment layers copy and paste whole, UI-217-23 partial, #2344; shape layers take Density and Feather, TOOL-214-12 done, #5846; on-canvas corner radius widgets, TOOL-214-12; `.atn` import maps 112 events; Free Transform H/V skew fields; stale rows corrected against `main` and the scorecard, estimates unchanged; Photoshop Actions `.atn` load and save; 2026-10-10: Tilt-Shift measurements added; earlier the same day: major, full re-measure against Photoshop 2026 27.11.0; merged `parity-estimate.md` and the roadmap's honest assessment; stale missing-tool rows corrected: Color Replacement and Red Eye are live toolbar tools, Frame landed; percentages unchanged) · **Target:** Adobe Photoshop 2026-> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-21 · **Change:** minor (compound layer properties export as separate Photoshop Set events, #8304; percentages unchanged; Content-Aware Move live preview for every selection size, TOOL-213-4 done, #6680; retouching evidence: Pattern Stamp and Background Eraser draw live, only the Mixer Brush is left of TOOL-213-7; fill and adjustment layers copy and paste whole, UI-217-23 partial, #2344; shape layers take Density and Feather, TOOL-214-12 done, #5846; on-canvas corner radius widgets, TOOL-214-12; `.atn` import maps 112 events; Free Transform H/V skew fields; stale rows corrected against `main` and the scorecard, estimates unchanged; Photoshop Actions `.atn` load and save; 2026-10-10: Tilt-Shift measurements added; earlier the same day: major, full re-measure against Photoshop 2026 27.11.0; merged `parity-estimate.md` and the roadmap's honest assessment; stale missing-tool rows corrected: Color Replacement and Red Eye are live toolbar tools, Frame landed; percentages unchanged) · **Target:** Adobe Photoshop 2026++> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-21 · **Change:** minor (compound layer properties export as separate Photoshop Set events, #8304; JPEG Options dialog landed, FILE-215-19; Content-Aware Move live preview for every selection size, TOOL-213-4 done, #6680; retouching evidence: Pattern Stamp and Background Eraser draw live, only the Mixer Brush is left of TOOL-213-7; fill and adjustment layers copy and paste whole, UI-217-23 partial, #2344; shape layers take Density and Feather, TOOL-214-12 done, #5846; on-canvas corner radius widgets, TOOL-214-12; `.atn` import maps 112 events; Free Transform H/V skew fields; stale rows corrected against `main` and the scorecard, estimates unchanged; Photoshop Actions `.atn` load and save; 2026-10-10: Tilt-Shift measurements added; earlier the same day: major, full re-measure against Photoshop 2026 27.11.0; merged `parity-estimate.md` and the roadmap's honest assessment; stale missing-tool rows corrected: Color Replacement and Red Eye are live toolbar tools, Frame landed; percentages unchanged) · **Target:** Adobe Photoshop 2026The authoritative answer to "how close is PhotoCraft to Photoshop, and how much work is left". Theone-page summary is [`ROADMAP.md`](../ROADMAP.md); the ranked work list is [`gaps.md`](gaps.md);@@@ -177,9 -177,9 +177,9 @@@ parity for the area and are already con| Vector shapes and paths | 55% | 80–140 | Pen, Direct/Path Selection, shapes, shape strokes. Freeform and Curvature Pen (#1054). Add/Delete Anchor Point and Convert Point tools exist (`Tool` enum); on-canvas corner radius widgets on live rectangles (TOOL-214-12, 2026-10-13); shape Density and Feather, the path as the fill's soft vector mask, matching Photoshop's 10 px feather ramp within 1 level (#5846, 2026-10-15); missing path-point nudge; shape parity tracking issue #2496 || Colour management and modes | 70% | 60–100 | Own ICC engine, soft proof, CMYK/Lab/Indexed/Duotone/Multichannel; no Adobe CMYK profiles, no spot plates (FILE-215-17), monitor profile only at launch || Camera Raw and computational photo (Photomerge, HDR, lens) | 45% | 120–200 | Raw for DNG/CR2/NEF/ARW/RW2/ORF/RAF(uncompressed)/PEF; no CR3; ACR dialog partial (no masking, calibration); generic lens profiles only |- | Automation, actions, batch, scripting | 45% | 120–200 | CLI/MCP/control channel ahead of Photoshop; Actions panel and recording not document-independent (AUTO-219-1/2); `.atn` load/save since 2026-10-12 (112 events mapped, the rest kept verbatim); no ExtendScript/UXP |+ | Automation, actions, batch, scripting | 45% | 120–200 | CLI/MCP/control channel ahead of Photoshop; Actions panel and recording not document-independent (AUTO-219-1/2); `.atn` load/save since 2026-10-12 (112 events mapped, the rest kept verbatim); compound layer properties export as separate Set events with rename last (#8304, 2026-10-21; independent Photoshop replay pending); no ExtendScript/UXP || File I/O | 60% | 300–500 | See [file-format-parity.md](file-format-parity.md) |-| Print, export, Save for Web | 50% | 60–100 | JPEG Options dialog missing (FILE-215-19), no Photoshop PDF, no separations, Save for Web settings not remembered |+| Print, export, Save for Web | 50% | 60–100 | no Photoshop PDF, no separations, Save for Web settings not remembered || Video / timeline, data-driven graphics | 30% | 100–200 | Menu items live; frame model persists in `.pcraft`; no PSD video-layer mapping || Workspace, panels, preferences | 40% | 150–250 | 46 of 149 prefs do nothing; no floating/OS-window panel groups; Libraries, Comments, Contextual Task Bar missing || AI / generative | 10% | 300–600 | See the dimension row |@@@ -565,7 -565,7 +565,8 @@@ See [method, raw measurements and repro| Date | Change | Summary ||---|---|---|+ | 2026-10-21 | minor | #8304: compound layer properties export as separate Set events, rename last; independent Photoshop replay pending; percentages and estimates unchanged |+| 2026-10-19 | minor | JPEG Options dialog landed (FILE-215-19); percentages unchanged || 2026-10-18 | minor | Layers: with no selection, Copy takes fill and adjustment layers whole and Paste recreates them (#2344); UI-217-23 stays partial; percentages unchanged || 2026-10-16 | minor | Content-Aware Move: live result preview for every selection the command takes (TOOL-213-4 done, #6680); percentages unchanged || 2026-10-15 | minor | Vector shapes: shape layers take Density and Feather (Properties › Masks), PSD and .pcraft round trip; TOOL-214-12 done (#5846); estimates unchanged |