diff --git a/crates/ui-egui/src/dialogs/lens_batch_layout_tests.rs b/crates/ui-egui/src/dialogs/lens_batch_layout_tests.rs index 0e4cb7516e1..859cd4d3210 100644 --- a/crates/ui-egui/src/dialogs/lens_batch_layout_tests.rs +++ b/crates/ui-egui/src/dialogs/lens_batch_layout_tests.rs @@ -104,13 +104,13 @@ fn edge_lists_the_reference_entries_in_order() { assert_eq!(labels("profile"), ["Auto", "Generic", "None"]); } -/// OK sends the params the form sent before the layout: the same keys and values. +/// OK sends the params the form sent before the layout: the same keys. #[test] fn ok_runs_the_command_with_the_same_params() { let (mut h, id) = opened(); assert_eq!( params(&h, id), - json!({"input": ".", "output": "./corrected", "format": "same", "profile": "auto", "correctDistortion": true, "correctVignette": true, "correctCA": true, "autoScale": true, "edge": "transparency"}) + json!({"input": ".", "output": "./corrected", "format": "psd", "profile": "auto", "correctDistortion": true, "correctVignette": false, "correctCA": false, "autoScale": true, "edge": "transparency"}) ); let sources = source_folder(); let results = tempfile::tempdir().unwrap(); diff --git a/crates/ui-egui/src/dialogs/lens_batch_ui.rs b/crates/ui-egui/src/dialogs/lens_batch_ui.rs index 7f8e33f0ae1..cd7dfc80b32 100644 --- a/crates/ui-egui/src/dialogs/lens_batch_ui.rs +++ b/crates/ui-egui/src/dialogs/lens_batch_ui.rs @@ -10,7 +10,7 @@ use craft::ui::runtime::requests::PathKind; pub(crate) const COMMAND: &str = photocraft_engine::lens_cmds::LENS_BATCH; -const FORMATS: [(&str, &str); 5] = [("same", "Same as Source"), ("png", "PNG"), ("jpg", "JPEG"), ("psd", "PSD"), ("tiff", "TIFF")]; +const FORMATS: [(&str, &str); 4] = [("jpg", "JPG"), ("png", "PNG"), ("psd", "PSD"), ("tiff", "TIFF")]; const PROFILES: [(&str, &str); 3] = [("auto", "Auto"), ("generic", "Generic"), ("none", "None")]; const EDGES: [(&str, &str); 4] = [("edgeExtension", "Edge Extension"), ("transparency", "Transparency"), ("black", "Black Color"), ("white", "White Color")]; @@ -24,21 +24,22 @@ fn folder(key: &str, label: &'static str, default: String) -> Param { Param::new(key, label, ParamKind::text(default)).browse(PathKind::Folder) } -/// The rows of the dialog, reading the images from `dir`. Correction Options lists the corrections, then scaling and +/// The rows of the dialog, reading the images from `dir`. They open with the reference defaults (#13980): Chromatic +/// Aberration and Vignette off, File Type PSD; the command's own defaults for scripts and the CLI are unchanged. Correction Options lists the corrections, then scaling and /// the edge fill, as the reference's left and right columns read. pub(crate) fn rows(dir: String) -> Vec { vec![ Param::section(tl!("Source Files")), folder("input", tl!("Input"), dir.clone()), Param::section(tl!("Destination Folder")), - Param::new("format", tl!("File Type"), ParamKind::choice(opts(&FORMATS), Some("same".into()))), + Param::new("format", tl!("File Type"), ParamKind::choice(opts(&FORMATS), Some("psd".into()))), folder("output", tl!("Output"), format!("{dir}/corrected")), Param::section(tl!("Lens Correction Profile")), Param::new("profile", tl!("Profile"), ParamKind::choice(opts(&PROFILES), Some("auto".into()))), Param::section(tl!("Correction Options")), Param::new("correctDistortion", tl!("Geometric Distortion"), ParamKind::bool(true)), - Param::new("correctCA", tl!("Chromatic Aberration"), ParamKind::bool(true)), - Param::new("correctVignette", tl!("Vignette"), ParamKind::bool(true)), + Param::new("correctCA", tl!("Chromatic Aberration"), ParamKind::bool(false)), + Param::new("correctVignette", tl!("Vignette"), ParamKind::bool(false)), Param::new("autoScale", tl!("Auto Scale Image"), ParamKind::bool(true)), Param::new("edge", tl!("Edge"), ParamKind::choice(opts(&EDGES), Some("transparency".into()))), ]