PhotoCraft: An open-source, photo editor written by scratch in pure Rust
fix(atn): import a recorded Save As with its destination (#7102)
Jason White0cc7bba44cae
diff --git a/crates/engine/src/atn_cmds.rs b/crates/engine/src/atn_cmds.rsindex 343a5920a..d6f04fce8 100644--- a/crates/engine/src/atn_cmds.rs+++ b/crates/engine/src/atn_cmds.rs@@ -1549,6 +1549,60 @@ fn open_to(_: &str, p: &Value) -> Option<Descriptor> {Some(desc("null").with("null", path_value(jstr(p, "path")?)))}+/// Save As format classes (`As`) and the extensions PhotoCraft saves them under. The first+/// extension of a class is the one exported; WebP comes from Google's WebPShop plug-in.+const SAVE_FORMATS: &[(&str, &[&str])] = &[+ ("Pht3", &["psd"]),+ ("PNGF", &["png"]),+ ("JPEG", &["jpg", "jpeg"]),+ ("TIFF", &["tif", "tiff"]),+ ("BMPF", &["bmp"]),+ ("Google WebPShop", &["webp"]),+ ("Google WebP", &["webp"]),+];++fn path_extension(path: &str) -> Option<String> {+ let name = path.rsplit(['/', '\\']).next()?;+ let (stem, ext) = name.rsplit_once('.')?;+ (!stem.is_empty() && !ext.is_empty()).then(|| ext.to_ascii_lowercase())+}++/// `save`: a plain Save, or a Save As (`As` format, `In` destination, `Cpy` As a Copy).+/// Only a destination that is a file of the recorded format imports: a folder (#5430), an+/// unknown format or a mismatched extension stays a kept Photoshop step, so playback stops+/// before writing rather than saving over the played file (#7102).+fn save_from(d: &Descriptor) -> Mapped {+ let unsupported = Mapped::Unsupported { harmless: false };+ let (format, dest) = (get_obj(d, "As "), d.get("In "));+ if format.is_none() && dest.is_none() {+ return step("file.save", json!({}));+ }+ let Some(path) = dest.and_then(path_text) else { return unsupported };+ if get_bool(d, "DIDr") == Some(true) {+ return unsupported;+ }+ let Some(ext) = path_extension(&path) else { return unsupported };+ if let Some(f) = format {+ let class = trimmed(&f.class_id);+ let Some((_, exts)) = SAVE_FORMATS.iter().find(|(c, _)| *c == class) else { return unsupported };+ if !exts.contains(&ext.as_str()) {+ return unsupported;+ }+ }+ step(if get_bool(d, "Cpy ") == Some(true) { "file.saveACopy" } else { "file.saveAs" }, json!({"path": path}))+}++fn save_to(id: &str, p: &Value) -> Option<Descriptor> {+ if id == "file.save" {+ return Some(desc("null"));+ }+ let path = jstr(p, "path")?;+ let ext = path_extension(path)?;+ let (class, _) = SAVE_FORMATS.iter().find(|(_, exts)| exts.contains(&ext.as_str()))?;+ let d = desc("null").with("As ", D::Descriptor(desc(class))).with("In ", path_value(path));+ Some(if id == "file.saveACopy" { d.with("Cpy ", D::Boolean(true)) } else { d })+}+/// Photoshop's four-character condition codes that differ from the string ids.const CONDITION_CODES: &[(&str, &str)] = &[("Lyrs", "hasLayers")];@@ -3046,7 +3100,7 @@ const EVENTS: &[Event] = &[Event { code: "Plc ", name: "placeEvent", label: "Place", ids: &["file.placeEmbedded", "file.placeLinked"], from: place_from, to: place_to },Event { code: "Opn ", name: "open", label: "Open", ids: &["file.openAs"], from: open_from, to: open_to },Event { code: "", name: "conditional", label: "If", ids: &["actions.conditional"], from: conditional_from, to: conditional_to },- ev!("save", "save", "Save", "file.save", &[]),+ Event { code: "save", name: "save", label: "Save", ids: &["file.save", "file.saveAs", "file.saveACopy"], from: save_from, to: save_to },ev!("Rvrt", "revert", "Revert", "file.revert", &[]),Event { code: "Ply ", name: "play", label: "Play", ids: &["actions.play"], from: play_from, to: play_to },Event { code: "Stop", name: "stop", label: "Stop", ids: &[STOP_MESSAGE], from: stop_from, to: stop_to },diff --git a/crates/engine/src/atn_cmds/tests.rs b/crates/engine/src/atn_cmds/tests.rsindex 638fc45cb..c85fdabb9 100644--- a/crates/engine/src/atn_cmds/tests.rs+++ b/crates/engine/src/atn_cmds/tests.rs@@ -335,6 +335,8 @@ fn every_mapped_command_exports_and_imports_back() {("file.placeEmbedded", json!({"path": "/tmp/logo.png", "scale": 50})),("file.placeLinked", json!({"path": "/tmp/logo.png"})),("file.openAs", json!({"path": "/tmp/a.psd"})),+ ("file.saveAs", json!({"path": "/tmp/out/a.png"})),+ ("file.saveACopy", json!({"path": "/tmp/out/a.tif"})),("actions.conditional", json!({"if": "hasLayers", "then": "FS8-Layers", "else": "FS8-No-Layers", "set": "S"})),("actions.conditional", json!({"if": "landscape", "then": "Wide", "else": null, "set": "S"})),("actions.play", json!({"action": "Other", "set": "S"})),@@ -1401,3 +1403,89 @@ fn function_keys_keep_shift_and_command() {}assert_eq!(super::function_key_name(7, false, false), "F7");}++fn one_action(items: Vec<AtnItem>) -> AtnFile {+ AtnFile {+ name: UnicodeString::new_nul("Saves"),+ expanded: false,+ actions: vec![AtnAction { name: UnicodeString::new_nul("A"), items, ..Default::default() }],+ warnings: vec![],+ }+}++fn save_as(format: &str, path: &str) -> Descriptor {+ desc("null").with("As ", D::Descriptor(desc(format))).with("In ", path_value(path)).with("DocI", long(53.0))+}++#[test]+fn save_as_to_a_file_imports_with_its_destination() {+ let file = one_action(vec![+ item("save", "Save", Some(save_as("PNGF", "/out/result.png"))),+ item("save", "Save", Some(save_as("Google WebPShop", "C:\\out\\result.webp").with("Cpy ", D::Boolean(true)))),+ item("save", "Save", Some(save_as("JPEG", "/out/result.jpeg"))),+ item("save", "Save", None),+ item("save", "Save", Some(desc("null").with("DocI", long(53.0)))),+ ]);+ let imp = import(&atn::write(&file).unwrap()).unwrap();+ assert_eq!(+ imp.actions[0].steps,+ [+ ("file.saveAs".to_string(), json!({"path": "/out/result.png"})),+ ("file.saveACopy".to_string(), json!({"path": "C:\\out\\result.webp"})),+ ("file.saveAs".to_string(), json!({"path": "/out/result.jpeg"})),+ ("file.save".to_string(), json!({})),+ ("file.save".to_string(), json!({})),+ ]+ );+ assert!(imp.unsupported.is_empty());+}++#[test]+fn save_as_that_cannot_be_mapped_stops_playback_instead_of_saving_over_the_file() {+ // Before #7102 each of these imported as a plain File › Save, which overwrote the file the+ // action was played on.+ let file = one_action(vec![+ item("save", "Save", Some(save_as("PNGF", "/out/folder"))),+ item("save", "Save", Some(save_as("PNGF", "/out/v1.png").with("DIDr", D::Boolean(true)))),+ item("save", "Save", Some(save_as("PNGF", "/out/result.webp"))),+ item("save", "Save", Some(save_as("GIFf", "/out/result.gif"))),+ item("save", "Save", Some(desc("null").with("As ", D::Descriptor(desc("PNGF"))))),+ ]);+ let imp = import(&atn::write(&file).unwrap()).unwrap();+ let ids: Vec<&str> = imp.actions[0].steps.iter().map(|(id, _)| id.as_str()).collect();+ assert_eq!(ids, [PHOTOSHOP_STEP; 5]);+ assert!(imp.actions[0].disabled.is_empty(), "kept saves stay on, so playback stops on them");+ // The kept steps are written back byte for byte.+ let a = &imp.actions[0];+ let (bytes, skipped) = export("Saves", &[a], &[], false).unwrap();+ assert!(skipped.is_empty());+ let back = atn::parse(&bytes).unwrap();+ for (out, orig) in back.actions[0].items.iter().zip(&file.actions[0].items) {+ assert_eq!(out.descriptor, orig.descriptor);+ }+}++#[test]+fn saves_round_trip_through_photoshop_events() {+ let steps = vec![+ ("file.saveAs".to_string(), json!({"path": "/out/result.psd"})),+ ("file.saveACopy".to_string(), json!({"path": "/out/copy.webp"})),+ ("file.save".to_string(), json!({})),+ ];+ let a = Action::new("A", steps.clone());+ let (bytes, skipped) = export("Saves", &[&a], &[], false).unwrap();+ assert!(skipped.is_empty());+ let file = atn::parse(&bytes).unwrap();+ let items = &file.actions[0].items;+ assert!(items.iter().all(|i| i.event.id() == "save"));+ let first = items[0].descriptor.as_ref().unwrap();+ assert_eq!(get_obj(first, "As ").map(|f| trimmed(&f.class_id)).as_deref(), Some("Pht3"));+ assert_eq!(first.get("In ").and_then(path_text).as_deref(), Some("/out/result.psd"));+ assert_eq!(get_bool(items[1].descriptor.as_ref().unwrap(), "Cpy "), Some(true));+ assert_eq!(import(&bytes).unwrap().actions[0].steps, steps);++ // A Save As PhotoCraft can't express in Photoshop's terms is skipped, never exported as a+ // plain Save.+ let odd = Action::new("B", vec![("file.saveAs".to_string(), json!({"path": "/out/result.xcf"}))]);+ assert!(export("Saves", &[&odd], &[], false).is_err());+}diff --git a/crates/ui-egui/src/actions.rs b/crates/ui-egui/src/actions.rsindex 8b52ba88c..b8f6a6562 100644--- a/crates/ui-egui/src/actions.rs+++ b/crates/ui-egui/src/actions.rs@@ -1520,6 +1520,74 @@ mod tests {assert!(!b_changed && !a_changed);}+ /// Loads a Photoshop set holding Invert + a Save As into `dest` and plays it on a PSD.+ /// Returns the played result, whether the PSD changed on disk and the files in `out`.+ fn play_imported_save_as(dest: &str) -> (Value, bool, Vec<String>) {+ use photocraft_psd::atn::{AtnAction, AtnEvent, AtnFile, AtnItem};+ use photocraft_psd::descriptor::{Descriptor, UnicodeString, Value as D};+ let dir = std::env::temp_dir().join(format!("photocraft-atn-save-as-{}-{}", dest.len(), std::process::id()));+ let out = dir.join("out");+ std::fs::create_dir_all(&out).unwrap();+ let src = dir.join("src.psd").to_string_lossy().into_owned();+ let path = |text: &str| {+ let units: Vec<u16> = text.encode_utf16().chain(std::iter::once(0)).collect();+ let mut b = b"txtu".to_vec();+ b.extend_from_slice(&((12 + units.len() * 2) as u32).to_le_bytes());+ b.extend_from_slice(&(units.len() as u32).to_le_bytes());+ units.iter().for_each(|u| b.extend_from_slice(&u.to_le_bytes()));+ D::Path(b)+ };+ let save = Descriptor::new("null")+ .with("As ", D::Descriptor(Descriptor::new("PNGF")))+ .with("In ", path(&out.join(dest).to_string_lossy()))+ .with("DocI", D::Integer(53));+ let item = |code: &[u8; 4], label: &str, d: Option<Descriptor>| AtnItem {+ event: AtnEvent::Code(*code),+ dictionary: label.into(),+ descriptor: d,+ ..Default::default()+ };+ let set = AtnFile {+ name: UnicodeString::new_nul("Export"),+ actions: vec![AtnAction {+ name: UnicodeString::new_nul("Invert and save"),+ items: vec![item(b"Invr", "Invert", None), item(b"save", "Save", Some(save))],+ ..Default::default()+ }],+ ..Default::default()+ };+ let mut app = disk_app(vec![]);+ app.run("file.new", json!({"width": 16, "height": 16})).unwrap();+ app.save_as(Some(src.clone())).unwrap();+ let before = std::fs::read(&src).unwrap();+ app.run("actions.load", json!({"data": photocraft_engine::paint::tile::b64_encode(&photocraft_psd::atn::write(&set).unwrap())})).unwrap();+ app.open_path(&src).unwrap();+ let played = app.run("actions.play", json!({"action": 0})).unwrap();+ let mut written: Vec<String> = std::fs::read_dir(&out).unwrap().map(|e| e.unwrap().file_name().to_string_lossy().into_owned()).collect();+ written.sort();+ let r = (played, std::fs::read(&src).unwrap() != before, written);+ let _ = std::fs::remove_dir_all(&dir);+ r+ }++ #[test]+ fn imported_save_as_writes_the_recorded_file_not_the_played_one() {+ // #7102: the Save As imported as File › Save, which wrote over src.psd.+ let (played, src_changed, written) = play_imported_save_as("result.png");+ assert!(played.get("failed").is_none(), "{played}");+ assert!(!src_changed, "the Save As wrote over the file the action was played on");+ assert_eq!(written, ["result.png"]);+ }++ #[test]+ fn imported_save_as_into_a_folder_stops_before_writing() {+ // A folder destination isn't mapped yet (#5430): playback stops on it, nothing is saved.+ let (played, src_changed, written) = play_imported_save_as("folder");+ assert!(played.get("failed").is_some(), "{played}");+ assert!(!src_changed);+ assert!(written.is_empty(), "{written:?}");+ }+#[test]fn set_folders_group_actions_and_collapse() {use egui_kittest::{Harness, kittest::Queryable};diff --git a/docs/file-format-parity.md b/docs/file-format-parity.mdindex 0a80894db..af2eda436 100644--- a/docs/file-format-parity.md+++ b/docs/file-format-parity.md@@ -1,6 +1,6 @@# File-format parity-> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-15 · **Change:** minor (DDS textures save: uncompressed or BC1–BC3, optional mip chain, DDS Options in Save As (#1327); PSD smart filters: 41 filters (27 more: Blur, Surface Blur, Smart Sharpen, Diffuse, Wind, Offset, Mezzotint and others) plus Hue/Saturation and Perspective Warp mapped both ways, #6296, #6298, #6300, #6302, #6304, #6314, #6316, #6267, #6268, FILE-215-2; large-file fixtures: a 20 MP layered PSD, a 150-layer layout, a 2 GB PSD and a 4.4 GB PSB generated at test time and round-tripped, FILE-216-2 done, #5107; earlier: PNG `sTER` stereo pairing kept on save, #6063; PDF write one flattened page via Save As / Save a Copy / CLI, #3401; CMYK Invert, Posterize and Threshold on the inks; smart filter masks on PSD open and save; Photoshop-oracle floor 188/258; lossy DNG, compression 34892, decodes with its levels and LinearizationTable applied to the stored 8-bit samples, FILE-215-11; CMYK Hue/Saturation and Color Balance keep the black ink; CMYK Posterize on the stored values, psd-tools oracle floor 242/309; CMYK adjustment layers composite on the document's inks; Photoshop-oracle floor 165/258; CMYK Brightness/Contrast on the inks, CMYK Threshold's luma; modern Brightness/Contrast's brightness curve; Photoshop-oracle floor 151/258; Lab documents composite on their stored L, a, b; Photoshop-oracle floor 152/258; Levels on whole levels at every step with Photoshop's shadow toe; Photoshop-oracle floor 146/258, psd-tools 238/309; 32-bit adjustments unclipped; Photoshop-oracle floor 149/258; mask feathers blur with their exact variance; Threshold splits on Photoshop's luminosity; a pass-through clipping base with an adjustment renders isolated; psd-tools oracle floor 240/309; 16-bit Posterize as Photoshop bins it; psd-tools oracle floor 241/309; Gradient Map luminosity; Photoshop-oracle floor 147/258; PSD: `Mt16`/`Mt32` merged transparency read; palette PNGs open in Indexed Color mode, #4804; earlier: CMYK Invert, Posterize and Threshold on the inks; 16-bit Lab Invert; Photoshop-oracle floor 145/258; `.atn` import maps 112 events; DDS textures open, #1327; DPX read and write, #1049; #2465 fixed: CS2 placed layers with only a `PlLd` block open their contents; Photoshop Actions `.atn` read and write; `.shc` contour files read and write; earlier the same day: indexed BMP palette mode; Save keeps a JPEG's quality and a WebP's encoding) · **Target:** Adobe Photoshop 2026+> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-17 · **Change:** minor (`.atn`: a recorded Save As imports with its format and file (`file.saveAs`, `file.saveACopy` for As a Copy) instead of as a plain Save that wrote over the played file, #7102; folder destinations stop playback until #5430; DDS textures save: uncompressed or BC1–BC3, optional mip chain, DDS Options in Save As (#1327); PSD smart filters: 41 filters (27 more: Blur, Surface Blur, Smart Sharpen, Diffuse, Wind, Offset, Mezzotint and others) plus Hue/Saturation and Perspective Warp mapped both ways, #6296, #6298, #6300, #6302, #6304, #6314, #6316, #6267, #6268, FILE-215-2; large-file fixtures: a 20 MP layered PSD, a 150-layer layout, a 2 GB PSD and a 4.4 GB PSB generated at test time and round-tripped, FILE-216-2 done, #5107; earlier: PNG `sTER` stereo pairing kept on save, #6063; PDF write one flattened page via Save As / Save a Copy / CLI, #3401; CMYK Invert, Posterize and Threshold on the inks; smart filter masks on PSD open and save; Photoshop-oracle floor 188/258; lossy DNG, compression 34892, decodes with its levels and LinearizationTable applied to the stored 8-bit samples, FILE-215-11; CMYK Hue/Saturation and Color Balance keep the black ink; CMYK Posterize on the stored values, psd-tools oracle floor 242/309; CMYK adjustment layers composite on the document's inks; Photoshop-oracle floor 165/258; CMYK Brightness/Contrast on the inks, CMYK Threshold's luma; modern Brightness/Contrast's brightness curve; Photoshop-oracle floor 151/258; Lab documents composite on their stored L, a, b; Photoshop-oracle floor 152/258; Levels on whole levels at every step with Photoshop's shadow toe; Photoshop-oracle floor 146/258, psd-tools 238/309; 32-bit adjustments unclipped; Photoshop-oracle floor 149/258; mask feathers blur with their exact variance; Threshold splits on Photoshop's luminosity; a pass-through clipping base with an adjustment renders isolated; psd-tools oracle floor 240/309; 16-bit Posterize as Photoshop bins it; psd-tools oracle floor 241/309; Gradient Map luminosity; Photoshop-oracle floor 147/258; PSD: `Mt16`/`Mt32` merged transparency read; palette PNGs open in Indexed Color mode, #4804; earlier: CMYK Invert, Posterize and Threshold on the inks; 16-bit Lab Invert; Photoshop-oracle floor 145/258; `.atn` import maps 112 events; DDS textures open, #1327; DPX read and write, #1049; #2465 fixed: CS2 placed layers with only a `PlLd` block open their contents; Photoshop Actions `.atn` read and write; `.shc` contour files read and write; earlier the same day: indexed BMP palette mode; Save keeps a JPEG's quality and a WebP's encoding) · **Target:** Adobe Photoshop 2026Every format Photoshop 2026 (27.11.0) reads or writes, with PhotoCraft's support, fidelity andtests. Photoshop's list comes from its `Info.plist` `CFBundleDocumentTypes`, the PiPL read/write@@ -131,7 +131,7 @@ remaining gaps in #1606 stay tracked with per-sample corpus ceilings.| LUTs `.cube` / `.3dl` / `.look` | R/W (Export Color Lookup) | R/W / R / R | `cms/src/lutfile.rs` || Keyboard shortcuts `.kys` | R/W | R/W | `engine/src/kys.rs` (`write`: Edit › Keyboard Shortcuts › Export…, rows carry our id; Photoshop reading our files is unverified) || ICC profiles | R | R | Own CMS |-| Actions `.atn` | R/W | R/W | `psd/src/atn.rs` (version 16 sets, exact round trip), `engine/src/atn_cmds.rs` (112 Photoshop events ↔ commands; other steps kept verbatim). Panel menu, CLI `batch --actions set.atn`, `actions.load`/`actions.save`. Photoshop 5-era version 12 files unsupported (AUTO-219-2) |+| Actions `.atn` | R/W | R/W | `psd/src/atn.rs` (version 16 sets, exact round trip), `engine/src/atn_cmds.rs` (112 Photoshop events ↔ commands; other steps kept verbatim; Save As maps to `file.saveAs`/`file.saveACopy` when its destination is a file, #7102). Panel menu, CLI `batch --actions set.atn`, `actions.load`/`actions.save`. Photoshop 5-era version 12 files unsupported (AUTO-219-2) || Styles `.asl` | R/W | no | #1693 || Contours `.shc` | R/W | R/W | `psd/src/shc.rs`; Contour Editor Load…/Save… (FILE-215-15). No user contour library; not yet checked against a Photoshop-written file || Custom shapes `.csh`, tool presets `.tpl` | R/W | no | |@@ -142,6 +142,7 @@ remaining gaps in #1606 stay tracked with per-sample corpus ceilings.| Date | Change | Summary ||---|---|---|+| 2026-10-17 | minor | `.atn`: a recorded Save As imports with its format and file (`file.saveAs`, `file.saveACopy` for As a Copy) instead of as a plain Save that wrote over the played file, #7102; folder destinations stop playback until #5430 || 2026-10-15 | minor | DDS textures save (#1327): uncompressed or BC1/BC2/BC3 (DXT1/3/5) from a clean-room block encoder, optional box-filtered mip chain, legacy header; DDS Options in Save As and Save a Copy, `ddsCompression`/`ddsMipmaps` for scripts, the CLI and MCP || 2026-10-16 | minor | PSD smart filters: Perspective Warp (`perspectiveWarpTransform`: `vertices`, `warpedVertices`, `quads` of vertex indices, document pixels) opens as `layer.smartObjects.perspectiveWarp`, one plane per quad, and re-renders warped; save writes the original item with only the geometry rewritten, or a new one in Photoshop's layout; inconsistent descriptors stay verbatim (FILE-215-2, #6268) || 2026-10-16 | minor | PSD smart filters: Hue/Saturation (`HStr`: `Clrz`, `Adjs` = master `Hst2` plus one per edited range with `LclR` and its four range sliders, all longs, measured on a Photoshop-saved file) opens as `image.adjustments.hueSaturation`, re-renders with the smart object and saves in Photoshop's layout; layouts outside it stay verbatim (FILE-215-2, #6267) |diff --git a/docs/gaps.md b/docs/gaps.mdindex 3c56d6d35..13196b132 100644--- a/docs/gaps.md+++ b/docs/gaps.md@@ -1,6 +1,6 @@# Where PhotoCraft falls short of Photoshop-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-18 · **Change:** minor (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, #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-19 · **Change:** minor (G11: a recorded Save As imports with its format and file (`file.saveAs`, `file.saveACopy` for As a Copy) instead of as a plain Save that wrote over the played file, #7102; folder destinations stop playback until #5430; 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, #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@@ -106,6 +106,11 @@ what an agent can't finish alone.mapped events (paths, scripts, Generative Fill, Filter Gallery effects other than Spatter,Duplicate Layers into a new document, Bitmap halftone screens…) load as kept Photoshop stepsthat fail at playback by name.+- **Done 2026-10-17:** a recorded Save As imports with its format and destination file+ (`file.saveAs`, or `file.saveACopy` for As a Copy) instead of as a plain Save, which wrote+ over the file the action was played on (#7102). A folder destination, an unmapped format or a+ mismatched extension stays a kept Photoshop step, so playback stops before writing; folder+ saves wait for #5430.- **Done 2026-10-12:** Load/Save Actions `.atn` in the panel menu, `batch --actions set.atn`and `actions.load`/`actions.save`; 112 Photoshop events map to commands both ways (Transform,Apply Image, Save for Web, smart-object edits, Gradient Map, Quick Mask, polygon selections,@@ -287,6 +292,7 @@ what an agent can't finish alone.| Date | Change | Summary ||---|---|---|+| 2026-10-19 | minor | G11: a recorded Save As imports with its format and file (`file.saveAs`, `file.saveACopy` for As a Copy) instead of as a plain Save that wrote over the played file, #7102; folder destinations stop playback until #5430 || 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-15 | minor | G2: a cancelled 24 MP Gaussian Blur job stops within 44 ms max (P25, budget 200 ms; was about 400 ms), the uncancelled job about 40% faster; #6205 |