PhotoCraft: An open-source, photo editor written by scratch in pure Rust
Integration: track t02
aiongg4d1b922ddf3f
diff --cc contributors/people.tomlindex b16a778de,2efb55e02..c54a3c4bb--- a/contributors/people.toml+++ b/contributors/people.toml@@@ -195,5 -192,6 +195,9 @@@ 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 = truediff --cc crates/engine/src/file_cmds/tests.rsindex 53b0f1024,4878a4023..2a52155ca--- a/crates/engine/src/file_cmds/tests.rs+++ b/crates/engine/src/file_cmds/tests.rs@@@ -1558,41 -1526,19 +1606,58 @@@ fn folder_listing_recognises_gzipped_xcassert!(!super::openable_name("notes.txt"));}+/// The Compression tag (259) of a TIFF's first directory.+fn tiff_compression_tag(b: &[u8]) -> Option<u16> {+ let le = b.get(..2)? == b"II";+ let u16_at = |i: usize| b.get(i..i + 2).map(|s| if le { u16::from_le_bytes([s[0], s[1]]) } else { u16::from_be_bytes([s[0], s[1]]) });+ let u32_at =+ |i: usize| b.get(i..i + 4).map(|s| if le { u32::from_le_bytes([s[0], s[1], s[2], s[3]]) } else { u32::from_be_bytes([s[0], s[1], s[2], s[3]]) });+ let ifd = u32_at(4)? as usize;+ (0..usize::from(u16_at(ifd)?)).map(|k| ifd + 2 + 12 * k).find(|e| u16_at(*e) == Some(259)).and_then(|e| u16_at(e + 8))+}++/// #5301: `tiffCompression` picks a TIFF's compression (TIFF Options: None, LZW, ZIP); unset,+/// none. Anything else is refused before anything is written.+#[test]+fn save_a_copy_writes_the_tiff_compression_asked_for() {+ let dir = tmp("tiff-compression");+ for (params, tag) in+ [(json!({}), 1), (json!({"tiffCompression": "none"}), 1), (json!({"tiffCompression": "lzw"}), 5), (json!({"tiffCompression": "zip"}), 8)]+ {+ let mut s = session(12, 6, 8);+ let out = join(&dir, "a.tif");+ let mut p = params.clone();+ p["path"] = json!(out);+ s.execute("file.saveACopy", p).unwrap();+ let bytes = std::fs::read(&out).unwrap();+ assert_eq!(tiff_compression_tag(&bytes), Some(tag), "{params}");+ assert_eq!(photocraft_io::import("a.tif", &bytes).unwrap().document.size, photocraft_geom::Size::new(12, 6));+ }+ let mut s = session(8, 8, 8);+ let state = |s: &Session| s.active().map(|st| (st.revision, st.path.clone(), st.is_dirty()));+ let before = state(&s);+ for bad in [json!("jpeg"), json!("LZW"), json!(5), json!(true)] {+ let out = join(&dir, "bad.tif");+ let r = s.execute("file.saveACopy", json!({"path": out, "tiffCompression": bad}));+ assert!(matches!(r, Err(EngineError::BadParams { .. })), "{bad}: {r:?}");+ assert!(!std::path::Path::new(&out).exists(), "{bad}: nothing written");+ assert_eq!(state(&s), before, "{bad}: the document is as it was");+ }+}+++ #[test]+ fn sanitize_keeps_windows_device_names_off_the_disk() {+ assert_eq!(sanitize("nul"), "nul_");+ assert_eq!(sanitize("CON"), "CON_");+ assert_eq!(sanitize("com1.v2"), "com1_.v2");+ assert_eq!(sanitize("lpt9 .final"), "lpt9 _.final");+ assert_eq!(sanitize("COM¹"), "COM¹_");+ assert_eq!(sanitize("LPT².txt"), "LPT²_.txt");+ for name in ["nul", "CON", "com1.v2", "lpt9 .final", "aux", "prn", "conin$", "clock$", "COM¹", "lpt³.x"] {+ assert!(!is_windows_device_name(&sanitize(name)), "{name} -> {}", sanitize(name));+ }+ // Names that only start like a device are files like any other.+ for name in ["console", "normal", "com10", "lpt0", "nullify", "con_", "com⁴", "com¹¹"] {+ assert_eq!(sanitize(name), name);+ }+ }diff --cc crates/engine/src/print_cmds/tests.rsindex 3dab10b65,c8e8dde44..de9e14579--- a/crates/engine/src/print_cmds/tests.rs+++ b/crates/engine/src/print_cmds/tests.rs@@@ -870,120 -870,15 +870,133 @@@ fn the_windows_pdf_check_is_a_no_op_elsassert!(require_windows_pdf().is_ok());}+/// A 500 × 1000 pt document (72 ppi) on A3 (841.89 × 1190.55 pt): its height sets the fit.+fn a3_layout(extra: Value) -> Result<PrintLayout> {+ let mut s = Session::new();+ s.execute("file.new", json!({"width": 500, "height": 1000, "resolution": 72})).unwrap();+ let mut p = json!({"paper": "a3", "scaleToFit": true});+ if let (Some(p), Some(extra)) = (p.as_object_mut(), extra.as_object()) {+ p.extend(extra.clone());+ }+ layout(&s.active().unwrap().doc, &p, "file.print")+}++#[test]+fn scale_to_fit_fills_a_borderless_printable_area() {+ let (pw, ph) = (841.89, 1190.55);+ // Without a printable area, the fixed 18 pt margin stays (CUPS, PDF).+ let l = a3_layout(json!({})).unwrap();+ assert!((l.scale - (ph - 36.0) / 1000.0).abs() < 1e-9, "{l:?}");+ // Borderless: the driver reports the whole sheet (#7782: a Canon PRO-1000 reports its A3 as+ // 842.29 × 1191.14 pt), and the image reaches the paper's edges.+ let l = a3_layout(json!({"printable": [0.0, 0.0, 842.29, 1191.14]})).unwrap();+ assert!((l.scale - ph / 1000.0).abs() < 1e-9, "{l:?}");+ let (x, y, w, h) = l.rect;+ assert!(y.abs() < 1e-9 && (h - ph).abs() < 1e-9 && (x - (pw - w) / 2.0).abs() < 1e-9, "{l:?}");+}++#[test]+fn scale_to_fit_stays_inside_an_uneven_printable_area() {+ let (pw, ph) = (841.89, 1190.55);+ // 17 pt left and right, 14 pt at the top, 48 pt at the bottom (from the top-left, as+ // `file.print.page` reports it). The layout's rect has its origin at the bottom-left.+ let l = a3_layout(json!({"printable": [17.0, 14.0, pw - 34.0, ph - 62.0]})).unwrap();+ assert!((l.scale - (ph - 62.0) / 1000.0).abs() < 1e-9, "{l:?}");+ let (x, y, w, h) = l.rect;+ assert!((y - 48.0).abs() < 1e-9 && (y + h - (ph - 14.0)).abs() < 1e-9, "fills the printable height: {l:?}");+ assert!((x - (pw - w) / 2.0).abs() < 1e-9, "centred between equal side margins: {l:?}");+ // Crop and registration marks keep their 36 pt inset, inside the printable area.+ let l = a3_layout(json!({"printable": [17.0, 14.0, pw - 34.0, ph - 62.0], "cornerCropMarks": true})).unwrap();+ assert!((l.scale - (ph - 62.0 - 72.0) / 1000.0).abs() < 1e-9, "{l:?}");+ assert!((l.rect.1 - 84.0).abs() < 1e-9, "{l:?}");+ // Scale to fit off: the printable area changes nothing.+ let l = a3_layout(json!({"printable": [17.0, 14.0, pw - 34.0, ph - 62.0], "scaleToFit": false})).unwrap();+ assert_eq!(l, a3_layout(json!({"scaleToFit": false})).unwrap());+}++#[test]+fn a_bad_printable_area_is_refused() {+ let portrait = json!([0.0, 0.0, 842.29, 1191.14]);+ for bad in [+ json!([0, 0, 100]),+ json!([0, 0, 0, 100]),+ json!([0, 0, 100, -5]),+ json!("whole"),+ json!([2000, 0, 100, 100]),+ json!([0, "oops", 0, 842.29, 1191.14]),+ json!([0, 0, 842.29, null]),+ ] {+ assert!(a3_layout(json!({ "printable": bad })).is_err(), "{bad}");+ }+ // A portrait sheet's area on a landscape layout is another paper, not a rounding error.+ assert!(a3_layout(json!({"printable": portrait, "orientation": "landscape"})).is_err());+}++#[test]+fn emulsion_down_fits_the_mirrored_printable_area() {+ let (pw, ph) = (841.89, 1190.55);+ // 10 pt on the left, 40 pt on the right of the sheet as the driver sees it. The page is+ // mirrored as it prints, so the image box (before mirroring) must fit the mirror image.+ // A wide image, so the printable width sets the fit.+ let mut s = Session::new();+ s.execute("file.new", json!({"width": 1000, "height": 500, "resolution": 72})).unwrap();+ let p = json!({"paper": "a3", "scaleToFit": true, "printable": [10.0, 0.0, pw - 50.0, ph], "emulsionDown": true});+ let l = layout(&s.active().unwrap().doc, &p, "file.print").unwrap();+ let (x, _, w, _) = l.rect;+ let printed = (pw - x - w, pw - x);+ assert!(printed.0 >= 10.0 - 1e-9 && printed.1 <= pw - 40.0 + 1e-9, "printed at {printed:?}: {l:?}");+}++/// A native print fits only the driver's area: one the caller passed is dropped when the+/// driver can't give one for this paper (no such paper here, or no driver at all).+#[test]+fn a_native_print_drops_a_printable_area_the_driver_did_not_give() {+ let p = with_driver_printable(&json!({"paper": [500.0, 500.0], "printable": [0.0, 0.0, 100.0, 100.0], "scaleToFit": true}));+ assert!(p.get("printable").is_none(), "{p}");+ assert_eq!(p["paper"], json!([500.0, 500.0]));+}++#[test]+fn a_print_uses_the_printable_area_but_does_not_remember_it() {+ let mut s = Session::new();+ s.execute("file.new", json!({"width": 500, "height": 1000, "resolution": 72})).unwrap();+ let r = s.execute("file.print", json!({"paper": "a3", "scaleToFit": true, "printable": [0.0, 0.0, 842.29, 1191.14], "dryRun": true})).unwrap();+ assert!((r["scale"].as_f64().unwrap() - 119.055).abs() < 1e-6, "{r}");+ // The next print (Print One Copy, or the dialog on another printer or to PDF) reads its own.+ let last = last_print(&s).unwrap();+ assert!(last.get("printable").is_none() && last["scaleToFit"] == true, "{last}");+}++#[test]+fn a_rejected_printable_area_fails_the_print_and_changes_nothing() {+ let mut s = Session::new();+ s.execute("file.new", json!({"width": 500, "height": 1000, "resolution": 72})).unwrap();+ s.execute("file.print", json!({"paper": "a3", "scale": 50, "dryRun": true})).unwrap();+ let before = (last_print(&s), s.prefs.get().dialogs.get(REMEMBERED).cloned(), s.active().unwrap().doc.clone());+ for printable in [json!([2000, 0, 100, 100]), json!([0, "oops", 0, 842.29, 1191.14])] {+ let r = s.execute("file.print", json!({"paper": "a3", "scaleToFit": true, "printable": printable, "dryRun": true}));+ assert!(r.is_err(), "{printable}: {r:?}");+ }+ assert!(before == (last_print(&s), s.prefs.get().dialogs.get(REMEMBERED).cloned(), s.active().unwrap().doc.clone()));+ // A print at a manual scale doesn't read the area, so a stale one doesn't fail it.+ let r = s.execute("file.print", json!({"paper": "a3", "scale": 50, "printable": [0.0, 0.0, 842.29, 1191.14], "orientation": "landscape", "dryRun": true}));+ assert!(r.is_ok(), "{r:?}");+ // Marks need room only to fit: a small manual scale in a 60 pt-wide area prints.+ let r = s.execute("file.print", json!({"paper": "a3", "scale": 5, "printable": [0, 0, 60, 1191.14], "cornerCropMarks": true, "dryRun": true}));+ assert!(r.is_ok(), "{r:?}");+ let r = s.execute("file.print", json!({"paper": "a3", "scaleToFit": true, "printable": [0, 0, 60, 1191.14], "cornerCropMarks": true, "dryRun": true}));+ assert!(r.is_err(), "{r:?}");+}+++ #[test]+ fn package_of_a_document_named_after_a_windows_device_is_written() {+ // On Windows a folder named `nul` is the NUL device: the save failed with "path not found".+ let dir = tmp("package-device-name");+ let mut s = Session::new();+ s.execute("file.new", json!({"width": 8, "height": 8, "name": "nul.psd"})).unwrap();+ let r = s.execute("file.package", json!({"dir": format!("{dir}/pkg")})).unwrap();+ assert_eq!(r["folder"].as_str().unwrap(), format!("{dir}/pkg/nul_"));+ let document = r["document"].as_str().unwrap();+ assert!(document.ends_with("pkg/nul_/nul_.pcraft"), "{document}");+ assert!(std::path::Path::new(document).is_file());+ }diff --cc crates/ui-egui/src/i18n/cs.tsvindex f3b756ed5,32ea449b3..fe282c85d--- a/crates/ui-egui/src/i18n/cs.tsv+++ b/crates/ui-egui/src/i18n/cs.tsv@@@ -3938,11 -3911,5 +3939,13 @@@ navigator Zoom Zvětšen�# Graphics Adapter preference (#1885)GPU adapter Adaptér GPU+# Actions: a step dialog holds a suspended recording (#7365)+ Confirm or cancel the open action step dialog first Nejprve potvrďte nebo zrušte otevřený dialog kroku akce+ Pro Medium Gray Pro (středně šedý)+ Solarized Solarized+ Breeze Breeze+ Pro Light Gray Pro (světle šedý)+ Pro Light Pro (světlý)+ Resize Windows to Fit Přizpůsobit velikost oken++ EXR EXRdiff --cc crates/ui-egui/src/i18n/de.tsvindex 36804daec,5c3617191..f24e5f6fb--- a/crates/ui-egui/src/i18n/de.tsv+++ b/crates/ui-egui/src/i18n/de.tsv@@@ -3303,17 -3284,9 +3303,18 @@@ curves Smooth GlätteThis document's layers: {needed} of {budget} for layers Ebenen dieses Dokuments: {needed} von {budget} für EbenenThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Die Ebenen dieses Dokuments brauchen {needed}, dürfen aber {budget} belegen: Das ganze Dokument wird auf der CPU neu gezeichnetGPU Memory (MB, 0 = Automatic) GPU-Speicher (MB, 0 = Automatisch)+ {path}: the path is not valid Unicode; save under another name. {path}: Der Dateipfad enthält ungültige Zeichen. Speichere unter einem anderen Namen.{name} was changed by another app after it was opened or saved here. {name} wurde von einer anderen App geändert, nachdem es hier geöffnet oder gespeichert wurde.Replace it with this document, or cancel and use File › Save As to keep both. Ersetze die Datei durch dieses Dokument oder brich ab und nutze Datei › Speichern unter, um beide zu behalten.+ Demosaic Demosaicing+ How the camera's colour filter mosaic is filled in. It is applied when the file opens; the preview shows the method it was opened with. Wie das Farbfiltermosaik der Kamera aufgefüllt wird. Es wird beim Öffnen der Datei angewendet; die Vorschau zeigt die Methode, mit der sie geöffnet wurde.+ AHD (adaptive homogeneity) AHD (adaptive Homogenität)+ Malvar–He–Cutler Malvar–He–Cutler+ Hirakawa–Parks: the cleanest edges and the least colour fringing, the slowest. Hirakawa–Parks: die saubersten Kanten und die wenigsten Farbsäume, am langsamsten.+ Gradient-corrected interpolation: sharp and fast, with some colour fringing on fine detail. Gradientenkorrigierte Interpolation: scharf und schnell, mit etwas Farbsäumen an feinen Details.+ The fastest and the softest, with colour fringing on fine detail. Am schnellsten und weichsten, mit Farbsäumen an feinen Details.+ “{name}” already exists. Replace it? „{name}“ ist bereits vorhanden. Ersetzen?+ The name in the save dialog was “{name}”. Der Name im Speichern-Dialog war „{name}“.Memory Usage SpeichernutzungPer-document RAM limit (MB) RAM-Limit pro Dokument (MB)Installed RAM: {ram} MB; this limit: {percent}% Installierter RAM: {ram} MB; dieses Limit: {percent}%@@@ -3336,11 -3309,5 +3337,13 @@@# Graphics Adapter preference (#1885)GPU adapter GPU-Adapter+# Actions: a step dialog holds a suspended recording (#7365)+ Confirm or cancel the open action step dialog first Bestätige oder brich zuerst den offenen Dialog des Aktionsschritts ab+ Pro Medium Gray Pro (Mittelgrau)+ Solarized Solarized+ Breeze Breeze+ Pro Light Gray Pro (Hellgrau)+ Pro Light Pro (Hell)+ Resize Windows to Fit Fenstergröße anpassen++ EXR EXRdiff --cc crates/ui-egui/src/i18n/el.tsvindex e081c17e9,cd6d6325f..0451778f6--- a/crates/ui-egui/src/i18n/el.tsv+++ b/crates/ui-egui/src/i18n/el.tsv@@@ -4027,11 -4000,5 +4028,13 @@@ curves Smooth Εξομάλυνσ�# Graphics Adapter preference (#1885)GPU adapter Προσαρμογέας GPU+# Actions: a step dialog holds a suspended recording (#7365)+ Confirm or cancel the open action step dialog first Επιβεβαιώστε ή ακυρώστε πρώτα το ανοιχτό παράθυρο βήματος της ενέργειας+ Pro Medium Gray Pro μεσαίου γκρι+ Solarized Solarized+ Breeze Breeze+ Pro Light Gray Pro ανοιχτού γκρι+ Pro Light Φωτεινό Pro+ Resize Windows to Fit Προσαρμογή μεγέθους παραθύρων++ EXR EXRdiff --cc crates/ui-egui/src/i18n/es.tsvindex 0424d0af5,87ba727d8..c9a138a31--- a/crates/ui-egui/src/i18n/es.tsv+++ b/crates/ui-egui/src/i18n/es.tsv@@@ -4289,11 -4262,5 +4290,13 @@@ navigator Zoom Zoo# Graphics Adapter preference (#1885)GPU adapter Adaptador de GPU+# Actions: a step dialog holds a suspended recording (#7365)+ Confirm or cancel the open action step dialog first Confirme o cancele primero el cuadro de diálogo abierto del paso de la acción+ Pro Medium Gray Pro (gris medio)+ Solarized Solarized+ Breeze Breeze+ Pro Light Gray Pro (gris claro)+ Pro Light Pro (claro)+ Resize Windows to Fit Redimensionar ventanas para ajustar++ EXR EXRdiff --cc crates/ui-egui/src/i18n/fr.tsvindex d58b16f56,4b42b5912..d5df62d14--- a/crates/ui-egui/src/i18n/fr.tsv+++ b/crates/ui-egui/src/i18n/fr.tsv@@@ -3338,11 -3311,5 +3339,13 @@@ curves Smooth Lisse# Graphics Adapter preference (#1885)GPU adapter Adaptateur GPU+# Actions: a step dialog holds a suspended recording (#7365)+ Confirm or cancel the open action step dialog first Validez ou annulez d’abord la boîte de dialogue ouverte de l’étape de l’action+ Pro Medium Gray Pro gris moyen+ Solarized Solarized+ Breeze Breeze+ Pro Light Gray Pro gris clair+ Pro Light Pro clair+ Resize Windows to Fit Redimensionner les fenêtres++ EXR EXRdiff --cc crates/ui-egui/src/i18n/hu.tsvindex 754e4f21b,944739f83..286ce41f0--- a/crates/ui-egui/src/i18n/hu.tsv+++ b/crates/ui-egui/src/i18n/hu.tsv@@@ -4244,11 -4217,5 +4245,13 @@@ cameraRaw Yellow Sárg# Graphics Adapter preference (#1885)GPU adapter GPU-adapter+# Actions: a step dialog holds a suspended recording (#7365)+ Confirm or cancel the open action step dialog first Előbb hagyd jóvá vagy vond vissza a művelet lépésének nyitott párbeszédablakát+ Pro Medium Gray Pro középszürke+ Solarized Solarized+ Breeze Breeze+ Pro Light Gray Pro világosszürke+ Pro Light Pro világos+ Resize Windows to Fit Ablakok átméretezése a képhez++ EXR EXRdiff --cc crates/ui-egui/src/i18n/id.tsvindex 8cdc09e1f,bac5cc06b..1fe7c32b2--- a/crates/ui-egui/src/i18n/id.tsv+++ b/crates/ui-egui/src/i18n/id.tsv@@@ -3341,11 -3298,5 +3342,13 @@@ curves Smooth Haluska# Graphics Adapter preference (#1885)GPU adapter Adaptor GPU+# Actions: a step dialog holds a suspended recording (#7365)+ Confirm or cancel the open action step dialog first Konfirmasi atau batalkan dulu dialog langkah tindakan yang terbuka+ Pro Medium Gray Pro Abu-abu Sedang+ Solarized Solarized+ Breeze Breeze+ Pro Light Gray Pro Abu-abu Terang+ Pro Light Pro Terang+ Resize Windows to Fit Ubah ukuran jendela agar pas++ EXR EXRdiff --cc crates/ui-egui/src/i18n/it.tsvindex e9b85c84c,76e5882ae..3750f4309--- a/crates/ui-egui/src/i18n/it.tsv+++ b/crates/ui-egui/src/i18n/it.tsv@@@ -4413,17 -4394,9 +4413,18 @@@ shape Appearance AspettThis document's layers: {needed} of {budget} for layers Livelli di questo documento: {needed} su {budget} per i livelliThis document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU I livelli di questo documento richiedono {needed} ma possono occupare {budget}: i ridisegni dell'intero documento usano la CPUGPU Memory (MB, 0 = Automatic) Memoria GPU (MB, 0 = Automatico)+ {path}: the path is not valid Unicode; save under another name. {path}: il percorso non è Unicode valido; salva con un altro nome.{name} was changed by another app after it was opened or saved here. {name} è stato modificato da un'altra app dopo essere stato aperto o salvato qui.Replace it with this document, or cancel and use File › Save As to keep both. Sostituiscilo con questo documento, oppure annulla e usa File › Salva con nome per tenerli entrambi.+ Demosaic Demosaicizzazione+ How the camera's colour filter mosaic is filled in. It is applied when the file opens; the preview shows the method it was opened with. Come viene completato il mosaico del filtro colore della fotocamera. Si applica all'apertura del file; l'anteprima mostra il metodo con cui è stato aperto.+ AHD (adaptive homogeneity) AHD (omogeneità adattiva)+ Malvar–He–Cutler Malvar–He–Cutler+ Hirakawa–Parks: the cleanest edges and the least colour fringing, the slowest. Hirakawa–Parks: i bordi più puliti e le minori frange di colore, il più lento.+ Gradient-corrected interpolation: sharp and fast, with some colour fringing on fine detail. Interpolazione con correzione del gradiente: nitida e veloce, con qualche frangia di colore nei dettagli fini.+ The fastest and the softest, with colour fringing on fine detail. Il più veloce e il più morbido, con frange di colore nei dettagli fini.+ “{name}” already exists. Replace it? “{name}” esiste già. Sostituirlo?+ The name in the save dialog was “{name}”. Il nome nella finestra di salvataggio era “{name}”.Memory Usage Utilizzo memoriaPer-document RAM limit (MB) Limite RAM per documento (MB)Installed RAM: {ram} MB; this limit: {percent}% RAM installata: {ram} MB; questo limite: {percent}%@@@ -4444,11 -4417,5 +4445,13 @@@# Graphics Adapter preference (#1885)GPU adapter Adattatore GPU+# Actions: a step dialog holds a suspended recording (#7365)+ Confirm or cancel the open action step dialog first Conferma o annulla prima la finestra di dialogo aperta del passo dell’azione+ Pro Medium Gray Pro grigio medio+ Solarized Solarized+ Breeze Breeze+ Pro Light Gray Pro grigio chiaro+ Pro Light Pro chiaro+ Resize Windows to Fit Ridimensiona finestre per adattare++ EXR EXRdiff --cc crates/ui-egui/src/i18n/ja.tsvindex 6c321e10a,0a9adc4a1..dcc8b0aa1--- a/crates/ui-egui/src/i18n/ja.tsv+++ b/crates/ui-egui/src/i18n/ja.tsv@@@ -4005,11 -3978,5 +4006,13 @@@ curves Smooth スムー�# Graphics Adapter preference (#1885)GPU adapter GPU アダプター+# Actions: a step dialog holds a suspended recording (#7365)+ Confirm or cancel the open action step dialog first 先に開いているアクションのステップのダイアログを確定またはキャンセルしてください+ Pro Medium Gray プロ(中間グレー)+ Solarized Solarized+ Breeze Breeze+ Pro Light Gray プロ(ライトグレー)+ Pro Light プロ(ライト)+ Resize Windows to Fit ウィンドウサイズを合わせる++ EXR EXRdiff --cc crates/ui-egui/src/i18n/ko.tsvindex 5f048fcbd,e5c314a89..bff7a0e69--- a/crates/ui-egui/src/i18n/ko.tsv+++ b/crates/ui-egui/src/i18n/ko.tsv@@@ -3534,11 -3490,5 +3535,13 @@@ curves Smooth 매끄럽�# Graphics Adapter preference (#1885)GPU adapter GPU 어댑터+# Actions: a step dialog holds a suspended recording (#7365)+ Confirm or cancel the open action step dialog first 먼저 열려 있는 액션 단계 대화 상자를 확인하거나 취소하세요+ Pro Medium Gray 프로 중간 회색+ Solarized Solarized+ Breeze Breeze+ Pro Light Gray 프로 밝은 회색+ Pro Light 프로 밝게+ Resize Windows to Fit 창 크기 맞추기++ EXR EXRdiff --cc crates/ui-egui/src/i18n/nl.tsvindex b71526cc2,30b45ba57..961a707a6--- a/crates/ui-egui/src/i18n/nl.tsv+++ b/crates/ui-egui/src/i18n/nl.tsv@@@ -4087,11 -4060,5 +4088,13 @@@ curves Smooth Vloeiend make# Graphics Adapter preference (#1885)GPU adapter GPU-adapter+# Actions: a step dialog holds a suspended recording (#7365)+ Confirm or cancel the open action step dialog first Bevestig of annuleer eerst het geopende dialoogvenster van de handelingsstap+ Pro Medium Gray Pro middelgrijs+ Solarized Solarized+ Breeze Breeze+ Pro Light Gray Pro lichtgrijs+ Pro Light Pro licht+ Resize Windows to Fit Venstergrootte aanpassen++ EXR EXRdiff --cc crates/ui-egui/src/i18n/pl.tsvindex 90aa05e51,b65d649b6..6ecf85ef2--- a/crates/ui-egui/src/i18n/pl.tsv+++ b/crates/ui-egui/src/i18n/pl.tsv@@@ -3943,11 -3900,5 +3944,13 @@@ curves Smooth Wygład�# Graphics Adapter preference (#1885)GPU adapter Karta GPU+# Actions: a step dialog holds a suspended recording (#7365)+ Confirm or cancel the open action step dialog first Najpierw zatwierdź lub anuluj otwarte okno kroku operacji+ Pro Medium Gray Pro (średni szary)+ Solarized Solarized+ Breeze Breeze+ Pro Light Gray Pro (jasnoszary)+ Pro Light Pro (jasny)+ Resize Windows to Fit Dopasuj rozmiar okien++ EXR EXRdiff --cc crates/ui-egui/src/i18n/pt-br.tsvindex 7dcd2eed2,840b15486..bf40b31e3--- a/crates/ui-egui/src/i18n/pt-br.tsv+++ b/crates/ui-egui/src/i18n/pt-br.tsv@@@ -4117,160 -4090,5 +4118,162 @@@ layerLabel No Color Sem co# Graphics Adapter preference (#1885)GPU adapter Adaptador de GPU+# Actions: a step dialog holds a suspended recording (#7365)+ Confirm or cancel the open action step dialog first Confirme ou cancele primeiro a caixa de diálogo aberta da etapa da ação++# Channels panel menu: channel commands, spot channels, Quick Mask, Color Indicates+ New Channel… Novo canal…+ Duplicate Channel Duplicar canal+ Delete Channel Excluir canal+ Rename Channel… Renomear canal…+ New Spot Channel… Novo canal de cor especial…+ Merge Spot Channel Mesclar canal de cor especial+ Convert to Alpha Channel Converter em canal alfa+ Split Channels Dividir canais+ Merge Channels… Mesclar canais…+ Exit Quick Mask Sair da máscara rápida+ Color Indicates Masked Areas A cor indica áreas mascaradas+ Color Indicates Selected Areas A cor indica áreas selecionadas++# Layer Style › Blending Options: advanced blending and Blend If+ General Blending Mesclagem geral+ Shallow Raso+ Deep Profundo+ Blend Interior Effects as Group Mesclar efeitos internos como grupo+ Blend Clipped Layers as Group Mesclar camadas recortadas como grupo+ Transparency Shapes Layer A transparência define a forma da camada+ Layer Mask Hides Effects A máscara de camada oculta os efeitos+ Vector Mask Hides Effects A máscara vetorial oculta os efeitos+ This Layer: Esta camada:+ Underlying Layer: Camada subjacente:++# Canvas right-click menus: pasteboard color, paths and shapes+ Dark Gray Cinza-escuro+ Medium Gray Cinza médio+ Select Custom Color… Selecionar cor personalizada…+ Color Picker (Custom Canvas Color) Seletor de cores (Cor personalizada da tela de pintura)+ Make Work Path… Criar demarcador de trabalho…+ Create Vector Mask Criar máscara vetorial+ Make Selection… Fazer seleção…+ Fill Path… Preencher demarcador…+ Clipping Path… Demarcador de corte…+ Free Transform Path Transformação livre do demarcador+ Unite Shapes at Overlap Unir formas na sobreposição+ Subtract Shapes at Overlap Subtrair formas na sobreposição+ Copy Fill Copiar preenchimento+ Copy Complete Stroke Copiar traçado completo+ Paste Fill Colar preenchimento+ Paste Complete Stroke Colar traçado completo+ Make Symmetry Path Criar demarcador de simetria+ Disable Symmetry Path Desativar demarcador de simetria++# Color Picker titles+ Color Picker (Foreground Color) Seletor de cores (Cor de primeiro plano)+ Color Picker (Background Color) Seletor de cores (Cor de fundo)+ Pick Color From Image Escolher cor da imagem++# Rasterize prompts+ This layer must be rasterized before proceeding. Esta camada precisa ser rasterizada antes de continuar.+ This type layer must be rasterized before proceeding. Its text will no longer be editable. Rasterize the type? Esta camada de texto precisa ser rasterizada antes de continuar. O texto não poderá mais ser editado. Rasterizar o texto?+ This shape layer must be rasterized before proceeding. It will no longer be editable as a shape. Rasterize the shape? Esta camada de forma precisa ser rasterizada antes de continuar. Ela não poderá mais ser editada como forma. Rasterizar a forma?+ This Smart Object must be rasterized before proceeding. Its contents will no longer be editable. Rasterize the Smart Object? Este objeto inteligente precisa ser rasterizado antes de continuar. O conteúdo não poderá mais ser editado. Rasterizar o objeto inteligente?+ This fill layer must be rasterized before proceeding. Its fill content will no longer be editable. Rasterize the layer? Esta camada de preenchimento precisa ser rasterizada antes de continuar. O conteúdo do preenchimento não poderá mais ser editado. Rasterizar a camada?++# GPU and display status (status bar, System Info)+ Graphics adapter: {adapter} Adaptador gráfico: {adapter}+ Backend: {backend} ({type}) Backend: {backend} ({type})+ Driver: {driver} Driver: {driver}+ GPU backend preference: {backend} Preferência de backend da GPU: {backend}+ Selected at launch: {backend} Selecionado ao iniciar: {backend}+ Image compositor: {processor} Compositor de imagens: {processor}+ Window renderer: {renderer} Renderizador da janela: {renderer}+ Graphics adapter Adaptador gráfico+ Software adapter Adaptador de software+ unknown type tipo desconhecido+ Fallback: {reason} Modo alternativo: {reason}+ This session: {reason} Nesta sessão: {reason}+ Platform: {os} {arch} Plataforma: {os} {arch}+ GPU retry scheduled Nova tentativa da GPU agendada+ Save your work and restart PhotoCraft to retry GPU acceleration. CPU rendering remains active for this session. Salve seu trabalho e reinicie o PhotoCraft para tentar a aceleração por GPU novamente. A renderização pela CPU continua ativa nesta sessão.+ GPU device was lost; using the CPU renderer. O dispositivo da GPU foi perdido; usando o renderizador da CPU.+ GPU error; using the CPU renderer. Erro da GPU; usando o renderizador da CPU.+ Monitor profile: {profile} Perfil do monitor: {profile}+ Monitor profile in use: {profile} Perfil do monitor em uso: {profile}+ Monitor profile in use on {display}: {profile} Perfil do monitor em uso em {display}: {profile}+ Monitor profile on {display}: {profile} Perfil do monitor em {display}: {profile}+ Monitor profile on {display} (main window): {profile} Perfil do monitor em {display} (janela principal): {profile}+ Display profiles: {reason} Perfis de tela: {reason}+ Display profile not used Perfil de tela não usado+ previous reading kept; the last re-read failed: {reason} leitura anterior mantida; a última releitura falhou: {reason}+ The canvas is shown as sRGB. Choose a monitor profile in Edit › Color Settings. A tela de pintura é exibida como sRGB. Escolha um perfil de monitor em Editar › Configurações de cores.+ The canvas on {display} is shown as sRGB. Choose a monitor profile in Edit › Color Settings. A tela de pintura em {display} é exibida como sRGB. Escolha um perfil de monitor em Editar › Configurações de cores.++# Status messages+ Nothing to paste: the clipboard holds no image Nada para colar: a área de transferência não contém imagem+ Opened {url} Aberto: {url}+ Preferences saved Preferências salvas+ Preferences were reset: {error} As preferências foram redefinidas: {error}+ Couldn't save preferences: {error}. Retrying… Não foi possível salvar as preferências: {error}. Tentando novamente…+ Preferences can't be saved Não é possível salvar as preferências+ PhotoCraft keeps retrying; until a save succeeds, preference changes are lost when it closes. O PhotoCraft continua tentando; até que um salvamento dê certo, as alterações nas preferências serão perdidas ao fechar.+ Invalid panel layout; restored the default dock Layout de painéis inválido; a disposição padrão dos painéis foi restaurada+ Recovered {name} Recuperado: {name}+ Autosave failed: {error} Falha ao salvar automaticamente: {error}+ Exported presets to {path} Predefinições exportadas para {path}+ Ran script {name} Script executado: {name}+ Sent to the printer ({spooler}) Enviado para a impressora ({spooler})+ Printed to {path} Impresso em {path}+ Exported {path} ({size}) Exportado: {path} ({size})+ Exported {path} Exportado: {path}+ Saved a copy as {path} Cópia salva como {path}+ Exported contents to {path} Conteúdo exportado para {path}+ Saved {path}; image assets: {n} in {dir} Salvo: {path}; recursos de imagem: {n} em {dir}+ Couldn't open {name}: {error} Não foi possível abrir {name}: {error}+ Added swatch {name} Amostra adicionada: {name}+ {message} (notes: {n}; {warning}) {message} (observações: {n}; {warning})+ Step {step} ({id}) failed: {error} Falha na etapa {step} ({id}): {error}+ Could not rename the action: {error} Não foi possível renomear a ação: {error}+ Action playback failed: {error} Falha ao reproduzir a ação: {error}+ Clone source set at {x}, {y} Origem da clonagem definida em {x}, {y}+ Color management: {error} Gerenciamento de cores: {error}+ No custom shape "{name}": pick one in the options bar or Window › Shapes Nenhuma forma personalizada “{name}”: escolha uma na barra de opções ou em Janela › Formas+ {label} is not available: {reason} {label} não está disponível: {reason}+ Open Recent is unavailable on the web Abrir recentes não está disponível na web+ Importing {what} from {file}… Importando {what} de {file}…+ brushes pincéis+ gradients degradês+ This adjustment ({key}) is kept as imported and can't be edited yet. Este ajuste ({key}) é mantido como foi importado e ainda não pode ser editado.+ {shortcut} assigned. {shortcut} atribuído.+ {shortcut} is already in use by {commands} and will be removed from it when you click OK. {shortcut} já está em uso por {commands} e será removido de lá quando você clicar em OK.++# Panels and small controls+ Grid view Visualização em grade+ List view Visualização em lista+ New Brush Preset Nova predefinição de pincel+ Toggle the Brush Settings panel Alternar o painel Configurações do pincel+ Scroll menu up Rolar o menu para cima+ Scroll menu down Rolar o menu para baixo+ {index} of {total} {index} de {total}+ Data Set: {name} ({index}/{total}) Conjunto de dados: {name} ({index}/{total})+ (none) (nenhum)+ Apply {option}: {state} Aplicar {option}: {state}+ on ativado+ off desativado++# Liquify tools (tooltips)+ Forward Warp Deformação para frente+ Twirl Clockwise Torcer no sentido horário+ Twirl Counterclockwise Torcer no sentido anti-horário+ Pucker Franzir+ Bloat Inflar+ Push Left Empurrar para a esquerda+ Freeze Mask Congelar máscara+ Thaw Mask Descongelar máscara+ Pro Medium Gray Pro cinza médio+ Solarized Solarized+ Breeze Breeze+ Pro Light Gray Pro cinza claro+ Pro Light Pro claro+ Resize Windows to Fit Redimensionar janelas para caber++ EXR EXRdiff --cc crates/ui-egui/src/i18n/ru.tsvindex d8638248f,cb3f9ad04..9352cd240--- a/crates/ui-egui/src/i18n/ru.tsv+++ b/crates/ui-egui/src/i18n/ru.tsv@@@ -3306,11 -3278,5 +3307,13 @@@ curves Smooth Сгладит�# Graphics Adapter preference (#1885)GPU adapter Адаптер GPU+# Actions: a step dialog holds a suspended recording (#7365)+ Confirm or cancel the open action step dialog first Сначала подтвердите или отмените открытый диалог шага операции+ Pro Medium Gray Средне-серая Pro+ Solarized Solarized+ Breeze Breeze+ Pro Light Gray Светло-серая Pro+ Pro Light Светлая Pro+ Resize Windows to Fit Подгонять размер окон++ EXR EXRdiff --cc crates/ui-egui/src/i18n/sr.tsvindex c1da31ad2,c0a390967..c303d6295--- a/crates/ui-egui/src/i18n/sr.tsv+++ b/crates/ui-egui/src/i18n/sr.tsv@@@ -4399,11 -4371,5 +4400,13 @@@ shape Appearance Izgle# Graphics Adapter preference (#1885)GPU adapter GPU adapter+# Actions: a step dialog holds a suspended recording (#7365)+ Confirm or cancel the open action step dialog first Prvo potvrdite ili otkažite otvoreni dijalog koraka radnje+ Pro Medium Gray Pro srednje siva+ Solarized Solarized+ Breeze Breeze+ Pro Light Gray Pro svetlosiva+ Pro Light Pro svetla+ Resize Windows to Fit Prilagodi veličinu prozora++ EXR EXRdiff --cc crates/ui-egui/src/i18n/tr.tsvindex 9571a5a50,ad170d1c5..7f3428223--- a/crates/ui-egui/src/i18n/tr.tsv+++ b/crates/ui-egui/src/i18n/tr.tsv@@@ -4057,11 -4028,5 +4058,13 @@@ cameraData Lens Len# Graphics Adapter preference (#1885)GPU adapter GPU bağdaştırıcısı+# Actions: a step dialog holds a suspended recording (#7365)+ Confirm or cancel the open action step dialog first Önce açık eylem adımı iletişim kutusunu onaylayın veya iptal edin+ Pro Medium Gray Pro Orta Gri+ Solarized Solarize+ Breeze Esinti+ Pro Light Gray Pro Açık Gri+ Pro Light Profesyonel Işık+ Resize Windows to Fit Pencereleri sığacak şekilde boyutlandır++ EXR EXRdiff --cc crates/ui-egui/src/i18n/uk.tsvindex 812159201,1687a2b1b..734a4b394--- a/crates/ui-egui/src/i18n/uk.tsv+++ b/crates/ui-egui/src/i18n/uk.tsv@@@ -4036,11 -4009,5 +4037,13 @@@ curves Smooth Згладит�# Graphics Adapter preference (#1885)GPU adapter Адаптер GPU+# Actions: a step dialog holds a suspended recording (#7365)+ Confirm or cancel the open action step dialog first Спочатку підтвердьте або скасуйте відкритий діалог кроку операції+ Pro Medium Gray Середньосіра «Профі»+ Solarized Solarized+ Breeze Breeze+ Pro Light Gray Світло-сіра «Профі»+ Pro Light Світла «Профі»+ Resize Windows to Fit Підганяти розмір вікон++ EXR EXRdiff --cc crates/ui-egui/src/i18n/vi.tsvindex b929ff14b,5af2b0059..eba481b27--- a/crates/ui-egui/src/i18n/vi.tsv+++ b/crates/ui-egui/src/i18n/vi.tsv@@@ -3818,11 -3791,5 +3819,13 @@@ curves Smooth Làm mượ# Graphics Adapter preference (#1885)GPU adapter Bộ điều hợp GPU+# Actions: a step dialog holds a suspended recording (#7365)+ Confirm or cancel the open action step dialog first Hãy xác nhận hoặc hủy hộp thoại bước hành động đang mở trước+ Pro Medium Gray Pro xám vừa+ Solarized Solarized+ Breeze Breeze+ Pro Light Gray Pro xám nhạt+ Pro Light Pro sáng+ Resize Windows to Fit Đổi cỡ cửa sổ cho vừa ảnh++ EXR EXRdiff --cc crates/ui-egui/src/i18n/zh-hans.tsvindex 682fa6271,7c6ebb1bf..cf31e5c0b--- a/crates/ui-egui/src/i18n/zh-hans.tsv+++ b/crates/ui-egui/src/i18n/zh-hans.tsv@@@ -2979,11 -2935,5 +2980,13 @@@ curves Smooth 平�# Graphics Adapter preference (#1885)GPU adapter GPU 适配器+# Actions: a step dialog holds a suspended recording (#7365)+ Confirm or cancel the open action step dialog first 请先确认或取消打开的动作步骤对话框+ Pro Medium Gray 专业中灰+ Solarized Solarized+ Breeze Breeze+ Pro Light Gray 专业浅灰+ Pro Light 专业浅色+ Resize Windows to Fit 调整窗口大小以适合++ EXR EXRdiff --cc crates/ui-egui/src/i18n/zh-hant.tsvindex 66f79f6ed,d94c36a7b..1bc730684--- a/crates/ui-egui/src/i18n/zh-hant.tsv+++ b/crates/ui-egui/src/i18n/zh-hant.tsv@@@ -2948,11 -2920,5 +2949,13 @@@ curves Smooth 平�# Graphics Adapter preference (#1885)GPU adapter GPU 介面卡+# Actions: a step dialog holds a suspended recording (#7365)+ Confirm or cancel the open action step dialog first 請先確認或取消開啟中的動作步驟對話框+ Pro Medium Gray 專業中灰+ Solarized Solarized+ Breeze Breeze+ Pro Light Gray 專業淺灰+ Pro Light 專業淺色+ Resize Windows to Fit 調整視窗大小以符合++ EXR EXR