diff --git a/.config/nextest.toml b/.config/nextest.toml index 2ef6d6f215..a1e0a2ee0a 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -11,7 +11,7 @@ nextest-version = "0.9.150" # # GPU tests: each test is its own process here, so the in-process `gpu_lock()` mutexes no longer # serialize them. Too many concurrent wgpu devices time out (`PollError: ... Wait timed out`), so -# this group caps them at 4. +# this group caps them at 4. scripts/ci-gpu-lavapipe.py reads this group's filters directly. [test-groups] gpu = { max-threads = 4 } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c15bc9542b..2c3597f5ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -151,7 +151,7 @@ jobs: # egui/winit/rfd. packages: >- libxkbcommon-dev libwayland-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev - libgtk-3-dev + libgtk-3-dev mesa-vulkan-drivers libvulkan1 # The tests build with the optional craft-fonts input (crates/text/build.rs), so the # Japanese font tests that skip without it run. Same commit as release.yml. craft-fonts-ref: b076417b5880bd4154bd22f00695b1d28c6bea83 @@ -164,7 +164,7 @@ jobs: timeout-minutes: 100 # fmt, clippy, layers, scorecard, tests, panic_hunt, doctests and the wasm32 check, with # `--locked --features heif`, then the missing-translations report (xtask/src/main.rs). - command: cargo xtask ci + command: python3 scripts/test-ci-gpu-lavapipe.py && cargo xtask ci && python3 scripts/ci-gpu-lavapipe.py # Windows tests run as two legs in parallel: the unit tests and the integration tests. As one job # they took ~28 min on the Windows runner; the legs take ~13 and ~15. Splitting the integration diff --git a/.github/workflows/house-rules.yml b/.github/workflows/house-rules.yml new file mode 100644 index 0000000000..de64ad3ee4 --- /dev/null +++ b/.github/workflows/house-rules.yml @@ -0,0 +1,28 @@ +name: House rules + +on: + push: + branches: [main] + paths: + - AGENTS.md + - CLAUDE.md + - .github/workflows/house-rules.yml + pull_request: + paths: + - AGENTS.md + - CLAUDE.md + - .github/workflows/house-rules.yml + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: house-rules-${{ github.ref }} + cancel-in-progress: true + +jobs: + house-rules: + uses: storytold/craft-common-actions/.github/workflows/house-rules.yml@main + with: + rust: true diff --git a/AGENTS.md b/AGENTS.md index 32074b4e45..70cbd9e355 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,3 +1,56 @@ + +## House rules + +These apply in every Craft repository. A later rule may be stricter, not weaker. The source is `standards/house-rules-core.md` in `storytold/craft-contrib`. Propose changes there, not in a copy. + +1. **A person is accountable.** Whoever runs an agent answers for what it opens and for its review comments. +2. **Check, then claim.** Before writing code, read the issue comments, search pull requests for `#N` and the keywords, and check recent commits on `main`. Comment on the issue first. Release a claim you will not finish. +3. **Verify, don't guess.** Open a definition before using it. Confirm the cause in the code, even when someone names a location. +4. **Keep fixes narrow and tested.** Fix what the issue describes, where the bug is. Add a test that fails without the fix. +5. **Review the diff before opening a pull request.** Identifiers exist as used, the test fails without the fix, nothing unrelated changed, and the description is true. +6. **Look for a better pull request.** If another fixes the same thing, close yours when it is better or equal, and say why. +7. **Report only what ran.** Say what you tested and what you could not run. Without a local build or test, say so and rely on CI before marking ready. +8. **`main` changes through a pull request.** Do not push to it. Branch protection enforces this. There is no exception. +9. **Stop and ask only about** licensing outside the allowlist, publishing, releases, a new remote, secrets, spending money, destructive git, and anything else hard to undo. Otherwise keep working. `plan/` is a gitignored notebook, not rules. Without it, do not ask for it and do not stop. +10. **Keep secrets and personal details out** of the repository, logs and requests. +11. **CI stays shared.** Workflows call `storytold/craft-common-actions`. Do not change CI in a feature or fix pull request. If CI cannot cover a change, open an issue there. +12. **Guards say why.** A check that looks removable says what it prevents. Read that before changing it. +13. **Instructions must be readable by everyone.** No notes about one machine, and no links to files a reader cannot open. `craftrules` is retired. Do not link to it. +14. **Keep pull requests moving.** Concurrent pull requests are fine; unanswered actionable feedback is not. Respond in 7 days, a reminder at 14, closure eligible at 30, from when an actionable request waits on the author. Suggestions and unconfirmed bot findings do not start the clock. A fix, explanation or agreed plan resets it; unrelated activity does not. Waiting on a reviewer or maintainer pauses it and does not count against the author. A maintainer decides closure; it is never automatic. Reuse search results, do not poll, and stop at a rate limit. +15. **No agent attribution.** A pull request does not say an agent wrote it. A repository rule may not require that. + + +## Rust Craft repositories + +These apply to native Craft apps and to shared Rust libraries. Select them by repository type. A repository that merely contains some Rust does not take this block. Rules later in a repository's file may be stricter, but not weaker. The source is `standards/house-rules-rust.md` in [storytold/craft-contrib](https://github.com/storytold/craft-contrib). + +1. **Never crash.** Non-test code does not panic and has no `unsafe`, except where the repository file names an exception. Return errors, treat input as hostile, and bound recursion and allocations. New production crate roots copy the `deny` attribute from an existing crate: `clippy::unwrap_used`, `clippy::expect_used`, `clippy::panic`, `clippy::unimplemented`, `clippy::todo`, `clippy::unreachable`. Every crash fix comes with a test that panicked before the fix. +2. **Clean room.** Learn from observed behaviour and public specifications. Do not copy another product's code, assets, strings or artwork. Check a dependency's licence before adding it. +3. **Assets and fonts.** Every asset is original or suitably licensed, and is recorded in `ATTRIBUTION.md` in the same change. Font files live in [storytold/craft-fonts](https://github.com/storytold/craft-fonts), not in the app repository. +4. **Rust only for native Craft apps.** No handwritten JavaScript or TypeScript, and no Tauri, Electron or webview shell, in those apps. Shared tooling follows its documented technical scope and maintainer-approved exceptions. Craft PR Review's existing Tauri and TypeScript UI is one such exception. It does not relax this rule for native apps. Preserve any existing web build. +5. **Time goes through `chrono`.** Do not hand-roll calendar conversion. For dates beyond what `chrono` can represent, follow [standards/time.md](https://github.com/storytold/craft-contrib/blob/main/standards/time.md). +6. **Contributor credits.** Add or edit only your own person's entry in `contributors/people.toml`, and only after asking them. Never guess a name or hand-edit `contributors.json`. + +## Licence allowlist + +Dependencies and assets use SPDX identifiers. An expression is allowed when every identifier is in this list. A repository may name a shorter list. It may not add an identifier here by editing its own copy of these rules. + +- `ISC` +- `MIT` +- `BSD-2-Clause` +- `BSD-3-Clause` +- `Apache-2.0` +- `OFL-1.1` +- `Ubuntu-font-1.0` +- `Bitstream-Vera` +- `CC0-1.0` +- `CC-BY-4.0` +- `CC-BY-SA-4.0` +- `LicenseRef-Public-Domain` + +`LicenseRef-Storyteller-Trademark` is not in this list. It covers Storyteller brand marks only, where a repository already says so. + + # AGENTS.md: guide for AI agents and contributors PhotoCraft is an open-source, native, Photoshop-comparable image editor written in **Rust only** (no JavaScript or TypeScript). **No Tauri, Electron or webview shells:** the desktop app is native egui/eframe on wgpu, and the web build is the same Rust compiled to WebAssembly (trunk + wasm-bindgen). Never add Tauri (or any webview/JS UI framework) as a dependency, build step or packaging target. The product name is always written **PhotoCraft** (`{Function}Craft` in PascalCase, like its siblings ArtCraft, ArtCraftX, DesignCraft, VectorCraft, EffectCraft, FilmCraft, LightCraft, PdfCraft) in user-facing text: UI, window titles, About, installers, release names, docs prose. Machine names stay lowercase: crates (`photocraft-*`), binaries, file names, ids (`ai.storyteller.photocraft`). Shared Rust components live in [storytold/craft-libs](https://github.com/storytold/craft-libs) and are pinned by immutable git revision. UI libraries stay at L6. The goal is 1:1 Photoshop parity (same menus, shortcuts, behaviour and file fidelity) with better performance, and every feature drivable by agents. Read this file first, then `docs/`. @@ -70,7 +123,6 @@ People trust PhotoCraft with their work, and a crash loses it. A malformed file, 8. **Performance is a feature.** Benchmark heavy operations on a 24–36 MP image in release. Work per tile in parallel (rayon), skip empty tiles, never scan a full surface per frame (cache per revision), and record before/after timings in the dev log. 9. **Never panic on input** (see *Never crash* above). A command's `run` closure and anything it calls must return `Err`, never panic, for *any* params or document state: validate params, check bounds before indexing or dividing, and reject absurd sizes before allocating. The `panic_hunt` integration test fuzzes every command with adversarial params and must stay green. -10. **Time goes through `chrono`** (workspace dependency). Never hand-roll UTC/calendar conversion (days-to-date algorithms, leap-year math); a crate owns only its output format string. The one exception is range extension: past the years chrono can represent, shift the date by whole 400-year Gregorian cycles (146,097 days, after which the calendar repeats), let chrono compute the month and day, and add the cycles back to the year (splitting seconds into hours, minutes and seconds is plain arithmetic). ## 4. Picking work @@ -130,7 +182,7 @@ Then append a terse entry to `log/devlog.md` (what landed, numbers, what's still - `docs/parity-checklist.md`: generated Photoshop menu coverage. - `docs/scorecard.md`: generated scorecard (sources: `scorecard/*.toml`, `perf/budgets.toml`, `perf/baseline.json`, corpus floors, prefs audit). - `docs/releasing.md`: cutting a release (`cargo xtask version`, the `release` branch), signing secrets, packaging scripts in `packaging/`. -- `plan/` (local, gitignored): research, parity plan, execution plan, estimates. +- `plan/` is an optional gitignored notebook (research, parity notes, estimates). Do not ask for it and do not stop when it is absent. - `log/` (local, gitignored): the dev log. ## 8. Keeping the native format complete diff --git a/ATTRIBUTION.md b/ATTRIBUTION.md index 4ff9772412..5343c51805 100644 --- a/ATTRIBUTION.md +++ b/ATTRIBUTION.md @@ -25,6 +25,7 @@ next to them. | `crates/ui-egui/src/i18n/vi.tsv` | Vietnamese UI translations | PhotoCraft contributors | Original translations of PhotoCraft's English labels | MIT OR Apache-2.0, [`LICENSE-translations.txt`](crates/ui-egui/src/i18n/LICENSE-translations.txt) | | `crates/ui-egui/src/i18n/ar.tsv` | Arabic UI translations | PhotoCraft contributors | Original translations of PhotoCraft's English labels | MIT OR Apache-2.0, [`LICENSE-translations.txt`](crates/ui-egui/src/i18n/LICENSE-translations.txt) | | `crates/ui-egui/src/i18n/tr.tsv` | Turkish UI translations | PhotoCraft contributors | Original translations of PhotoCraft's English labels | MIT OR Apache-2.0, [`LICENSE-translations.txt`](crates/ui-egui/src/i18n/LICENSE-translations.txt) | +| `crates/ui-egui/src/i18n/az.tsv` | Azerbaijani (Latin script) UI translations | PhotoCraft contributors; AI contributor: OpenAI Codex | PhotoCraft English labels; Google Translate drafts with edited core terminology, contexts and plurals | MIT OR Apache-2.0, [`LICENSE-translations.txt`](crates/ui-egui/src/i18n/LICENSE-translations.txt) | | `crates/ui-egui/src/i18n/bs.tsv` | Bosnian (Latin, Ijekavian) UI translations | Nine (@nine-codes) with Claude Code, AI-assisted; not yet reviewed by a native speaker | Original translations of PhotoCraft's English labels, shared with storytold/craft-i18n `locales/bs/` | MIT OR Apache-2.0, [`LICENSE-translations.txt`](crates/ui-egui/src/i18n/LICENSE-translations.txt) | | `crates/ui-egui/src/i18n/sr.tsv` | Serbian (Latin, Ekavian) UI translations | PhotoCraft contributors | Original translations of PhotoCraft's English labels | MIT OR Apache-2.0, [`LICENSE-translations.txt`](crates/ui-egui/src/i18n/LICENSE-translations.txt) | | `crates/ui-egui/src/i18n/ru.tsv` | Russian UI translations | PhotoCraft contributors | Original translations of PhotoCraft's English labels | MIT OR Apache-2.0, [`LICENSE-translations.txt`](crates/ui-egui/src/i18n/LICENSE-translations.txt) | @@ -32,10 +33,15 @@ next to them. | `crates/ui-egui/src/i18n/fi.tsv` | Finnish UI translations | @Janiz-zzz, @metuuu and PhotoCraft contributors | Original translations of PhotoCraft's English labels | MIT OR Apache-2.0, [`LICENSE-translations.txt`](crates/ui-egui/src/i18n/LICENSE-translations.txt) | | `crates/ui-egui/src/i18n/da.tsv` | Danish UI translations | @pechnikov2026-star and PhotoCraft contributors | Original translations of PhotoCraft's English labels | MIT OR Apache-2.0, [`LICENSE-translations.txt`](crates/ui-egui/src/i18n/LICENSE-translations.txt) | | `crates/ui-egui/src/i18n/nb.tsv` | Norwegian Bokmål UI translations | @nikolainyegaard, @Bolla76 and PhotoCraft contributors | Original translations of PhotoCraft's English labels | MIT OR Apache-2.0, [`LICENSE-translations.txt`](crates/ui-egui/src/i18n/LICENSE-translations.txt) | +| `crates/ui-egui/src/i18n/he.tsv` | Hebrew UI translations | @tronicum with Claude Code, AI-assisted (machine-translated); not yet reviewed by a native speaker | Original translations of PhotoCraft's English labels | MIT OR Apache-2.0, [`LICENSE-translations.txt`](crates/ui-egui/src/i18n/LICENSE-translations.txt) | +| `crates/ui-egui/src/i18n/ur.tsv` | Urdu UI translations | @tronicum with Claude Code, AI-assisted (machine-translated); not yet reviewed by a native speaker | Original translations of PhotoCraft's English labels | MIT OR Apache-2.0, [`LICENSE-translations.txt`](crates/ui-egui/src/i18n/LICENSE-translations.txt) | +| `crates/ui-egui/src/i18n/ro.tsv` | Romanian UI translations | @tronicum with Claude Code, AI-assisted (machine-translated); not yet reviewed by a native speaker | Original translations of PhotoCraft's English labels | MIT OR Apache-2.0, [`LICENSE-translations.txt`](crates/ui-egui/src/i18n/LICENSE-translations.txt) | +| `crates/ui-egui/src/i18n/th.tsv` | Thai UI translations | @Thanawatttt and PhotoCraft contributors, with opencode (DeepSeek) as an AI contributor | Machine-assisted first draft from PhotoCraft's English labels, reviewed for UI terminology | MIT OR Apache-2.0, [`LICENSE-translations.txt`](crates/ui-egui/src/i18n/LICENSE-translations.txt) | +| `crates/ui-egui/src/i18n/ta.tsv` | Tamil UI translations | @newsbaba24x7 and PhotoCraft contributors | Original translations of PhotoCraft's English labels | MIT OR Apache-2.0, [`LICENSE-translations.txt`](crates/ui-egui/src/i18n/LICENSE-translations.txt) | | `epaint_default_fonts::EGUI_ICONS` (build input; deflated into `OUT_DIR/egui_fonts/egui-icons.ttf.deflate`, registered by `crates/ui-egui/src/egui_fonts.rs`) | egui-icons, five-glyph subset of emoji-icon-font | John Slegers | [egui fork at 6d518fc](https://github.com/storytold/egui/tree/6d518fc799681571963842f95b55a6b68431b15a/crates/epaint_default_fonts/fonts), [original](https://github.com/jslegers/emoji-icon-font); egui subset, unmodified here | MIT; Copyright (c) 2014 John Slegers; full upstream notice in [NOTICE](NOTICE) | | `assets/fonts/Inter-Regular.ttf`, `Inter-Medium.ttf`, `Inter-SemiBold.ttf` | Inter 4.001 (UI font) | The Inter Project Authors (Rasmus Andersson) | | SIL OFL 1.1, [`assets/fonts/OFL-Inter.txt`](assets/fonts/OFL-Inter.txt) | | `assets/fonts/JetBrainsMono-Regular.ttf` | JetBrains Mono 2.305 (numeric font) | The JetBrains Mono Project Authors | | SIL OFL 1.1, [`assets/fonts/OFL-JetBrainsMono.txt`](assets/fonts/OFL-JetBrainsMono.txt) | -| `assets/icons/*.svg` except `slice-knife.svg`, `slice-select.svg`, `font-similar.svg`, `font-variable.svg`, `sampler.svg`, `artboard.svg`, `perspective-crop.svg`, `frame-placeholder.svg`, `ellipse-dashed.svg`, `gradient.svg`, `type-mask.svg`, `type-mask-vertical.svg`, `text-warp.svg`, `clip-below.svg`, `clip-release.svg`, `layer-mask.svg`, `adjustment-layer.svg`, `brush-replace.svg`, `history-brush.svg`, `quick-selection.svg`, `eraser-background.svg`, `eraser-magic.svg`, `lasso-magnetic.svg`, `direct-select.svg`, `convert-point.svg`, `pen-add-anchor.svg`, `pen-delete-anchor.svg`, `pen-freeform.svg`, `pen-curvature.svg`, `bandage-sparkle.svg`, `painting-symmetry.svg`, `symmetry-*.svg`, `path-op-*.svg` and `marquee-{row,column}.svg`, `align-edge-*.svg` and `distribute-*.svg`, `crop-overlay-*.svg` (113 files; `star-filled.svg` is `star.svg` with a solid fill) | Lucide icons | Lucide Icons and Contributors | (`icons/.svg`; `align-*` are now named `text-align-*` upstream) | ISC, [`assets/icons/LICENSE-lucide.txt`](assets/icons/LICENSE-lucide.txt) | +| `assets/icons/*.svg` except `slice-knife.svg`, `slice-select.svg`, `font-similar.svg`, `font-variable.svg`, `sampler.svg`, `artboard.svg`, `perspective-crop.svg`, `frame-placeholder.svg`, `ellipse-dashed.svg`, `gradient.svg`, `type-mask.svg`, `type-mask-vertical.svg`, `text-warp.svg`, `clip-below.svg`, `clip-release.svg`, `layer-mask.svg`, `adjustment-layer.svg`, `brush-replace.svg`, `history-brush.svg`, `quick-selection.svg`, `eraser-background.svg`, `eraser-magic.svg`, `lasso-magnetic.svg`, `direct-select.svg`, `convert-point.svg`, `pen-add-anchor.svg`, `pen-delete-anchor.svg`, `pen-freeform.svg`, `pen-curvature.svg`, `bandage-sparkle.svg`, `painting-symmetry.svg`, `symmetry-*.svg`, `path-op-*.svg` and `marquee-{row,column}.svg`, `align-edge-*.svg` and `distribute-*.svg`, `crop-overlay-*.svg` (115 files; `star-filled.svg` is `star.svg` with a solid fill) | Lucide icons | Lucide Icons and Contributors | (`icons/.svg`; `align-*` are now named `text-align-*` upstream) | ISC, [`assets/icons/LICENSE-lucide.txt`](assets/icons/LICENSE-lucide.txt) | | `assets/icons/{check,chevron-down,chevron-left,chevron-right,chevron-up,chevrons-left,chevrons-right,circle,clock,compass,info,link,link-2,lock,minus,monitor,moon,move,navigation,plus,search,square,trash,triangle,type,x,zoom-in}.svg` | Lucide icons derived from Feather (subset of the row above) | Cole Bemis (Feather), Lucide Contributors | via Lucide | MIT (Feather) and ISC (Lucide), [`assets/icons/LICENSE-lucide.txt`](assets/icons/LICENSE-lucide.txt) | | `assets/icons/slice-knife.svg` | Slice tool glyph | PhotoCraft contributors | Original work | MIT OR Apache-2.0 | | `assets/icons/slice-select.svg` | Slice Select tool glyph | PhotoCraft contributors | Original work | MIT OR Apache-2.0 | diff --git a/Cargo.lock b/Cargo.lock index dc725c05f3..faa215496b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3064,6 +3064,28 @@ dependencies = [ "cc", ] +[[package]] +name = "icu_casemap" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2edfd120d8445de853cf53a1abec916f638f933a70a6f4bf8f7e2d7b7f884e9" +dependencies = [ + "icu_casemap_data", + "icu_collections", + "icu_locale_core", + "icu_properties", + "icu_provider", + "potential_utf", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_casemap_data" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "059fcda0fc8d33effc6633a8cf0d8a3c17caf7d7c91918fba9918744f501e4e8" + [[package]] name = "icu_collections" version = "2.3.0" @@ -3072,6 +3094,7 @@ checksum = "fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513" dependencies = [ "displaydoc", "potential_utf", + "serde", "utf8_iter", "yoke", "zerofrom", @@ -5341,6 +5364,7 @@ dependencies = [ "tempfile", "thiserror 2.0.21", "wat", + "web-time", "winsafe", ] @@ -5504,6 +5528,7 @@ dependencies = [ "photocraft-geom", "proptest", "rayon", + "rustix 1.1.5", "serde", "sysinfo", "winsafe", @@ -5529,10 +5554,13 @@ name = "photocraft-tablet" version = "0.20.1" dependencies = [ "block2 0.6.2", + "log", "objc2 0.6.5", "objc2-app-kit 0.3.2", "objc2-core-graphics", "objc2-foundation 0.3.2", + "windows", + "wintab", "x11rb", ] @@ -5574,6 +5602,8 @@ dependencies = [ "egui_kittest", "epaint_default_fonts", "flate2", + "icu_casemap", + "icu_locale_core", "log", "photocraft-algo", "photocraft-cms", @@ -9206,6 +9236,25 @@ version = "0.0.29" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ef0ffc427f045c0cc9ebffd6f4f91153dcd2a1547b5c3c29ee3f541e16e95c6" +[[package]] +name = "wintab" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e05efdae68aa69ef1f4bc0148a5c6cf7f2bc234963a723252fd75f2f9e70d86" +dependencies = [ + "windows", + "wintab-sys", +] + +[[package]] +name = "wintab-sys" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d3d0743ba07fe30ca1ccc1471ee50adf32bc70932b86a00c8f1051177950de2" +dependencies = [ + "windows", +] + [[package]] name = "winx" version = "0.36.4" diff --git a/apps/photocraft-web/src/web.rs b/apps/photocraft-web/src/web.rs index 3590f42f1a..5f6b71ea3f 100644 --- a/apps/photocraft-web/src/web.rs +++ b/apps/photocraft-web/src/web.rs @@ -443,7 +443,15 @@ impl eframe::App for WebShell { Ok(bytes) => { if place { if let Some(doc) = target_doc { - place_inbox.lock().unwrap_or_else(PoisonError::into_inner).push((doc, name, bytes)); + let mut queued = place_inbox.lock().unwrap_or_else(PoisonError::into_inner); + let held = queued.iter().fold(0usize, |sum, (_, _, b)| sum.saturating_add(b.len())); + // Reads that finish before the next frame drains the inbox are + // bounded like the app's own drop queue. + if photocraft_ui_egui::file_open::place_inbox_takes(queued.len(), held, bytes.len()) { + queued.push((doc, name, bytes)); + } else { + log::warn!("dropped file {name} wasn't placed: too many dropped files are waiting"); + } } } else { inbox.lock().unwrap_or_else(PoisonError::into_inner).push((name, bytes)); diff --git a/apps/photocraft/src/main.rs b/apps/photocraft/src/main.rs index 41d2faedee..7d9f4f4e03 100644 --- a/apps/photocraft/src/main.rs +++ b/apps/photocraft/src/main.rs @@ -670,6 +670,14 @@ fn main() -> eframe::Result { if let Some(monitor) = tablet::install_windows() { let _ = tablet_monitor_win.set(monitor); } + // With Windows Ink disabled for the tablet, WinTab supplies the pen pressure, tilt, + // rotation and eraser end; the vendor driver still moves the cursor. + #[cfg(target_os = "windows")] + if let Some(poll) = + tablet::install_wintab(cc, &app.stylus.feed, app.session.prefs().tools.tablet_input == photocraft_engine::prefs::TabletInput::WinTab) + { + app.services.tablet_poll = Some(poll); + } #[cfg(target_os = "linux")] tablet::spawn_x11(&app.stylus.feed, display); app.services.right_button_down = tablet::right_button_service(); @@ -1031,7 +1039,7 @@ mod tests { read }; - let r = read(r#"{"interface":{"enableAnimations":"nope"},"integrations":{"allowAgentControl":false,"controlPort":7878}}"#); + let r = read(r#"{"interface":{"showTooltips":"nope"},"integrations":{"allowAgentControl":false,"controlPort":7878}}"#); assert!(!r.allow_agent_control, "a bad value in another section"); assert_eq!(r.control_port, 7878); let r = read(r#"{"integrations":{"allowAgentControl":false,"controlPort":"x"}}"#); diff --git a/apps/photocraft/src/tablet.rs b/apps/photocraft/src/tablet.rs index 19ba28996c..224b682075 100644 --- a/apps/photocraft/src/tablet.rs +++ b/apps/photocraft/src/tablet.rs @@ -6,7 +6,9 @@ //! each sample into the UI's [`StylusFeed`], where the canvas reads it exactly like the web runner's //! Pointer Events and automation's simulated pen. On Windows, winit forwards `WM_POINTER` pressure //! as touch force, but drops `PEN_FLAG_BARREL` (`0x0001`); `photocraft-tablet` recovers the barrel -//! button through a thread-local message hook beside winit. +//! button through a thread-local message hook beside winit. With Windows Ink disabled for the +//! tablet, the optional WinTab mode reads pressure, tilt, rotation and the eraser end from a +//! WinTab 1.4 system context instead ([`install_wintab`]). //! //! Wayland compositors give a pen only to clients that bind the tablet protocol //! (`zwp_tablet_v2`), which winit 0.30 doesn't (and binding it on winit's connection needs @@ -39,6 +41,41 @@ pub fn install_windows() -> Option { photocraft_tablet::windows::Monitor::install().map_err(|e| log::warn!("{e}")).ok() } +/// Installs the WinTab backend on the real PhotoCraft window and returns its per-frame poll. +/// +/// `enabled` is Preferences > Tools > Pen Tablet > Tablet input set to WinTab. With Windows Ink disabled there, the vendor +/// driver still moves the cursor; this backend only supplies pressure/tilt/rotation/eraser +/// through the normal stylus feed. On failure it logs why and leaves Windows Ink untouched. +#[cfg(target_os = "windows")] +pub fn install_wintab(cc: &eframe::CreationContext<'_>, feed: &StylusFeed, enabled: bool) -> Option { + if !enabled { + return None; + } + use eframe::wgpu::rwh::{HasWindowHandle, RawWindowHandle}; + let hwnd = match cc.window_handle().ok()?.as_raw() { + RawWindowHandle::Win32(handle) => handle.hwnd.get(), + _ => return None, + }; + let ctx = cc.egui_ctx.clone(); + if let Err(error) = photocraft_tablet::wintab::install(hwnd, Box::new(move || ctx.request_repaint())) { + log::warn!("WinTab backend: {error}"); + return None; + } + let sink = sink(feed.clone()); + log::info!("WinTab backend active (system context)"); + let logged = std::cell::Cell::new(false); + Some(Box::new(move |focused| { + photocraft_tablet::wintab::poll(focused, &|sample| { + if let Some(sample) = sample + && !logged.replace(true) + { + log::info!("WinTab sample: pressure={:.3} tilt=({:.1},{:.1}) eraser={}", sample.pressure, sample.tilt_x, sample.tilt_y, sample.eraser); + } + sink(sample); + }); + })) +} + /// Stylus barrel button down check (Windows). The right mouse button is left to egui, which /// reports the logical secondary button (swapped buttons included) for the app's own window only. #[cfg(target_os = "windows")] diff --git a/assets/icons/pin.svg b/assets/icons/pin.svg new file mode 100644 index 0000000000..04bc7cb604 --- /dev/null +++ b/assets/icons/pin.svg @@ -0,0 +1,14 @@ + + + + diff --git a/assets/icons/rotate-ccw.svg b/assets/icons/rotate-ccw.svg new file mode 100644 index 0000000000..eb0fe3491a --- /dev/null +++ b/assets/icons/rotate-ccw.svg @@ -0,0 +1,14 @@ + + + + diff --git a/contributors/people.toml b/contributors/people.toml index 59b4b9b7f0..a2ead57598 100644 --- a/contributors/people.toml +++ b/contributors/people.toml @@ -201,6 +201,9 @@ sync_github_name = true real_name = "Guillem Hermida" sync_github_name = true +[people.fokas-hoa] +display_name = "Tasos Fokas" + [people.fjamesprice] sync_github_name = true diff --git a/crates/algo/src/cutout/curves.rs b/crates/algo/src/cutout/curves.rs index 76e65d1082..665de0c404 100644 --- a/crates/algo/src/cutout/curves.rs +++ b/crates/algo/src/cutout/curves.rs @@ -65,10 +65,6 @@ pub(super) fn fit(pts: &[Pt], closed: bool, s: &Settings) -> Vec { let mut keep: Vec = if closed { corners.clone() } else { std::iter::once(0).chain(corners.iter().copied()).chain(std::iter::once(n - 1)).collect() }; keep.sort_unstable(); keep.dedup(); - let mut is_corner = vec![false; n]; - for &k in &keep { - is_corner[k] = true; - } if closed && keep.len() < 2 { // A smooth loop: split it at two far-apart points (not corners) to simplify each half. let a = keep.first().copied().unwrap_or(0); @@ -92,8 +88,6 @@ pub(super) fn fit(pts: &[Pt], closed: bool, s: &Settings) -> Vec { verts.push(n - 1); } let v: Vec = verts.iter().map(|&i| p[i]).collect(); - let corner: Vec = verts.iter().map(|&i| is_corner[i]).collect(); - let _ = &corner; let mut out = v.clone(); if closed { out.extend(v.first().copied()); diff --git a/crates/algo/src/cutout/mod.rs b/crates/algo/src/cutout/mod.rs index b802b40767..00dfa4e291 100644 --- a/crates/algo/src/cutout/mod.rs +++ b/crates/algo/src/cutout/mod.rs @@ -303,7 +303,7 @@ mod tests { } #[test] - fn empty_images_stop_before_the_transpose_and_row_passes() { + fn empty_images_trace_to_nothing() { for r in [Rect::new(0, 0, 0, 4), Rect::new(0, 0, 4, 0), Rect::new(0, 0, 0, 0)] { let t = trace(&[], r, &settings(4, 2.0, 1.0)); assert!(t.regions.is_empty()); diff --git a/crates/algo/src/cutout/regions.rs b/crates/algo/src/cutout/regions.rs index 803077c03a..7edde5b163 100644 --- a/crates/algo/src/cutout/regions.rs +++ b/crates/algo/src/cutout/regions.rs @@ -44,8 +44,8 @@ pub(super) fn components(labels: &[u8], w: usize, h: usize) -> (Vec, usize) (comp, n as usize) } -/// Merges small and sliver components into their neighbours. Returns each pixel's region and -/// each region's mean colour. +/// Merges components smaller than the Edge Simplicity area into the neighbour they share the most +/// border with. Returns each pixel's region and each region's mean colour. pub(super) fn merge_regions(comp: &[u32], n: usize, c: &[Px], w: usize, h: usize, s: &Settings) -> (Vec, Vec) { let mut area = vec![0u32; n]; let mut sum = vec![[0.0f64; 3]; n]; diff --git a/crates/algo/src/resample.rs b/crates/algo/src/resample.rs index a0c363732a..635a5a3079 100644 --- a/crates/algo/src/resample.rs +++ b/crates/algo/src/resample.rs @@ -393,62 +393,105 @@ fn resize_controlled(s: &Surface, sx: f64, sy: f64, filter: Resample, canvas: Op canvas = canvas.map(|c| scaled_rect(c, p.sx, p.sy)); cur = Some(next); } - let mut out = cur.unwrap_or_else(|| s.clone()); + let mut out = preserve_details(cur.unwrap_or_else(|| s.clone()), filter, sx, sy); + out.prune(); + out +} + +/// Preserve Details' light sharpening of an enlargement (Lanczos's output, for the other filters +/// nothing). +fn preserve_details(mut out: Surface, filter: Resample, sx: f64, sy: f64) -> Surface { if filter == Resample::PreserveDetails && (sx > 1.0 || sy > 1.0) { let dst = out.content_bounds(); let p = crate::FilterParams::UnsharpMask { amount: 30.0, radius: 0.6 * sx.max(sy) as f32, threshold: 0.0 }; let area = crate::output_area(&p, dst, dst, None); out = crate::apply(&out, &p, area, dst, None); } - out.prune(); out } -/// One pass. With `canvas`, the content and the canvas repeat their edge outwards (see -/// [`resize_surface_in_canvas`]). -fn resize_pass(s: &Surface, pass: Pass, canvas: Option, budget: usize, ctl: &photocraft_raster::Interrupt) -> Surface { - let Pass { sx, sy, kx, ky } = pass; - let edge = canvas.map(|c| s.content_bounds().union(&c)).filter(|a| !a.is_empty()); - let fmt = s.format(); - let mut out = Surface::with_default(fmt, &s.default_pixel()); - let src = s.content_bounds(); - let dst = scaled_rect(src, sx, sy); - if dst.is_empty() { - return out; +/// Output rows computed together by [`PassState::band`]. +const BAND: usize = 64; + +/// One pass prepared: its taps and the constants every band needs. [`PassState::band`] computes +/// one band of output rows from the source, so the parallel loop of [`resize_pass`] and +/// [`ResizeSteps`] run the same code and give the same pixels. +struct PassState { + n: usize, + alpha: bool, + /// The output extent. + dst: Rect, + /// The area every tap is clamped into (the source's content, or with a canvas that and the canvas). + area: Rect, + hx: Vec, + vy: Vec, + x_lo: i32, + x_hi: i32, + def: Vec, + /// A source row of nothing but the default pixel, after the horizontal pass. + def_row: Vec, + rows_per_read: i32, +} + +impl PassState { + /// Prepares `pass` over `s`; `None` when the output is empty. With `canvas`, the content and + /// the canvas repeat their edge outwards (see [`resize_surface_in_canvas`]). + fn new(s: &Surface, pass: Pass, canvas: Option, budget: usize) -> Option { + let Pass { sx, sy, kx, ky } = pass; + let edge = canvas.map(|c| s.content_bounds().union(&c)).filter(|a| !a.is_empty()); + let fmt = s.format(); + let src = s.content_bounds(); + let dst = scaled_rect(src, sx, sy); + if dst.is_empty() { + return None; + } + let n = fmt.channels(); + let alpha = fmt.alpha; + // With `edge`, every tap is clamped into the edge area, which holds the content. + let area = edge.unwrap_or(src); + let hx = taps(dst.x0, dst.x1, sx, kx, edge.map(|r| (r.x0, r.x1 - 1)), (area.x0, area.x1 - 1)); + let vy = taps(dst.y0, dst.y1, sy, ky, edge.map(|r| (r.y0, r.y1 - 1)), (area.y0, area.y1 - 1)); + let x_lo = hx.iter().filter(|t| !t.weights.is_empty()).map(|t| t.start).min().unwrap_or(area.x0); + let x_hi = hx.iter().map(|t| t.start + t.weights.len() as i32).max().unwrap_or(area.x0).max(x_lo); + let mut def = s.default_pixel(); + premultiply(&mut def, n, alpha); + let dw = dst.width() as usize; + let mut st = Self { n, alpha, dst, area, hx, vy, x_lo, x_hi, def, def_row: Vec::new(), rows_per_read: 1 }; + st.def_row = { + let row: Vec = st.def.iter().copied().cycle().take((x_hi - x_lo) as usize * n).collect(); + let mut out = vec![0.0f32; dw * n]; + st.horizontal(&row, &mut out); + out + }; + // At most one tile row per read anyway, so this always fits an `i32`. + st.rows_per_read = (budget / ((x_hi - x_lo).max(1) as usize * n).max(dw * n)).clamp(1, TILE_SIZE as usize) as i32; + Some(st) } - let n = fmt.channels(); - let alpha = fmt.alpha; - // With `edge`, every tap is clamped into the edge area, which holds the content. - let area = edge.unwrap_or(src); - let hx = taps(dst.x0, dst.x1, sx, kx, edge.map(|r| (r.x0, r.x1 - 1)), (area.x0, area.x1 - 1)); - let vy = taps(dst.y0, dst.y1, sy, ky, edge.map(|r| (r.y0, r.y1 - 1)), (area.y0, area.y1 - 1)); - let x_lo = hx.iter().filter(|t| !t.weights.is_empty()).map(|t| t.start).min().unwrap_or(area.x0); - let x_hi = hx.iter().map(|t| t.start + t.weights.len() as i32).max().unwrap_or(area.x0).max(x_lo); - let mut def = s.default_pixel(); - premultiply(&mut def, n, alpha); - let dw = dst.width() as usize; - const BAND: usize = 64; - let bands: Vec<(usize, usize)> = (0..vy.len()).step_by(BAND).map(|b| (b, (b + BAND).min(vy.len()))).collect(); - // Horizontal pass of one source row (`row` spans `x_lo..x_hi`) into `dw` samples. - let horizontal = |row: &[f32], out: &mut [f32]| match n { - 1 => horizontal_fixed::<1>(row, out, &hx, x_lo, &def), - 2 => horizontal_fixed::<2>(row, out, &hx, x_lo, &def), - 3 => horizontal_fixed::<3>(row, out, &hx, x_lo, &def), - 4 => horizontal_fixed::<4>(row, out, &hx, x_lo, &def), - 5 => horizontal_fixed::<5>(row, out, &hx, x_lo, &def), - _ => horizontal_dynamic(row, out, &hx, x_lo, &def, n), - }; - // A source row of nothing but the default pixel, after the horizontal pass. - let def_row = { - let row: Vec = def.iter().copied().cycle().take((x_hi - x_lo) as usize * n).collect(); - let mut out = vec![0.0f32; dw * n]; - horizontal(&row, &mut out); - out - }; - // At most one tile row per read anyway, so this always fits an `i32`. - let rows_per_read = (budget / ((x_hi - x_lo).max(1) as usize * n).max(dw * n)).clamp(1, TILE_SIZE as usize) as i32; - let run = |&(b0, b1): &(usize, usize)| -> (Rect, Vec) { - let band = vy.get(b0..b1).unwrap_or(&[]); + + /// How many bands of [`BAND`] output rows the pass has. + fn bands(&self) -> usize { + self.vy.len().div_ceil(BAND) + } + + /// Horizontal pass of one source row (`row` spans `x_lo..x_hi`) into `dw` samples. + fn horizontal(&self, row: &[f32], out: &mut [f32]) { + let (hx, x_lo, def) = (&self.hx, self.x_lo, &self.def); + match self.n { + 1 => horizontal_fixed::<1>(row, out, hx, x_lo, def), + 2 => horizontal_fixed::<2>(row, out, hx, x_lo, def), + 3 => horizontal_fixed::<3>(row, out, hx, x_lo, def), + 4 => horizontal_fixed::<4>(row, out, hx, x_lo, def), + 5 => horizontal_fixed::<5>(row, out, hx, x_lo, def), + _ => horizontal_dynamic(row, out, hx, x_lo, def, self.n), + } + } + + /// Band `b` of the output: its rectangle and samples, from the pass's source `s`. + fn band(&self, s: &Surface, b: usize) -> (Rect, Vec) { + let (n, alpha, area, dst, x_lo, x_hi) = (self.n, self.alpha, self.area, self.dst, self.x_lo, self.x_hi); + let dw = dst.width() as usize; + let (b0, b1) = (b * BAND, ((b + 1) * BAND).min(self.vy.len())); + let band = self.vy.get(b0..b1).unwrap_or(&[]); let y_lo = band.iter().filter(|t| !t.weights.is_empty()).map(|t| t.start).min().unwrap_or(area.y0); let y_hi = band.iter().map(|t| t.start + t.weights.len() as i32).max().unwrap_or(area.y0).max(y_lo); let mut res = vec![0.0f32; band.len() * dw * n]; @@ -472,7 +515,7 @@ fn resize_pass(s: &Surface, pass: Pass, canvas: Option, budget: usize, ctl if s.has_tiles_in(Rect::new(x_lo, y, x_hi, y1)) { let mut c0 = y; while c0 < y1 { - let c1 = (c0 + rows_per_read).min(y1); + let c1 = (c0 + self.rows_per_read).min(y1); let read = Rect::new(x_lo, c0, x_hi, c1); s.read_region_into(read, &mut rows); premultiply(&mut rows, n, alpha); @@ -480,7 +523,7 @@ fn resize_pass(s: &Surface, pass: Pass, canvas: Option, budget: usize, ctl hrows.resize((c1 - c0) as usize * dw * n, 0.0); let rw = read.width() as usize * n; for (row, out) in rows.chunks_exact(rw.max(1)).zip(hrows.chunks_exact_mut(dw * n)) { - horizontal(row, out); + self.horizontal(row, out); } for (r, h) in (c0..c1).zip(hrows.chunks_exact(dw * n)) { add(&mut res, r, h); @@ -494,7 +537,7 @@ fn resize_pass(s: &Surface, pass: Pass, canvas: Option, budget: usize, ctl let (a, b) = ((y - t.start).max(0) as usize, (y1 - t.start).max(0) as usize); let w: f32 = t.weights.get(a.min(t.weights.len())..b.min(t.weights.len())).unwrap_or(&[]).iter().sum(); if w != 0.0 { - for (dv, sv) in d.iter_mut().zip(&def_row) { + for (dv, sv) in d.iter_mut().zip(&self.def_row) { *dv += sv * w; } } @@ -503,7 +546,7 @@ fn resize_pass(s: &Surface, pass: Pass, canvas: Option, budget: usize, ctl y = y1; } for (t, d) in band.iter().zip(res.chunks_exact_mut(dw * n)) { - for (dv, sv) in d.iter_mut().zip(&def_row) { + for (dv, sv) in d.iter_mut().zip(&self.def_row) { *dv += sv * t.outside; } } @@ -514,7 +557,15 @@ fn resize_pass(s: &Surface, pass: Pass, canvas: Option, budget: usize, ctl } unpremultiply(&mut res, n, alpha); (Rect::new(dst.x0, dst.y0 + b0 as i32, dst.x1, dst.y0 + b1 as i32), res) - }; + } +} + +/// One pass. With `canvas`, the content and the canvas repeat their edge outwards (see +/// [`resize_surface_in_canvas`]). +fn resize_pass(s: &Surface, pass: Pass, canvas: Option, budget: usize, ctl: &photocraft_raster::Interrupt) -> Surface { + let mut out = Surface::with_default(s.format(), &s.default_pixel()); + let Some(st) = PassState::new(s, pass, canvas, budget) else { return out }; + let bands: Vec = (0..st.bands()).collect(); // Bands go into the output a group at a time, so the `f32` rows held at once are bounded by // the group, not by the whole destination (#1544). #[cfg(not(target_arch = "wasm32"))] @@ -523,15 +574,15 @@ fn resize_pass(s: &Surface, pass: Pass, canvas: Option, budget: usize, ctl let group = 1; for chunk in bands.chunks(group) { if ctl.cancelled() { - return Surface::new(fmt); + return Surface::new(s.format()); } #[cfg(not(target_arch = "wasm32"))] let parts: Vec<(Rect, Vec)> = { use rayon::prelude::*; - chunk.par_iter().map(run).collect() + chunk.par_iter().map(|&b| st.band(s, b)).collect() }; #[cfg(target_arch = "wasm32")] - let parts: Vec<(Rect, Vec)> = chunk.iter().map(run).collect(); + let parts: Vec<(Rect, Vec)> = chunk.iter().map(|&b| st.band(s, b)).collect(); for (r, d) in parts { out.write_region(r, &d); } @@ -539,6 +590,101 @@ fn resize_pass(s: &Surface, pass: Pass, canvas: Option, budget: usize, ctl out } +/// [`resize_surface`] (or, with a canvas, [`resize_surface_in_canvas`]) in resumable steps, for a +/// caller that cannot block, such as the web build with no threads: [`ResizeSteps::step`] computes +/// bands of output rows until the caller says to stop, and returns the surface once they are all +/// done. It runs [`resize_with_budget`]'s passes and [`resize_pass`]'s bands through the same +/// code, so its result equals [`resize_surface`]'s. +pub struct ResizeSteps { + /// The current pass's source: the input, then each pass's output. + src: Surface, + passes: std::vec::IntoIter, + total: usize, + canvas: Option, + filter: Resample, + scale: (f64, f64), + run: Option, + /// Final pruning must yield too: sparse output can contain many default-filled tiles. + prune: Option, +} + +/// The pass being computed by [`ResizeSteps`]. +struct PassRun { + pass: Pass, + state: PassState, + out: Surface, + next: usize, +} + +impl ResizeSteps { + /// Resizes `src` by `(sx, sy)` about the document origin, as [`resize_surface`] (no `canvas`) + /// or [`resize_surface_in_canvas`] does. + pub fn new(src: Surface, sx: f64, sy: f64, filter: Resample, canvas: Option) -> Self { + let passes = plan(filter, sx, sy); + Self { src, total: passes.len(), passes: passes.into_iter(), canvas, filter, scale: (sx, sy), run: None, prune: None } + } + + /// How far along it is, `0.0..=1.0`: whole passes plus the bands done of the current one. + pub fn progress(&self) -> f32 { + let done = self.total.saturating_sub(self.passes.len() + usize::from(self.run.is_some())); + let part = self.run.as_ref().map_or(0.0, |r| r.next as f32 / r.state.bands().max(1) as f32); + ((done as f32 + part) / self.total.max(1) as f32).clamp(0.0, 1.0) + } + + /// Does at least one unit of work (planning a pass, one band of 64 output rows, or the + /// closing prune batch) and goes on while `more()` returns true. `Some` once the resize is done. + pub fn step(&mut self, more: &mut dyn FnMut() -> bool) -> Option { + loop { + match self.run.take() { + None => { + if let Some(pass) = self.passes.next() { + let out = Surface::with_default(self.src.format(), &self.src.default_pixel()); + match PassState::new(&self.src, pass, self.canvas, READ_BUDGET) { + Some(state) => self.run = Some(PassRun { pass, state, out, next: 0 }), + None => self.advance(out, pass), + } + } else if let Some(out) = self.finish_step() { + return Some(out); + } + } + Some(mut run) if run.next < run.state.bands() => { + let (r, data) = run.state.band(&self.src, run.next); + run.out.write_region(r, &data); + run.next += 1; + self.run = Some(run); + } + Some(run) => self.advance(run.out, run.pass), + } + if !more() { + return None; + } + } + } + + /// The next pass reads this one's output. + fn advance(&mut self, out: Surface, pass: Pass) { + self.canvas = self.canvas.map(|c| scaled_rect(c, pass.sx, pass.sy)); + self.src = out; + } + + /// The last pass's output, with the same final pruning as [`resize_with_budget`], but at + /// most four tiles per unit so a broad transparent area cannot monopolize the closing poll. + fn finish_step(&mut self) -> Option { + if self.prune.is_none() { + let placeholder = Surface::new(self.src.format()); + let out = std::mem::replace(&mut self.src, placeholder); + self.src = preserve_details(out, self.filter, self.scale.0, self.scale.1); + self.prune = Some(self.src.prune_cursor()); + } + let cursor = self.prune.as_mut()?; + if !self.src.prune_batch(cursor, 4) { + return None; + } + let placeholder = Surface::new(self.src.format()); + Some(std::mem::replace(&mut self.src, placeholder)) + } +} + /// Moves a surface by whole pixels (default pixel kept). pub fn translate_surface(s: &Surface, dx: i32, dy: i32) -> Surface { s.translated(dx, dy, s.content_bounds()) diff --git a/crates/algo/src/resample/tests.rs b/crates/algo/src/resample/tests.rs index 2407457a2d..6e410f1c5d 100644 --- a/crates/algo/src/resample/tests.rs +++ b/crates/algo/src/resample/tests.rs @@ -434,3 +434,162 @@ fn controlled_resize_matches_pixels_and_discards_cancelled_work() { assert!(resize_surface_with_interrupt(&src, 1.7, 0.6, Resample::Bicubic, &ctl).is_err()); } } + +/// Every band group of a pass asks `ctl` again, not only the start of each pass: counting the +/// calls catches a missing per-group check, which a cancel (that fails at the first call or at the +/// final one alike) cannot. +#[test] +fn controlled_resize_checks_cancellation_per_band_group() { + for depth in [SampleType::U8, SampleType::U16, SampleType::F32] { + let src = ramp(depth); + let calls = std::sync::atomic::AtomicUsize::new(0); + let cancelled = || { + calls.fetch_add(1, std::sync::atomic::Ordering::Relaxed); + false + }; + let progress = |_| {}; + let ctl = photocraft_raster::Interrupt::new(&cancelled, &progress); + assert!(resize_surface_with_interrupt(&src, 1.7, 0.6, Resample::Bicubic, &ctl).is_ok()); + let passes = plan(Resample::Bicubic, 1.7, 0.6).len(); + let checks = calls.load(std::sync::atomic::Ordering::Relaxed); + assert!(checks > passes + 2, "{checks} cancellation checks for {passes} passes; per-group checks are missing"); + } +} + +/// A pseudo-random surface of `w`×`h` in a format of `mode`, `sample` and `alpha`. +fn noisy(w: i32, h: i32, mode: ColorMode, sample: SampleType, alpha: bool) -> Surface { + let fmt = PixelFormat::new(mode, sample, alpha); + let n = fmt.channels(); + let mut seed = 0x2545_f491u32; + let v: Vec = (0..w as usize * h as usize * n) + .map(|_| { + seed = seed.wrapping_mul(1_664_525).wrapping_add(1_013_904_223); + (seed >> 8) as f32 / (1u32 << 24) as f32 + }) + .collect(); + let mut s = Surface::new(fmt); + s.write_region(Rect::new(0, 0, w, h), &v); + s +} + +/// Drives `steps` to the end, `per_call` units of work at a time (0: unlimited); returns the +/// surface and how many calls it took. +fn drive(mut steps: ResizeSteps, per_call: usize) -> (Surface, usize) { + let mut calls = 0; + loop { + calls += 1; + let mut left = per_call; + let mut more = || { + left = left.wrapping_sub(1); + per_call == 0 || left > 0 + }; + if let Some(s) = steps.step(&mut more) { + return (s, calls); + } + assert!(calls < 10_000, "the resize never finished"); + } +} + +#[test] +fn steps_equal_resize_surface() { + let cases = [ + (SampleType::U8, ColorMode::Rgb, true), + (SampleType::U16, ColorMode::Rgb, false), + (SampleType::F32, ColorMode::Rgb, true), + (SampleType::U8, ColorMode::Grayscale, true), + ]; + for (sample, mode, alpha) in cases { + let src = noisy(150, 130, mode, sample, alpha); + // Up, down, one axis each way, and enough output rows for several bands. + for (sx, sy) in [(0.6, 0.6), (1.7, 1.7), (0.4, 2.2), (1.0, 0.5)] { + for filter in [Resample::Bicubic, Resample::Lanczos, Resample::BicubicAutomatic, Resample::Nearest] { + let expected = resize_surface(&src, sx, sy, filter); + for per_call in [0, 1, 7] { + let (got, _) = drive(ResizeSteps::new(src.clone(), sx, sy, filter, None), per_call); + assert!(got == expected, "{sample:?} {mode:?} alpha={alpha} scale=({sx}, {sy}) {filter:?} per_call={per_call}"); + } + } + } + } +} + +#[test] +fn steps_equal_resize_surface_in_canvas() { + let src = noisy(90, 70, ColorMode::Rgb, SampleType::U8, true); + let canvas = Rect::new(0, 0, 90, 70); + for (sx, sy) in [(0.7, 0.7), (1.9, 1.3)] { + let expected = resize_surface_in_canvas(&src, sx, sy, Resample::Bicubic, canvas); + let (got, _) = drive(ResizeSteps::new(src.clone(), sx, sy, Resample::Bicubic, Some(canvas)), 1); + assert!(got == expected, "scale=({sx}, {sy})"); + } +} + +#[test] +fn steps_take_several_calls_and_report_progress() { + let src = noisy(120, 300, ColorMode::Rgb, SampleType::U8, true); + let mut steps = ResizeSteps::new(src, 0.9, 0.9, Resample::Bicubic, None); + assert_eq!(steps.progress(), 0.0); + let mut seen = Vec::new(); + let mut calls = 0; + let out = loop { + calls += 1; + if let Some(s) = steps.step(&mut || false) { + break s; + } + seen.push(steps.progress()); + }; + // Planning, one call per 64-row band (270 rows: five), and the closing call. + assert!(calls >= 6, "{calls}"); + assert!(seen.windows(2).all(|w| w[0] <= w[1]), "progress goes back: {seen:?}"); + assert!(seen.iter().all(|p| (0.0..=1.0).contains(p))); + assert_eq!(out.content_bounds(), Rect::new(0, 0, 108, 270)); +} + +#[test] +fn steps_of_an_empty_surface_are_empty() { + let src = Surface::new(PixelFormat::new(ColorMode::Rgb, SampleType::U8, true)); + let expected = resize_surface(&src, 0.5, 0.5, Resample::Bicubic); + let (got, _) = drive(ResizeSteps::new(src, 0.5, 0.5, Resample::Bicubic, None), 1); + assert!(got == expected); +} + +/// A transparent image with distant opaque corners keeps broad resize bounds. Its empty +/// output tiles must be pruned across polls rather than scanning the whole surface at once. +#[test] +fn sparse_resize_final_pruning_yields_between_tile_batches() { + for sample in [SampleType::U8, SampleType::U16, SampleType::F32] { + sparse_resize_final_pruning(sample); + } +} + +fn sparse_resize_final_pruning(sample: SampleType) { + let mut src = Surface::new(PixelFormat::new(ColorMode::Rgb, sample, true)); + for (x0, y0) in [(0, 0), (4600, 504)] { + for y in y0..y0 + 8 { + for x in x0..x0 + 8 { + src.write_pixel(x, y, &[1.0, 0.0, 0.0, 1.0]); + } + } + } + let expected = resize_surface(&src, 0.5, 0.5, Resample::Nearest); + let mut steps = ResizeSteps::new(src, 0.5, 0.5, Resample::Nearest, None); + let mut polls = 0; + while !steps.passes.as_slice().is_empty() || steps.run.is_some() { + assert!(steps.step(&mut || false).is_none()); + polls += 1; + assert!(polls < 100, "the resize passes did not finish"); + } + let unpruned = steps.src.tile_count(); + assert!(unpruned >= 9, "the fixture must leave a broad output to scan: {unpruned}"); + let mut closing_polls = 0; + let actual = loop { + closing_polls += 1; + if let Some(out) = steps.step(&mut || false) { + break out; + } + assert!(closing_polls < 100, "the final prune did not finish"); + }; + assert!(closing_polls >= unpruned.div_ceil(4), "{unpruned} tiles were scanned in {closing_polls} closing polls"); + assert!(actual == expected, "stepped pruning must preserve pixels and remove the same empty tiles"); + assert!(actual.tile_count() < unpruned, "the fixture must include default-filled output tiles"); +} diff --git a/crates/automation/src/headless.rs b/crates/automation/src/headless.rs index f6e3fd4a12..db662ada64 100644 --- a/crates/automation/src/headless.rs +++ b/crates/automation/src/headless.rs @@ -661,7 +661,7 @@ mod waited_error_tests { fn waited_job_keeps_typed_failure() { let mut headless = Headless::trusted_local(); let id = JobId(123); - let error = photocraft_engine::EngineError::PsdHardBudget { name: "large.psd".into(), required: 9000, limit: 4000 }; + let error = photocraft_engine::EngineError::PsdHardBudget { name: "large.psd".into(), required: 9000, limit: 4000, free_memory: None }; headless.waited.insert( id, Some(JobEvent { diff --git a/crates/automation/src/rpc.rs b/crates/automation/src/rpc.rs index 80b5a32165..0f7540d139 100644 --- a/crates/automation/src/rpc.rs +++ b/crates/automation/src/rpc.rs @@ -79,12 +79,16 @@ fn attach_memory_error_details(obj: &mut Value, err: &AutomationError) { } } } - AutomationError::Import(photocraft_io::IoError::PsdImportBudget { required, limit }) - | AutomationError::Engine(photocraft_engine::EngineError::PsdHardBudget { required, limit, .. }) => { + AutomationError::Import(photocraft_io::IoError::PsdImportBudget { required, limit, free_memory }) + | AutomationError::Engine(photocraft_engine::EngineError::PsdHardBudget { required, limit, free_memory, .. }) => { if let Some(m) = obj.as_object_mut() { m.insert("required".into(), json!(required)); m.insert("hard".into(), json!(limit)); m.insert("hardLimit".into(), json!(limit)); + if let Some(free) = free_memory { + m.insert("available".into(), json!(free)); + m.insert("availableRam".into(), json!(free)); + } } } _ => {} diff --git a/crates/automation/src/rpc/tests.rs b/crates/automation/src/rpc/tests.rs index 8bd57a871a..cecc69f376 100644 --- a/crates/automation/src/rpc/tests.rs +++ b/crates/automation/src/rpc/tests.rs @@ -1092,7 +1092,12 @@ fn approve_high_memory_rejects_invalid_types_and_formats_structured_error() { // fields, and only the fields an approval request has: no soft limit and no capacity, since // no approval can raise the ceiling. let mut hard_obj = json!({"id": 2, "ok": false, "error": "test"}); - let hard = crate::AutomationError::Engine(photocraft_engine::EngineError::PsdHardBudget { name: "big.psd".into(), required: 9000, limit: 8000 }); + let hard = crate::AutomationError::Engine(photocraft_engine::EngineError::PsdHardBudget { + name: "big.psd".into(), + required: 9000, + limit: 8000, + free_memory: None, + }); super::attach_memory_error_details(&mut hard_obj, &hard); assert_eq!(hard_obj["required"], 9000); assert_eq!(hard_obj["hard"], 8000); @@ -1100,6 +1105,20 @@ fn approve_high_memory_rejects_invalid_types_and_formats_structured_error() { for absent in ["soft", "softLimit", "available", "availableRam"] { assert!(hard_obj.get(absent).is_none(), "a hard refusal has no {absent}: {hard_obj}"); } + + // When measured free memory set the limit, the refusal also reports it. + let mut low_obj = json!({"id": 3, "ok": false, "error": "test"}); + let low = crate::AutomationError::Engine(photocraft_engine::EngineError::PsdHardBudget { + name: "big.psd".into(), + required: 9000, + limit: 8000, + free_memory: Some(10_000), + }); + super::attach_memory_error_details(&mut low_obj, &low); + assert_eq!(low_obj["hardLimit"], 8000); + assert_eq!(low_obj["available"], 10_000); + assert_eq!(low_obj["availableRam"], 10_000); + assert!(low_obj.get("soft").is_none(), "a hard refusal has no soft limit: {low_obj}"); } /// #10897: `doc.place` forwards the strict one-shot high-memory approval on both routes: the diff --git a/crates/automation/src/server.rs b/crates/automation/src/server.rs index 4f210b07f4..46468e0352 100644 --- a/crates/automation/src/server.rs +++ b/crates/automation/src/server.rs @@ -514,8 +514,9 @@ fn png_result(png: &[u8], note: String) -> CallToolResult { } /// Adds the typed byte counts of a memory refusal to an error object: an approval request keeps -/// its soft limit, hard limit and (when known) capacity; a hard refusal keeps only its required -/// and hard amounts, because no approval can raise that ceiling. +/// its soft limit, hard limit and (when known) capacity; a hard refusal keeps its required and +/// hard amounts, because no approval can raise that ceiling, and adds the free memory when +/// measured memory set the limit. fn attach_memory_error_details(obj: &mut Value, err: &AutomationError) { let Some(obj) = obj.as_object_mut() else { return }; match err { @@ -531,11 +532,15 @@ fn attach_memory_error_details(obj: &mut Value, err: &AutomationError) { obj.insert("availableRam".into(), json!(avail)); } } - AutomationError::Import(photocraft_io::IoError::PsdImportBudget { required, limit }) - | AutomationError::Engine(photocraft_engine::EngineError::PsdHardBudget { required, limit, .. }) => { + AutomationError::Import(photocraft_io::IoError::PsdImportBudget { required, limit, free_memory }) + | AutomationError::Engine(photocraft_engine::EngineError::PsdHardBudget { required, limit, free_memory, .. }) => { obj.insert("required".into(), json!(required)); obj.insert("hard".into(), json!(limit)); obj.insert("hardLimit".into(), json!(limit)); + if let Some(free) = free_memory { + obj.insert("available".into(), json!(free)); + obj.insert("availableRam".into(), json!(free)); + } } _ => {} } @@ -1614,7 +1619,12 @@ mod tests { assert!(serde_json::from_value::(json!({"path": "file.psd", "approve_high_memory": invalid})).is_err(), "{invalid}"); } - let err = AutomationError::Engine(photocraft_engine::EngineError::PsdHardBudget { name: "huge.psd".into(), required: 9_000, limit: 8_000 }); + let err = AutomationError::Engine(photocraft_engine::EngineError::PsdHardBudget { + name: "huge.psd".into(), + required: 9_000, + limit: 8_000, + free_memory: None, + }); let res = to_result(Err(err)).unwrap(); assert_eq!(res.is_error, Some(true)); let text = &res.content.first().and_then(|c| c.as_text()).unwrap().text; @@ -1625,6 +1635,21 @@ mod tests { for absent in ["soft", "softLimit", "available", "availableRam"] { assert!(v.get(absent).is_none(), "a hard refusal has no {absent}: {v}"); } + + // With measured free memory behind the limit, the refusal reports it too. + let err = AutomationError::Engine(photocraft_engine::EngineError::PsdHardBudget { + name: "huge.psd".into(), + required: 9_000, + limit: 8_000, + free_memory: Some(10_000), + }); + let res = to_result(Err(err)).unwrap(); + let text = &res.content.first().and_then(|c| c.as_text()).unwrap().text; + let v: Value = serde_json::from_str(text).unwrap(); + assert_eq!(v["hardLimit"], 8_000); + assert_eq!(v["available"], 10_000); + assert_eq!(v["availableRam"], 10_000); + assert!(v.get("soft").is_none(), "a hard refusal has no soft limit: {v}"); } /// The MCP server applies finished jobs before every tool call too (#503). diff --git a/crates/automation/src/workspace/tests.rs b/crates/automation/src/workspace/tests.rs index 1750623eae..3e0f5e7d82 100644 --- a/crates/automation/src/workspace/tests.rs +++ b/crates/automation/src/workspace/tests.rs @@ -745,6 +745,7 @@ fn documents_filesystem_path_params(id: &str, params: &str) -> bool { | "path.clippingPath.set" | "path.rename" | "path.stroke" + | "path.toShape" | "type.attachToPath" | "type.fillPath" | "type.detachFromPath" diff --git a/crates/codecs/src/codecs/png.rs b/crates/codecs/src/codecs/png.rs index 6ba9b4c6b5..d1ff5140cb 100644 --- a/crates/codecs/src/codecs/png.rs +++ b/crates/codecs/src/codecs/png.rs @@ -7,7 +7,7 @@ use crate::Format; use crate::error::CodecError; use crate::fidelity::Plan; use crate::image::{ChannelLayout, DecodeWarning, Image, Metadata, SampleType}; -use crate::options::{EncodeOptions, Limits, PngCompression, PngStereo, alloc_zeroed}; +use crate::options::{EncodeOptions, Limits, PngCompression, PngStereo}; const F: Format = Format::Png; pub(crate) const XMP_KEYWORD: &str = "XML:com.adobe.xmp"; @@ -26,50 +26,596 @@ pub(crate) fn dpi_of_ppm(ppm: u32) -> f32 { if (whole / f64::from(METERS_PER_INCH)).round() == f64::from(ppm) { whole as f32 } else { dpi as f32 } } -/// A PNG opened for decoding: the header read and checked, the output layout and sample type -/// chosen. Shared by [`decode`] (the whole image at once) and [`decode_rows`] (row by row). -struct Opened<'a, 'b> { - reader: png::Reader<&'a mut Cursor<&'b [u8]>>, - layout: ChannelLayout, - sample: SampleType, - /// Images in the file, counting an APNG's frames and its default image. - images: u64, +/// Decodes a whole PNG, by driving a [`PngDecodeRows`] to its end. +pub(crate) fn decode(bytes: &[u8], limits: &Limits) -> Result { + PngDecodeRows::new(bytes, limits)?.step(&mut || true)?.ok_or_else(|| err("the decoder stopped before the image ended")) } -fn open<'a, 'b>(input: &'a mut Cursor<&'b [u8]>, limits: &Limits) -> Result, CodecError> { - let file_len = input.get_ref().len(); - let mut decoder = png::Decoder::new_with_limits(input, png::Limits { bytes: limits.alloc_usize() }); - decoder.set_transformations(png::Transformations::EXPAND); - // png's lazy text get_text() inflates without consulting its allocation limit. - // Read text separately below, without retaining compressed copies in the decoder. - decoder.set_ignore_text_chunk(true); - { - let info = decoder.read_header_info().map_err(map_png_err)?; - let (w, h) = info.size(); - // Worst case output: 4 channels x 16 bit. - limits.check_bytes(w, h, 8)?; - // zlib never beats 1032:1; refuse a file too small for the declared image before the - // output buffer exists. Measured on the stored samples (before palette/bit expansion). - let stored = u64::from(w).saturating_mul(u64::from(h)).saturating_mul(info.bits_per_pixel() as u64).div_ceil(8); - Limits::check_plausible(stored, file_len, 1100)?; +/// PNG bytes shared between the decoder and whoever else keeps them (a placed file's embedded +/// source): cloning shares the buffer. +#[derive(Debug, Clone)] +pub struct SharedBytes(pub std::sync::Arc>); + +impl AsRef<[u8]> for SharedBytes { + fn as_ref(&self) -> &[u8] { + self.0.as_slice() + } +} + +/// The input of a [`PngDecodeRows`] decoder: a cursor that also tells where the reader stopped, which +/// the text chunks after the image are read up to. +struct Tracked { + cursor: Cursor, + at: std::sync::Arc, +} + +impl> Tracked { + fn sync(&self) { + self.at.store(self.cursor.position(), std::sync::atomic::Ordering::Relaxed); + } +} + +impl> std::io::Read for Tracked { + fn read(&mut self, buf: &mut [u8]) -> std::io::Result { + let n = self.cursor.read(buf)?; + self.sync(); + Ok(n) + } +} + +impl> std::io::BufRead for Tracked { + fn fill_buf(&mut self) -> std::io::Result<&[u8]> { + self.cursor.fill_buf() + } + + fn consume(&mut self, amt: usize) { + self.cursor.consume(amt); + self.sync(); + } +} + +impl> std::io::Seek for Tracked { + fn seek(&mut self, pos: std::io::SeekFrom) -> std::io::Result { + let at = self.cursor.seek(pos)?; + self.sync(); + Ok(at) + } +} + +/// The decoder's input, shared between the reader and the metadata pass: moving an owned buffer in +/// doesn't keep a second copy of it. +struct SharedInput(std::sync::Arc); + +impl Clone for SharedInput { + fn clone(&self) -> Self { + Self(std::sync::Arc::clone(&self.0)) + } +} + +impl> AsRef<[u8]> for SharedInput { + fn as_ref(&self) -> &[u8] { + (*self.0).as_ref() + } +} + +/// A PNG decoded in resumable steps, for a caller that must not block for the whole image (the +/// web build, which has no threads): [`PngDecodeRows::step`] decodes rows until the caller says to +/// stop, and returns the [`Image`] once the last row and the chunks after it are read. [`decode`] +/// drives one to the end, so the two give the same image. +/// +/// An interlaced (Adam7) PNG decodes in a single step: its passes land at stride positions all +/// over the image, so no row is final before the last pass. +pub struct PngDecodeRows> { + reader: png::Reader>>, + at: std::sync::Arc, + bytes: SharedInput, + limits: Limits, + buf: Vec, + layout: ChannelLayout, + sample: SampleType, + /// The image's size (the first frame's, for an animation) and bytes per output row. + width: u32, + height: usize, + line: usize, + /// The decoder's whole output size, for an interlaced image's single frame decode. + size: usize, + rows: usize, + /// For [`PngDecodeRows::step_stream`]: the first row of the group held in `buf`. + group_start: usize, + interlaced: bool, + images: u64, + /// The chunks after the pixels: scanned from `text_at` up to `text_end`, a batch at a time, + /// with `text` keeping what was accepted and the decompressor's state. + text_at: usize, + text_end: usize, + text: TextScan, + /// True once the pixel reader has been finished and the tail is known. + tail: bool, + done: bool, + /// Test-only count of the pixel finalization: metadata yields must not repeat it. + #[cfg(test)] + pixel_finalizations: u32, +} + +impl> PngDecodeRows { + /// Reads the header and refuses what [`decode`] refuses before any pixel is decoded: sizes + /// past `limits`, and a file too small for the image it declares. + pub fn new(bytes: B, limits: &Limits) -> Result { + Self::open(bytes, limits, true) + } + + /// [`PngDecodeRows::new`], optionally without reserving the whole image: a caller that hands + /// the rows on as they come ([`decode_rows`]) never holds them all. + fn open(bytes: B, limits: &Limits, reserve: bool) -> Result { + let at = std::sync::Arc::new(std::sync::atomic::AtomicU64::new(0)); + let bytes = SharedInput(std::sync::Arc::new(bytes)); + let input = Tracked { cursor: Cursor::new(bytes.clone()), at: at.clone() }; + let mut decoder = png::Decoder::new_with_limits(input, png::Limits { bytes: limits.alloc_usize() }); + decoder.set_transformations(png::Transformations::EXPAND); + // png's lazy text get_text() inflates without consulting its allocation limit. + // Read text separately below, without retaining compressed copies in the decoder. + decoder.set_ignore_text_chunk(true); + { + let info = decoder.read_header_info().map_err(map_png_err)?; + let (w, h) = info.size(); + // Size checks now; the allocation budget once the output layout (channels and sample + // size) is known below, so a Gray8 image isn't charged for RGBA16. + limits.check_size(w, h)?; + // zlib never beats 1032:1; refuse a file too small for the declared image before the + // output buffer exists. Measured on the stored samples (before palette/bit expansion). + let stored = u64::from(w).saturating_mul(u64::from(h)).saturating_mul(info.bits_per_pixel() as u64).div_ceil(8); + Limits::check_plausible(stored, bytes.as_ref().len(), 1100)?; + } + let reader = decoder.read_info().map_err(map_png_err)?; + // APNG: the IDAT image is the first frame, or an extra default image when no fcTL precedes it. + let images = reader.info().animation_control.map_or(1, |a| u64::from(a.num_frames) + u64::from(reader.info().frame_control.is_none())); + let (color, depth) = reader.output_color_type(); + let layout = match color { + png::ColorType::Grayscale => ChannelLayout::Gray, + png::ColorType::GrayscaleAlpha => ChannelLayout::GrayA, + png::ColorType::Rgb => ChannelLayout::Rgb, + png::ColorType::Rgba => ChannelLayout::Rgba, + png::ColorType::Indexed => return Err(err("palette was not expanded")), + }; + let sample = match depth { + png::BitDepth::Eight => SampleType::U8, + png::BitDepth::Sixteen => SampleType::U16, + d => return Err(err(format!("unexpected output bit depth {d:?}"))), + }; + // The frame the pixels are of: an fcTL before the IDAT overrides the header's size. + let info = reader.info(); + let (width, height) = info.frame_control.map_or_else(|| info.size(), |f| (f.width, f.height)); + let line = reader.output_line_size(width).ok_or_else(|| err("image too large"))?; + // The output layout is known: charge its real bytes per pixel, not RGBA16's worst case. + limits.check(width, height, layout, sample)?; + let height = usize::try_from(height).map_err(|_| err("image too large"))?; + if width == 0 || height == 0 { + return Err(err("the image is empty")); + } + let size = reader.output_buffer_size().ok_or_else(|| err("image too large"))?; + if line.checked_mul(height).is_none_or(|needed| needed > size) { + return Err(err("image too large")); + } + // Reserve without touching: each row is zero-filled as it is decoded, so the first slice + // doesn't zero-fill the whole image (a stall on the web build). + let mut buf = Vec::new(); + if reserve { + buf.try_reserve_exact(size).map_err(|_| CodecError::LimitExceeded(format!("cannot allocate {size} bytes for the image")))?; + } + let interlaced = info.interlaced; + Ok(Self { + reader, + at, + bytes, + limits: *limits, + buf, + layout, + sample, + width, + height, + line, + size, + rows: 0, + group_start: 0, + interlaced, + images, + text_at: 8, + text_end: 0, + text: TextScan::default(), + tail: false, + done: false, + #[cfg(test)] + pixel_finalizations: 0, + }) + } + + /// [`PngDecodeRows::new`] without reserving the whole image, for a caller that streams the rows + /// ([`PngDecodeRows::step_stream`]) and so never holds them all. A caller that finds it must + /// decode the whole image after all (an interlaced file) calls + /// [`PngDecodeRows::reserve_output`] before [`PngDecodeRows::step`]. + pub fn new_streaming(bytes: B, limits: &Limits) -> Result { + Self::open(bytes, limits, false) + } + + /// Reserves the buffer [`PngDecodeRows::step`] decodes the whole image into. + pub fn reserve_output(&mut self) -> Result<(), CodecError> { + let size = self.size; + self.buf.try_reserve_exact(size).map_err(|_| CodecError::LimitExceeded(format!("cannot allocate {size} bytes for the image"))) + } + + /// Whether the rows come in final order, so [`PngDecodeRows::step_stream`] can hand them on: + /// not an interlaced file, not an APNG (its first frame may be a sub-rectangle), and not one + /// whose `eXIf` before the image data asks for another orientation. (An `eXIf` after the image + /// data shows only in [`PngExtras::orientation`] at the end.) + pub fn streamable(&self) -> bool { + let info = self.reader.info(); + let upright = info.exif_metadata.as_deref().is_none_or(|e| crate::orientation::exif_orientation(e) == 1); + !self.interlaced && info.animation_control.is_none() && upright + } + + /// The size and pixel format the rows of [`PngDecodeRows::step_stream`] come in. + pub fn header(&self) -> PngHeader { + PngHeader { width: self.width, height: u32::try_from(self.height).unwrap_or(u32::MAX), layout: self.layout, sample: self.sample } + } + + /// The image's width and height in pixels. + pub fn size(&self) -> (u32, u32) { + (self.width, u32::try_from(self.height).unwrap_or(u32::MAX)) + } + + /// How much of the image is decoded, `0.0..=1.0`. + pub fn progress(&self) -> f32 { + if self.done { 1.0 } else { self.rows as f32 / self.height.max(1) as f32 } + } + + /// Decodes at least one row (the whole image if it is interlaced), then goes on while `more()` + /// returns true. `Some` once the image is complete, after which the decoder is spent. + pub fn step(&mut self, more: &mut dyn FnMut() -> bool) -> Result, CodecError> { + if self.done { + return Err(err("the image was already decoded")); + } + // Once the pixels are complete and the tail is known, a step only reads metadata: + // running the pixel reader again after `begin_tail` would decode an Adam7 frame twice + // or finish the image data again on every metadata yield. + if !self.tail { + if self.interlaced { + // An Adam7 frame is decoded in one go, over the whole output buffer. + self.buf.resize(self.size, 0); + let out = self.reader.next_frame(&mut self.buf).map_err(map_png_err)?; + self.buf.truncate(out.buffer_size()); + self.rows = self.height; + if self.sample == SampleType::U16 { + to_native_endian(&mut self.buf); + } + } + while self.rows < self.height { + let at = self.rows.checked_mul(self.line).ok_or_else(|| err("image too large"))?; + let end = at.checked_add(self.line).ok_or_else(|| err("image too large"))?; + // Grow by one row at a time: the zero-fill of the output is spread over the decodes + // instead of stalling the first slice. + if self.buf.len() < end { + self.buf.resize(end, 0); + } + let row = self.buf.get_mut(at..end).ok_or_else(|| err("the image data is longer than the image"))?; + self.reader.read_row(row).map_err(map_png_err)?.ok_or_else(|| err("the image data ended early"))?; + if self.sample == SampleType::U16 { + to_native_endian(row); + } + self.rows += 1; + if self.rows < self.height && !more() { + return Ok(None); + } + } + if !self.interlaced { + #[cfg(test)] + { + self.pixel_finalizations += 1; + } + // No row is left: this reads on to the end of the image data. + if self.reader.read_row(&mut []).map_err(map_png_err)?.is_some() { + return Err(err("the image has more rows than its header declares")); + } + self.buf.truncate(self.line.saturating_mul(self.height)); + } + // The chunks after the pixels, one bounded batch at a time: a large text chunk never + // makes one step block, and what was accepted stays accepted when a step stops. + self.begin_tail()?; + } + while !self.text.done { + self.text_batch()?; + if !self.text.done && !more() { + return Ok(None); + } + } + self.done = true; + self.finish().map(Some) + } + + /// Decodes the rows of a [`streamable`](PngDecodeRows::streamable) file a group at a time: + /// `sink(y0, data)` gets whole rows `y0..` in final order, `group` of them at a time (the last + /// group may be shorter; 0 counts as 1), native-endian, exactly the samples [`decode`] would + /// return, and the decoder keeps only that group. Decodes at least one row, then goes on while + /// `more()` returns true; `Some` with the extras once the file is read to its end, with the + /// resolution a format that lacks one takes from its EXIF or XMP. A damaged file fails with + /// the error [`decode`] gives, after however many rows were delivered. An orientation (an + /// `eXIf` after the image data may set one) is for the caller to apply. + pub fn step_stream>( + &mut self, + group: u32, + more: &mut dyn FnMut() -> bool, + sink: &mut PngRowSink<'_, E>, + ) -> Result, E> { + if self.done { + return Err(err("the image was already decoded").into()); + } + let group = usize::try_from(group.max(1)).unwrap_or(usize::MAX); + if !self.tail { + while self.rows < self.height { + let held = self.rows - self.group_start; + let at = held.checked_mul(self.line).ok_or_else(|| err("image too large"))?; + let end = at.checked_add(self.line).ok_or_else(|| err("image too large"))?; + if self.buf.len() < end { + self.buf.try_reserve_exact(end - self.buf.len()).map_err(|_| CodecError::LimitExceeded("cannot allocate a group of rows".into()))?; + self.buf.resize(end, 0); + } + let row = self.buf.get_mut(at..end).ok_or_else(|| err("invalid PNG row group"))?; + if self.reader.read_row(row).map_err(map_png_err)?.is_none() { + return Err(err("the image data ends before the last row").into()); + } + if self.sample == SampleType::U16 { + to_native_endian(row); + } + self.rows += 1; + if self.rows - self.group_start == group || self.rows == self.height { + let data = self.buf.get(..end).ok_or_else(|| err("invalid PNG row group"))?; + sink(u32::try_from(self.group_start).map_err(|_| err("image too large"))?, data)?; + self.group_start = self.rows; + } + if self.rows < self.height && !more() { + return Ok(None); + } + } + // Past the last row: trailing damage fails the same way it does in `decode`. + if self.reader.read_row(&mut []).map_err(map_png_err)?.is_some() { + return Err(err("the image has more rows than its header declares").into()); + } + self.begin_tail()?; + } + while !self.text.done { + self.text_batch()?; + if !self.text.done && !more() { + return Ok(None); + } + } + self.done = true; + let mut extras = self.extras(); + // As `decode_as_with` does for every format: a resolution the format lacks comes from EXIF or XMP. + if extras.meta.dpi.is_none() { + extras.meta.dpi = crate::resolution::from_metadata(extras.meta.exif.as_deref(), extras.meta.xmp.as_deref()); + } + Ok(Some(extras)) + } + + /// Finishes the pixel reader and fixes where the metadata scan ends. Tolerate malformed + /// tails once pixels are complete, but never swallow an allocation-limit failure. + fn begin_tail(&mut self) -> Result<(), CodecError> { + if let Err(e @ png::DecodingError::LimitsExceeded) = self.reader.finish() { + return Err(map_png_err(e)); + } + self.text_end = usize::try_from(self.at.load(std::sync::atomic::Ordering::Relaxed)).map_err(|_| err("invalid PNG reader position"))?; + self.text.remaining = self.limits.alloc_usize(); + self.tail = true; + Ok(()) + } + + /// Reads one bounded batch of the chunks after the pixels: up to [`TEXT_CHUNK_BATCH`] chunks, + /// or one batch of one text chunk's CRC or value while either is mid-stream. + fn text_batch(&mut self) -> Result<(), CodecError> { + let bytes = self.bytes.clone(); + let bytes = bytes.as_ref(); + if let Some(pending) = self.text.pending.take() { + match pending { + TextPending::Crc(p) => self.crc_batch(p, bytes)?, + TextPending::Value(p) => match inflate_text(p, bytes)? { + TextBatch::More(p) => self.text.pending = Some(TextPending::Value(p)), + TextBatch::Finished(p) => { + let (keyword, keyword_len, kind, text) = (p.keyword, p.keyword_len, p.kind, p.out); + self.text.accept(keyword, keyword_len, kind, text)?; + } + TextBatch::Invalid(produced) => self.text.charge(produced)?, + }, + } + return Ok(()); + } + let mut chunks = 0; + while chunks < TEXT_CHUNK_BATCH && !self.text.done { + if self.scan_text_chunk(bytes)? { + break; + } + chunks += 1; + } + Ok(()) + } + + /// Hashes one bounded batch of a text chunk's data. Only a fully CRC-valid chunk is parsed + /// into a value, so a broken chunk is still dropped before its keyword or flags are used. + fn crc_batch(&mut self, mut p: PendingCrc, bytes: &[u8]) -> Result<(), CodecError> { + let Some(left) = p.data.end.checked_sub(p.at) else { return Ok(()) }; + let take = left.min(TEXT_BATCH); + let Some(end) = p.at.checked_add(take) else { return Ok(()) }; + let Some(slice) = bytes.get(p.at..end) else { return Ok(()) }; + p.crc.update(slice); + p.at = end; + if p.at < p.data.end { + self.text.pending = Some(TextPending::Crc(p)); + return Ok(()); + } + if p.crc.sum() != p.checksum { + return Ok(()); + } + let Some(data) = bytes.get(p.data.clone()) else { return Ok(()) }; + if let Some(value) = self.pending_text(p.kind, data, p.data.start)? { + self.text.pending = Some(TextPending::Value(value)); + } + Ok(()) + } + + /// The value of a CRC-valid text chunk, with its decoded keyword and where its bytes start. + fn pending_text(&self, kind: [u8; 4], data: &[u8], data_at: usize) -> Result, CodecError> { + // A keyword is 1..=79 Latin-1 bytes, so only the start of the chunk can hold it. + let Some(nul) = data.iter().take(80).position(|&b| b == 0) else { return Ok(None) }; + let Some(keyword) = data.get(..nul) else { return Ok(None) }; + let Some(value_start) = nul.checked_add(1) else { return Ok(None) }; + let Some(value) = data.get(value_start..) else { return Ok(None) }; + if keyword.is_empty() { + return Ok(None); + } + let (value, compressed, latin1, kind) = match &kind { + b"tEXt" => (value, false, true, TextKind::Plain), + b"zTXt" => { + let Some((&0, value)) = value.split_first() else { return Ok(None) }; + (value, true, true, TextKind::Compressed) + } + _ => { + let Some(([flag, method], value)) = value.split_first_chunk::<2>() else { return Ok(None) }; + if *flag > 1 || (*flag == 1 && *method != 0) { + return Ok(None); + } + let Some((language, value)) = split_nul(value) else { return Ok(None) }; + let Some((translated, value)) = split_nul(value) else { return Ok(None) }; + if !language.is_ascii() || std::str::from_utf8(translated).is_err() { + return Ok(None); + } + (value, *flag == 1, false, TextKind::International) + } + }; + let keyword_len = latin1_len(keyword).ok_or_else(text_limit)?; + let keyword: String = keyword.iter().map(|&b| char::from(b)).collect(); + let Some(value_at) = data_at.checked_add(data.len().saturating_sub(value.len())) else { return Ok(None) }; + let Some(value_end) = value_at.checked_add(value.len()) else { return Ok(None) }; + Ok(Some(PendingText { + kind, + keyword, + keyword_len, + limit: self.text.remaining.saturating_sub(keyword_len), + input: value_at..value_end, + at: value_at, + latin1, + decoder: compressed.then(|| flate2::Decompress::new(true)), + // An uncompressed iTXt value's UTF-8 is checked batch by batch, before its budget. + utf8: (!compressed && !latin1).then(Utf8Check::default), + over: false, + out: Vec::new(), + })) + } + + /// Reads the header of the next chunk, starting a text chunk's CRC (which then reads its + /// bytes in batches) or stepping over any other. False when the scan can go on in this + /// batch; true when a text chunk was started and its bytes need their own batches. Sets + /// [`TextScan::done`] at the end of the tail, at `IEND`, or at a malformed one, as the + /// previous one-pass reader did. + fn scan_text_chunk(&mut self, bytes: &[u8]) -> Result { + let Some(rest) = bytes.get(self.text_at..self.text_end) else { + self.text.done = true; + return Ok(false); + }; + let Some((length, rest)) = rest.split_first_chunk::<4>() else { + self.text.done = true; + return Ok(false); + }; + let length = u32::from_be_bytes(*length); + // PNG chunk lengths are at most 2^31-1. Broken tails remain tolerated. + if length > i32::MAX as u32 { + self.text.done = true; + return Ok(false); + } + let Ok(length) = usize::try_from(length) else { + self.text.done = true; + return Ok(false); + }; + let Some((kind, rest)) = rest.split_first_chunk::<4>() else { + self.text.done = true; + return Ok(false); + }; + let Some((_data, rest)) = rest.split_at_checked(length) else { + self.text.done = true; + return Ok(false); + }; + let Some((checksum, _)) = rest.split_first_chunk::<4>() else { + self.text.done = true; + return Ok(false); + }; + let Some(next) = self.text_at.checked_add(12).and_then(|at| at.checked_add(length)).filter(|&at| at <= self.text_end) else { + self.text.done = true; + return Ok(false); + }; + let Some(data_at) = self.text_at.checked_add(8) else { + self.text.done = true; + return Ok(false); + }; + self.text_at = next; + if kind == b"IEND" { + self.text.done = true; + return Ok(false); + } + if !matches!(kind, b"tEXt" | b"zTXt" | b"iTXt") { + return Ok(false); + } + let mut crc = flate2::Crc::new(); + crc.update(kind); + let Some(data_end) = data_at.checked_add(length) else { + self.text.done = true; + return Ok(false); + }; + // The CRC of a large chunk is hashed a bounded batch at a time too, so one metadata + // step never scans the whole chunk. + self.text.pending = + Some(TextPending::Crc(PendingCrc { kind: *kind, data: data_at..data_end, at: data_at, crc, checksum: u32::from_be_bytes(*checksum) })); + Ok(true) + } + + /// What the file holds besides its pixels, with what the metadata scan accepted. + fn extras(&mut self) -> PngExtras { + let info = self.reader.info(); + let icc = info.icc_profile.as_ref().map(|c| c.to_vec()); + let mut meta = Metadata { exif: info.exif_metadata.as_ref().map(|c| c.to_vec()), ..Default::default() }; + if let Some(d) = info.pixel_dims + && d.unit == png::Unit::Meter + && d.xppu > 0 + && d.yppu > 0 + { + meta.dpi = Some((dpi_of_ppm(d.xppu), dpi_of_ppm(d.yppu))); + } + meta.text = std::mem::take(&mut self.text.plain); + meta.text.extend(std::mem::take(&mut self.text.compressed)); + meta.text.extend(std::mem::take(&mut self.text.international)); + meta.xmp = self.text.xmp.take(); + let mut warnings = Vec::new(); + if self.images > 1 { + warnings.push(DecodeWarning::MoreFrames { total: u32::try_from(self.images).ok() }); + } + let orientation = meta.exif.as_deref().map_or(1, crate::orientation::exif_orientation); + PngExtras { icc, meta, warnings, orientation } + } + + /// The image itself, with what the metadata scan accepted. + fn finish(&mut self) -> Result { + let height = u32::try_from(self.height).map_err(|_| err("image too large"))?; + let mut img = Image::from_raw(self.width, height, self.layout, self.sample, std::mem::take(&mut self.buf))?; + let extras = self.extras(); + img.icc = extras.icc; + img.meta = extras.meta; + img.warnings = extras.warnings; + Ok(img) + } +} + +/// 16-bit samples from the file's big-endian bytes to the machine's. +fn to_native_endian(samples: &mut [u8]) { + for c in samples.as_chunks_mut::<2>().0 { + let v = u16::from_be_bytes([c[0], c[1]]); + c.copy_from_slice(&v.to_ne_bytes()); } - let reader = decoder.read_info().map_err(map_png_err)?; - // APNG: the IDAT image is the first frame, or an extra default image when no fcTL precedes it. - let images = reader.info().animation_control.map_or(1, |a| u64::from(a.num_frames) + u64::from(reader.info().frame_control.is_none())); - let (color, depth) = reader.output_color_type(); - let layout = match color { - png::ColorType::Grayscale => ChannelLayout::Gray, - png::ColorType::GrayscaleAlpha => ChannelLayout::GrayA, - png::ColorType::Rgb => ChannelLayout::Rgb, - png::ColorType::Rgba => ChannelLayout::Rgba, - png::ColorType::Indexed => return Err(err("palette was not expanded")), - }; - let sample = match depth { - png::BitDepth::Eight => SampleType::U8, - png::BitDepth::Sixteen => SampleType::U16, - d => return Err(err(format!("unexpected output bit depth {d:?}"))), - }; - Ok(Opened { reader, layout, sample, images }) } /// What a PNG holds besides its pixels. These can sit after the image data (`eXIf`, text), so @@ -82,68 +628,6 @@ pub struct PngExtras { pub orientation: u16, } -/// Reads to the end of the file and collects the profile, EXIF and resolution, which the reader -/// holds; the text chunks and the warnings follow in [`extras`]. -fn finish_reader(mut reader: png::Reader<&mut Cursor<&[u8]>>) -> Result<(Option>, Metadata), CodecError> { - // Collect ancillary chunks after IDAT. Tolerate malformed tails once pixels - // are complete, but never swallow an allocation-limit failure. - if let Err(e @ png::DecodingError::LimitsExceeded) = reader.finish() { - return Err(map_png_err(e)); - } - let info = reader.info(); - let icc = info.icc_profile.as_ref().map(|c| c.to_vec()); - let mut meta = Metadata { exif: info.exif_metadata.as_ref().map(|c| c.to_vec()), ..Default::default() }; - if let Some(d) = info.pixel_dims - && d.unit == png::Unit::Meter - && d.xppu > 0 - && d.yppu > 0 - { - meta.dpi = Some((dpi_of_ppm(d.xppu), dpi_of_ppm(d.yppu))); - } - Ok((icc, meta)) -} - -/// The text chunks (read from `consumed`, the file up to where the reader stopped) and the -/// warnings, completing what [`finish_reader`] collected. -fn extras(icc: Option>, mut meta: Metadata, input: &Cursor<&[u8]>, images: u64, limits: &Limits) -> Result { - let end = usize::try_from(input.position()).map_err(|_| err("invalid PNG reader position"))?; - let consumed = input.get_ref().get(..end).ok_or_else(|| err("invalid PNG reader position"))?; - read_text_metadata(consumed, limits.alloc_usize(), &mut meta)?; - let mut warnings = Vec::new(); - if images > 1 { - warnings.push(DecodeWarning::MoreFrames { total: u32::try_from(images).ok() }); - } - let orientation = meta.exif.as_deref().map_or(1, crate::orientation::exif_orientation); - Ok(PngExtras { icc, meta, warnings, orientation }) -} - -fn be_to_native(samples: &mut [u8]) { - for c in samples.as_chunks_mut::<2>().0 { - let v = u16::from_be_bytes([c[0], c[1]]); - c.copy_from_slice(&v.to_ne_bytes()); - } -} - -pub(crate) fn decode(bytes: &[u8], limits: &Limits) -> Result { - let mut input = Cursor::new(bytes); - let Opened { mut reader, layout, sample, images } = open(&mut input, limits)?; - let size = reader.output_buffer_size().ok_or_else(|| err("image too large"))?; - let mut buf = alloc_zeroed::(size)?; - let out = reader.next_frame(&mut buf).map_err(map_png_err)?; - buf.truncate(out.buffer_size()); - let (width, height) = (out.width, out.height); - let (icc, meta) = finish_reader(reader)?; - if sample == SampleType::U16 { - be_to_native(&mut buf); - } - let mut img = Image::from_raw(width, height, layout, sample, buf)?; - let extras = extras(icc, meta, &input, images, limits)?; - img.icc = extras.icc; - img.meta = extras.meta; - img.warnings = extras.warnings; - Ok(img) -} - /// Inspect APNG's declared images, including a separate default image, without decoding pixels. pub(crate) fn has_additional_images(bytes: &[u8]) -> Result { let limits = Limits::default(); @@ -182,46 +666,13 @@ pub(crate) fn decode_rows>( begin: &mut dyn FnMut(&PngHeader) -> Result, rows: &mut PngRowSink<'_, E>, ) -> Result, E> { - let group = group.max(1); - let mut input = Cursor::new(bytes); - let Opened { mut reader, layout, sample, images } = open(&mut input, limits)?; - let upright = reader.info().exif_metadata.as_deref().is_none_or(|e| crate::orientation::exif_orientation(e) == 1); - if reader.info().interlaced || reader.info().animation_control.is_some() || !upright { + // The limits and plausibility checks are made here, before any row; the output is not reserved. + let mut dec = PngDecodeRows::new_streaming(bytes, limits)?; + if !dec.streamable() || !begin(&dec.header())? { return Ok(None); } - let (width, height) = reader.info().size(); - limits.check(width, height, layout, sample)?; - // The checks `decode` makes of the buffer it allocates for the whole image. - reader.output_buffer_size().ok_or_else(|| err("image too large"))?; - let line = reader.output_line_size(width).ok_or_else(|| err("image too large"))?; - if !begin(&PngHeader { width, height, layout, sample })? { - return Ok(None); - } - let mut buf = alloc_zeroed::(line.checked_mul(group.min(height) as usize).ok_or_else(|| err("image too large"))?)?; - let mut y0 = 0; - while y0 < height { - let n = group.min(height - y0) as usize; - for row in buf.chunks_exact_mut(line.max(1)).take(n) { - if reader.read_row(row).map_err(map_png_err)?.is_none() { - return Err(err("the image data ends before the last row").into()); - } - } - let group = buf.get_mut(..line.saturating_mul(n)).ok_or_else(|| err("invalid PNG row group"))?; - if sample == SampleType::U16 { - be_to_native(group); - } - rows(y0, group)?; - y0 += n as u32; - } - // Past the last row: what `next_frame` does, so trailing damage fails the same way. - reader.read_row(&mut []).map_err(map_png_err)?; - let (icc, meta) = finish_reader(reader)?; - let mut extras = extras(icc, meta, &input, images, limits)?; - // As `decode_as_with` does for every format: a resolution the format lacks comes from EXIF or XMP. - if extras.meta.dpi.is_none() { - extras.meta.dpi = crate::resolution::from_metadata(extras.meta.exif.as_deref(), extras.meta.xmp.as_deref()); - } - Ok(Some(extras)) + // With a `more` that always says go on, the first call decodes the whole file. + dec.step_stream(group, &mut || true, rows) } /// The colour table of a palette PNG (`PLTE`) and the one entry its `tRNS` makes transparent. @@ -307,141 +758,265 @@ fn latin1_len(bytes: &[u8]) -> Option { bytes.len().checked_add(bytes.iter().filter(|&&b| b >= 128).count()) } -/// Read only CRC-valid text chunks, including those after IDAT, with one shared -/// budget for decoded UTF-8 keywords and values (including overwritten XMP). -/// Invalid ancillary text stays optional, as it was with png's text decoder. -fn read_text_metadata(bytes: &[u8], mut remaining: usize, meta: &mut Metadata) -> Result<(), CodecError> { - let Some(mut rest) = bytes.get(8..) else { return Ok(()) }; - let (mut plain, mut compressed, mut international) = (Vec::new(), Vec::new(), Vec::new()); - while let Some((length, tail)) = rest.split_first_chunk::<4>() { - let Some((kind, tail)) = tail.split_first_chunk::<4>() else { break }; - let length = u32::from_be_bytes(*length); - // PNG chunk lengths are at most 2^31-1. Broken tails remain tolerated. - if length > i32::MAX as u32 { - break; - } - let Ok(length) = usize::try_from(length) else { break }; - let Some(data) = tail.get(..length) else { break }; - let Some((checksum, next)) = tail.get(length..).and_then(<[u8]>::split_first_chunk::<4>) else { break }; - rest = next; - if kind == b"IEND" { - break; - } - if !matches!(kind, b"tEXt" | b"zTXt" | b"iTXt") { - continue; - } - let mut crc = flate2::Crc::new(); - crc.update(kind); - crc.update(data); - if crc.sum() != u32::from_be_bytes(*checksum) { - continue; - } - let Some((keyword, value)) = split_nul(data) else { continue }; - if keyword.is_empty() || keyword.len() > 79 { - continue; - } - let (value, deflated, latin1) = match kind { - b"tEXt" => (value, false, true), - b"zTXt" => { - let Some((&0, value)) = value.split_first() else { continue }; - (value, true, true) - } - _ => { - let Some(([flag, method], value)) = value.split_first_chunk::<2>() else { continue }; - if *flag > 1 || (*flag == 1 && *method != 0) { - continue; - } - let Some((language, value)) = split_nul(value) else { continue }; - let Some((translated, value)) = split_nul(value) else { continue }; - if !language.is_ascii() || std::str::from_utf8(translated).is_err() { - continue; - } - (value, *flag == 1, false) - } - }; - let keyword_len = latin1_len(keyword).ok_or_else(text_limit)?; - let limit = remaining.saturating_sub(keyword_len); - // What a chunk inflated is charged even when its text is then dropped (bad UTF-8, a - // corrupt or truncated stream): otherwise every rejected chunk could inflate up to the - // whole remaining budget again. - let (text, produced) = bounded_text(value, deflated, latin1, limit)?; - remaining = remaining.checked_sub(produced).ok_or_else(text_limit)?; - let Some(text) = text else { continue }; - remaining = remaining.checked_sub(keyword_len).ok_or_else(text_limit)?; - let keyword: String = keyword.iter().map(|&b| char::from(b)).collect(); +/// The text chunks after the pixels, accepted one bounded batch at a time: one shared budget for +/// decoded UTF-8 keywords and values (including overwritten XMP), the CRC and decompressor of a +/// chunk kept between batches. Invalid ancillary text stays optional, as it was with png's text +/// decoder. +#[derive(Default)] +struct TextScan { + /// UTF-8 bytes left of [`Limits::max_alloc`] for the text. + remaining: usize, + plain: Vec<(String, String)>, + compressed: Vec<(String, String)>, + international: Vec<(String, String)>, + xmp: Option, + pending: Option, + done: bool, +} + +impl TextScan { + /// Charges `produced` bytes to the shared budget: what a chunk inflated counts even when its + /// text is then dropped (bad UTF-8, a corrupt or truncated stream), or every rejected chunk + /// could inflate up to the whole remaining budget again. + fn charge(&mut self, produced: usize) -> Result<(), CodecError> { + self.remaining = self.remaining.checked_sub(produced).ok_or_else(text_limit)?; + Ok(()) + } + + /// Keeps a decoded value, charging the keyword and text to the shared budget; invalid UTF-8 + /// text is dropped, but what it inflated is still charged. + fn accept(&mut self, keyword: String, keyword_len: usize, kind: TextKind, out: Vec) -> Result<(), CodecError> { + let produced = out.len(); + let Ok(text) = String::from_utf8(out) else { return self.charge(produced) }; + self.remaining = self.remaining.checked_sub(keyword_len).and_then(|left| left.checked_sub(text.len())).ok_or_else(text_limit)?; match kind { // Some writers put XMP in Latin-1 text chunks instead of the usual iTXt. // Treat the reserved keyword consistently, after the same budget checks. - _ if keyword == XMP_KEYWORD => meta.xmp = Some(text), - b"tEXt" => plain.push((keyword, text)), - b"zTXt" => compressed.push((keyword, text)), - _ => international.push((keyword, text)), - } - } - // Preserve the previous decoder's grouping of text entries by chunk type. - meta.text.extend(plain); - meta.text.extend(compressed); - meta.text.extend(international); - Ok(()) -} - -/// No input-sized allocation until its decoded size fits. Inflation uses a -/// fixed scratch buffer and checks each batch before growing the output. -/// Returns the text (`None` when it is dropped) and the bytes produced for it, -/// which the caller charges whether or not the text is kept. -fn bounded_text(input: &[u8], compressed: bool, latin1: bool, limit: usize) -> Result<(Option, usize), CodecError> { - let mut output = Vec::new(); - let append = |output: &mut Vec, bytes: &[u8]| -> Result<(), CodecError> { - let added = if latin1 { latin1_len(bytes).ok_or_else(text_limit)? } else { bytes.len() }; - if output.len().checked_add(added).is_none_or(|len| len > limit) { - return Err(text_limit()); - } - output.try_reserve(added).map_err(|_| text_limit())?; - if latin1 { - // Every Latin-1 code point fits in at most two UTF-8 bytes. - let mut utf8 = [0; 2]; - for &b in bytes { - output.extend_from_slice(char::from(b).encode_utf8(&mut utf8).as_bytes()); - } - } else { - output.extend_from_slice(bytes); + _ if keyword == XMP_KEYWORD => self.xmp = Some(text), + TextKind::Plain => self.plain.push((keyword, text)), + TextKind::Compressed => self.compressed.push((keyword, text)), + TextKind::International => self.international.push((keyword, text)), } Ok(()) - }; - if compressed { - let mut decoder = flate2::Decompress::new(true); - let mut scratch = [0; 8192]; - loop { - let start_in = decoder.total_in(); - let start_out = decoder.total_out(); - let Some(tail) = usize::try_from(start_in).ok().and_then(|at| input.get(at..)) else { return Ok((None, output.len())) }; - let Ok(status) = decoder.decompress(tail, &mut scratch, flate2::FlushDecompress::None) else { - // The backend may write a batch before it reports corruption: charge it too. - let written = usize::try_from(decoder.total_out().saturating_sub(start_out)).unwrap_or(usize::MAX); - // Latin-1 text is charged at its UTF-8 length, as on the success path. - let charged = match scratch.get(..written) { - Some(batch) if latin1 => latin1_len(batch).unwrap_or(usize::MAX), - _ => written, - }; - return Ok((None, output.len().saturating_add(charged))); + } +} + +/// Which list a text chunk is kept in, as the previous decoder grouped them by chunk type. +#[derive(Clone, Copy, PartialEq, Eq)] +enum TextKind { + Plain, + Compressed, + International, +} + +/// A text chunk being read: its CRC first, then (when valid) its value. +enum TextPending { + Crc(PendingCrc), + Value(PendingText), +} + +/// The CRC of a text chunk's data, hashed a bounded batch at a time before the chunk is parsed. +struct PendingCrc { + kind: [u8; 4], + /// The chunk's data in the file, and the next byte a batch hashes. + data: std::ops::Range, + at: usize, + crc: flate2::Crc, + checksum: u32, +} + +/// A text chunk's value being read, with its position in the file and (when compressed) the +/// inflator kept between batches. +struct PendingText { + kind: TextKind, + keyword: String, + keyword_len: usize, + /// The most decoded bytes this value may take: the budget left minus its keyword. + limit: usize, + /// The value's bytes in the file (the compressed ones for zTXt and compressed iTXt). + input: std::ops::Range, + /// The next byte of `input` a batch reads or inflates. + at: usize, + latin1: bool, + /// Some for a compressed value. + decoder: Option, + /// Some for an uncompressed iTXt value: its UTF-8 is checked before its bytes are charged. + utf8: Option, + /// The value has outgrown the budget but its UTF-8 validity is still being checked, so an + /// invalid value is still dropped instead of failing the decode. + over: bool, + out: Vec, +} + +/// Incremental UTF-8 validation across batches, so a value that spans batches is checked as a +/// whole before it can fail the budget. A sequence straddling two batches keeps its expected +/// continuation range here. +#[derive(Default)] +struct Utf8Check { + /// Continuation bytes still needed, and the range the next one may take. + need: u8, + min: u8, + max: u8, +} + +impl Utf8Check { + /// Feeds the next bytes of the value; false at the first one that isn't valid UTF-8. + fn feed(&mut self, bytes: &[u8]) -> bool { + for &b in bytes { + if self.need > 0 { + if b < self.min || b > self.max { + return false; + } + self.need -= 1; + (self.min, self.max) = (0x80, 0xBF); + } else { + match b { + 0x00..=0x7f => {} + 0xc2..=0xdf => { + self.need = 1; + (self.min, self.max) = (0x80, 0xBF); + } + 0xe0 => { + self.need = 2; + (self.min, self.max) = (0xa0, 0xBF); + } + 0xe1..=0xec | 0xee..=0xef => { + self.need = 2; + (self.min, self.max) = (0x80, 0xBF); + } + 0xed => { + self.need = 2; + (self.min, self.max) = (0x80, 0x9f); + } + 0xf0 => { + self.need = 3; + (self.min, self.max) = (0x90, 0xBF); + } + 0xf1..=0xf3 => { + self.need = 3; + (self.min, self.max) = (0x80, 0xBF); + } + 0xf4 => { + self.need = 3; + (self.min, self.max) = (0x80, 0x8f); + } + _ => return false, + } + } + } + true + } + + /// Whether the bytes so far end on a whole character. + fn complete(&self) -> bool { + self.need == 0 + } +} + +/// What one batch of a text value produced. +enum TextBatch { + /// The value needs another batch. + More(PendingText), + /// Every byte of the value was read; `out` is its UTF-8 text. + Finished(PendingText), + /// A broken chunk: drop it, as the previous reader did. + /// The bytes it inflated, which are charged to the budget even though the text is dropped. + Invalid(usize), +} + +/// How much of one text value one batch reads or inflates. +const TEXT_BATCH: usize = 8192; +/// How many chunks one batch scans when it isn't continuing a text value. +const TEXT_CHUNK_BATCH: usize = 64; + +/// Reads one batch of a text value. Inflation uses a fixed scratch buffer and checks each batch +/// against the budget before growing the output, so no input-sized allocation is made first. +fn inflate_text(mut p: PendingText, bytes: &[u8]) -> Result { + let Some(input) = bytes.get(p.input.clone()) else { return Ok(TextBatch::Invalid(p.out.len())) }; + let mut scratch = [0; TEXT_BATCH]; + if let Some(decoder) = p.decoder.as_mut() { + let Some(tail) = input.get(p.at.saturating_sub(p.input.start)..) else { return Ok(TextBatch::Invalid(p.out.len())) }; + let start_in = decoder.total_in(); + let start_out = decoder.total_out(); + let status = decoder.decompress(tail, &mut scratch, flate2::FlushDecompress::None); + let used = usize::try_from(decoder.total_in().saturating_sub(start_in)).unwrap_or(usize::MAX); + let made = usize::try_from(decoder.total_out().saturating_sub(start_out)).unwrap_or(usize::MAX); + let Ok(status) = status else { + // The backend may write a batch before it reports corruption: charge it too, Latin-1 + // text at its UTF-8 length as on the success path. + let charged = match scratch.get(..made) { + Some(batch) if p.latin1 => latin1_len(batch).unwrap_or(usize::MAX), + _ => made, }; - let Some(batch) = usize::try_from(decoder.total_out() - start_out).ok().and_then(|len| scratch.get(..len)) else { return Ok((None, output.len())) }; - append(&mut output, batch)?; - if status == flate2::Status::StreamEnd { - break; - } - if start_in == decoder.total_in() && start_out == decoder.total_out() { - return Ok((None, output.len())); // Truncated stream: never keep partial text. - } + return Ok(TextBatch::Invalid(p.out.len().saturating_add(charged))); + }; + let (Some(used), Some(batch)) = (p.at.checked_add(used), scratch.get(..made)) else { return Ok(TextBatch::Invalid(p.out.len())) }; + p.at = used; + if !append_checked(&mut p.out, &mut p.utf8, &mut p.over, batch, p.latin1, p.limit)? { + return Ok(TextBatch::Invalid(p.out.len())); + } + if status == flate2::Status::StreamEnd { + return Ok(TextBatch::Finished(p)); + } + if start_in == decoder.total_in() && start_out == decoder.total_out() { + return Ok(TextBatch::Invalid(p.out.len())); // Truncated stream: never keep partial text. } } else { - if !latin1 && std::str::from_utf8(input).is_err() { - return Ok((None, output.len())); + let remaining = input.len().saturating_sub(p.at.saturating_sub(p.input.start)); + let take = remaining.min(TEXT_BATCH); + let start = p.at.saturating_sub(p.input.start); + let Some(batch) = input.get(start..start.saturating_add(take)) else { return Ok(TextBatch::Invalid(0)) }; + p.at = p.at.saturating_add(take); + if !append_checked(&mut p.out, &mut p.utf8, &mut p.over, batch, p.latin1, p.limit)? { + // Stored text isn't inflated: nothing is charged for it. + return Ok(TextBatch::Invalid(0)); + } + if take == remaining { + if p.utf8.as_ref().is_some_and(|check| !check.complete()) { + return Ok(TextBatch::Invalid(0)); + } + if p.over { + return Err(text_limit()); + } + return Ok(TextBatch::Finished(p)); } - append(&mut output, input)?; } - let produced = output.len(); - Ok((String::from_utf8(output).ok(), produced)) + Ok(TextBatch::More(p)) +} + +/// Appends one batch of decoded bytes, refusing to grow past the budget. Every Latin-1 code +/// point fits in at most two UTF-8 bytes. +/// +/// An uncompressed iTXt value is UTF-8 checked batch by batch before it is charged: an invalid +/// value is dropped even when it is over the budget, as the previous whole-value check did. +/// Its budget error is deferred until every byte has been seen and found valid. +fn append_checked(out: &mut Vec, utf8: &mut Option, over: &mut bool, bytes: &[u8], latin1: bool, limit: usize) -> Result { + if let Some(check) = utf8.as_mut() + && !check.feed(bytes) + { + return Ok(false); + } + if *over { + return Ok(true); + } + let added = if latin1 { latin1_len(bytes).ok_or_else(text_limit)? } else { bytes.len() }; + if out.len().checked_add(added).is_none_or(|len| len > limit) { + if utf8.is_some() { + *over = true; + return Ok(true); + } + return Err(text_limit()); + } + out.try_reserve(added).map_err(|_| text_limit())?; + if latin1 { + let mut buf = [0; 2]; + for &b in bytes { + out.extend_from_slice(char::from(b).encode_utf8(&mut buf).as_bytes()); + } + } else { + out.extend_from_slice(bytes); + } + Ok(true) } fn is_latin1_keyword(k: &str) -> bool { @@ -1452,12 +2027,85 @@ mod streamed_tests { } #[cfg(test)] -mod text_budget_tests { +mod rows_tests { use super::*; - use std::io::Write; + /// The pixels `decode` read before it was built on [`PngDecodeRows`]: the whole image in one + /// `next_frame` call, then the byte order of 16-bit samples. + fn one_call(bytes: &[u8]) -> Result<(u32, u32, Vec), CodecError> { + let mut decoder = png::Decoder::new_with_limits(Cursor::new(bytes), png::Limits { bytes: Limits::default().alloc_usize() }); + decoder.set_transformations(png::Transformations::EXPAND); + decoder.set_ignore_text_chunk(true); + let mut reader = decoder.read_info().map_err(map_png_err)?; + let mut buf = vec![0u8; reader.output_buffer_size().ok_or_else(|| err("image too large"))?]; + let out = reader.next_frame(&mut buf).map_err(map_png_err)?; + buf.truncate(out.buffer_size()); + if reader.output_color_type().1 == png::BitDepth::Sixteen { + to_native_endian(&mut buf); + } + Ok((out.width, out.height, buf)) + } + + fn image(w: u32, h: u32, layout: ChannelLayout, sample: SampleType) -> Image { + let len = w as usize * h as usize * layout.channels() * sample.bytes(); + let data: Vec = (0..len).map(|i| (i.wrapping_mul(2_654_435_761) >> 13) as u8).collect(); + Image::from_raw(w, h, layout, sample, data).unwrap() + } + + #[test] + fn rows_give_the_pixels_of_a_single_call() { + for layout in [ChannelLayout::Gray, ChannelLayout::GrayA, ChannelLayout::Rgb, ChannelLayout::Rgba] { + for sample in [SampleType::U8, SampleType::U16] { + for interlaced in [false, true] { + let img = image(33, 21, layout, sample); + let opts = EncodeOptions { png_interlaced: interlaced, ..Default::default() }; + let bytes = crate::encode(&img, Format::Png, &opts).unwrap(); + let (w, h, pixels) = one_call(&bytes).unwrap(); + for per_call in [1usize, 7, usize::MAX] { + let mut rows = PngDecodeRows::new(bytes.as_slice(), &Limits::default()).unwrap(); + let mut left = per_call; + let got = loop { + left -= 1; + let mut more = || { + left = left.saturating_sub(1); + left > 0 + }; + if let Some(img) = rows.step(&mut more).unwrap() { + break img; + } + left = per_call; + }; + assert_eq!((got.width(), got.height()), (w, h)); + assert_eq!(got.data(), pixels.as_slice(), "{layout:?} {sample:?} interlaced={interlaced} per_call={per_call}"); + assert_eq!(got.data(), img.data()); + } + } + } + } + } + + /// A metadata yield after the last row must not finish the pixel reader again on every call. + #[test] + fn metadata_yields_do_not_finalize_the_pixels_again() { + let text = "A".repeat(20_000); + let img = image(8, 6, ChannelLayout::Rgb, SampleType::U8).with_meta(Metadata { text: vec![("Comment".into(), text.clone())], ..Default::default() }); + let bytes = crate::encode(&img, Format::Png, &EncodeOptions::default()).unwrap(); + let mut rows = PngDecodeRows::new(bytes.as_slice(), &Limits::default()).unwrap(); + let mut calls = 0; + let got = loop { + calls += 1; + if let Some(img) = rows.step(&mut || false).unwrap() { + break img; + } + assert!(calls < 10_000, "the decoder never finished"); + }; + assert!(calls > 1, "the metadata took more than the pixel step"); + assert_eq!(rows.pixel_finalizations, 1, "a metadata yield must not finalize the pixels again"); + assert_eq!(got.meta.text, vec![("Comment".into(), text)]); + } /// A compressed iTXt chunk whose text inflates to `len` bytes of invalid UTF-8. fn bad_itxt(len: usize) -> Vec { + use std::io::Write; let mut z = flate2::write::ZlibEncoder::new(Vec::new(), flate2::Compression::best()); z.write_all(&vec![0xff; len]).unwrap(); let mut data = b"Comment\0\x01\x00\0\0".to_vec(); @@ -1472,15 +2120,20 @@ mod text_budget_tests { out } + /// A small PNG with `chunks` placed before its `IEND`. + fn png_with(chunks: &[u8]) -> Vec { + let png = crate::encode(&image(4, 4, ChannelLayout::Rgb, SampleType::U8), Format::Png, &EncodeOptions::default()).unwrap(); + let (head, iend) = png.split_at(png.len() - 12); + [head, chunks, iend].concat() + } + #[test] fn dropped_text_still_counts_against_the_budget() { - let one = [b"\x89PNG\r\n\x1a\n".to_vec(), bad_itxt(100_000)].concat(); - let mut meta = Metadata::default(); - read_text_metadata(&one, 1 << 20, &mut meta).unwrap(); - assert!(meta.text.is_empty(), "invalid UTF-8 is dropped"); + let limits = Limits { max_alloc: 1 << 20, ..Limits::default() }; + let decode = |bytes: &[u8]| PngDecodeRows::new(bytes, &limits)?.step(&mut || true)?.ok_or_else(|| err("unfinished")); + let one = decode(&png_with(&bad_itxt(100_000))).unwrap(); + assert!(one.meta.text.is_empty(), "invalid UTF-8 is dropped"); // Twenty chunks inflate 2 MB between them: each is dropped, but the work is charged. - let many = [b"\x89PNG\r\n\x1a\n".to_vec(), bad_itxt(100_000).repeat(20)].concat(); - let mut meta = Metadata::default(); - assert!(matches!(read_text_metadata(&many, 1 << 20, &mut meta), Err(CodecError::LimitExceeded(_)))); + assert!(matches!(decode(&png_with(&bad_itxt(100_000).repeat(20))), Err(CodecError::LimitExceeded(_)))); } } diff --git a/crates/codecs/src/lib.rs b/crates/codecs/src/lib.rs index 0c62e71333..0664a11e0d 100644 --- a/crates/codecs/src/lib.rs +++ b/crates/codecs/src/lib.rs @@ -32,7 +32,8 @@ pub use crate::cicp::Cicp; pub use crate::codecs::exr_cryptomatte::{cryptomatte_id, cryptomatte_key, cryptomatte_preview_color}; pub use crate::codecs::gif_frames::{AnimationFrame, MAX_GIF_FRAMES}; pub use crate::codecs::png::{ - PngExtras, PngHeader, PngPalette, PngRowSink, PngRows, encode_indexed as encode_png_indexed, palette as png_palette, stereo as png_stereo, + PngDecodeRows, PngExtras, PngHeader, PngPalette, PngRowSink, PngRows, SharedBytes, encode_indexed as encode_png_indexed, palette as png_palette, + stereo as png_stereo, }; pub use crate::codecs::tiff::{ PhotoshopTags as TiffPhotoshopTags, TiffBands, photoshop_tags as tiff_photoshop_tags, writes_little_endian as tiff_writes_little_endian, @@ -50,7 +51,7 @@ pub use crate::options::{ DdsCompression, DdsOptions, DecodeOptions, DpxBits, EncodeOptions, ExrCompression, JpegFormat, Limits, PngCompression, PngStereo, TIFF_PYRAMID_MIN, TiffCompression, }; -pub use crate::orientation::{exif_orientation, upright_exif, upright_xmp}; +pub use crate::orientation::{OrientSteps, exif_orientation, upright_exif, upright_xmp}; pub use crate::resolution::{exif_resolution, export_exif, export_xmp, photoshop_resolution, xmp_resolution}; pub use crate::source_settings::{WebpEncoding, jpeg_quality, webp_encoding}; pub use half::f16; @@ -99,10 +100,56 @@ pub fn decode_as_with(format: Format, bytes: &[u8], opts: &DecodeOptions) -> Res Format::Jxl => Err(CodecError::unsupported(format, "JPEG XL reading is not yet available; export is supported")), Format::Gif | Format::Bmp | Format::Tga | Format::Ico | Format::Qoi | Format::Hdr | Format::Avif => via_image::decode(format, bytes, l), }?; + finish_format(format, bytes, img, opts) +} + +/// What [`decode_as_with`] does with a PNG decoded in steps by [`PngDecodeRows`] (`img` is its +/// output): the resolution from the metadata, the upright orientation and the final limit check, +/// so the result equals [`decode_as_with`]'s on the same file. +pub fn finish_png_decode(img: Image, opts: &DecodeOptions) -> Result { + match begin_png_finish(img, opts)? { + PngFinish::Done(img) => Ok(*img), + PngFinish::Orient(mut steps) => loop { + if let Some(img) = steps.step(&mut || true)? { + return Ok(img); + } + }, + } +} + +/// Where [`begin_png_finish`] leaves a decoded PNG. +pub enum PngFinish { + /// Finished: it was already upright (or the options keep the orientation). + Done(Box), + /// To be turned upright, a band of rows at a time, by driving these steps. + Orient(Box), +} + +/// [`finish_png_decode`] with the turning upright (orientations 2-8) left to the caller, in +/// bands it can pace: the resolution from the metadata and the limit checks are made here, and the +/// result of the steps equals what [`finish_png_decode`] returns. +pub fn begin_png_finish(mut img: Image, opts: &DecodeOptions) -> Result { + if img.meta.dpi.is_none() { + img.meta.dpi = resolution::from_metadata(img.meta.exif.as_deref(), img.meta.xmp.as_deref()); + } + let o = img.meta.exif.as_deref().map_or(1, exif_orientation); + let l = &opts.limits; + // As `finish_decode` does: the final guard, then (turning 5-8 swaps the sides) the upright size. + l.check(img.width(), img.height(), img.layout(), img.sample_type())?; + if opts.keep_orientation || !(2..=8).contains(&o) { + return Ok(PngFinish::Done(Box::new(img))); + } + if (5..=8).contains(&o) { + l.check(img.height(), img.width(), img.layout(), img.sample_type())?; + } + Ok(PngFinish::Orient(Box::new(OrientSteps::new(img, o)?))) +} + +/// The steps after a decoder of `format` has produced `img` from `bytes`. +fn finish_format(format: Format, bytes: &[u8], mut img: Image, opts: &DecodeOptions) -> Result { // Without a resolution of the format's own (PNG pHYs, TIFF tags, JPEG's metadata), the // XMP or EXIF one counts, like Photoshop: a WebP, HEIF or PNG from a camera or phone // opens at its recorded resolution, not at the 72 ppi default. - let mut img = img; if img.meta.dpi.is_none() && format != Format::Tiff { img.meta.dpi = resolution::from_metadata(img.meta.exif.as_deref(), img.meta.xmp.as_deref()); } diff --git a/crates/codecs/src/orientation.rs b/crates/codecs/src/orientation.rs index 7f31a6b271..5ad8be2529 100644 --- a/crates/codecs/src/orientation.rs +++ b/crates/codecs/src/orientation.rs @@ -311,6 +311,104 @@ fn orient_bytes(src: &[u8], bpp: usize, o: u16, (w, h): (usize, usize), ow: usiz } } +/// Writes the oriented output rows `y0..` that fit in `dst` (whole rows of `ow` pixels), `bpp` +/// bytes per pixel: one band of [`orient_bytes`], the same pixels it writes. +fn orient_band(src: &[u8], dst: &mut [u8], bpp: usize, o: u16, (w, h): (usize, usize), ow: usize, y0: usize) { + macro_rules! go { + ($n:literal) => {{ + let (s, _) = src.as_chunks::<$n>(); + let (d, _) = dst.as_chunks_mut::<$n>(); + band(s, d, o, (w, h), ow, y0) + }}; + } + match bpp { + 1 => go!(1), + 2 => go!(2), + 3 => go!(3), + 4 => go!(4), + 5 => go!(5), + 6 => go!(6), + 8 => go!(8), + 10 => go!(10), + 12 => go!(12), + 16 => go!(16), + _ => go!(20), + } +} + +/// An image turned upright a band of rows at a time, for a caller that must not block for the +/// whole image (the web build has no threads): [`OrientSteps::step`] gives the [`Image`] +/// [`Image::oriented`] gives, once every band is written. +pub struct OrientSteps { + src: Image, + o: u16, + bpp: usize, + /// The oriented size. + ow: usize, + oh: usize, + out: Vec, + /// Output rows written so far. + done: usize, +} + +impl OrientSteps { + /// Sets up turning `img` upright for orientation `o` (2–8; anything else leaves it as it is). + /// Allocates the output, which the image is turned into beside the original. + pub fn new(img: Image, o: u16) -> Result { + let (w, h) = (img.width() as usize, img.height() as usize); + let (ow, oh) = if o >= 5 { (h, w) } else { (w, h) }; + let (layout, sample) = (img.layout(), img.sample_type()); + let bpp = layout.channels() * sample.bytes(); + let turns = (2..=8).contains(&o); + if turns && (!matches!(bpp, 1..=6 | 8 | 10 | 12 | 16 | 20) || w == 0 || h == 0) { + return Err(CodecError::InvalidImage(format!("cannot orient {layout:?} {sample:?} {w}x{h}"))); + } + // Reserve without touching: `step` grows the buffer a band at a time, so no slice + // zero-fills the whole output. + let mut out = Vec::new(); + if turns { + let n = img.data().len(); + out.try_reserve_exact(n).map_err(|_| CodecError::LimitExceeded(format!("cannot allocate {n} bytes to orient the image")))?; + } + Ok(Self { src: img, o, bpp, ow, oh, out, done: 0 }) + } + + /// How much of the image is turned, `0.0..=1.0`. + pub fn progress(&self) -> f32 { + if self.oh == 0 { 1.0 } else { self.done as f32 / self.oh as f32 } + } + + /// Writes bands of [`BAND`] output rows, at least one, then goes on while `more()` returns + /// true; `Some` with the upright image once the last band is written. + pub fn step(&mut self, more: &mut dyn FnMut() -> bool) -> Result, CodecError> { + if !(2..=8).contains(&self.o) { + let placeholder = Image::from_raw(0, 0, self.src.layout(), self.src.sample_type(), Vec::new())?; + return Ok(Some(std::mem::replace(&mut self.src, placeholder))); + } + let (w, h) = (self.src.width() as usize, self.src.height() as usize); + while self.done < self.oh { + let rows = BAND.min(self.oh - self.done); + let row_bytes = self.ow.checked_mul(self.bpp).ok_or_else(|| CodecError::InvalidImage("image too large".into()))?; + let at = self.done.saturating_mul(row_bytes); + let end = at.saturating_add(rows.saturating_mul(row_bytes)); + if self.out.len() < end { + self.out.resize(end, 0); + } + let dst = self.out.get_mut(at..end).ok_or_else(|| CodecError::InvalidImage("the oriented rows are out of range".into()))?; + orient_band(self.src.data(), dst, self.bpp, self.o, (w, h), self.ow, self.done); + self.done += rows; + if self.done < self.oh && !more() { + return Ok(None); + } + } + let (layout, sample) = (self.src.layout(), self.src.sample_type()); + let placeholder = Image::from_raw(0, 0, layout, sample, Vec::new())?; + let src = std::mem::replace(&mut self.src, placeholder); + let data = std::mem::take(&mut self.out); + src.oriented_with(self.o, data).map(Some) + } +} + impl Image { /// The image turned upright for orientation `o` (1–8; anything else is /// treated as 1 and returns the image unchanged). Width and height swap @@ -321,8 +419,7 @@ impl Image { return Ok(self); } let (w, h) = (self.width() as usize, self.height() as usize); - let swap = o >= 5; - let (ow, oh) = if swap { (h, w) } else { (w, h) }; + let ow = if o >= 5 { h } else { w }; let (layout, sample) = (self.layout(), self.sample_type()); let bpp = layout.channels() * sample.bytes(); // Every layout/sample pair is 1–20 bytes per pixel and has a fixed-size path. @@ -330,6 +427,16 @@ impl Image { return Err(CodecError::InvalidImage(format!("cannot orient {layout:?} {sample:?} {w}x{h}"))); } let data = orient_bytes(self.data(), bpp, o, (w, h), ow)?; + self.oriented_with(o, data) + } + + /// The upright image of orientation `o` (2–8) whose turned pixels are `data`: the size, + /// metadata and extra samples of [`Image::oriented`]. + fn oriented_with(self, o: u16, data: Vec) -> Result { + let (w, h) = (self.width() as usize, self.height() as usize); + let swap = o >= 5; + let (ow, oh) = if swap { (h, w) } else { (w, h) }; + let (layout, sample) = (self.layout(), self.sample_type()); let mut meta = self.meta.clone(); // Extra samples (a TIFF's alpha and spot planes, one sample a pixel) turn with the image. // A plane of the wrong size is left as it is: importers drop it with a warning. diff --git a/crates/codecs/tests/it/orientation.rs b/crates/codecs/tests/it/orientation.rs index 4bb7ca7662..08150ebeaa 100644 --- a/crates/codecs/tests/it/orientation.rs +++ b/crates/codecs/tests/it/orientation.rs @@ -204,6 +204,9 @@ fn png_opens_upright_for_every_orientation() { assert_eq!(img.dimensions(), (w as u32, h as u32), "o={o}"); assert_eq!(img.data(), &up[..], "o={o}"); assert_eq!(exif_orientation(img.meta.exif.as_deref().unwrap()), 1, "o={o}: metadata says upright"); + // Decoded in steps and finished by `finish_png_decode`, it is the same image. + let stepped = PngDecodeRows::new(file.as_slice(), &Limits::default()).unwrap().step(&mut || true).unwrap().unwrap(); + assert_eq!(finish_png_decode(stepped, &DecodeOptions::default()).unwrap(), img, "o={o}: stepped"); // Opting out keeps the stored pixels and the tag. let raw = decode_with(&file, &DecodeOptions { keep_orientation: true, ..Default::default() }).unwrap(); assert_eq!((raw.dimensions(), raw.data()), ((sw as u32, sh as u32), &s[..]), "o={o}"); @@ -211,6 +214,76 @@ fn png_opens_upright_for_every_orientation() { } } +/// An image turned upright a band of rows at a time is the image `oriented` gives, for every +/// orientation, pixel size and shape, and takes a call per band. +#[test] +fn orient_steps_equal_oriented() { + for o in 1..=8u16 { + for (layout, sample) in [ + (ChannelLayout::Gray, SampleType::U8), + (ChannelLayout::GrayA, SampleType::U16), + (ChannelLayout::Rgb, SampleType::U8), + (ChannelLayout::Rgba, SampleType::U16), + (ChannelLayout::Rgba, SampleType::F32), + ] { + for (w, h) in [(1u32, 1u32), (7, 5), (130, 66), (65, 200)] { + let len = w as usize * h as usize * layout.channels() * sample.bytes(); + let data: Vec = (0..len).map(|i| (i.wrapping_mul(2_654_435_761) >> 11) as u8).collect(); + let mut img = Image::from_raw(w, h, layout, sample, data).unwrap(); + img.meta.dpi = Some((100.0, 200.0)); + img.meta.exif = Some(exif(u32::from(o), false, false)); + let want = img.clone().oriented(o).unwrap(); + let mut steps = OrientSteps::new(img, o).unwrap(); + let mut calls = 0; + let got = loop { + calls += 1; + assert!(steps.progress() <= 1.0); + if let Some(img) = steps.step(&mut || false).unwrap() { + break img; + } + }; + assert_eq!(got, want, "o={o} {layout:?} {sample:?} {w}x{h}"); + let rows = if o >= 5 { w } else { h } as usize; + let expected = if (2..=8).contains(&o) { rows.div_ceil(64) } else { 1 }; + assert_eq!(calls, expected, "o={o} {w}x{h}: one call per band of 64 rows"); + } + } + } +} + +/// A PNG turned upright in bands by `begin_png_finish` is the image `decode` gives, for every +/// orientation, and a band of a tall image is not the whole of it. +#[test] +fn png_finishes_upright_in_bands_for_every_orientation() { + let (w, h) = (70, 150); + let up = upright(w, h, |x, y| (x * 7 + y * 13) as u8); + for o in 1..=8u16 { + let (s, sw, sh) = stored(&up, w, h, o); + let png = encode(&gray(sw, sh, s), Format::Png, &EncodeOptions::default()).unwrap(); + let file = png_with_exif(&png, &exif(u32::from(o), o % 2 == 0, false)); + let want = decode(&file).unwrap(); + let img = PngDecodeRows::new(file.as_slice(), &Limits::default()).unwrap().step(&mut || true).unwrap().unwrap(); + let got = match begin_png_finish(img, &DecodeOptions::default()).unwrap() { + PngFinish::Done(img) => { + assert_eq!(o, 1); + *img + } + PngFinish::Orient(mut steps) => { + assert!(o > 1); + let mut calls = 0; + loop { + calls += 1; + if let Some(img) = steps.step(&mut || false).unwrap() { + assert!(calls > 1, "o={o}: more than one band"); + break img; + } + } + } + }; + assert_eq!(got, want, "o={o}"); + } +} + /// Extra samples (a TIFF's alpha and spot planes) turn with the image, so a channel stays /// aligned with the pixels for every orientation. #[test] diff --git a/crates/codecs/tests/it/png_jpeg.rs b/crates/codecs/tests/it/png_jpeg.rs index fe22707d6f..aedf949605 100644 --- a/crates/codecs/tests/it/png_jpeg.rs +++ b/crates/codecs/tests/it/png_jpeg.rs @@ -195,6 +195,279 @@ fn tiff_f32_output_matches_oracle() { assert_eq!(o, img.to_f32_samples().unwrap()); } +// --------------------------------------------------------------------------- +// PNG decoded in steps (PngDecodeRows) +// --------------------------------------------------------------------------- + +/// Decodes `bytes` with [`PngDecodeRows`], going on for `per_call` rows per call (0: unlimited); +/// returns the image and how many calls it took. +fn decode_in_steps(bytes: &[u8], per_call: usize) -> Result<(Image, usize), CodecError> { + let mut rows = PngDecodeRows::new(bytes, &Limits::default())?; + let mut calls = 0; + loop { + calls += 1; + let mut left = per_call; + let mut more = || { + left = left.wrapping_sub(1); + per_call == 0 || left > 0 + }; + if let Some(img) = rows.step(&mut more)? { + return Ok((img, calls)); + } + assert!(calls < 100_000, "the decoder never finished"); + } +} + +fn assert_steps_equal_decode(bytes: &[u8], what: &str) { + let whole = decode(bytes); + for per_call in [1, 7, 0] { + // `decode` also takes the resolution from EXIF or XMP and turns the image upright; + // `finish_png_decode` does that for a stepped decode, as the stepped import does. + let stepped = decode_in_steps(bytes, per_call).and_then(|(img, calls)| Ok((finish_png_decode(img, &DecodeOptions::default())?, calls))); + match (&whole, stepped) { + (Ok(a), Ok((b, _))) => assert_eq!(a, &b, "{what}, {per_call} rows per call"), + (Err(_), Err(_)) => {} + (a, b) => panic!("{what}, {per_call} rows per call: decode {:?}, steps {:?}", a.as_ref().map(|_| ()), b.map(|_| ())), + } + } +} + +#[test] +fn png_rows_equal_decode_in_every_layout_and_depth() { + for layout in [ChannelLayout::Gray, ChannelLayout::GrayA, ChannelLayout::Rgb, ChannelLayout::Rgba] { + for sample in [SampleType::U8, SampleType::U16] { + let mut img = synth(41, 29, layout, sample, 77, 0.3).with_icc(Some(sample_icc(400))); + img.meta.text.push(("Comment".into(), "stepped".into())); + img.meta.dpi = Some((300.0, 300.0)); + for interlaced in [false, true] { + let bytes = encode(&img, Format::Png, &EncodeOptions { png_interlaced: interlaced, ..Default::default() }).unwrap(); + assert_steps_equal_decode(&bytes, &format!("{layout:?} {sample:?} interlaced={interlaced}")); + } + } + } +} + +#[test] +fn png_rows_equal_decode_for_palette_and_transparency() { + let pal = [[255, 0, 0], [0, 255, 0], [0, 0, 255], [9, 9, 9]]; + let idx: Vec = (0..50 * 20).map(|i| (i % 4) as u8).collect(); + let bytes = encode_png_indexed(50, 20, &idx, &pal, Some(3), None, None).unwrap(); + assert_steps_equal_decode(&bytes, "palette with a transparent entry"); +} + +#[test] +fn png_rows_take_one_call_per_row_and_report_progress() { + let bytes = encode(&synth(16, 40, ChannelLayout::Rgb, SampleType::U8, 5, 0.2), Format::Png, &EncodeOptions::default()).unwrap(); + let mut rows = PngDecodeRows::new(bytes.as_slice(), &Limits::default()).unwrap(); + assert_eq!(rows.size(), (16, 40)); + assert_eq!(rows.progress(), 0.0); + let mut seen = Vec::new(); + let img = loop { + if let Some(img) = rows.step(&mut || false).unwrap() { + break img; + } + seen.push(rows.progress()); + }; + assert_eq!(seen.len(), 39, "one call per row but the last, which also finishes the file"); + assert!(seen.windows(2).all(|w| w[0] < w[1])); + assert_eq!(rows.progress(), 1.0); + assert_eq!(img, decode(&bytes).unwrap()); + // A decoder that has finished says so instead of decoding again. + assert!(rows.step(&mut || true).is_err()); +} + +#[test] +fn png_rows_share_their_bytes_without_copying_them() { + let bytes = std::sync::Arc::new(encode(&synth(20, 20, ChannelLayout::Rgba, SampleType::U8, 3, 0.2), Format::Png, &EncodeOptions::default()).unwrap()); + let mut rows = PngDecodeRows::new(SharedBytes(bytes.clone()), &Limits::default()).unwrap(); + let img = rows.step(&mut || true).unwrap().unwrap(); + assert_eq!(img, decode(&bytes).unwrap()); + drop(rows); + assert_eq!(std::sync::Arc::strong_count(&bytes), 1, "the decoder let go of the bytes"); +} + +/// A CRC-valid PNG chunk. +fn png_chunk(kind: &[u8; 4], data: &[u8]) -> Vec { + let mut crc = flate2::Crc::new(); + crc.update(kind); + crc.update(data); + let mut out = u32::try_from(data.len()).unwrap().to_be_bytes().to_vec(); + out.extend_from_slice(kind); + out.extend_from_slice(data); + out.extend_from_slice(&crc.sum().to_be_bytes()); + out +} + +fn zlib(text: &[u8]) -> Vec { + use std::io::Write; + let mut encoder = flate2::write::ZlibEncoder::new(Vec::new(), flate2::Compression::fast()); + encoder.write_all(text).unwrap(); + encoder.finish().unwrap() +} + +/// A `zTXt` chunk (`deflated`) or a compressed `iTXt` one (`!deflated`) with `text` as its value. +fn png_text_chunk(kind: &[u8; 4], keyword: &[u8], text: &[u8]) -> Vec { + let mut data = keyword.to_vec(); + data.push(0); + if kind == b"zTXt" { + data.push(0); + } else { + data.extend_from_slice(&[1, 0, 0, 0]); + } + data.extend_from_slice(&zlib(text)); + png_chunk(kind, &data) +} + +/// `png` with `chunks` between the image data and `IEND` (the text-after-IDAT case). +fn with_chunks_before_iend(png: &[u8], chunks: &[Vec]) -> Vec { + let mut at = 8; + loop { + let len = u32::from_be_bytes(png[at..at + 4].try_into().unwrap()) as usize; + if &png[at + 4..at + 8] == b"IEND" { + let mut out = png[..at].to_vec(); + for c in chunks { + out.extend_from_slice(c); + } + out.extend_from_slice(&png[at..]); + return out; + } + at += len + 12; + } +} + +#[test] +fn png_rows_read_compressed_text_in_bounded_batches() { + let img = synth(19, 23, ChannelLayout::Rgba, SampleType::U8, 9, 0.4); + let base = encode(&img, Format::Png, &EncodeOptions::default()).unwrap(); + let text = "A".repeat(150_000); + for kind in [b"zTXt", b"iTXt"] { + let bytes = with_chunks_before_iend(&base, &[png_text_chunk(kind, b"Comment", text.as_bytes())]); + let mut rows = PngDecodeRows::new(bytes.as_slice(), &Limits::default()).unwrap(); + let mut calls = 0; + // An empty budget: every step reads one bounded batch and stops. + let stepped = loop { + calls += 1; + if let Some(img) = rows.step(&mut || false).unwrap() { + break img; + } + assert!(calls < 100_000, "the decoder never finished"); + }; + assert_eq!(stepped, decode(&bytes).unwrap(), "{kind:?}"); + assert_eq!(stepped.meta.text, vec![("Comment".into(), text.clone())], "{kind:?}: the whole value is kept"); + assert!(calls > 20, "{kind:?}: {calls} bounded calls, not one blocking pass"); + assert_steps_equal_decode(&bytes, &format!("compressed {kind:?} text")); + } +} + +/// An Adam7 image whose compressed text needs many metadata yields: the pixels are decoded +/// once, before the first yield, and later steps only read text. +#[test] +fn png_rows_finish_adam7_text_in_bounded_batches() { + let img = synth(19, 23, ChannelLayout::Rgba, SampleType::U8, 9, 0.4); + let base = encode(&img, Format::Png, &EncodeOptions { png_interlaced: true, ..Default::default() }).unwrap(); + let text = "A".repeat(150_000); + for kind in [b"zTXt", b"iTXt"] { + let bytes = with_chunks_before_iend(&base, &[png_text_chunk(kind, b"Comment", text.as_bytes())]); + let mut rows = PngDecodeRows::new(bytes.as_slice(), &Limits::default()).unwrap(); + let mut calls = 0; + let stepped = loop { + calls += 1; + if let Some(img) = rows.step(&mut || false).unwrap() { + break img; + } + assert!(calls < 100_000, "the decoder never finished"); + }; + assert_eq!(stepped, decode(&bytes).unwrap(), "{kind:?}"); + assert_eq!(stepped.meta.text, vec![("Comment".into(), text.clone())], "{kind:?}: the whole value is kept"); + assert!(calls > 20, "{kind:?}: {calls} bounded calls after the one Adam7 pass"); + } +} + +/// An uncompressed `iTXt` chunk (`value` is its text, so its CRC covers the whole value). +fn png_itxt_uncompressed(keyword: &[u8], value: &[u8]) -> Vec { + let mut data = keyword.to_vec(); + data.push(0); + data.extend_from_slice(&[0, 0, 0, 0]); + data.extend_from_slice(value); + png_chunk(b"iTXt", &data) +} + +/// The CRC of a large text chunk takes bounded batches too, before any of its value is read. +#[test] +fn png_rows_read_a_large_text_crc_in_bounded_batches() { + let img = synth(5, 5, ChannelLayout::Rgb, SampleType::U8, 3, 0.2); + let base = encode(&img, Format::Png, &EncodeOptions::default()).unwrap(); + let text: String = (0..300_000u32).map(|i| char::from(b'a' + (i % 26) as u8)).collect(); + let bytes = with_chunks_before_iend(&base, &[png_itxt_uncompressed(b"Comment", text.as_bytes())]); + let mut rows = PngDecodeRows::new(bytes.as_slice(), &Limits::default()).unwrap(); + let mut calls = 0; + let stepped = loop { + calls += 1; + if let Some(img) = rows.step(&mut || false).unwrap() { + break img; + } + assert!(calls < 100_000, "the decoder never finished"); + }; + assert_eq!(stepped.meta.text, vec![("Comment".into(), text)]); + assert!(calls > 60, "{calls} calls: the CRC and the value each take bounded batches"); +} + +/// A text chunk whose CRC does not match is still dropped after its bounded CRC batches. +#[test] +fn png_rows_drop_a_corrupt_text_crc() { + let img = synth(5, 5, ChannelLayout::Rgb, SampleType::U8, 3, 0.2); + let base = encode(&img, Format::Png, &EncodeOptions::default()).unwrap(); + let mut chunk = png_itxt_uncompressed(b"Comment", b"not accepted"); + let at = chunk.len() - 5; + chunk[at] ^= 0xFF; + let bytes = with_chunks_before_iend(&base, &[chunk]); + let stepped = decode_in_steps(&bytes, 0).unwrap().0; + assert!(stepped.meta.text.is_empty(), "a broken CRC drops the text"); + assert_eq!(stepped, decode(&bytes).unwrap(), "the one-pass decode drops it too"); +} + +/// An uncompressed iTXt value that is not UTF-8 is dropped without charging its bytes against +/// the budget, even when it is larger than all of it: the previous reader checked UTF-8 first. +#[test] +fn png_rows_drop_invalid_uncompressed_text_before_charging_the_budget() { + let img = synth(4, 4, ChannelLayout::Rgb, SampleType::U8, 3, 0.2); + let base = encode(&img, Format::Png, &EncodeOptions::default()).unwrap(); + let mut value = vec![b'A'; 12_000]; + value[11_999] = 0xFF; + let bytes = with_chunks_before_iend(&base, &[png_itxt_uncompressed(b"Comment", &value)]); + let opts = DecodeOptions { limits: Limits { max_alloc: 200, ..Default::default() }, ..Default::default() }; + let mut rows = PngDecodeRows::new(bytes.as_slice(), &opts.limits).unwrap(); + let stepped = rows.step(&mut || true).unwrap().unwrap(); + let stepped = finish_png_decode(stepped, &opts).unwrap(); + assert!(stepped.meta.text.is_empty(), "invalid UTF-8 is skipped, not a budget failure"); + let whole = decode_with(&bytes, &opts).unwrap(); + assert!(whole.meta.text.is_empty(), "the one-pass decode skips it too"); +} + +#[test] +fn png_rows_fail_like_decode_on_damaged_files() { + let img = synth(64, 64, ChannelLayout::Rgb, SampleType::U8, 11, 1.0); + for interlaced in [false, true] { + let bytes = encode(&img, Format::Png, &EncodeOptions { png_interlaced: interlaced, ..Default::default() }).unwrap(); + // Cuts inside the signature, the IHDR chunk or the next chunk header leave no complete image. + for cut in [8, 20, 40] { + let truncated = bytes.get(..cut).unwrap(); + assert!(decode(truncated).is_err(), "cut at {cut} interlaced={interlaced}"); + assert!(decode_in_steps(truncated, 1).is_err(), "cut at {cut} interlaced={interlaced}"); + } + for cut in [bytes.len() / 3, bytes.len() / 2, bytes.len() - 20] { + assert_steps_equal_decode(bytes.get(..cut).unwrap(), &format!("cut at {cut} interlaced={interlaced}")); + } + // A flipped byte in the middle of the compressed data. + let mut bad = bytes.clone(); + let mid = bad.len() / 2; + bad[mid] ^= 0xFF; + assert_steps_equal_decode(&bad, "a damaged byte"); + } + assert!(decode_in_steps(&[], 1).is_err()); + assert!(decode_in_steps(b"not a png at all, just some text bytes", 1).is_err()); +} + // --------------------------------------------------------------------------- // PngSuite corpus (repo-root corpus/pngsuite/*.png; feature `corpus`, fetched by // `cargo xtask corpus --all`; missing = failure) @@ -229,6 +502,39 @@ fn pngsuite_corpus_matches_oracle() { assert!(checked > 100, "{}: only {checked} PNGs compared: run `cargo xtask corpus --all`", dir.display()); } +/// The preflight charges the decoded layout's bytes per pixel: a 1000×1000 Gray8 PNG (1 MB) fits a +/// 1.5 MB budget, which the old worst-case RGBA16 preflight (8 MB) refused. +#[test] +fn png_preflight_uses_the_output_layout() { + let img = synth(1000, 1000, ChannelLayout::Gray, SampleType::U8, 7, 0.5); + let bytes = encode(&img, Format::Png, &EncodeOptions::default()).unwrap(); + let opts = DecodeOptions { limits: Limits { max_alloc: 1_500_000, ..Limits::none() }, ..Default::default() }; + let got = decode_with(&bytes, &opts).expect("a Gray8 image is charged 1 byte per pixel"); + assert_eq!(got.data(), img.data()); + let tight = DecodeOptions { limits: Limits { max_alloc: 900_000, ..Limits::none() }, ..Default::default() }; + assert!(decode_with(&bytes, &tight).is_err(), "the actual pixel budget still applies"); +} + +#[cfg(feature = "corpus")] +#[test] +fn png_rows_equal_decode_on_the_pngsuite_corpus() { + let dir = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("../../corpus/pngsuite"); + let Ok(entries) = std::fs::read_dir(&dir) else { + panic!("{} is missing: run `cargo xtask corpus --all`", dir.display()); + }; + let mut checked = 0; + for e in entries.flatten() { + let p = e.path(); + if p.extension().and_then(|s| s.to_str()) != Some("png") { + continue; + } + let bytes = std::fs::read(&p).unwrap(); + assert_steps_equal_decode(&bytes, &p.display().to_string()); + checked += 1; + } + assert!(checked > 100, "{}: only {checked} PNGs compared: run `cargo xtask corpus --all`", dir.display()); +} + /// Row-by-row decoding gives `decode`'s pixels and metadata for every PngSuite file it takes (all /// but the interlaced ones), and fails where `decode` fails. #[cfg(feature = "corpus")] @@ -288,3 +594,53 @@ fn pngsuite_corpus_rows_match_the_whole_decode() { eprintln!("pngsuite: {streamed} streamed, {refused} refused (interlaced), {skipped} skipped (not detected as PNG)"); assert!(streamed > 100, "only {streamed} PNGs streamed: run `cargo xtask corpus --all`"); } + +/// Streaming a PNG's rows a group at a time gives the pixels and metadata `decode` gives, holds +/// only a group at a time, and stops between rows when asked. +#[test] +fn step_stream_gives_the_pixels_and_extras_of_decode() { + for (layout, sample) in [(ChannelLayout::Gray, SampleType::U8), (ChannelLayout::Rgb, SampleType::U16), (ChannelLayout::Rgba, SampleType::U8)] { + let (w, h) = (23u32, 19u32); + let len = w as usize * h as usize * layout.channels() * sample.bytes(); + let mut img = Image::from_raw(w, h, layout, sample, (0..len).map(|i| (i.wrapping_mul(2_654_435_761) >> 11) as u8).collect()).unwrap(); + img.meta.dpi = Some((144.0, 144.0)); + img.meta.text.push(("Comment".into(), "streamed".into())); + img.icc = Some(vec![7; 40]); + let bytes = encode(&img, Format::Png, &EncodeOptions::default()).unwrap(); + let want = decode(&bytes).unwrap(); + for group in [0u32, 1, 4, 19, 64] { + let mut dec = PngDecodeRows::new_streaming(bytes.as_slice(), &Limits::default()).unwrap(); + assert!(dec.streamable()); + assert_eq!(dec.header(), PngHeader { width: w, height: h, layout, sample }); + let (mut data, mut next, mut calls) = (Vec::new(), 0u32, 0); + let extras = loop { + calls += 1; + let mut sink = |y0: u32, rows: &[u8]| -> Result<(), CodecError> { + assert_eq!(y0, next, "{layout:?} group {group}"); + assert!(rows.len() <= group.max(1) as usize * dec_line(w, layout, sample), "a group at most"); + next += (rows.len() / dec_line(w, layout, sample)) as u32; + data.extend_from_slice(rows); + Ok(()) + }; + if let Some(extras) = dec.step_stream(group, &mut || false, &mut sink).unwrap() { + break extras; + } + assert!(calls < 10_000); + }; + assert!(calls > 1, "{layout:?}: stopped between rows"); + assert_eq!(data, want.data(), "{layout:?} group {group}: pixels"); + assert_eq!((extras.icc.as_deref(), extras.meta.dpi, &extras.meta.text), (want.icc.as_deref(), want.meta.dpi, &want.meta.text)); + assert_eq!(extras.orientation, 1); + assert!(dec.step_stream::(group, &mut || true, &mut |_, _| Ok(())).is_err(), "spent"); + } + } + // An interlaced file doesn't stream. + let img = Image::from_raw(9, 9, ChannelLayout::Gray, SampleType::U8, vec![1; 81]).unwrap(); + let bytes = encode(&img, Format::Png, &EncodeOptions { png_interlaced: true, ..Default::default() }).unwrap(); + assert!(!PngDecodeRows::new_streaming(bytes.as_slice(), &Limits::default()).unwrap().streamable()); +} + +/// Bytes per row of `w` pixels. +fn dec_line(w: u32, layout: ChannelLayout, sample: SampleType) -> usize { + w as usize * layout.channels() * sample.bytes() +} diff --git a/crates/compose/src/tests.rs b/crates/compose/src/tests.rs index 7ea8655099..153b038adf 100644 --- a/crates/compose/src/tests.rs +++ b/crates/compose/src/tests.rs @@ -2143,6 +2143,21 @@ fn shapeless_effects_render_the_same_in_bands_and_parts() { } } +/// The interruptible composite renders band by band: with shapeless effects (whose maps are built +/// per band) it still gives the whole-document composite. +#[test] +fn interruptible_composite_with_shapeless_effects_matches_the_whole_composite() { + for depth in [SampleType::U8, SampleType::U16, SampleType::F32] { + let d = shapeless_fx_doc(depth); + let fmt = PixelFormat::new(ColorMode::Rgb, depth, true); + purge_effect_cache(); + let expected = composite_to_surface(&d, d.bounds(), fmt, None); + purge_effect_cache(); + let actual = composite_to_surface_with_interrupt(&d, d.bounds(), fmt, None, &photocraft_raster::Interrupt::NONE).unwrap(); + assert!(actual.read_region(d.bounds()) == expected.read_region(d.bounds()), "{depth:?}: the interruptible composite differs"); + } +} + #[test] fn shapeless_effect_maps_cover_only_the_band_being_rendered() { // Transparency Shapes Layer off makes an effect region the whole canvas: on a 1920 × 103675 diff --git a/crates/engine/Cargo.toml b/crates/engine/Cargo.toml index 6d6700dc91..b5b814b1a2 100644 --- a/crates/engine/Cargo.toml +++ b/crates/engine/Cargo.toml @@ -24,6 +24,7 @@ serde_json = { workspace = true } thiserror = { workspace = true } rayon = { workspace = true } chrono = { workspace = true } +web-time = { workspace = true } photocraft-paint = { workspace = true } photocraft-algo = { workspace = true } photocraft-text = { workspace = true } diff --git a/crates/engine/src/canvas_geom.rs b/crates/engine/src/canvas_geom.rs index 92e7f00af5..93bc4654b9 100644 --- a/crates/engine/src/canvas_geom.rs +++ b/crates/engine/src/canvas_geom.rs @@ -7,7 +7,7 @@ use std::sync::Arc; -use photocraft_doc::{Document, Fill, Layer, LayerContent, TextLayer}; +use photocraft_doc::{Document, Fill, GradientStyle, Layer, LayerContent, TextLayer}; use photocraft_geom::{Affine, Point, Rect}; use photocraft_raster::Surface; @@ -52,8 +52,12 @@ fn map_angle(a: &Affine, deg: f32) -> f32 { } fn map_fill(a: &Affine, f: &mut Fill) { - if let Fill::Gradient { angle, offset, .. } = f { + if let Fill::Gradient { angle, offset, style, reverse, .. } = f { *angle = map_angle(a, *angle); + // An Angle gradient sweeps clockwise from its angle; a mirror turns the sweep around. + if *style == GradientStyle::Angle && a.m[0] * a.m[3] - a.m[1] * a.m[2] < 0.0 { + *reverse = !*reverse; + } // The centre offset (a fraction of the frame) turns with the canvas: exact for 90° turns // and flips, where the frame's sides swap with the axes. Scale (Image Size) resizes the // frame too, so only each axis's direction applies. @@ -138,6 +142,26 @@ pub(crate) fn retarget_type_resolution(doc: &mut Document, dpi: f32) { } retag_text(dpi, t); }); + // The styles travelling with the copies scale the same way: a style a copy brings to a + // document that lacks it defines the rewritten size, so the copy has no local override. + let st = &mut doc.text_styles; + let sets = st + .character + .iter_mut() + .map(|c| &mut c.attrs) + .chain(st.paragraph.iter_mut().chain([&mut st.basic]).flat_map(|p| [&mut p.para_attrs, &mut p.char_attrs])); + for attrs in sets { + for (key, v) in attrs.iter_mut() { + let Some(n) = v.as_f64().filter(|n| n.is_finite()) else { continue }; + let n = n as f32; + let scaled = match key.as_str() { + "size_pt" | "leading_pt" => point_size(n, k), + "baseline_shift_pt" | "first_line_indent_pt" | "start_indent_pt" | "end_indent_pt" | "space_before_pt" | "space_after_pt" => grown(n, k), + _ => continue, + }; + *v = serde_json::json!(scaled); + } + } } /// A positive size in points times `k`, kept finite and above zero (a tiny ratio must not make diff --git a/crates/engine/src/canvas_geom/tests.rs b/crates/engine/src/canvas_geom/tests.rs index 78a7a141c3..beb04de97d 100644 --- a/crates/engine/src/canvas_geom/tests.rs +++ b/crates/engine/src/canvas_geom/tests.rs @@ -221,6 +221,32 @@ fn gradient_fill_offset_stays_a_fraction_of_the_frame() { assert!((offset.0 - 0.1).abs() < 1e-6 && (offset.1 - 0.25).abs() < 1e-6, "{offset:?}"); } +#[test] +fn turns_carry_an_angle_gradient_fill_with_its_pixels() { + // An Angle gradient sweeps clockwise: a mirror must reverse it, a turn must not. + for t in TURNS { + let mut s = Session::new(); + s.execute("file.new", json!({"width": W, "height": H})).unwrap(); + let p = json!({"from": [20, 14], "to": [50, 4], "style": "angle", "dither": false}); + s.execute("gradient.fill.create", p).unwrap(); + let before = photocraft_compose::flatten(doc(&s)); + s.execute(command(t), json!({})).unwrap(); + let want = expected(&before, t, doc(&s).size.width); + let (mean, big) = diff(&photocraft_compose::flatten(doc(&s)).px, &want); + assert!(mean < 2.0 / 255.0 && big < 0.02, "{t:?}: mean {mean} big {big}"); + let flip = matches!(t, Turn::FlipHorizontal | Turn::FlipVertical); + assert_eq!(s.execute("gradient.fill.get", json!({})).unwrap()["reverse"], json!(flip), "{t:?}"); + // Turning back restores the fill model (Reverse toggled twice for flips). + s.execute(command(t), json!({})).unwrap(); + if matches!(t, Turn::Cw90 | Turn::Ccw90) { + s.execute(command(t), json!({})).unwrap(); + s.execute(command(t), json!({})).unwrap(); + } + let g = s.execute("gradient.fill.get", json!({})).unwrap(); + assert_eq!(g["reverse"], json!(false), "{t:?}: {g}"); + } +} + /// The shape's (fill, stroke) gradient angles after `cmd` on a shape whose fill and stroke both /// start as a 0° (left to right) gradient. fn shape_gradient_angles_after(cmd: &str, p: serde_json::Value) -> (f32, f32) { diff --git a/crates/engine/src/cmd.rs b/crates/engine/src/cmd.rs index 4b402f2164..4c911e6be0 100644 --- a/crates/engine/src/cmd.rs +++ b/crates/engine/src/cmd.rs @@ -882,7 +882,7 @@ fn build() -> Vec { "Gradient…", ["Layer", "New Fill Layer"], None, - r##"{"from":"#rrggbb","to":"#rrggbb","angle":deg=90,"style":"linear|radial|angle|reflected|diamond","reverse":bool,"path":"work"|saved path name|{…path}? (the active path: becomes the vector mask; else the selection is the layer mask)}"##, + r##"{"from":"#rrggbb","to":"#rrggbb","angle":deg=90,"style":"linear|radial|angle|reflected|diamond","reverse":bool,"path":"work"|saved path name|{…path}? (the active path: becomes the vector mask; else the selection is the layer mask),"stops"?,"transparency"?,"midpoints"?,"scale"?,"offset"?,"dither"?,"align"? (as gradient.fill.set; stops replace from/to)}"##, has_doc, |s, p| { let a = color_param("layer.newFillLayer.gradient", p, "from", s.tools.foreground)?; @@ -891,15 +891,26 @@ fn build() -> Vec { let style = crate::layer_style::gradient_style(p.get("style").and_then(Value::as_str).unwrap_or("linear")); let reverse = p.get("reverse").and_then(Value::as_bool).unwrap_or(false); let default_mask = layer_panel_option(s, "useDefaultMasksOnFillLayers", true); + // The rest of a recorded Gradient Fill (a loaded action's Make): applied as + // `gradient.fill.set` would, in the same step. + let rest: serde_json::Map = ["stops", "transparency", "midpoints", "scale", "offset", "dither", "align"] + .iter() + .filter_map(|k| p.get(*k).map(|v| ((*k).to_string(), v.clone()))) + .collect(); + let (fg, bg) = (s.tools.foreground, s.tools.background); let id = s.edit("New Gradient Fill Layer", |doc, active| { - let fill = Fill::gradient( + let mut fill = Fill::gradient( vec![(0.0, Color::rgba(a[0], a[1], a[2], a[3])), (1.0, Color::rgba(b[0], b[1], b[2], b[3]))], angle, 1.0, style, reverse, - ) - .in_mode(doc.mode); + ); + if !rest.is_empty() { + let l = Layer::new(String::new(), LayerContent::Fill(fill.clone())); + fill = crate::gradient_fill_cmds::apply_set(&l, &fill, doc.bounds(), &Value::Object(rest.clone()), fg, bg)?; + } + let fill = fill.in_mode(doc.mode); let mut l = Layer::new(doc.next_layer_name("Gradient Fill"), LayerContent::Fill(fill)); mask_new_layer(doc, &mut l, p, "layer.newFillLayer.gradient", default_mask)?; let id = crate::layer_place::insert_new(doc, *active, l, crate::layer_place::Place::Auto); diff --git a/crates/engine/src/cmd/atn_cmds/events.rs b/crates/engine/src/cmd/atn_cmds/events.rs index 2d07afb74c..f3aa3b25c0 100644 --- a/crates/engine/src/cmd/atn_cmds/events.rs +++ b/crates/engine/src/cmd/atn_cmds/events.rs @@ -849,6 +849,7 @@ pub(super) const EVENTS: &[Event] = &[ "layer.new.layerViaCut", "layer.newFillLayer.solidColor", "layer.newFillLayer.pattern", + "layer.newFillLayer.gradient", "layer.newAdjustmentLayer.levels", "layer.newAdjustmentLayer.curves", "layer.newAdjustmentLayer.hueSaturation", @@ -893,6 +894,7 @@ pub(super) const EVENTS: &[Event] = &[ "layer.setLabelColor", "layer.setAdjustment", "layer.fill.pattern.set", + "gradient.fill.set", "layer.new.layerFromBackground", "layer.layerStyle.blendingOptions", "layer.smartFilter.blendingOptions", diff --git a/crates/engine/src/cmd/atn_cmds/steps_make.rs b/crates/engine/src/cmd/atn_cmds/steps_make.rs index 2890ea56bc..7e26df4c16 100644 --- a/crates/engine/src/cmd/atn_cmds/steps_make.rs +++ b/crates/engine/src/cmd/atn_cmds/steps_make.rs @@ -1,11 +1,11 @@ use super::adjustments::{HUE_RANGES, adjustment_by_class, adjustment_by_suffix, adjustment_steps, levels_complete}; use super::descriptors::{ - PCT, PX, Target, ang, class, class_ref, code, color_desc, color_hex, desc, enm, get_bool, get_enum, get_list, get_num, get_obj, get_ref, get_text, jbool, - jnum, jstr, layer_ref, layer_target, long, name_ref, pct, px, ref_class, target, target_ref, text, trimmed, + PCT, PX, Target, ang, boolean, class, class_ref, code, color_desc, color_hex, desc, enm, enumerated, get_bool, get_enum, get_list, get_num, get_obj, + get_ref, get_text, jbool, jnum, jstr, layer_ref, layer_target, long, name_ref, num, pct, px, ref_class, target, target_ref, text, trimmed, }; use super::fields::{Mapped, none, step, steps}; use super::steps_layer::quick_mask_ref; -use super::tables::{LABEL_COLORS, MODES, blend_label, blend_ps, lookup, lookup_back}; +use super::tables::{CHANNELS, LABEL_COLORS, MODES, blend_label, blend_ps, channel_of, channel_ref, lookup, lookup_back}; use super::{D, Descriptor, Id, Map, ReferenceItem, UnicodeString, Value, json}; /// A `Md ` value as a blend-mode label, only when it is a `BlnM` enumeration: another @@ -78,6 +78,354 @@ fn pattern_desc(p: &Value) -> Option { Some(t) } +/// Gradient Fill layers: `GrdT` ↔ `style`. +const GRADIENT_STYLES: &[(&str, &str)] = &[("Lnr", "linear"), ("Rdl", "radial"), ("Angl", "angle"), ("Rflt", "reflected"), ("Dmnd", "diamond")]; + +/// The `gradientLayer` keys [`gradient_params`] reads; a descriptor with any other key stays a +/// kept Photoshop step. +const GRADIENT_LAYER_KEYS: &[&str] = &["Grad", "Type", "Angl", "Rvrs", "Dthr", "Algn", "Scl ", "Ofst", "gradientsInterpolationMethod"]; + +/// The hidden param an imported Gradient Fill step keeps its recorded `gradientLayer` descriptor +/// in, so Save Actions writes it back unchanged while its params are the ones it loaded with. +const GRADIENT_DESCRIPTOR: &str = "__atnDescriptor"; + +/// A `gradientLayer` descriptor as the params of `layer.newFillLayer.gradient` / +/// `gradient.fill.set`. Midpoint k belongs to the segment that ends at stop k + 1, as the PSD +/// reader reads it; all-default midpoints give `[]`, which clears custom ones on a Set. None for +/// what the fill does not play: a Noise gradient, a smoothness below 100 %, a non-classic +/// interpolation, a transparency midpoint, stops out of order or values out of range. +fn gradient_params(t: &Descriptor) -> Option> { + if t.items.iter().any(|(k, _)| !GRADIENT_LAYER_KEYS.iter().any(|g| k.is(g))) { + return None; + } + let mut p = Map::new(); + if let Some(s) = t.get("Type") { + p.insert("style".into(), lookup(GRADIENT_STYLES, &enumerated(s)?)?.into()); + } + if let Some(a) = t.get("Angl") { + p.insert("angle".into(), num(a)?.into()); + } + for (key, param) in [("Rvrs", "reverse"), ("Dthr", "dither"), ("Algn", "align")] { + if let Some(v) = t.get(key) { + p.insert(param.into(), boolean(v)?.into()); + } + } + if let Some(s) = t.get("Scl ") { + p.insert("scale".into(), num(s)?.into()); + } + if let Some(o) = t.get("Ofst") { + let D::Descriptor(o) = o else { return None }; + p.insert("offset".into(), json!([get_num(o, "Hrzn")?, get_num(o, "Vrtc")?])); + } + if t.get("gradientsInterpolationMethod").is_some_and(|m| enumerated(m).as_deref() != Some("Gcls")) { + return None; + } + let g = get_obj(t, "Grad")?; + if get_enum(g, "GrdF").as_deref() != Some("CstS") || g.get("Intr").is_some_and(|i| num(i) != Some(4096.0)) { + return None; + } + let (mut stops, mut mids, mut previous) = (Vec::new(), Vec::new(), 0.0); + for (i, s) in get_list(g, "Clrs").filter(|c| (2..=1024).contains(&c.len()))?.iter().enumerate() { + let D::Descriptor(s) = s else { return None }; + let color = match get_enum(s, "Type").as_deref() { + None | Some("UsrS") => json!(color_hex(get_obj(s, "Clr ")?)?), + Some("FrgC") => json!("foreground"), + Some("BckC") => json!("background"), + Some(_) => return None, + }; + let at = get_num(s, "Lctn")?; + if !(previous..=4096.0).contains(&at) { + return None; + } + previous = at; + stops.push(json!([at / 4096.0, color])); + if i > 0 { + // The dialog's midpoints are 5..95 %; playback would clamp anything else. + let mid = get_num(s, "Mdpn").unwrap_or(50.0); + if !(5.0..=95.0).contains(&mid) { + return None; + } + mids.push(mid / 100.0); + } + } + p.insert("stops".into(), Value::Array(stops)); + if let Some(trns) = get_list(g, "Trns") { + let (mut out, mut previous) = (Vec::new(), 0.0); + for s in trns { + let D::Descriptor(s) = s else { return None }; + if get_num(s, "Mdpn").is_some_and(|m| m != 50.0) { + return None; + } + // Playback would clamp and sort what is out of range or out of order. + let (at, opacity) = (get_num(s, "Lctn")?, get_num(s, "Opct")?); + if !(previous..=4096.0).contains(&at) || !(0.0..=100.0).contains(&opacity) { + return None; + } + previous = at; + out.push(json!([at / 4096.0, opacity])); + } + p.insert("transparency".into(), Value::Array(out)); + } + if mids.iter().all(|m| *m == 0.5) { + mids.clear(); + } + p.insert("midpoints".into(), json!(mids)); + Some(p) +} + +/// [`gradient_params`] plus the recorded descriptor, for Save Actions. +fn gradient_step(t: &Descriptor) -> Option { + let mut p = gradient_params(t)?; + p.insert(GRADIENT_DESCRIPTOR.into(), photocraft_paint::tile::b64_encode(&t.to_bytes()).into()); + Some(Value::Object(p)) +} + +/// The `gradientLayer` descriptor for a Gradient Fill step: the recorded one while the params are +/// still what it imports as, else one written from the params. That needs every stop as +/// `#rrggbb` on a 1/4096 location, whole-percent midpoints and, for a Set (`set`), the +/// transparency stops: Photoshop's Set replaces the whole gradient, where the command keeps the +/// layer's own transparency. +fn gradient_desc(p: &Value, set: bool) -> Option { + if let Some(t) = jstr(p, GRADIENT_DESCRIPTOR).and_then(photocraft_paint::tile::b64_decode).and_then(|b| Descriptor::from_bytes(&b).ok()) { + let (mut a, mut b) = (Value::Object(gradient_params(&t)?), p.clone()); + b.as_object_mut()?.remove(GRADIENT_DESCRIPTOR); + super::convert::normalise(&mut a); + super::convert::normalise(&mut b); + if a == b { + return Some(t); + } + } + const KEYS: &[&str] = &["style", "angle", "reverse", "dither", "align", "scale", "offset", "stops", "transparency", "midpoints", GRADIENT_DESCRIPTOR]; + if p.as_object()?.iter().any(|(k, v)| !v.is_null() && !KEYS.contains(&k.as_str())) || (set && p.get("transparency").is_none()) { + return None; + } + let location = |v: &Value| { + let t = v.as_f64()? * 4096.0; + ((0.0..=4096.0).contains(&t) && t.fract() == 0.0).then(|| long(t)) + }; + let stops = p.get("stops")?.as_array().filter(|s| (2..=1024).contains(&s.len()))?; + let mids: Vec = match p.get("midpoints") { + None | Some(Value::Null) => Vec::new(), + Some(m) => m.as_array()?.iter().map(Value::as_f64).collect::>()?, + }; + if mids.len() >= stops.len() { + return None; + } + let (mut clrs, mut previous) = (Vec::new(), 0.0); + for (i, s) in stops.iter().enumerate() { + let [at, color] = s.as_array()?.as_slice() else { return None }; + if at.as_f64()? < previous { + return None; + } + previous = at.as_f64()?; + // A foreground or background stop is left out: Photoshop records the colour it had too. + let color = color_desc(color.as_str()?)?; + let mid = if i == 0 { 50.0 } else { mids.get(i - 1).copied().unwrap_or(0.5) * 100.0 }; + if (mid - mid.round()).abs() > 1e-9 || !(5.0..=95.0).contains(&mid.round()) { + return None; + } + clrs.push(D::Descriptor( + desc("Clrt").with("Clr ", D::Descriptor(color)).with("Type", enm("Clry", "UsrS")).with("Lctn", location(at)?).with("Mdpn", long(mid)), + )); + } + let default_trns = vec![json!([0, 100]), json!([1, 100])]; + let trns: Option> = p + .get("transparency") + .and_then(Value::as_array) + .unwrap_or(&default_trns) + .iter() + .map(|s| { + let [at, o] = s.as_array()?.as_slice() else { return None }; + Some(D::Descriptor(desc("TrnS").with("Opct", pct(o.as_f64()?)).with("Lctn", location(at)?).with("Mdpn", long(50.0)))) + }) + .collect(); + let grad = desc("Grdn") + .with("Nm ", text("Custom")) + .with("GrdF", enm("GrdF", "CstS")) + .with("Intr", D::Double(4096.0)) + .with("Clrs", D::List(clrs)) + .with("Trns", D::List(trns?)); + let mut t = desc("gradientLayer"); + if let Some(a) = jnum(p, "angle") { + t = t.with("Angl", ang(a)); + } + if let Some(s) = jstr(p, "style") { + t = t.with("Type", enm("GrdT", lookup_back(GRADIENT_STYLES, s)?)); + } + for (param, key) in [("reverse", "Rvrs"), ("dither", "Dthr"), ("align", "Algn")] { + if let Some(v) = p.get(param).filter(|v| !v.is_null()) { + t = t.with(key, D::Boolean(v.as_bool()?)); + } + } + if let Some(s) = jnum(p, "scale") { + t = t.with("Scl ", pct(s)); + } + if let Some(o) = p.get("offset").filter(|v| !v.is_null()) { + let [x, y] = o.as_array()?.as_slice() else { return None }; + t = t.with("Ofst", D::Descriptor(desc("Pnt ").with("Hrzn", pct(x.as_f64()?)).with("Vrtc", pct(y.as_f64()?)))); + } + Some(t.with("Grad", D::Descriptor(grad))) +} + +/// `layer.newFillLayer.gradient` as a Make of a `contentLayer`. The two-colour form (`from`, +/// `to`) becomes the stops it plays as; without them it plays the toolbox colours, which +/// Photoshop records with the colour they had. +fn gradient_make_to(p: &Value) -> Option { + let mut p = p.clone(); + let o = p.as_object_mut()?; + if o.remove("path").is_some_and(|v| !v.is_null()) { + return None; + } + // Stops replace `from` and `to` when the step plays, so those two are left out beside them. + match (o.remove("from").filter(|v| !v.is_null()), o.remove("to").filter(|v| !v.is_null())) { + _ if o.contains_key("stops") => {} + (None, None) => {} + (Some(a), Some(b)) => { + o.insert("stops".into(), json!([[0, a], [1, b]])); + } + _ => return None, + } + let t = gradient_desc(&p, false)?; + Some(desc("null").with("null", class_ref("contentLayer")).with("Usng", D::Descriptor(desc("contentLayer").with("Type", D::Descriptor(t))))) +} + +/// `layer.layerStyle.blendingOptions` as a Set of the target layer. +fn blending_options_to(p: &Value) -> Option { + let o = p.as_object()?; + let blend_if = p.get("blendIf"); + let mut t = desc("Lyr "); + if blend_if.is_some() { + // With Blend If, the dialog's opacities and mode are in the same `set`; without it, + // Photoshop's `set` of them loads as `layer.setProps`. + for (param, key) in [("opacity", "Opct"), ("fillOpacity", "fillOpacity")] { + if let Some(v) = jnum(p, param) { + t = t.with(key, pct(v)); + } + } + if let Some(m) = jstr(p, "blend") { + t = t.with("Md ", enm("BlnM", blend_ps(m)?)); + } + } + for (key, param) in ADVANCED_BLENDING { + if let Some(b) = jbool(p, param) { + t = t.with(key, D::Boolean(b)); + } + } + if let Some(b) = blend_if { + t = t.with("Blnd", blend_if_to(b)?); + if let Some(fx) = jstr(p, EFFECTS_SCALE) { + let fx = photocraft_paint::tile::b64_decode(fx).and_then(|b| Descriptor::from_bytes(&b).ok())?; + if !scale_only(&fx) { + return None; + } + t = t.with("Lefx", D::Descriptor(fx)); + } + } + // Only these export: Photoshop records the dialog's other options differently. + if t.items.is_empty() || t.items.len() != o.len() { + return None; + } + Some(desc("null").with("null", target_ref("Lyr ")).with("T ", D::Descriptor(t))) +} + +/// Blend If: a `Blnd` list's `Chnl` ↔ `blendIf` channel (`Gry` is the composite). +fn blend_if_channel(r: &[ReferenceItem]) -> Option<&'static str> { + match target(r) { + Target::Ordinal(o) if o == "Cmps" => Some("gray"), + Target::Ordinal(o) => channel_of(&o), + _ => None, + } +} + +/// The slider keys of one `Blnd` entry: This Layer, then Underlying Layer, each black low and +/// high, white low and high. +const BLEND_IF_KEYS: [[&str; 4]; 2] = [["SrcB", "Srcl", "SrcW", "Srcm"], ["DstB", "Dstl", "DstW", "Dstt"]]; + +/// A `Blnd` list as `layer.layerStyle.blendingOptions`' `blendIf`. Each entry's sliders are +/// whole levels 0..255 (also in a 16-bit document); Underlying Layer may be missing. None for +/// anything else, so the step stays a kept Photoshop step. +fn blend_if_from(list: &[D]) -> Option { + let mut out = Vec::with_capacity(list.len()); + for e in list { + let D::Descriptor(e) = e else { return None }; + if e.items.iter().any(|(k, _)| !k.is("Chnl") && !BLEND_IF_KEYS.iter().flatten().any(|b| k.is(b))) { + return None; + } + let channel = blend_if_channel(get_ref(e, "Chnl")?)?; + let range = |keys: &[&str; 4]| -> Option> { + let v: Vec> = keys + .iter() + .map(|k| match e.get(k) { + Some(D::Integer(i)) if (0..=255).contains(i) => Some(*i), + _ => None, + }) + .collect(); + match v.iter().flatten().count() { + 0 if keys.iter().all(|k| e.get(k).is_none()) => Some(None), + // In order, as the command takes them; an inverted range stays a Photoshop step. + 4 => { + let q: Vec = v.into_iter().flatten().collect(); + q.windows(2).all(|w| w[0] <= w[1]).then(|| Some(json!(q))) + } + _ => None, + } + }; + let mut m = json!({"channel": channel, "thisLayer": range(&BLEND_IF_KEYS[0])??}); + if let Some(u) = range(&BLEND_IF_KEYS[1])? { + m["underlying"] = u; + } + out.push(m); + } + (!out.is_empty()).then_some(Value::Array(out)) +} + +/// `blendIf` back as a `Blnd` list: named channels and whole levels only (an index or `null` +/// reset has no Photoshop form). +fn blend_if_to(v: &Value) -> Option { + let entries = match v { + Value::Array(a) => a.iter().collect::>(), + Value::Object(_) => vec![v], + _ => return None, + }; + let mut list = Vec::with_capacity(entries.len()); + for e in entries { + let o = e.as_object()?; + if o.keys().any(|k| !matches!(k.as_str(), "channel" | "thisLayer" | "underlying")) { + return None; + } + let channel = match e.get("channel") { + None | Some(Value::Null) => "gray", + Some(Value::String(c)) if c == "grey" => "gray", + Some(Value::String(c)) => c.as_str(), + _ => return None, + }; + lookup_back(CHANNELS, channel)?; + let mut d = desc("Blnd").with("Chnl", channel_ref(Some(channel))); + for (param, keys) in [("thisLayer", &BLEND_IF_KEYS[0]), ("underlying", &BLEND_IF_KEYS[1])] { + let Some(r) = e.get(param) else { + if param == "thisLayer" { + return None; + } + continue; + }; + let r: Vec = r.as_array()?.iter().map(Value::as_f64).collect::>()?; + let q = match r.as_slice() { + [b, w] => [*b, *b, *w, *w], + [a, b, c, w] => [*a, *b, *c, *w], + _ => return None, + }; + if !q.iter().all(|x| (0.0..=255.0).contains(x) && x.fract() == 0.0) || !q.windows(2).all(|w| w[0] <= w[1]) { + return None; + } + for (k, x) in keys.iter().zip(q) { + d = d.with(k, long(x)); + } + } + list.push(D::Descriptor(d)); + } + Some(D::List(list)) +} + /// Layer › Layer Mask: the `UsrM` value of an Add Layer Mask `Mk` ↔ its command. const MASK_USING: &[(&str, &str)] = &[ ("RvlA", "layer.layerMask.revealAll"), @@ -303,6 +651,11 @@ pub(super) fn make_from(d: &Descriptor) -> Mapped { Some(p) => step("layer.newFillLayer.pattern", Value::Object(p)), None => Mapped::Unsupported { harmless: false }, }, + // A name, opacity, mode or clipping beside `Type` would neither play nor save back. + Some(t) if t.class_id.is("gradientLayer") => match gradient_step(t) { + Some(p) if using.is_some_and(|u| u.items.iter().all(|(k, _)| k.is("Type"))) => step("layer.newFillLayer.gradient", p), + _ => Mapped::Unsupported { harmless: false }, + }, _ => Mapped::Unsupported { harmless: false }, }, Some("layerSection") => { @@ -432,6 +785,7 @@ pub(super) fn make_to(id: &str, p: &Value) -> Option { let t = pattern_desc(p)?; desc("null").with("null", class_ref("contentLayer")).with("Usng", D::Descriptor(desc("contentLayer").with("Type", D::Descriptor(t)))) } + "layer.newFillLayer.gradient" => gradient_make_to(p)?, "layer.duplicate" => { // Duplicate into a new document is a `Mk`, not a `Dplc` (see `make_from`). // Anything else falls through to the `Dplc` event below. @@ -658,6 +1012,25 @@ const LOCKS: &[(&str, &str)] = &[ ("protectAll", "all"), ]; +/// The Blending Options keys besides the Advanced checkboxes that `layer.layerStyle.blendingOptions` +/// takes from a `set` of the layer: opacity, fill opacity, mode and Blend If. +const BLENDING_DIALOG: &[&str] = &["Opct", "fillOpacity", "Md ", "Blnd"]; + +/// The hidden `layer.layerStyle.blendingOptions` param that keeps the `Lefx` = {Scl} the Layer +/// Style dialog's OK records beside Blend If, so Save Actions writes the Set back unchanged. +const EFFECTS_SCALE: &str = "__atnEffectsScale"; + +/// A `Lefx` holding only the effects' scale: what the dialog's OK records on a layer without +/// effects. It changes nothing. +fn scale_only(fx: &Descriptor) -> bool { + fx.items.iter().all(|(k, _)| k.is("Scl ")) +} + +/// A `T` key that is such a `Lefx`. +fn is_scale_only(k: &Id, v: &D) -> bool { + matches!(v, D::Descriptor(fx) if k.is("Lefx") && scale_only(fx)) +} + /// Blending Options' Advanced checkboxes ↔ `layer.layerStyle.blendingOptions` params. const ADVANCED_BLENDING: &[(&str, &str)] = &[("blendClipped", "blendClippedLayersAsGroup"), ("transparencyShapesLayer", "transparencyShapesLayer")]; @@ -739,6 +1112,32 @@ fn layer_set_from(d: &Descriptor, r: &[ReferenceItem]) -> Mapped { advanced.insert((*param).into(), b.into()); } } + if let Some(list) = get_list(t, "Blnd") { + // Effects beside Blend If have no step here: keep the recorded step rather than play + // and save it back without them. + if t.items.iter().any(|(k, v)| k.is("Lefx") && !is_scale_only(k, v)) { + return unsupported; + } + let Some(b) = blend_if_from(list) else { return unsupported }; + advanced.insert("blendIf".into(), b); + // The Blending Options dialog's OK: with nothing but its own options, the opacities and + // the mode go with Blend If into one step, saved back as the one `set`. + if t.items.iter().all(|(k, v)| BLENDING_DIALOG.iter().any(|b| k.is(b)) || ADVANCED_BLENDING.iter().any(|(a, _)| k.is(a)) || is_scale_only(k, v)) { + if let Some(D::Descriptor(fx)) = t.get("Lefx") { + advanced.insert(EFFECTS_SCALE.into(), photocraft_paint::tile::b64_encode(&fx.to_bytes()).into()); + } + for (key, param) in [("Opct", "opacity"), ("fillOpacity", "fillOpacity")] { + if let Some(v) = get_num(t, key) { + advanced.insert(param.into(), v.into()); + } + } + p.remove("opacity"); + p.remove("fill"); + if let Some(b) = p.remove("blend") { + advanced.insert("blend".into(), b); + } + } + } if !advanced.is_empty() { if !targeted { return unsupported; @@ -751,10 +1150,7 @@ fn layer_set_from(d: &Descriptor, r: &[ReferenceItem]) -> Mapped { // The Layer Style dialog's OK on a layer without effects records only the effects' // scale (`Lefx` = {Scl}); an empty `T` is an OK that changed nothing. Neither changes // the document. - let no_effect = t.items.iter().all(|(k, val)| match val { - D::Descriptor(fx) if k.is("Lefx") => fx.items.iter().all(|(fk, _)| fk.is("Scl ")), - _ => false, - }); + let no_effect = t.items.iter().all(|(k, val)| is_scale_only(k, val)); if !v.is_empty() { steps(v) } else if no_effect { @@ -808,6 +1204,12 @@ pub(super) fn set_from(d: &Descriptor) -> Mapped { Some(p) if !p.is_empty() => step("layer.fill.pattern.set", Value::Object(p)), _ => unsupported, }, + // Photoshop's Set replaces the whole gradient; one without transparency stops would + // keep the layer's own on play, and could not be written back once edited. + Some(t) if t.class_id.is("gradientLayer") => match gradient_step(t).filter(|p| p.get("transparency").is_some()) { + Some(p) => step("gradient.fill.set", p), + None => unsupported, + }, _ => unsupported, }, (Some("AdjL"), Target::Ordinal(o)) if o == "Trgt" => { @@ -954,21 +1356,14 @@ pub(super) fn set_to(id: &str, p: &Value) -> Option { } desc("null").with("null", target_ref("contentLayer")).with("T ", D::Descriptor(pattern_desc(p)?)) } - "layer.layerStyle.blendingOptions" => { - let o = p.as_object()?; - let mut t = desc("Lyr "); - for (key, param) in ADVANCED_BLENDING { - if let Some(b) = jbool(p, param) { - t = t.with(key, D::Boolean(b)); - } - } - // Only the Advanced checkboxes export: Photoshop records the dialog's other options - // differently. - if t.items.is_empty() || t.items.len() != o.len() { + "gradient.fill.set" => { + // A named layer or dragged handles have no place in the event. + if ["layer", "from", "to"].iter().any(|k| p.get(*k).is_some_and(|v| !v.is_null())) { return None; } - desc("null").with("null", target_ref("Lyr ")).with("T ", D::Descriptor(t)) + desc("null").with("null", target_ref("contentLayer")).with("T ", D::Descriptor(gradient_desc(p, true)?)) } + "layer.layerStyle.blendingOptions" => blending_options_to(p)?, "layer.smartFilter.blendingOptions" => { if p.get("layer").is_some() { return None; diff --git a/crates/engine/src/cmd/atn_cmds/tests.rs b/crates/engine/src/cmd/atn_cmds/tests.rs index a65404324f..90b965d939 100644 --- a/crates/engine/src/cmd/atn_cmds/tests.rs +++ b/crates/engine/src/cmd/atn_cmds/tests.rs @@ -1056,6 +1056,11 @@ fn every_mapped_command_exports_and_imports_back() { ("layer.smartFilter.deleteFilterMask", json!({"ifPresent": true})), ("layer.smartFilter.blendingOptions", json!({"index": 1, "opacity": 0.5, "blend": "Darken"})), ("layer.layerStyle.blendingOptions", json!({"blendClippedLayersAsGroup": false, "transparencyShapesLayer": false})), + ("layer.layerStyle.blendingOptions", json!({"blendIf": [{"channel": "gray", "thisLayer": [0, 30, 200, 255], "underlying": [0, 0, 255, 255]}]})), + ( + "layer.layerStyle.blendingOptions", + json!({"opacity": 40, "fillOpacity": 70, "blend": "Multiply", "blendIf": [{"channel": "blue", "thisLayer": [5, 5, 250, 250]}]}), + ), ("layer.createClippingMask", json!({})), ("layer.lockLayers", json!({"transparency": true})), ("filter.stylize.diffuse", json!({"mode": "normal", "seed": 321654})), @@ -1200,6 +1205,9 @@ fn every_mapped_command_exports_and_imports_back() { "filter.sharpen.sharpenMore", // Saves back only as the descriptor it was loaded from (loaded_camera_raw_filter_steps_save_back_unchanged). "filter.cameraRaw", + // Load with the recorded descriptor riding along (gradient_fill_steps_export_and_import_back). + "gradient.fill.set", + "layer.newFillLayer.gradient", ]; let unexpected: Vec<&str> = missing.iter().copied().filter(|id| !allowed.contains(id)).collect(); assert!(unexpected.is_empty(), "add round-trip cases for {unexpected:?}"); @@ -6284,6 +6292,365 @@ fn shear_nonfinite_coordinates_stay_kept() { } } +/// #10771: a Gradient Fill as Photoshop records it: three stops, a transparency stop at 40 % and +/// one midpoint per stop (`Mdpn` of stop k is the segment that ends at it). +fn recorded_gradient(mids: [i32; 3]) -> Descriptor { + let stop = |hex: &str, at: i32, mid: i32| { + D::Descriptor( + desc("Clrt") + .with("Clr ", D::Descriptor(color_desc(hex).unwrap())) + .with("Type", enm("Clry", "UsrS")) + .with("Lctn", D::Integer(at)) + .with("Mdpn", D::Integer(mid)), + ) + }; + let trn = |at: i32, o: f64| D::Descriptor(desc("TrnS").with("Opct", pct(o)).with("Lctn", D::Integer(at)).with("Mdpn", D::Integer(50))); + let grad = desc("Grdn") + .with("Nm ", text("Custom")) + .with("GrdF", enm("GrdF", "CstS")) + .with("Intr", D::Double(4096.0)) + .with("Clrs", D::List(vec![stop("#ff0000", 0, mids[0]), stop("#00ff00", 2048, mids[1]), stop("#0000ff", 4096, mids[2])])) + .with("Trns", D::List(vec![trn(0, 100.0), trn(4096, 40.0)])); + desc("gradientLayer").with("Angl", ang(30.0)).with("Type", enm("GrdT", "Rdl ")).with("Grad", D::Descriptor(grad)) +} + +fn gradient_set(t: Descriptor) -> AtnItem { + item("setd", "Set", Some(desc("null").with("null", target_ref("contentLayer")).with("T ", D::Descriptor(t)))) +} + +fn gradient_make(t: Descriptor) -> AtnItem { + let d = desc("null").with("null", class_ref("contentLayer")).with("Usng", D::Descriptor(desc("contentLayer").with("Type", D::Descriptor(t)))); + item("Mk ", "Make", Some(d)) +} + +/// The first saved step of `action` (strict save). +fn saved_first(s: &mut Session) -> (AtnEvent, Option) { + let r = s.execute("actions.save", json!({"action": "A"})).unwrap(); + assert_eq!(r["skipped"], json!([]), "{r}"); + let saved = atn::parse(&photocraft_paint::tile::b64_decode(r["data"].as_str().unwrap()).unwrap()).unwrap(); + let i = &saved.actions[0].items[0]; + (i.event.clone(), i.descriptor.clone()) +} + +fn without_hidden(p: &Value) -> Value { + let mut p = p.clone(); + p.as_object_mut().unwrap().remove("__atnDescriptor"); + normalise(&mut p); + p +} + +fn active_fill(s: &Session) -> photocraft_doc::Fill { + let st = s.active().unwrap(); + match &st.doc.layer(st.active_layer.unwrap()).unwrap().content { + photocraft_doc::LayerContent::Fill(f) => f.clone(), + c => panic!("not a fill layer: {}", c.kind_name()), + } +} + +/// #10771: a recorded Set of a Gradient Fill loads as `gradient.fill.set` with its midpoints on +/// the segment they belong to, plays them, and saves back as the recorded descriptor. +#[test] +fn gradient_fill_set_imports_midpoints_plays_and_saves_back_unchanged() { + let recorded = recorded_gradient([50, 25, 70]); + let mut s = Session::new(); + let loaded = s.execute("actions.load", json!({"data": b64(&atn::write(&one_action(vec![gradient_set(recorded.clone())])).unwrap())})).unwrap(); + assert_eq!(loaded["unsupported"], json!([]), "{loaded}"); + let (id, p) = s.actions.list[0].steps[0].clone(); + assert_eq!(id, "gradient.fill.set"); + let mut expected = json!({ + "style": "radial", "angle": 30, + "stops": [[0, "#ff0000"], [0.5, "#00ff00"], [1, "#0000ff"]], + "transparency": [[0, 100], [1, 40]], + "midpoints": [0.25, 0.7] + }); + normalise(&mut expected); + assert_eq!(without_hidden(&p), expected); + assert_eq!( + saved_first(&mut s), + (AtnEvent::Code(*b"setd"), Some(desc("null").with("null", target_ref("contentLayer")).with("T ", D::Descriptor(recorded)))) + ); + // It plays on a Gradient Fill layer. + s.execute("file.new", json!({"width": 16, "height": 12})).unwrap(); + s.execute("layer.newFillLayer.gradient", json!({"from": "#000000", "to": "#ffffff"})).unwrap(); + let played = s.execute("actions.play", json!({"action": "A"})).unwrap(); + assert!(played.get("failed").is_none(), "{played}"); + let photocraft_doc::Fill::Gradient { stops, midpoints, opacity_stops, .. } = active_fill(&s) else { panic!("not a gradient") }; + assert_eq!(stops.len(), 3); + assert_eq!(midpoints, vec![0.25, 0.7]); + assert_eq!(opacity_stops.len(), 2); + // Default midpoints load as `[]`, which clears the custom ones when played. + let mut s2 = Session::new(); + s2.execute("actions.load", json!({"data": b64(&atn::write(&one_action(vec![gradient_set(recorded_gradient([50, 50, 50]))])).unwrap())})).unwrap(); + assert_eq!(s2.actions.list[0].steps[0].1["midpoints"], json!([])); + s.actions = s2.actions; + s.execute("actions.play", json!({"action": "A"})).unwrap(); + let photocraft_doc::Fill::Gradient { midpoints, .. } = active_fill(&s) else { panic!("not a gradient") }; + assert!(midpoints.is_empty() || midpoints.iter().all(|m| *m == 0.5), "{midpoints:?}"); +} + +/// #10771: an edited loaded step writes a fresh descriptor from its params, midpoints included. +#[test] +fn edited_gradient_fill_set_writes_a_fresh_descriptor() { + let mut s = Session::new(); + s.execute("actions.load", json!({"data": b64(&atn::write(&one_action(vec![gradient_set(recorded_gradient([50, 25, 70]))])).unwrap())})).unwrap(); + s.actions.list[0].steps[0].1["midpoints"] = json!([0.4, 0.6]); + let (_, d) = saved_first(&mut s); + let t = get_obj(d.as_ref().unwrap(), "T ").unwrap(); + let clrs = get_list(get_obj(t, "Grad").unwrap(), "Clrs").unwrap(); + let mids: Vec = clrs.iter().map(|c| if let D::Descriptor(c) = c { get_num(c, "Mdpn").unwrap() } else { panic!() }).collect(); + assert_eq!(mids, vec![50.0, 40.0, 60.0]); + // Its own import is the edited params. + let Mapped::Steps(steps) = (event_for(&AtnEvent::Code(*b"setd")).unwrap().from)(d.as_ref().unwrap()) else { panic!("did not import") }; + let mut edited = without_hidden(&s.actions.list[0].steps[0].1); + edited["midpoints"] = json!([0.4, 0.6]); + normalise(&mut edited); + assert_eq!(without_hidden(&steps[0].1), edited); +} + +/// #10771: a recorded Make of a Gradient Fill layer plays its stops, transparency and midpoints +/// and saves back unchanged. +#[test] +fn gradient_fill_make_imports_plays_and_saves_back_unchanged() { + let recorded = recorded_gradient([50, 25, 70]); + let mut s = Session::new(); + let loaded = s.execute("actions.load", json!({"data": b64(&atn::write(&one_action(vec![gradient_make(recorded.clone())])).unwrap())})).unwrap(); + assert_eq!(loaded["unsupported"], json!([]), "{loaded}"); + assert_eq!(s.actions.list[0].steps[0].0, "layer.newFillLayer.gradient"); + let (event, d) = saved_first(&mut s); + assert_eq!(event, AtnEvent::Code(*b"Mk ")); + assert_eq!(get_obj(get_obj(d.as_ref().unwrap(), "Usng").unwrap(), "Type"), Some(&recorded)); + for depth in [8, 16] { + s.execute("file.new", json!({"width": 16, "height": 12, "depth": depth})).unwrap(); + let played = s.execute("actions.play", json!({"action": "A"})).unwrap(); + assert!(played.get("failed").is_none(), "{played}"); + let photocraft_doc::Fill::Gradient { stops, midpoints, opacity_stops, .. } = active_fill(&s) else { panic!("not a gradient") }; + assert_eq!((stops.len(), midpoints, opacity_stops.len()), (3, vec![0.25, 0.7], 2)); + // One undo step. + s.execute("edit.undo", json!({})).unwrap(); + assert!(!matches!(s.active().unwrap().doc.layers.last().unwrap().content, photocraft_doc::LayerContent::Fill(_))); + } +} + +/// #10771: PhotoCraft's own Gradient Fill steps export and load back as the same fill. +#[test] +fn gradient_fill_steps_export_and_import_back() { + let set = json!({"style": "linear", "angle": 45, "stops": [[0, "#ff0000"], [0.25, "#00ff00"], [1, "#0000ff"]], "transparency": [[0, 100], [1, 50]], "midpoints": [0.3, 0.6]}); + let item = export_item("gradient.fill.set", &set, "S").unwrap(); + let Mapped::Steps(steps) = (event_for(&item.event).unwrap().from)(item.descriptor.as_ref().unwrap()) else { panic!("did not import") }; + let mut expected = set.clone(); + normalise(&mut expected); + assert_eq!((steps[0].0.as_str(), without_hidden(&steps[0].1)), ("gradient.fill.set", expected)); + // The two-colour Make plays as the same two stops at full opacity. + let item = export_item("layer.newFillLayer.gradient", &json!({"from": "#ff0000", "to": "#0000ff", "angle": 45}), "S").unwrap(); + let Mapped::Steps(steps) = (event_for(&item.event).unwrap().from)(item.descriptor.as_ref().unwrap()) else { panic!("did not import") }; + let mut expected = json!({"angle": 45, "stops": [[0, "#ff0000"], [1, "#0000ff"]], "transparency": [[0, 100], [1, 100]], "midpoints": []}); + normalise(&mut expected); + assert_eq!((steps[0].0.as_str(), without_hidden(&steps[0].1)), ("layer.newFillLayer.gradient", expected)); + // Stops replace `from` and `to` when it plays, so a Make with all three exports its stops. + let p = json!({"from": "#ff0000", "to": "#0000ff", "stops": [[0, "#00ff00"], [1, "#ffffff"]], "transparency": [[0, 100], [1, 100]]}); + let item = export_item("layer.newFillLayer.gradient", &p, "S").unwrap(); + let Mapped::Steps(steps) = (event_for(&item.event).unwrap().from)(item.descriptor.as_ref().unwrap()) else { panic!("did not import") }; + assert_eq!(steps[0].1["stops"], json!([[0.0, "#00ff00"], [1.0, "#ffffff"]])); + // What the event cannot hold is refused: a Set without its transparency, toolbox colours, + // dragged handles, a path, a midpoint off a whole percent. + for (id, p) in [ + ("gradient.fill.set", json!({"stops": [[0, "#ff0000"], [1, "#0000ff"]]})), + ("gradient.fill.set", json!({"stops": [[0, "foreground"], [1, "#0000ff"]], "transparency": [[0, 100], [1, 100]]})), + ("gradient.fill.set", json!({"from": [0, 0], "stops": [[0, "#ff0000"], [1, "#0000ff"]], "transparency": [[0, 100], [1, 100]]})), + ("gradient.fill.set", json!({"stops": [[0, "#ff0000"], [1, "#0000ff"]], "transparency": [[0, 100], [1, 100]], "midpoints": [0.333]})), + ("layer.newFillLayer.gradient", json!({"from": "#ff0000", "to": "#0000ff", "path": "work"})), + ("layer.newFillLayer.gradient", json!({"from": "#ff0000"})), + ] { + assert!(export_item(id, &p, "S").is_none(), "{id}: {p}"); + } +} + +/// #10771: a Noise gradient, smoothness below 100 % or a transparency midpoint stay Photoshop +/// steps rather than playing as a different fill. +#[test] +fn gradient_fills_the_command_cannot_play_stay_photoshop_steps() { + // `with` appends; these replace the recorded value. + fn replaced(mut d: Descriptor, key: &str, v: D) -> Descriptor { + d.items.retain(|(k, _)| !k.is(key)); + d.with(key, v) + } + let base = recorded_gradient([50, 50, 50]); + let with_grad = |f: &dyn Fn(Descriptor) -> Descriptor| { + let g = get_obj(&base, "Grad").unwrap().clone(); + replaced(base.clone(), "Grad", D::Descriptor(f(g))) + }; + let trns_mid = desc("TrnS").with("Opct", pct(100.0)).with("Lctn", D::Integer(0)).with("Mdpn", D::Integer(30)); + let trns_end = desc("TrnS").with("Opct", pct(100.0)).with("Lctn", D::Integer(4096)).with("Mdpn", D::Integer(50)); + let trns = |at: i32, o: f64| D::Descriptor(desc("TrnS").with("Opct", pct(o)).with("Lctn", D::Integer(at)).with("Mdpn", D::Integer(50))); + for t in [ + // A midpoint outside the dialog's 5..95 % would play clamped. + recorded_gradient([50, 2, 50]), + recorded_gradient([50, 50, 97]), + // Transparency stops out of range or out of order would play clamped and sorted. + with_grad(&|g| replaced(g, "Trns", D::List(vec![trns(0, 100.0), trns(5000, 40.0)]))), + with_grad(&|g| replaced(g, "Trns", D::List(vec![trns(0, 150.0), trns(4096, 40.0)]))), + with_grad(&|g| replaced(g, "Trns", D::List(vec![trns(4096, 100.0), trns(0, 40.0)]))), + // A Set without transparency stops would keep the layer's own. + with_grad(&|mut g| { + g.items.retain(|(k, _)| !k.is("Trns")); + g + }), + with_grad(&|g| replaced(g, "GrdF", enm("GrdF", "ClNs"))), + with_grad(&|g| replaced(g, "Intr", D::Double(2048.0))), + with_grad(&|g| replaced(g, "Trns", D::List(vec![D::Descriptor(trns_mid.clone()), D::Descriptor(trns_end.clone())]))), + base.clone().with("gradientsInterpolationMethod", enm("gradientInterpolationMethodType", "Perc")), + ] { + let imp = import(&atn::write(&one_action(vec![gradient_set(t)])).unwrap()).unwrap(); + assert_eq!(imp.actions[0].steps[0].0, PHOTOSHOP_STEP); + } + // A Make whose new layer also gets a name, opacity, mode or clipping: the command plays none + // of them, so the step stays as recorded. + for (key, v) in [("Nm ", text("Sky")), ("Opct", pct(50.0)), ("Md ", enm("BlnM", "Mltp")), ("Grup", D::Boolean(true))] { + let using = desc("contentLayer").with("Type", D::Descriptor(base.clone())).with(key, v); + let make = item("Mk ", "Make", Some(desc("null").with("null", class_ref("contentLayer")).with("Usng", D::Descriptor(using)))); + let imp = import(&atn::write(&one_action(vec![make])).unwrap()).unwrap(); + assert_eq!(imp.actions[0].steps[0].0, PHOTOSHOP_STEP, "{key}"); + } +} + +fn blend_if_entry(channel: &str, this: [i32; 4], under: Option<[i32; 4]>) -> D { + let mut d = desc("Blnd").with("Chnl", channel_ref(Some(channel))); + for (k, v) in ["SrcB", "Srcl", "SrcW", "Srcm"].into_iter().zip(this) { + d = d.with(k, D::Integer(v)); + } + if let Some(u) = under { + for (k, v) in ["DstB", "Dstl", "DstW", "Dstt"].into_iter().zip(u) { + d = d.with(k, D::Integer(v)); + } + } + D::Descriptor(d) +} + +fn layer_set(t: Descriptor) -> AtnItem { + item("setd", "Set", Some(desc("null").with("null", target_ref("Lyr ")).with("T ", D::Descriptor(t)))) +} + +fn blend_layers(depth: u8) -> Session { + let mut s = Session::new(); + s.execute("file.new", json!({"width": 8, "height": 8, "depth": depth})).unwrap(); + s.execute("layer.new.layer", json!({})).unwrap(); + s.execute("edit.fill", json!({"color": "#808080"})).unwrap(); + s +} + +fn active_info(s: &Session) -> Value { + let st = s.active().unwrap(); + crate::inspect::layer(st.doc.layer(st.active_layer.unwrap()).unwrap()) +} + +/// #10771: Blend If loads as `layer.layerStyle.blendingOptions` and plays (it used to be a +/// silent no-op), on 8- and 16-bit documents, Gray and a colour channel, split sliders. +#[test] +fn blend_if_imports_and_plays() { + let blnd = D::List(vec![blend_if_entry("gray", [0, 30, 200, 255], Some([10, 10, 240, 250])), blend_if_entry("red", [20, 40, 255, 255], None)]); + for depth in [8, 16] { + let mut s = blend_layers(depth); + let loaded = s + .execute("actions.load", json!({"data": b64(&atn::write(&one_action(vec![layer_set(desc("Lyr ").with("Blnd", blnd.clone()))])).unwrap())})) + .unwrap(); + assert_eq!(loaded["unsupported"], json!([]), "{loaded}"); + let mut expected = json!({"blendIf": [{"channel": "gray", "thisLayer": [0, 30, 200, 255], "underlying": [10, 10, 240, 250]}, {"channel": "red", "thisLayer": [20, 40, 255, 255]}]}); + normalise(&mut expected); + let (id, p) = &s.actions.list[0].steps[0]; + assert_eq!((id.as_str(), p), ("layer.layerStyle.blendingOptions", &expected)); + let played = s.execute("actions.play", json!({"action": "A"})).unwrap(); + assert!(played.get("failed").is_none(), "{played}"); + let b = active_info(&s)["blendIf"].clone(); + assert_eq!(b[0], json!({"channel": 0, "thisLayer": [0, 30, 200, 255], "underlying": [10, 10, 240, 250]}), "{b}"); + assert_eq!(b[1], json!({"channel": 1, "thisLayer": [20, 40, 255, 255], "underlying": [0, 0, 255, 255]}), "{b}"); + // It saves back as the same `Blnd`. + let (_, d) = saved_first(&mut s); + assert_eq!(get_obj(d.as_ref().unwrap(), "T ").unwrap().get("Blnd"), Some(&blnd)); + } +} + +/// #10771: the Blending Options dialog's OK (opacity, fill, mode and Blend If in one Set) is one +/// step that applies them all; a Set that also renames splits into setProps and Blend If. +#[test] +fn blend_if_with_the_dialog_options_is_one_step_and_a_rename_splits() { + let blnd = D::List(vec![blend_if_entry("gray", [0, 0, 128, 255], None)]); + let dialog = desc("Lyr ").with("Opct", pct(40.0)).with("fillOpacity", pct(70.0)).with("Md ", enm("BlnM", "Mltp")).with("Blnd", blnd.clone()); + let mut s = blend_layers(8); + s.execute("actions.load", json!({"data": b64(&atn::write(&one_action(vec![layer_set(dialog.clone())])).unwrap())})).unwrap(); + let steps = &s.actions.list[0].steps; + assert_eq!(steps.len(), 1, "{steps:?}"); + assert_eq!(steps[0].0, "layer.layerStyle.blendingOptions"); + let played = s.execute("actions.play", json!({"action": "A"})).unwrap(); + assert!(played.get("failed").is_none(), "{played}"); + let info = active_info(&s); + assert!((info["opacity"].as_f64().unwrap() - 0.4).abs() < 1e-3, "{info}"); + assert_eq!(info["blend"], json!("Multiply"), "{info}"); + assert_eq!(info["blendIf"][0]["thisLayer"], json!([0, 0, 128, 255]), "{info}"); + let (_, d) = saved_first(&mut s); + assert_eq!(get_obj(d.as_ref().unwrap(), "T "), Some(&dialog)); + // With a rename the Set is not the dialog's: the name and opacity go through setProps. + let mut s = blend_layers(8); + s.execute("actions.load", json!({"data": b64(&atn::write(&one_action(vec![layer_set(desc("Lyr ").with("Nm ", text("Renamed")).with("Opct", pct(40.0)).with("Blnd", blnd))])).unwrap())})) + .unwrap(); + let ids: Vec<&str> = s.actions.list[0].steps.iter().map(|(id, _)| id.as_str()).collect(); + assert!(ids.contains(&"layer.setProps") && ids.contains(&"layer.layerStyle.blendingOptions"), "{ids:?}"); + let played = s.execute("actions.play", json!({"action": "A"})).unwrap(); + assert!(played.get("failed").is_none(), "{played}"); + let info = active_info(&s); + assert_eq!(info["name"], json!("Renamed")); + assert_eq!(info["blendIf"][0]["thisLayer"], json!([0, 0, 128, 255]), "{info}"); +} + +/// #10771: the Layer Style dialog's OK on a layer without effects also records the effects' +/// scale (`Lefx` = {Scl}). With Blend If it is still the dialog's one step and saves back with it. +#[test] +fn blend_if_with_the_recorded_effects_scale_saves_back_unchanged() { + let blnd = D::List(vec![blend_if_entry("gray", [10, 20, 200, 230], Some([0, 0, 255, 255]))]); + let dialog = desc("Lyr ").with("Opct", pct(80.0)).with("Blnd", blnd.clone()).with("Lefx", D::Descriptor(desc("Lefx").with("Scl ", pct(100.0)))); + let mut s = blend_layers(8); + s.execute("actions.load", json!({"data": b64(&atn::write(&one_action(vec![layer_set(dialog.clone())])).unwrap())})).unwrap(); + let steps = &s.actions.list[0].steps; + assert_eq!(steps.len(), 1, "{steps:?}"); + assert_eq!(steps[0].0, "layer.layerStyle.blendingOptions"); + let played = s.execute("actions.play", json!({"action": "A"})).unwrap(); + assert!(played.get("failed").is_none(), "{played}"); + let info = active_info(&s); + assert!((info["opacity"].as_f64().unwrap() - 0.8).abs() < 1e-3, "{info}"); + assert_eq!(info["blendIf"][0]["thisLayer"], json!([10, 20, 200, 230]), "{info}"); + let (_, d) = saved_first(&mut s); + assert_eq!(get_obj(d.as_ref().unwrap(), "T "), Some(&dialog)); + // A `Lefx` with an effect in it is not the scale alone: the step is not the dialog's. + let with_fx = desc("Lyr ").with("Blnd", blnd).with("Lefx", D::Descriptor(desc("Lefx").with("Scl ", pct(100.0)).with("DrSh", D::Descriptor(desc("DrSh"))))); + let imp = import(&atn::write(&one_action(vec![layer_set(with_fx)])).unwrap()).unwrap(); + assert!(imp.actions[0].steps.iter().all(|(_, p)| p.get("__atnEffectsScale").is_none()), "{:?}", imp.actions[0].steps); + // Nor can it play without the shadow: it stays the recorded step. + assert_eq!(imp.actions[0].steps.iter().map(|(c, _)| c.as_str()).collect::>(), [PHOTOSHOP_STEP], "{:?}", imp.actions[0].steps); +} + +/// #10771: Blend If entries that are not whole levels, out of order, with half the Underlying +/// sliders or an unknown key stay Photoshop steps. +#[test] +fn blend_if_the_command_cannot_play_stays_a_photoshop_step() { + let with = |key: &str| match blend_if_entry("gray", [0, 0, 255, 255], None) { + D::Descriptor(d) => D::Descriptor(d.with(key, D::Integer(3))), + e => e, + }; + let (half, unknown) = (with("DstB"), with("Zzzz")); + let inverted = blend_if_entry("gray", [0, 200, 100, 255], None); + for e in [blend_if_entry("gray", [0, 0, 300, 255], None), inverted, half, unknown] { + let imp = import(&atn::write(&one_action(vec![layer_set(desc("Lyr ").with("Blnd", D::List(vec![e])))])).unwrap()).unwrap(); + assert_eq!(imp.actions[0].steps[0].0, PHOTOSHOP_STEP); + } + for p in [ + json!({"blendIf": null}), + json!({"blendIf": {"channel": 2, "thisLayer": [0, 255]}}), + json!({"blendIf": {"channel": "gray", "thisLayer": [200, 100]}}), + json!({"blendIf": {"channel": "gray", "underlying": [0, 255]}}), + ] { + assert!(export_item("layer.layerStyle.blendingOptions", &p, "S").is_none(), "{p}"); + } +} + /// Save one action of steps through `actions.save`, returning the skipped list and the steps /// `actions.load` reads back. fn save_and_reload(steps: Vec<(String, Value)>) -> (Value, Vec<(String, Value)>) { diff --git a/crates/engine/src/cmd/color_cmds.rs b/crates/engine/src/cmd/color_cmds.rs index a93c580829..c7c7942d0b 100644 --- a/crates/engine/src/cmd/color_cmds.rs +++ b/crates/engine/src/cmd/color_cmds.rs @@ -16,7 +16,7 @@ use std::sync::{Arc, Mutex, Weak}; use photocraft_cms::{Builtin, ColorSpace, GamutCheck, Intent, Lut3d, Profile, SampleKind, Transform}; use photocraft_color::{Color, ColorMode, PixelFormat, SampleType}; -use photocraft_doc::{DocId, Document, Duotone, Effect, Fill, FxPaint, Layer, LayerContent}; +use photocraft_doc::{DocId, Document, Duotone, Effect, Fill, FxPaint, Layer, LayerContent, TextStyles}; use photocraft_raster::Surface; use serde_json::{Value, json}; @@ -763,6 +763,26 @@ fn convert_layer_colors(l: &mut Layer, cc: &mut dyn FnMut(&mut Color)) { } } +/// Applies `cc` to every colour a type style sets (character styles, paragraph styles and Basic +/// Paragraph), so type converted with its document still matches its styles instead of showing +/// a local override. +fn convert_style_colors(st: &mut TextStyles, cc: &mut dyn FnMut(&mut Color)) { + let sets = st + .character + .iter_mut() + .map(|c| &mut c.attrs) + .chain(st.paragraph.iter_mut().chain([&mut st.basic]).flat_map(|p| [&mut p.para_attrs, &mut p.char_attrs])); + for attrs in sets { + for v in attrs.values_mut().filter(|v| v.is_object()) { + let Ok(mut c) = serde_json::from_value::(v.clone()) else { continue }; + cc(&mut c); + if let Ok(n) = serde_json::to_value(c) { + *v = n; + } + } + } +} + fn paint_colors(p: &mut FxPaint, cc: &mut dyn FnMut(&mut Color)) { match p { FxPaint::Color(c) => cc(c), @@ -793,6 +813,7 @@ pub fn convert_document(doc: &mut Document, dst: &Profile, intent: Intent, bpc: convert_layer_colors(l, &mut |c| convert_color(c, from_mode, to_mode, &t)); // Preserved PSD blocks describing colours in the old mode no longer apply. } + convert_style_colors(&mut doc.text_styles, &mut |c| convert_color(c, from_mode, to_mode, &t)); doc.mode = to_mode; doc.icc_profile = Some(dst.to_bytes()); // Leaving Indexed / Duotone: the palette and inks no longer apply. @@ -819,6 +840,12 @@ fn ink_duotone(doc: &mut Document) { } }); } + convert_style_colors(&mut doc.text_styles, &mut |c| { + if matches!(c.mode, ColorMode::Grayscale | ColorMode::Duotone) { + let [r, g, b] = d.render(c.c[0]); + *c = Color::rgba(r, g, b, c.alpha); + } + }); doc.mode = ColorMode::Rgb; doc.icc_profile = Some(Builtin::Srgb.profile().to_bytes()); } diff --git a/crates/engine/src/cmd/color_cmds/profile_dither.rs b/crates/engine/src/cmd/color_cmds/profile_dither.rs index 4bc5854ac0..9f368484a0 100644 --- a/crates/engine/src/cmd/color_cmds/profile_dither.rs +++ b/crates/engine/src/cmd/color_cmds/profile_dither.rs @@ -8,7 +8,7 @@ use rayon::prelude::*; use super::{ ColorMode, Document, EngineError, Intent, PixelFormat, Profile, Result, SampleType, Surface, Transform, cms_err, convert_color, convert_document, - convert_layer_colors, convert_surface, document_profile, space_mode, + convert_layer_colors, convert_style_colors, convert_surface, document_profile, space_mode, }; const TILE_PIXELS: u128 = (TILE_SIZE * TILE_SIZE) as u128; @@ -197,6 +197,7 @@ pub(super) fn convert(doc: &mut Document, dst: &Profile, intent: Intent, bpc: bo for layer in &mut doc.layers { convert_layer_colors(layer, &mut |c| convert_color(c, from, to_mode, &t)); } + convert_style_colors(&mut doc.text_styles, &mut |c| convert_color(c, from, to_mode, &t)); doc.mode = to_mode; doc.icc_profile = Some(dst.to_bytes()); doc.color_table = None; diff --git a/crates/engine/src/cmd/edit_cmds.rs b/crates/engine/src/cmd/edit_cmds.rs index ec99ca0fa5..38eb4aed5e 100644 --- a/crates/engine/src/cmd/edit_cmds.rs +++ b/crates/engine/src/cmd/edit_cmds.rs @@ -69,6 +69,7 @@ fn scratch_doc(doc: &Document) -> Document { copies.icc_profile = doc.icc_profile.clone(); copies.resolution_dpi = doc.resolution_dpi; copies.patterns = doc.patterns.clone(); + copies.text_styles = doc.text_styles.clone(); copies } @@ -576,8 +577,10 @@ fn paste_layers(s: &mut Session, layers: &Document, dx: i32, dy: i32, board: Opt linked.push((*signature, *key, missing)); } } + let styles = std::mem::take(&mut copies.text_styles); let id = s.edit("Paste", |doc, active| { doc.patterns.extend(patterns); + crate::layer_copy_cmds::land_text_styles(doc, styles); doc.metadata.psd_global_blocks.extend(linked); // The first pasted layer goes where a new layer would; the rest stack above it. let mut place = crate::layer_place::Place::AutoEditable; diff --git a/crates/engine/src/cmd/edit_menu_cmds/content_aware_scale.rs b/crates/engine/src/cmd/edit_menu_cmds/content_aware_scale.rs index e0d05742df..49c0ea2bdf 100644 --- a/crates/engine/src/cmd/edit_menu_cmds/content_aware_scale.rs +++ b/crates/engine/src/cmd/edit_menu_cmds/content_aware_scale.rs @@ -112,6 +112,7 @@ pub(super) fn content_aware_scale(s: &mut Session, p: &Value) -> Result { let (w, h) = (region.width() as usize, region.height() as usize); let (nw, nh) = (dst.width() as usize, dst.height() as usize); let label = "Content-Aware Scale"; + let background = s.tools.background; // A background job when started with `Session::start` (#210): seam carving runs on a worker // against the document snapshot and checks for cancellation before every seam. crate::jobs::run( @@ -128,8 +129,11 @@ pub(super) fn content_aware_scale(s: &mut Session, p: &Value) -> Result { }, move |s, out| { s.edit(label, |doc, _| { + // The scaled area is vacated as Delete leaves it: transparent, or on the Background, + // which can't hold transparency, the background colour (Photoshop). + writable_surface(doc, id)?; + crate::edit_cmds::clear_area(doc, id, region, None, background)?; let surf = writable_surface(doc, id)?; - crate::pixels::try_clear_surface(surf, region, None)?; surf.write_region(dst, &out); surf.prune(); Ok(()) diff --git a/crates/engine/src/cmd/edit_menu_cmds/tests.rs b/crates/engine/src/cmd/edit_menu_cmds/tests.rs index 062a73df0d..cff0d0d315 100644 --- a/crates/engine/src/cmd/edit_menu_cmds/tests.rs +++ b/crates/engine/src/cmd/edit_menu_cmds/tests.rs @@ -14,6 +14,10 @@ fn px(s: &Session, x: i32, y: i32) -> Vec { st.doc.layer(st.active_layer.unwrap()).unwrap().surface().unwrap().pixel(x, y) } +fn px_rgba(s: &Session, x: i32, y: i32) -> [f32; 4] { + active(s).surface().unwrap().rgba(x, y) +} + fn active(s: &Session) -> &Layer { let st = s.active().unwrap(); st.doc.layer(st.active_layer.unwrap()).unwrap() @@ -545,6 +549,38 @@ fn content_aware_scale_keeps_subject() { } } +/// On the Background, which can't hold transparency, the area a selection's Content-Aware Scale +/// vacates takes the background colour, as Delete leaves it (Photoshop); the layer stays the +/// Background. On a normal layer it is left transparent. +#[test] +fn content_aware_scale_on_the_background_vacates_to_the_background_colour() { + for depth in [8, 16] { + let mut s = session(depth); + s.tools.background = [0.0, 0.0, 1.0, 1.0]; + let id = s.active().unwrap().active_layer.unwrap(); + s.execute("select.rect", json!({"x": 10, "y": 10, "width": 20, "height": 10})).unwrap(); + let r = s.execute("edit.contentAwareScale", json!({"width": 10})).unwrap(); + assert_eq!(r["bounds"], json!([10, 10, 10, 10]), "{depth}-bit"); + let st = s.active().unwrap(); + assert!(st.doc.is_background(id), "{depth}-bit: still the Background"); + let px = |x, y| st.doc.layer(id).unwrap().surface().unwrap().rgba(x, y); + for (x, y) in [(20, 10), (25, 15), (29, 19)] { + assert_eq!(px(x, y), [0.0, 0.0, 1.0, 1.0], "{depth}-bit: ({x}, {y}) is vacated"); + } + assert_eq!(px(12, 15), [1.0, 1.0, 1.0, 1.0], "{depth}-bit: the scaled pixels"); + assert_eq!(px(5, 5), [1.0, 1.0, 1.0, 1.0], "{depth}-bit: outside the selection"); + // A normal layer's vacated area is transparent. + let mut s = session(depth); + s.tools.background = [0.0, 0.0, 1.0, 1.0]; + s.execute("layer.new.layer", json!({})).unwrap(); + s.execute("select.rect", json!({"x": 10, "y": 10, "width": 20, "height": 10})).unwrap(); + s.execute("edit.fill", json!({"color": "#ff0000"})).unwrap(); + s.execute("edit.contentAwareScale", json!({"width": 10})).unwrap(); + assert_eq!(px_rgba(&s, 25, 15)[3], 0.0, "{depth}-bit: a layer's hole is transparent"); + assert_eq!(px_rgba(&s, 12, 15), [1.0, 0.0, 0.0, 1.0], "{depth}-bit"); + } +} + #[test] fn content_aware_scale_params() { let mut s = session(8); diff --git a/crates/engine/src/cmd/file_cmds.rs b/crates/engine/src/cmd/file_cmds.rs index e14f6a2fed..ccba775115 100644 --- a/crates/engine/src/cmd/file_cmds.rs +++ b/crates/engine/src/cmd/file_cmds.rs @@ -10,7 +10,7 @@ use std::sync::Arc; -use photocraft_algo::resample::{Resample, translate_surface}; +use photocraft_algo::resample::{Resample, resize_surface, translate_surface}; use photocraft_color::{ColorMode, PixelFormat}; use photocraft_doc::{Affine, Document, Layer, LayerContent, LayerId, SmartObject, SmartSource}; use photocraft_geom::Rect; @@ -25,6 +25,7 @@ mod export; mod info; mod open; mod paths; +mod place_steps; mod processing; mod raw_open; mod save; @@ -47,7 +48,7 @@ pub use info::{CAMERA_FIELDS, camera_data, read_file_info, write_file_info}; use info::{exposure_text, find_element}; pub(crate) use open::{BatchOpen, batch_open_notice, batch_open_params, remember_batch_open}; pub use open::{PLACE_EMBEDDED, open_bytes_as, open_bytes_as_with_options, place_bytes, raw_defaults}; -pub(crate) use open::{PlaceInput, apply_place, import, import_with_options, prepare_place, tag_exr_colorspace}; +pub(crate) use open::{PlaceInput, apply_place, import, import_with_options, tag_exr_colorspace}; use open::{approve_memory, close_all, close_others, open_as, place, revert}; use paths::is_file; #[cfg(test)] @@ -57,6 +58,7 @@ pub use paths::{ template_name, untitled_name, }; pub(crate) use paths::{file_name, forward_slashes, is_windows_device_name, join, read_file, read_file_limited, sanitize, stem, write_file}; +pub(crate) use place_steps::PlaceSteps; use processing::{conditional_mode_change, fit_image, flatten_all_effects, flatten_all_masks, image_processor, load_files_into_stack}; use save::save_a_copy; pub(crate) use save::{SaveOpts, encode, save_doc}; diff --git a/crates/engine/src/cmd/file_cmds/open.rs b/crates/engine/src/cmd/file_cmds/open.rs index cb05f39483..6121180e22 100644 --- a/crates/engine/src/cmd/file_cmds/open.rs +++ b/crates/engine/src/cmd/file_cmds/open.rs @@ -1,9 +1,5 @@ use super::paths::{file_name, read_file, stem, template_name}; -use super::{ - Affine, Arc, Document, EngineError, Layer, LayerContent, LayerId, PixelFormat, Resample, Result, Session, SmartObject, SmartSource, Value, f64_param, json, - str_param, translate_surface, -}; -use crate::jobs::JobCtx; +use super::{Arc, Document, EngineError, Layer, LayerContent, LayerId, PixelFormat, PlaceSteps, Result, Session, Value, json, str_param}; /// Input and successfully opened document identities of one Override Open scratch session. pub(crate) struct BatchOpen { @@ -287,7 +283,8 @@ pub(super) fn approve_memory(s: &mut Session, p: &Value) -> Result { // does not keep the tile share), and the import re-checks the exact split before decoding. let budget = photocraft_io::memory::resolve_budget_with_scratch(photocraft_io::memory::MemorySnapshot::current(), None, u64::MAX); if preflight.required > budget.hard_limit { - return Err(EngineError::PsdHardBudget { name: preflight.name, required: preflight.required, limit: budget.hard_limit }); + let free_memory = budget.refusal_free_memory(preflight.required); + return Err(EngineError::PsdHardBudget { name: preflight.name, required: preflight.required, limit: budget.hard_limit, free_memory }); } let started = s.start_open_approved_with_background( &preflight.name, @@ -325,46 +322,49 @@ pub fn place_bytes(s: &mut Session, name: &str, bytes: Vec, linked: Option Result { let label = input.job_label(); - crate::jobs::run(s, &label, true, move |ctx| prepare_place(input, ctx), apply_place) + crate::jobs::run_stepped(s, &label, true, PlaceSteps::new(input, s.cooperative_jobs()), apply_place) } /// The file a place reads. -enum PlaceFile { +pub(super) enum PlaceFile { /// Its contents, already read (a dropped or picked file with no path, a script's bytes). - Bytes(Vec), - /// Its path, read by [`prepare_place`]: on the job's worker when the place runs in the + Bytes(Arc>), + /// Its path, read by [`PlaceSteps`]: on the job's worker when the place runs in the /// background, so a large file doesn't hold up the window while it is read. Path(String), } -/// Everything a place reads from the session, taken up front so [`prepare_place`] can run on a +/// Everything a place reads from the session, taken up front so [`PlaceSteps`] can run on a /// worker that never sees the [`Session`]. pub(crate) struct PlaceInput { - name: String, - file: PlaceFile, - linked: Option, - params: Value, - canvas: (f64, f64), - fmt: PixelFormat, - opts: photocraft_io::ImportOptions, + pub(super) name: String, + pub(super) file: PlaceFile, + pub(super) linked: Option, + pub(super) params: Value, + pub(super) canvas: (f64, f64), + pub(super) fmt: PixelFormat, + pub(super) opts: photocraft_io::ImportOptions, /// Preferences ▸ General ▸ Resize Image During Place, unless the params say otherwise. - fit: bool, + pub(super) fit: bool, /// Preferences ▸ General ▸ Always Create Smart Objects When Placing, unless the params say /// otherwise. A linked place is always a smart object. - smart: bool, + pub(super) smart: bool, /// The document as the job sees it, for rendering a vector source at its placement scale. A /// path isn't read yet, so whether it is a vector source is decided once it is. - doc: Option>, + pub(super) doc: Option>, /// The frame the image goes into: the active layer's, `"frame"` in the params, or none /// (`"frame": false`). Its image renders through a smart object. - frame: Option<(LayerId, photocraft_doc::Frame)>, + pub(super) frame: Option<(LayerId, photocraft_doc::Frame)>, } impl PlaceInput { + /// The input of a place of `bytes` already read (named `name`; `linked`: Place Linked to that path). pub(crate) fn new(s: &Session, name: &str, bytes: Vec, linked: Option, p: &Value) -> Result { - Self::with_file(s, name, PlaceFile::Bytes(bytes), linked, p) + Self::with_file(s, name, PlaceFile::Bytes(Arc::new(bytes)), linked, p) } + /// The input of a place of `file`, with the destination (canvas or frame), preferences and + /// import settings taken from the session up front. fn with_file(s: &Session, name: &str, file: PlaceFile, linked: Option, p: &Value) -> Result { let d = s.active().ok_or(EngineError::NoDocument)?; let prefs = s.prefs(); @@ -430,115 +430,15 @@ impl PlaceInput { /// A place decoded, flattened and fitted, ready to be inserted by [`apply_place`]. pub(crate) struct Prepared { - content: LayerContent, - layer_name: String, + pub(super) content: LayerContent, + pub(super) layer_name: String, /// The history step's name. - label: &'static str, - scale: f64, - bounds: [f64; 4], - smart: bool, + pub(super) label: &'static str, + pub(super) scale: f64, + pub(super) bounds: [f64; 4], + pub(super) smart: bool, /// The frame the layer fills, if any (it becomes the frame's content instead of a new layer). - frame: Option, -} - -/// The heavy part of a place: read (a path), decode, flatten, resize and translate (and render a -/// vector source at its placement scale). Touches no [`Session`], so it can run on a worker; `ctx` -/// reports progress and stops it between stages when cancelled. -pub(crate) fn prepare_place(input: PlaceInput, ctx: &JobCtx) -> Result { - let PlaceInput { name, file, linked, params: p, canvas: (cw, ch), fmt, opts, fit, smart, doc, frame } = input; - let bytes = match file { - PlaceFile::Bytes(bytes) => bytes, - PlaceFile::Path(path) => { - ctx.progress(0.0, "Reading"); - let bytes = read_file(&path)?; - ctx.check()?; - bytes - } - }; - // Refuse before decoding if the operation cannot fit. - crate::memory_gate::ensure(&format!("place \u{201c}{}\u{201d}", file_name(&name)), crate::memory_gate::place_need(&bytes, fmt.bytes_per_pixel()))?; - let doc = doc.filter(|_| frame.is_some() || photocraft_io::is_svg_input(&name, &bytes)); - let imported = ctx.stage(0.0, 0.6, "Decoding", |ctl| photocraft_io::import_with_options_and_interrupt(&name, &bytes, &opts, ctl)).map_err(|e| match e { - photocraft_io::IoError::Cancelled => EngineError::Cancelled, - e => crate::error::io_open_error(&name, e), - })?; - if imported.preview_only { - return Err(EngineError::Other(format!( - "{name}: only this Affinity file's embedded preview could be read; open it with File › Open to see the warning, or export PSD or PNG from Affinity before using it here" - ))); - } - ctx.check()?; - let src = imported.document; - let (w, h) = (src.size.width as f64, src.size.height as f64); - let scale = match f64_param(&p, "scale") { - Some(k) => (k / 100.0).max(1e-4), - None if frame.is_some() && fit => (cw / w).max(ch / h), - None if fit && (w > cw || h > ch) => (cw / w).min(ch / h), - None => 1.0, - }; - let center = match p.get("center").and_then(Value::as_array) { - Some(c) if c.len() == 2 => (c[0].as_f64().unwrap_or(cw / 2.0), c[1].as_f64().unwrap_or(ch / 2.0)), - _ => (cw / 2.0, ch / 2.0), - }; - let (dx, dy) = ((center.0 - w * scale / 2.0).round(), (center.1 - h * scale / 2.0).round()); - // A frame's image renders through its smart object below, which refuses a placement past the - // memory budget; resampling it to the frame's size first would allocate that surface twice. - let px = if frame.is_none() { - ctx.progress(0.6, "Flattening"); - super::check_flattenable(&src, "file.place")?; - let bounds = src.bounds(); - let mut px = ctx - .stage(0.6, 0.7, "Flattening", |ctl| photocraft_compose::composite_to_surface_with_interrupt(&src, bounds, fmt, None, ctl)) - .map_err(|_| EngineError::Cancelled)?; - ctx.check()?; - if (scale - 1.0).abs() > 1e-9 { - ctx.progress(0.7, "Resizing"); - px = ctx - .stage(0.7, 0.9, "Resizing", |ctl| photocraft_algo::resample::resize_surface_with_interrupt(&px, scale, scale, Resample::Bicubic, ctl)) - .map_err(|_| EngineError::Cancelled)?; - ctx.check()?; - } - Some(translate_surface(&px, dx as i32, dy as i32)) - } else { - None - }; - drop(src); - let placement = frame - .as_ref() - .map_or(Affine { m: [scale, 0.0, 0.0, scale, dx, dy] }, |(_, f)| f.transform.mul(&Affine { m: [scale / cw, 0.0, 0.0, scale / ch, dx / cw, dy / ch] })); - let corners = [(0.0, 0.0), (w, 0.0), (0.0, h), (w, h)].map(|(x, y)| placement.apply(photocraft_geom::Point::new(x, y))); - let bounds = [ - corners.iter().map(|q| q.x).fold(f64::INFINITY, f64::min), - corners.iter().map(|q| q.y).fold(f64::INFINITY, f64::min), - corners.iter().map(|q| q.x).fold(f64::NEG_INFINITY, f64::max), - corners.iter().map(|q| q.y).fold(f64::NEG_INFINITY, f64::max), - ]; - // A frame's image is always a smart object. - let smart = smart || frame.is_some(); - let label = if linked.is_some() { "Place Linked" } else { PLACE_EMBEDDED }; - let content = if smart { - let source = match linked { - Some(path) => SmartSource::Linked { path }, - None => SmartSource::Embedded { file_name: file_name(&name), bytes: Arc::new(bytes) }, - }; - let mut so = SmartObject::new(source, placement, px); - // A vector source (SVG) and a frame's image render at their placement scale instead of as - // a resampled raster. - if let Some(doc) = doc { - ctx.progress(0.9, "Rendering"); - ctx.check()?; - if let Some(sharp) = crate::smart_cmds::render(&doc, &so)? { - so.cache = Some(sharp); - } - } - if so.cache.is_none() { - return Err(EngineError::Other(format!("{name}: the placed image could not be rendered"))); - } - LayerContent::Smart(so) - } else { - LayerContent::Raster(px.ok_or_else(|| EngineError::Other(format!("{name}: a frame's image must be a smart object")))?) - }; - Ok(Prepared { content, layer_name: stem(&name), label, scale, bounds, smart, frame: frame.map(|(id, _)| id) }) + pub(super) frame: Option, } /// Insert the prepared layer as one undo step and report the place. Runs on the session's thread. diff --git a/crates/engine/src/cmd/file_cmds/place_job_tests.rs b/crates/engine/src/cmd/file_cmds/place_job_tests.rs index f174a54f50..8e96d9cb69 100644 --- a/crates/engine/src/cmd/file_cmds/place_job_tests.rs +++ b/crates/engine/src/cmd/file_cmds/place_job_tests.rs @@ -249,7 +249,7 @@ fn a_canvas_too_large_to_flatten_is_refused_as_before() { let before = steps(&s); match place_bytes(&mut s, "huge.pcraft", bytes.clone(), None, &json!({})) { Err(EngineError::BadParams { cmd, msg }) => { - assert_eq!(cmd, "file.place"); + assert_eq!(cmd, "file.placeEmbedded"); assert_eq!(msg, "the document's 40000×30000 canvas is too large to flatten"); } other => panic!("{other:?}"), @@ -260,3 +260,326 @@ fn a_canvas_too_large_to_flatten_is_refused_as_before() { assert!(err.contains("40000×30000 canvas is too large to flatten"), "{err}"); assert_eq!(steps(&s), before, "nothing was placed"); } + +// ---------- place in steps, for a session with no worker threads (the web build) ---------- + +/// A pseudo-random PNG of `layout` and `sample`, so a wrong pixel anywhere shows and the file +/// is big enough to take many rows. +fn noise_png(w: u32, h: u32, layout: photocraft_codecs::ChannelLayout, sample: photocraft_codecs::SampleType, interlaced: bool) -> Vec { + let len = w as usize * h as usize * layout.channels() * sample.bytes(); + let data: Vec = (0..len).map(|i| ((i.wrapping_mul(2_654_435_761) >> 13) ^ (i / 97)) as u8).collect(); + let img = photocraft_codecs::Image::from_raw(w, h, layout, sample, data).unwrap(); + photocraft_codecs::encode(&img, photocraft_codecs::Format::Png, &photocraft_codecs::EncodeOptions { png_interlaced: interlaced, ..Default::default() }) + .unwrap() +} + +/// A cooperative session whose polls each do one unit of work, so the polls a place needs do not +/// depend on the machine's speed. +fn stepping(w: u32, h: u32, depth: u32) -> Session { + let mut s = session(w, h, depth); + s.set_cooperative_jobs(true); + s.set_job_step_budget(Duration::ZERO); + s +} + +/// Polls until job `id` ends; returns its event and how many polls that took. +fn poll_to_end(s: &mut Session, id: JobId) -> (JobEvent, usize) { + for polls in 1..=1_000_000 { + if let Some(e) = s.poll_jobs().into_iter().find(|e| e.id == id) { + return (e, polls); + } + } + panic!("job {id:?} never ended"); +} + +/// A place a slice per poll equals the inline place: the same result, layer pixels, composite and +/// one history step, for every kind of PNG, at every depth, for a smart object and a pixel layer, +/// reduced to fit, left alone and enlarged. +#[test] +fn a_cooperative_place_equals_the_inline_place() { + use photocraft_codecs::{ChannelLayout as L, SampleType as T}; + let dir = tmp("cooperative"); + let sources = [ + ("rgb8.png", noise_png(320, 300, L::Rgb, T::U8, false)), + ("rgba16.png", noise_png(310, 301, L::Rgba, T::U16, false)), + ("gray8-interlaced.png", noise_png(300, 305, L::Gray, T::U8, true)), + ("graya8.png", noise_png(301, 300, L::GrayA, T::U8, false)), + ]; + for (file, bytes) in &sources { + let path = join(&dir, file); + std::fs::write(&path, bytes).unwrap(); + for depth in [8, 16, 32] { + for smart in [true, false] { + for scale in [None, Some(100), Some(180)] { + let mut params = json!({"path": path, "smartObject": smart}); + if let Some(k) = scale { + params["scale"] = json!(k); + } + let what = format!("{file} at {depth}-bit, smart {smart}, scale {scale:?}"); + let mut inline = session(150, 150, depth); + let want = inline.execute("file.placeEmbedded", params.clone()).unwrap(); + + let mut s = stepping(150, 150, depth); + let before = steps(&s); + let id = job(s.start("file.placeEmbedded", params).unwrap()); + assert!(s.has_jobs(), "{what}"); + assert_eq!(steps(&s), before, "nothing is inserted before the job is applied"); + let (e, polls) = poll_to_end(&mut s, id); + let JobOutcome::Done(got) = &e.outcome else { panic!("{what}: {e:?}") }; + assert!(polls > 3, "{what}: took {polls} polls"); + assert_eq!((e.command.as_str(), e.label.as_str()), ("file.placeEmbedded", &*format!("Placing {file}"))); + same_but_layer(got, &want); + assert_eq!(steps(&s), before + 1, "{what}: one undo step"); + assert_eq!(s.active().unwrap().history.undo_label(), Some(PLACE_EMBEDDED)); + assert_eq!(layer_pixels(&s), layer_pixels(&inline), "{what}: layer pixels"); + assert_eq!(canvas_pixels(&s), canvas_pixels(&inline), "{what}: composite"); + if smart { + // The embedded source is the file's bytes, shared with the decoder. + let d = s.active().unwrap(); + let LayerContent::Smart(so) = &d.doc.layer(d.active_layer.unwrap()).unwrap().content else { panic!("{what}") }; + assert!(matches!(&so.source, SmartSource::Embedded { bytes: b, .. } if **b == *bytes), "{what}"); + } + assert!(s.undo(), "{what}"); + assert_eq!(s.active().unwrap().doc.layers.len(), 1); + } + } + } + } +} + +/// With the real budget (8 ms a poll) the place ends the same, and Place Linked and bytes with no +/// path take the same road. +#[test] +fn a_cooperative_place_with_the_default_budget_and_from_bytes() { + let bytes = gradient_png(300, 320); + let mut inline = session(120, 120, 16); + let want = place_bytes(&mut inline, "drop.png", bytes.clone(), None, &json!({})).unwrap(); + + let mut s = session(120, 120, 16); + s.set_cooperative_jobs(true); + let id = job(s.start_place_bytes("drop.png", bytes.clone(), None, json!({})).unwrap()); + // The document is locked meanwhile, as for a worker. + let refused = s.start_place_bytes("again.png", bytes.clone(), None, json!({})).unwrap_err().to_string(); + assert!(refused.contains("Placing drop.png"), "{refused}"); + let (e, _) = poll_to_end(&mut s, id); + let JobOutcome::Done(got) = &e.outcome else { panic!("{e:?}") }; + same_but_layer(got, &want); + assert_eq!(layer_pixels(&s), layer_pixels(&inline)); + assert_eq!(steps(&s), steps(&inline)); + + let dir = tmp("cooperative-linked"); + let path = join(&dir, "grad.png"); + std::fs::write(&path, bytes).unwrap(); + let id = job(s.start("file.placeLinked", json!({"path": path})).unwrap()); + assert!(matches!(poll_to_end(&mut s, id).0.outcome, JobOutcome::Done(_))); + let d = s.active().unwrap(); + assert!( + matches!(&d.doc.layer(d.active_layer.unwrap()).unwrap().content, LayerContent::Smart(so) if matches!(&so.source, SmartSource::Linked { path: p } if *p == path)) + ); + assert_eq!(d.history.undo_label(), Some("Place Linked")); +} + +/// An offset off the tile grid rebuilds the tiles the image touches, and a cooperative place does +/// that a few tiles per poll rather than all of them in one: it takes at least a poll per source +/// tile more than the same place on the grid, and ends with the same pixels as the inline place. +#[test] +fn a_cooperative_place_moves_its_pixels_a_few_tiles_per_poll() { + let bytes = gradient_png(600, 520); + let tiles = 3 * 3; + let polls_at = |center: [i32; 2]| { + let params = json!({"center": center, "smartObject": false}); + let mut inline = session(2000, 2000, 8); + place_bytes(&mut inline, "drop.png", bytes.clone(), None, ¶ms).unwrap(); + let mut s = stepping(2000, 2000, 8); + let id = job(s.start_place_bytes("drop.png", bytes.clone(), None, params).unwrap()); + let (e, polls) = poll_to_end(&mut s, id); + assert!(matches!(e.outcome, JobOutcome::Done(_)), "{e:?}"); + assert_eq!(layer_pixels(&s), layer_pixels(&inline), "at {center:?}"); + polls + }; + // The image lands at (256, 256), a whole number of tiles, or at (257, 3). + let on_grid = polls_at([300 + 256, 260 + 256]); + let off_grid = polls_at([300 + 257, 260 + 3]); + assert!(off_grid >= on_grid + tiles, "{off_grid} polls off the grid, {on_grid} on it"); +} + +/// `wait_job` runs a cooperative place to the end. +#[test] +fn wait_job_finishes_a_cooperative_place() { + let bytes = gradient_png(300, 300); + let mut inline = session(100, 100, 8); + let want = place_bytes(&mut inline, "drop.png", bytes.clone(), None, &json!({})).unwrap(); + let mut s = stepping(100, 100, 8); + let id = job(s.start_place_bytes("drop.png", bytes, None, json!({})).unwrap()); + s.poll_jobs(); + let got = s.wait_job(id).unwrap(); + same_but_layer(&got, &want); + assert_eq!(layer_pixels(&s), layer_pixels(&inline)); + assert!(!s.has_jobs()); +} + +/// Progress goes up through the stages and the status names them. +#[test] +fn a_cooperative_place_reports_its_progress() { + let mut s = stepping(100, 100, 8); + let id = job(s.start_place_bytes("drop.png", gradient_png(300, 300), None, json!({})).unwrap()); + let (mut last, mut messages) = (0.0f32, Vec::new()); + while s.job(id).is_some() { + s.poll_jobs(); + if let Some(info) = s.job(id) { + assert!(info.progress >= last && info.progress < 1.0, "{last} -> {}", info.progress); + last = info.progress; + if !info.message.is_empty() && messages.last() != Some(&info.message) { + messages.push(info.message); + } + } + } + assert!(last > 0.5, "{last}"); + assert_eq!(messages, ["Decoding", "Flattening", "Resizing", "Placing"]); +} + +/// Cancelling between polls leaves the document the very same one and unlocks it. +#[test] +fn cancelling_a_cooperative_place_between_polls_leaves_the_document_unchanged() { + let mut s = stepping(100, 100, 8); + let (doc, before) = (s.active().unwrap().doc.clone(), steps(&s)); + let id = job(s.start_place_bytes("drop.png", gradient_png(300, 300), None, json!({})).unwrap()); + for _ in 0..5 { + assert!(s.poll_jobs().is_empty()); + } + assert!(s.cancel_job(id)); + assert_eq!(wait_event(&mut s, id).outcome, JobOutcome::Cancelled); + assert!(Arc::ptr_eq(&doc, &s.active().unwrap().doc)); + assert_eq!(steps(&s), before); + assert!(!s.active().unwrap().history.can_redo()); + assert!(s.active_job().is_none(), "the document is unlocked"); + assert!(matches!(s.wait_job(id), Err(EngineError::Cancelled))); +} + +/// A PNG that is damaged part-way through its image data fails the job, without a panic and with +/// the document untouched; the rows before the damage are decoded first. +#[test] +fn a_cooperative_place_of_a_damaged_png_fails_cleanly() { + use photocraft_codecs::{ChannelLayout as L, SampleType as T}; + let good = noise_png(320, 300, L::Rgb, T::U8, false); + let mut flipped = good.clone(); + let mid = flipped.len() / 2; + flipped[mid] ^= 0xFF; + let cases = [ + ("cut in half", good.get(..good.len() / 2).unwrap().to_vec()), + ("cut just after the header", good.get(..60).unwrap().to_vec()), + ("a damaged byte", flipped), + ("not a PNG", b"\x89PNG\r\n\x1a\nthen text".to_vec()), + ("empty", Vec::new()), + ]; + let mut s = stepping(100, 100, 8); + let (doc, before) = (s.active().unwrap().doc.clone(), steps(&s)); + for (what, bytes) in cases { + let Ok(Started::Job(id)) = s.start_place_bytes("bad.png", bytes, None, json!({})) else { + // Refused before it started: also an error, not a panic. + continue; + }; + let (e, polls) = poll_to_end(&mut s, id); + let JobOutcome::Failed(err) = &e.outcome else { panic!("{what}: {e:?}") }; + assert!(err.contains("bad.png"), "{what}: the file is named: {err}"); + if what == "cut in half" { + assert!(polls > 20, "{what}: the rows before the cut are decoded first ({polls} polls)"); + } + assert!(Arc::ptr_eq(&doc, &s.active().unwrap().doc), "{what}"); + assert_eq!(steps(&s), before, "{what}"); + assert!(s.active_job().is_none(), "{what}: unlocked"); + } +} + +/// The flatten in bands is the flatten in one go, for every colour model and depth. +#[test] +fn a_banded_flatten_equals_flattened_checked() { + use super::place_steps::Flatten; + use photocraft_codecs::{ChannelLayout as L, SampleType as T}; + use photocraft_color::{ColorMode, PixelFormat, SampleType}; + // Wide enough for two bands across, and several tile rows. + let sources = [ + noise_png(2100, 600, L::Gray, T::U8, false), + noise_png(700, 530, L::Rgb, T::U8, false), + noise_png(300, 520, L::Rgba, T::U16, false), + noise_png(260, 520, L::GrayA, T::U16, false), + ]; + let formats = [ + PixelFormat::new(ColorMode::Rgb, SampleType::U8, true), + PixelFormat::new(ColorMode::Rgb, SampleType::U16, true), + PixelFormat::new(ColorMode::Rgb, SampleType::F32, true), + PixelFormat::new(ColorMode::Grayscale, SampleType::U8, false), + PixelFormat::new(ColorMode::Grayscale, SampleType::U16, true), + ]; + for bytes in &sources { + let doc = photocraft_io::import("src.png", bytes).unwrap().document; + for fmt in formats { + let expected = flattened_checked(&doc, fmt, "file.placeEmbedded").unwrap(); + let mut flatten = Flatten::new(doc.clone(), true, fmt, "file.placeEmbedded").unwrap(); + let mut bands = 0; + let got = loop { + bands += 1; + if let Some(px) = flatten.advance().unwrap() { + break px; + } + }; + assert!(bands > 1, "{}x{}: {bands} bands", doc.size.width, doc.size.height); + assert!(got == expected, "{}x{} {:?} {:?}: banded != whole", doc.size.width, doc.size.height, doc.mode, fmt); + // Not banded is the plain flatten. + let whole = Flatten::new(doc.clone(), false, fmt, "file.placeEmbedded").unwrap().advance().unwrap().unwrap(); + assert!(whole == expected); + } + } +} + +/// An Indexed Color document (a palette PNG) flattens in bands to the same pixels. +#[test] +fn a_banded_flatten_of_a_palette_image_equals_flattened_checked() { + use super::place_steps::Flatten; + let pal = [[255, 0, 0], [0, 255, 0], [0, 0, 255], [9, 9, 9]]; + let idx: Vec = (0..300 * 600).map(|i| ((i / 7 + i / 300) % 4) as u8).collect(); + let png = photocraft_codecs::encode_png_indexed(300, 600, &idx, &pal, Some(3), None, None).unwrap(); + let doc = photocraft_io::import("p.png", &png).unwrap().document; + assert!(doc.color_table.is_some()); + let fmt = doc.pixel_format(); + let expected = flattened_checked(&doc, fmt, "file.placeEmbedded").unwrap(); + let mut flatten = Flatten::new(doc, true, fmt, "file.placeEmbedded").unwrap(); + let got = loop { + if let Some(px) = flatten.advance().unwrap() { + break px; + } + }; + assert!(got == expected); +} + +/// A canvas too large to flatten is refused before any band is rendered. +#[test] +fn a_banded_flatten_keeps_the_size_limit() { + use super::place_steps::Flatten; + let doc = Document::new("huge", photocraft_geom::Size::new(40_000, 40_000), photocraft_color::ColorMode::Rgb, photocraft_color::SampleType::U8); + let fmt = doc.pixel_format(); + assert!(Flatten::new(doc, true, fmt, "file.placeEmbedded").is_err()); +} + +/// The size refusal names the command that was run, embedded or linked, not a made-up id. +#[test] +fn the_flatten_size_error_names_the_place_command() { + use super::place_steps::Flatten; + let huge = || Document::new("huge", photocraft_geom::Size::new(40_000, 40_000), photocraft_color::ColorMode::Rgb, photocraft_color::SampleType::U8); + let fmt = huge().pixel_format(); + for command in ["file.placeEmbedded", "file.placeLinked"] { + match Flatten::new(huge(), true, fmt, command) { + Err(EngineError::BadParams { cmd, .. }) => assert_eq!(cmd, command), + other => panic!("{:?}", other.map(|_| ())), + } + } + // Through a whole place: a linked one reports file.placeLinked. + let bytes = photocraft_format::save_to_bytes(&huge(), &Default::default()).unwrap(); + let mut s = session(100, 100, 8); + s.set_cooperative_jobs(true); + s.set_job_step_budget(Duration::ZERO); + let id = job(s.start_place_bytes("huge.pcraft", bytes, Some("huge.pcraft".into()), json!({})).unwrap()); + let (e, _) = poll_to_end(&mut s, id); + let JobOutcome::Failed(err) = &e.outcome else { panic!("{e:?}") }; + assert!(err.contains("file.placeLinked"), "{err}"); +} diff --git a/crates/engine/src/cmd/file_cmds/place_steps.rs b/crates/engine/src/cmd/file_cmds/place_steps.rs new file mode 100644 index 0000000000..8d35d54704 --- /dev/null +++ b/crates/engine/src/cmd/file_cmds/place_steps.rs @@ -0,0 +1,325 @@ +//! Place in resumable steps (#10031): decode, flatten, resize and translate, each in pieces small +//! enough to run between two frames where there are no worker threads (the web build). +//! +//! Every piece computes what the one-shot code computes, so the placed layer is the same whether +//! a worker thread, a [`PlaceSteps`] driven to the end, or a frame-by-frame [`Session::poll_jobs`] +//! did the work. `fine` (a cooperative session) cuts the work into pieces; without it each stage +//! is one unit and native code keeps its parallel resize and flatten. + +use photocraft_algo::resample::ResizeSteps; +use photocraft_geom::{Rect, TILE_SIZE}; +use photocraft_io::PngImport; +use photocraft_raster::{Surface, TranslateSteps}; +use web_time::Instant; + +use super::open::{PLACE_EMBEDDED, PlaceFile, PlaceInput, Prepared}; +use super::paths::{file_name, read_file, stem}; +use super::{ + Affine, Arc, Document, EngineError, LayerContent, Resample, Result, SmartObject, SmartSource, Value, check_flattenable, f64_param, flattened_checked, + resize_surface, translate_surface, +}; +use crate::jobs::{JobCtx, StepWork}; + +/// Pixels a flatten band covers at most: four tiles of a tile row (about 5 ms on one core). +const BAND_PIXELS: i64 = 4 * (TILE_SIZE as i64) * (TILE_SIZE as i64); + +/// A place as a [`StepWork`]; its result is what [`super::open::apply_place`] inserts. +pub(crate) struct PlaceSteps { + input: PlaceInput, + /// The file's contents, once read (a path is read by the first step). + bytes: Arc>, + /// Cut the work into small pieces (for a session without threads). + fine: bool, + stage: Stage, + /// Where the placed image lands, known once it is decoded. + plan: Plan, +} + +#[derive(Clone, Copy, Default)] +struct Plan { + w: f64, + h: f64, + scale: f64, + dx: f64, + dy: f64, +} + +enum Stage { + /// Nothing done yet. + Decode, + /// A plain PNG, a few rows at a time. + DecodePng(Box), + Flatten(Box), + Resize(Box), + /// The fitted pixels being moved to where they land, a few tiles at a time. + Translate(Box), + /// The pixels in place (none for a frame's image, which renders from its source), to wrap in + /// a layer. + Finish(Option), + Spent, +} + +impl PlaceSteps { + /// `fine` cuts the work into pieces of a few milliseconds, as a session without worker + /// threads needs; without it each stage is one unit of work. + pub(crate) fn new(input: PlaceInput, fine: bool) -> Self { + Self { input, bytes: Arc::new(Vec::new()), fine, stage: Stage::Decode, plan: Plan::default() } + } + + /// An import error as the engine reports it: a cancel stays one and a refused memory budget + /// keeps its typed fields. + fn io_error(&self, e: photocraft_io::IoError) -> EngineError { + match e { + photocraft_io::IoError::Cancelled => EngineError::Cancelled, + // Typed, as the one-shot place reports it: a refused memory budget keeps its fields. + e => crate::error::io_open_error(&self.input.name, e), + } + } + + /// One unit of work; `Some` when the place is prepared. + fn advance(&mut self, ctx: &JobCtx, deadline: Instant) -> Result> { + match std::mem::replace(&mut self.stage, Stage::Spent) { + Stage::Decode => { + self.read(ctx)?; + let input = &self.input; + let bytes = &self.bytes; + let png = if self.fine { PngImport::new(&input.name, bytes).map_err(|e| self.io_error(e))? } else { None }; + match png { + Some(png) => self.stage = Stage::DecodePng(Box::new(png)), + None => { + let imported = ctx + .stage(0.0, 0.6, "Decoding", |ctl| photocraft_io::import_with_options_and_interrupt(&input.name, bytes, &input.opts, ctl)) + .map_err(|e| self.io_error(e))?; + self.decoded(imported, false, ctx)?; + } + } + } + Stage::DecodePng(mut png) => { + ctx.progress(0.55 * png.progress(), "Decoding"); + match png.step(&mut || Instant::now() < deadline).map_err(|e| self.io_error(e))? { + Some(imported) => self.decoded(imported, true, ctx)?, + None => self.stage = Stage::DecodePng(png), + } + } + Stage::Flatten(mut flatten) => { + ctx.progress(0.6 + 0.1 * flatten.progress(), "Flattening"); + match flatten.advance()? { + Some(px) => self.flattened(px, ctx), + None => self.stage = Stage::Flatten(flatten), + } + } + Stage::Resize(mut resize) => { + ctx.progress(0.7 + 0.2 * resize.progress(), "Resizing"); + match resize.step(&mut || Instant::now() < deadline) { + Some(px) => self.fitted(px), + None => self.stage = Stage::Resize(resize), + } + } + Stage::Translate(mut shift) => { + ctx.progress(0.9 + 0.05 * shift.progress(), "Placing"); + self.stage = match shift.step(&mut || Instant::now() < deadline) { + Some(px) => Stage::Finish(Some(px)), + None => Stage::Translate(shift), + }; + } + Stage::Finish(px) => return self.finish(px, ctx).map(Some), + Stage::Spent => return Err(EngineError::Other("internal error: the place was already prepared".into())), + } + Ok(None) + } + + /// Gets the file's bytes (reading a path) and refuses a place that cannot fit in memory, + /// before anything is decoded. + fn read(&mut self, ctx: &JobCtx) -> Result<()> { + self.bytes = match &self.input.file { + PlaceFile::Bytes(bytes) => Arc::clone(bytes), + PlaceFile::Path(path) => { + ctx.progress(0.0, "Reading"); + let bytes = read_file(path)?; + ctx.check()?; + Arc::new(bytes) + } + }; + let (name, fmt) = (&self.input.name, self.input.fmt); + crate::memory_gate::ensure(&format!("place \u{201c}{}\u{201d}", file_name(name)), crate::memory_gate::place_need(&self.bytes, fmt.bytes_per_pixel()))?; + // A path isn't read when the input is made, so whether it is a vector source is decided now. + let vector = self.input.frame.is_some() || photocraft_io::is_svg_input(name, &self.bytes); + self.input.doc = self.input.doc.take().filter(|_| vector); + Ok(()) + } + + /// The file is decoded: where it lands, then on to flattening. `banded`: the document is a + /// plain image, which flattens band by band. + fn decoded(&mut self, imported: photocraft_io::ImportResult, banded: bool, ctx: &JobCtx) -> Result<()> { + if imported.preview_only { + return Err(EngineError::Other(format!( + "{}: only this Affinity file's embedded preview could be read; open it with File › Open to see the warning, or export PSD or PNG from Affinity before using it here", + self.input.name + ))); + } + let src = imported.document; + let (w, h) = (src.size.width as f64, src.size.height as f64); + let (cw, ch) = self.input.canvas; + let p = &self.input.params; + let scale = match f64_param(p, "scale") { + Some(k) => (k / 100.0).max(1e-4), + None if self.input.frame.is_some() && self.input.fit => (cw / w).max(ch / h), + None if self.input.fit && (w > cw || h > ch) => (cw / w).min(ch / h), + None => 1.0, + }; + let center = match p.get("center").and_then(Value::as_array) { + Some(c) if c.len() == 2 => (c[0].as_f64().unwrap_or(cw / 2.0), c[1].as_f64().unwrap_or(ch / 2.0)), + _ => (cw / 2.0, ch / 2.0), + }; + let (dx, dy) = ((center.0 - w * scale / 2.0).round(), (center.1 - h * scale / 2.0).round()); + self.plan = Plan { w, h, scale, dx, dy }; + // A frame's image renders through its smart object, which refuses a placement past the + // memory budget; resampling it to the frame's size first would allocate that surface twice. + if self.input.frame.is_some() { + self.stage = Stage::Finish(None); + return Ok(()); + } + ctx.progress(0.6, "Flattening"); + self.stage = Stage::Flatten(Box::new(Flatten::new(src, banded && self.fine, self.input.fmt, self.input.command())?)); + Ok(()) + } + + /// The image is flattened: on to resizing it to fit, if it needs that. + fn flattened(&mut self, px: Surface, ctx: &JobCtx) { + let scale = self.plan.scale; + if (scale - 1.0).abs() <= 1e-9 { + self.fitted(px); + } else if self.fine { + self.stage = Stage::Resize(Box::new(ResizeSteps::new(px, scale, scale, Resample::Bicubic, None))); + } else { + ctx.progress(0.7, "Resizing"); + self.fitted(resize_surface(&px, scale, scale, Resample::Bicubic)); + } + } + + /// The pixels are fitted: on to moving them to where they land. A cooperative session does + /// that a few target tiles at a time (an offset off the tile grid rebuilds nearly every tile + /// the image touches); otherwise it is one [`translate_surface`]. + fn fitted(&mut self, px: Surface) { + let (dx, dy) = (self.plan.dx as i32, self.plan.dy as i32); + self.stage = if self.fine { + let content = px.content_bounds(); + Stage::Translate(Box::new(TranslateSteps::new(px, dx, dy, content))) + } else { + Stage::Finish(Some(translate_surface(&px, dx, dy))) + }; + } + + /// Wraps the pixels, already in place, in the layer's content. + fn finish(&mut self, px: Option, ctx: &JobCtx) -> Result { + let Plan { w, h, scale, dx, dy } = self.plan; + let input = &self.input; + let (cw, ch) = input.canvas; + let placement = input.frame.as_ref().map_or(Affine { m: [scale, 0.0, 0.0, scale, dx, dy] }, |(_, f)| { + f.transform.mul(&Affine { m: [scale / cw, 0.0, 0.0, scale / ch, dx / cw, dy / ch] }) + }); + let corners = [(0.0, 0.0), (w, 0.0), (0.0, h), (w, h)].map(|(x, y)| placement.apply(photocraft_geom::Point::new(x, y))); + let bounds = [ + corners.iter().map(|q| q.x).fold(f64::INFINITY, f64::min), + corners.iter().map(|q| q.y).fold(f64::INFINITY, f64::min), + corners.iter().map(|q| q.x).fold(f64::NEG_INFINITY, f64::max), + corners.iter().map(|q| q.y).fold(f64::NEG_INFINITY, f64::max), + ]; + let label = if input.linked.is_some() { "Place Linked" } else { PLACE_EMBEDDED }; + // A frame's image is always a smart object. + let smart = input.smart || input.frame.is_some(); + let content = if smart { + let source = match &input.linked { + Some(path) => SmartSource::Linked { path: path.clone() }, + None => SmartSource::Embedded { file_name: file_name(&input.name), bytes: Arc::clone(&self.bytes) }, + }; + let mut so = SmartObject::new(source, placement, px); + // A vector source (SVG) or a frame's image renders at its placement scale instead of + // as a resampled raster. + if let Some(doc) = &input.doc { + ctx.progress(0.9, "Rendering"); + ctx.check()?; + if let Some(sharp) = crate::smart_cmds::render(doc, &so)? { + so.cache = Some(sharp); + } + } + if so.cache.is_none() { + return Err(EngineError::Other(format!("{}: the placed image could not be rendered", input.name))); + } + LayerContent::Smart(so) + } else { + let px = px.ok_or_else(|| EngineError::Other(format!("{}: a frame's image must be a smart object", input.name)))?; + LayerContent::Raster(px) + }; + Ok(Prepared { content, layer_name: stem(&input.name), label, scale, bounds, smart, frame: input.frame.as_ref().map(|(id, _)| *id) }) + } +} + +impl StepWork for PlaceSteps { + /// Runs units of work until `deadline` (at least one), checking for a cancel between them. + fn step(&mut self, ctx: &JobCtx, deadline: Instant) -> Result> { + loop { + ctx.check()?; + if let Some(prepared) = self.advance(ctx, deadline)? { + return Ok(Some(prepared)); + } + if Instant::now() >= deadline { + return Ok(None); + } + } + } +} + +/// The decoded document being flattened to the surface it is resized from. +pub(super) struct Flatten { + doc: Document, + fmt: photocraft_color::PixelFormat, + /// The place command, for the size error. + command: &'static str, + /// Flatten band by band; otherwise in one go. + banded: bool, + bounds: Rect, + /// The next band's top left corner. + at: (i32, i32), + /// Width of a band, a whole number of tiles. + cols: i32, + out: Option, +} + +impl Flatten { + /// `command` is the place command (`file.placeEmbedded` or `file.placeLinked`), named in the + /// error a canvas past the compositor's limit gives. + pub(super) fn new(doc: Document, banded: bool, fmt: photocraft_color::PixelFormat, command: &'static str) -> Result { + check_flattenable(&doc, command)?; + let bounds = doc.bounds(); + // Bands hold whole tiles, so each tile is written by one band and can move as it is. A + // document that does not start on the tile grid (none does) flattens in one go. + let banded = banded && bounds.x0.rem_euclid(TILE_SIZE) == 0 && bounds.y0.rem_euclid(TILE_SIZE) == 0; + let cols = i32::try_from(BAND_PIXELS / i64::from(TILE_SIZE) / i64::from(TILE_SIZE)).unwrap_or(1).max(1) * TILE_SIZE; + Ok(Self { doc, fmt, command, banded, bounds, at: (bounds.x0, bounds.y0), cols, out: None }) + } + + /// How much of the flatten is done, `0.0..=1.0`. + fn progress(&self) -> f32 { + let rows = i64::from(self.bounds.height()).max(1); + (i64::from(self.at.1.saturating_sub(self.bounds.y0)) as f32 / rows as f32).clamp(0.0, 1.0) + } + + /// Flattens the next band (the whole document if not banded); `Some` with the surface once + /// the last one is in. + pub(super) fn advance(&mut self) -> Result> { + if !self.banded { + return flattened_checked(&self.doc, self.fmt, self.command).map(Some); + } + let (x, y) = self.at; + // A band is part of one tile row, at most `cols` wide. + let y1 = (y.div_euclid(TILE_SIZE).saturating_add(1).saturating_mul(TILE_SIZE)).min(self.bounds.y1); + let x1 = x.saturating_add(self.cols).min(self.bounds.x1); + let band = photocraft_compose::composite_to_surface(&self.doc, Rect::new(x, y, x1, y1), self.fmt, None); + // The band's tiles move into the result as they are, with no copy of their pixels. + let out = self.out.get_or_insert_with(|| Surface::with_default(self.fmt, &band.default_pixel())); + out.put_tiles(band.tiles().map(|(c, t)| (*c, Arc::clone(t)))); + self.at = if x1 >= self.bounds.x1 { (self.bounds.x0, y1) } else { (x1, y) }; + Ok(if self.at.1 >= self.bounds.y1 { Some(self.out.take().unwrap_or_else(|| Surface::new(self.fmt))) } else { None }) + } +} diff --git a/crates/engine/src/cmd/file_cmds/tests.rs b/crates/engine/src/cmd/file_cmds/tests.rs index 6f97374126..26e172ffd6 100644 --- a/crates/engine/src/cmd/file_cmds/tests.rs +++ b/crates/engine/src/cmd/file_cmds/tests.rs @@ -3323,10 +3323,26 @@ fn reveal_in_finder_on_windows_passes_the_clicked_tabs_saved_path() { s.execute("file.new", json!({"width": 8, "height": 8, "name": "other"})).unwrap(); let r = s.execute("file.revealInFinder", json!({"document": 0, "dryRun": true})).unwrap(); - assert_eq!(r["program"], "explorer"); + // The Windows Explorer by full path: a bare name would first find an explorer.exe in the app's folder. + let explorer = crate::layer_menu_cmds::windows_root(std::env::var_os("SystemRoot")).join("explorer.exe"); + assert_eq!(r["program"], json!(explorer.to_string_lossy())); assert_eq!(r["args"], json!(["/select,", r"C:\项目 图片\海报 🖼.png"])); } +/// Windows tools run from the Windows folder `SystemRoot` names, and from `C:\Windows` when it is +/// unset or relative (which would resolve against the working directory). +#[cfg(windows)] +#[test] +fn the_windows_folder_falls_back_when_system_root_is_unset_or_relative() { + use crate::layer_menu_cmds::windows_root; + use std::path::PathBuf; + assert_eq!(windows_root(Some(r"D:\WinNT".into())), PathBuf::from(r"D:\WinNT")); + assert_eq!(windows_root(None), PathBuf::from(r"C:\Windows")); + assert_eq!(windows_root(Some(r"Windows".into())), PathBuf::from(r"C:\Windows")); + assert_eq!(windows_root(Some(r"\Windows".into())), PathBuf::from(r"C:\Windows")); + assert_eq!(windows_root(Some("".into())), PathBuf::from(r"C:\Windows")); +} + /// "Include All Subfolders" (AUTO-219-5, #3753): Batch and Image Processor take the images in /// subfolders too, each result keeping its subfolder under the output folder (so same-named files /// don't collide), and skip the output folder when it sits inside the input folder. @@ -4075,7 +4091,7 @@ fn approve_memory_releases_the_preflight_when_the_hard_limit_refuses_it() { photocraft_io::memory::with_mock_memory(snap_low, || { let err = s.execute("file.approveMemory", json!({"id": id, "approve": true, "background": false})).unwrap_err(); match &err { - EngineError::PsdHardBudget { name, required, limit } => { + EngineError::PsdHardBudget { name, required, limit, .. } => { assert_eq!(name, "ram_drop.psd"); assert_eq!((*required, *limit), (8 * gb, expected_limit)); } @@ -4104,7 +4120,7 @@ fn open_as_and_place_keep_the_typed_hard_budget_fields() { let mut s = Session::new(); let err = s.execute("file.openAs", json!({"path": path.clone(), "approveHighMemory": true})).unwrap_err(); match &err { - EngineError::PsdHardBudget { name, required, limit } => { + EngineError::PsdHardBudget { name, required, limit, .. } => { assert_eq!(name, &path); assert!(*required > hard && *limit == hard); } diff --git a/crates/engine/src/cmd/image_cmds.rs b/crates/engine/src/cmd/image_cmds.rs index 03683f1d00..8b2e60c6f6 100644 --- a/crates/engine/src/cmd/image_cmds.rs +++ b/crates/engine/src/cmd/image_cmds.rs @@ -1092,8 +1092,14 @@ fn trim(s: &mut Session, p: &Value) -> Result { "bottomRight" => buf.px.last().copied(), _ => None, }; + // Transparency is judged on the image as stored at its depth: alpha under half a step rounds to 0. + let half_step = match d.doc.depth { + SampleType::U8 => Some(0.5 / 255.0), + SampleType::U16 => Some(0.5 / 65535.0), + SampleType::F32 => None, + }; let differs = |q: [f32; 4]| match reference { - None => q[3] > 0.0, + None => half_step.map_or(q[3] > 0.0, |h| q[3] >= h), Some(r) => (0..4).any(|c| (q[c] * q[3] - r[c] * r[3]).abs() > 0.5 / 255.0 || (c == 3 && (q[3] - r[3]).abs() > 0.5 / 255.0)), }; let mut b = Rect::EMPTY; diff --git a/crates/engine/src/cmd/image_cmds/tests.rs b/crates/engine/src/cmd/image_cmds/tests.rs index 96e0637994..1e0fe5f223 100644 --- a/crates/engine/src/cmd/image_cmds/tests.rs +++ b/crates/engine/src/cmd/image_cmds/tests.rs @@ -988,6 +988,28 @@ fn trim_based_on_top_left_colour() { assert_eq!(doc(&s).size, Size::new(10, 10)); } +#[test] +fn trim_transparent_drops_alpha_that_rounds_to_zero_at_the_depth() { + // A faint pixel at (0, 0) on a 40 % layer: alpha 1 step × 0.4 rounds to 0 at 8 and 16 bits + // (the stored image is transparent there), so Trim keeps only the opaque square. A 1/255 + // pixel is 0.4 × 257 ≈ 103 steps at 16 bits and any alpha is content at 32 bits: kept. + for (depth, faint, keeps) in [(8, 1.0 / 255.0, false), (16, 1.0 / 65535.0, false), (16, 1.0 / 255.0, true), (32, 1.0 / 65535.0, true)] { + let mut s = Session::new(); + s.execute("file.new", json!({"width": 100, "height": 100, "depth": depth, "background": "transparent"})).unwrap(); + s.edit("paint", |doc, _| { + let surf = doc.layers[0].surface_mut().unwrap(); + surf.fill_rect(Rect::new(40, 40, 50, 50), &[1.0, 0.0, 0.0, 1.0]); + surf.fill_rect(Rect::new(0, 0, 1, 1), &[1.0, 0.0, 0.0, faint]); + Ok(()) + }) + .unwrap(); + s.execute("layer.setProps", json!({"layer": doc(&s).layers[0].id.0, "opacity": 0.4})).unwrap(); + let r = s.execute("image.trim", json!({"basedOn": "transparent"})).unwrap(); + let want = if keeps { json!({"x": 0, "y": 0, "width": 50, "height": 50}) } else { json!({"x": 40, "y": 40, "width": 10, "height": 10}) }; + assert_eq!(r, want, "{depth}-bit, faint alpha {faint}"); + } +} + #[test] fn thirty_two_bit_holds_linear_light() { // Photoshop 27.11: an 8-bit sRGB grey 128 becomes 0.2159 in 32 bits (and 32 → 0.0144), diff --git a/crates/engine/src/cmd/layer_copy_cmds.rs b/crates/engine/src/cmd/layer_copy_cmds.rs index 318742b639..0c12d5a21f 100644 --- a/crates/engine/src/cmd/layer_copy_cmds.rs +++ b/crates/engine/src/cmd/layer_copy_cmds.rs @@ -8,10 +8,11 @@ //! document. Pixels are converted to the destination's colour profile (Color Settings' intent and //! black point compensation) and bit depth, as Photoshop converts dragged layers. -use std::collections::{HashMap, HashSet}; +use std::collections::{BTreeSet, HashMap, HashSet}; use photocraft_color::ColorMode; -use photocraft_doc::{Document, Layer, LayerContent, LayerId, SmartContentsId}; +use photocraft_doc::text_styles::{CharacterStyleDef, ParagraphStyleDef}; +use photocraft_doc::{Document, Layer, LayerContent, LayerId, SmartContentsId, TextStyles}; use photocraft_geom::Rect; use serde_json::{Value, json}; @@ -122,11 +123,76 @@ pub(crate) fn adapt_copies(s: &Session, copies: &mut Document, dest: &Document) // application (24 pt at 72 ppi becomes 5.76 pt at 300 ppi, with no transform). Left at the // source's, a copy re-laid out at the destination's resolution on its next edit (#9560). crate::canvas_geom::retarget_type_resolution(copies, dest.resolution_dpi); + adopt_text_styles(copies, &dest.text_styles)?; let new_canvas = copies.bounds() != dest.bounds(); prepare_shapes(&mut copies.layers, dest, new_canvas); Ok(()) } +/// Points the copies' type at `dest`'s character and paragraph styles, as the reference +/// application does: a style is matched by name and the destination's definition wins (a copy +/// whose rewritten size differs from it shows a local override), and a style `dest` lacks comes +/// along (already scaled by [`crate::canvas_geom::retarget_type_resolution`]) under a fresh id. +/// Afterwards `copies.text_styles` holds just the styles to add; [`land_text_styles`] adds them. +fn adopt_text_styles(copies: &mut Document, dest: &TextStyles) -> Result<()> { + let src = std::mem::take(&mut copies.text_styles); + let mut used = (BTreeSet::new(), BTreeSet::new()); + crate::image_cmds::for_each_layer(&mut copies.layers, &mut |l| { + if let LayerContent::Text(t) = &l.content { + used.0.extend(t.runs.iter().filter_map(|r| r.style.style_sheet)); + used.1.extend(t.paragraphs.iter().filter_map(|p| p.style.style_sheet)); + } + }); + let full = || EngineError::Other("no free text style id".into()); + let (mut chars, mut paras) = (HashMap::new(), HashMap::new()); + let mut next = dest.next_char_id(); + for id in used.0 { + let Some(def) = src.char_style(id) else { continue }; + let to = match dest.character.iter().find(|d| d.name == def.name) { + Some(d) => d.id, + None => { + let fresh = next.ok_or_else(full)?; + next = fresh.checked_add(1); + copies.text_styles.character.push(CharacterStyleDef { id: fresh, ..def.clone() }); + fresh + } + }; + chars.insert(id, to); + } + let mut next = dest.next_para_id(); + for id in used.1 { + // Basic Paragraph (id 0) is implicit; every document has its own. + let Some(def) = src.para_style(id).filter(|_| id != 0) else { continue }; + let to = match dest.paragraph.iter().find(|d| d.name == def.name) { + Some(d) => d.id, + None => { + let fresh = next.ok_or_else(full)?; + next = fresh.checked_add(1); + copies.text_styles.paragraph.push(ParagraphStyleDef { id: fresh, ..def.clone() }); + fresh + } + }; + paras.insert(id, to); + } + crate::image_cmds::for_each_layer(&mut copies.layers, &mut |l| { + if let LayerContent::Text(t) = &mut l.content { + for r in &mut t.runs { + r.style.style_sheet = r.style.style_sheet.and_then(|id| chars.get(&id).copied()); + } + for p in &mut t.paragraphs { + p.style.style_sheet = p.style.style_sheet.and_then(|id| paras.get(&id).copied()); + } + } + }); + Ok(()) +} + +/// Adds the styles [`adopt_text_styles`] left in `styles` to `doc`. +pub(crate) fn land_text_styles(doc: &mut Document, styles: TextStyles) { + doc.text_styles.character.extend(styles.character); + doc.text_styles.paragraph.extend(styles.paragraph); +} + /// Moves every layer of `copies` by whole pixels (content, masks, vectors and smart placement). pub(crate) fn translate_copies(copies: &mut Document, destination: &Document, dx: i32, dy: i32) { if dx != 0 || dy != 0 { @@ -181,6 +247,7 @@ fn copy_to_document(s: &mut Session, p: &Value) -> Result { copies.icc_profile = sdoc.icc_profile.clone(); // Type re-lays out at the source's resolution, so it keeps its size in pixels. copies.resolution_dpi = sdoc.resolution_dpi; + copies.text_styles.clone_from(&sdoc.text_styles); for id in &ids { let src_layer = sdoc.layer(*id).ok_or(EngineError::NoLayer(*id))?; let mut l = src_layer.duplicate(); @@ -219,10 +286,12 @@ fn copy_to_document(s: &mut Session, p: &Value) -> Result { let (dx, dy) = (dx.round() as i32, dy.round() as i32); translate_copies(&mut copies, &ddoc, dx, dy); let patterns: Vec<_> = sdoc.patterns.iter().filter(|pat| !ddoc.patterns.iter().any(|d| d.id == pat.id)).cloned().collect(); + let styles = std::mem::take(&mut copies.text_styles); s.set_active(dest); let label = if ids.len() == 1 { "Duplicate Layer" } else { "Duplicate Layers" }; let edited = s.edit(label, |doc, active| { doc.patterns.extend(patterns); + land_text_styles(doc, styles); let mut above = *active; let mut new = Vec::with_capacity(copies.layers.len()); // The first copy goes where a new layer would; the rest stack above it. @@ -279,6 +348,7 @@ pub(crate) fn duplicate_to_new_document(s: &mut Session, p: &Value) -> Result Result = nd.layers.iter().map(|l| l.id).collect(); let index = s.add_document(nd, None); if let (Some(name), [id]) = (typed, new_ids.as_slice()) { diff --git a/crates/engine/src/cmd/layer_copy_cmds/tests.rs b/crates/engine/src/cmd/layer_copy_cmds/tests.rs index f3176af0af..5f82c1c4bd 100644 --- a/crates/engine/src/cmd/layer_copy_cmds/tests.rs +++ b/crates/engine/src/cmd/layer_copy_cmds/tests.rs @@ -500,3 +500,166 @@ fn retargeting_type_survives_bad_resolutions() { crate::canvas_geom::retarget_type_resolution(&mut d, f32::MAX); assert!(size(&d).is_finite() && size(&d) > 0.0, "{}", size(&d)); } + +/// Document 0 at 72 ppi with "Hello" in Paragraph Style 1 (24 pt) and "He" also in Character +/// Style 1 (24 pt, underlined); document 1 at 300 ppi, its own styles made by `dest`. +fn styled_type_docs(dest: impl FnOnce(&mut Session)) -> (Session, LayerId) { + let mut s = Session::new(); + s.execute("file.new", json!({"width": 400, "height": 200, "resolution": 72})).unwrap(); + let t = s.execute("type.create", json!({"text": "Hello", "size": 12, "x": 100, "y": 100})).unwrap()["layer"].as_u64().unwrap(); + s.execute("type.paragraphStyle.new", json!({"attrs": {"size": 24}, "fromSelection": false, "apply": true, "layer": t})).unwrap(); + s.execute("type.characterStyle.new", json!({"attrs": {"size": 24, "underline": true}, "fromSelection": false, "apply": true, "layer": t, "range": [0, 2]})) + .unwrap(); + s.execute("file.new", json!({"width": 400, "height": 200, "resolution": 300})).unwrap(); + dest(&mut s); + s.set_active(0); + s.execute("layer.select", json!({"layer": t})).unwrap(); + (s, LayerId(t)) +} + +/// The styles panel state of `range` in layer `id` of document 1. +fn styles_of(s: &mut Session, id: LayerId, range: [usize; 2]) -> (Value, Value) { + s.set_active(1); + let c = s.execute("type.characterStyle.list", json!({"layer": id.0, "range": range})).unwrap(); + let p = s.execute("type.paragraphStyle.list", json!({"layer": id.0, "range": range})).unwrap(); + (c, p) +} + +/// #10500: type copied to a document of another resolution brings the styles it uses, as in +/// the reference application (measured with Duplicate Layer from 72 to 300 ppi): a style the +/// destination lacks arrives under its name, scaled like the text (24 pt → 5.76 pt), so the +/// copy has no override; it never takes over an unrelated destination style with the same id. +#[test] +fn copied_type_brings_its_styles_scaled() { + for paste in [false, true] { + let (mut s, _) = styled_type_docs(|s| { + s.execute("type.characterStyle.new", json!({"name": "Unrelated", "attrs": {"size": 50}, "fromSelection": false})).unwrap(); + s.execute("type.paragraphStyle.new", json!({"name": "Unrelated", "attrs": {"size": 50}, "fromSelection": false})).unwrap(); + }); + let id = if paste { + s.execute("edit.copy", json!({})).unwrap(); + s.set_active(1); + LayerId(s.execute("edit.pasteSpecial.pasteInPlace", json!({})).unwrap()["layer"].as_u64().unwrap()) + } else { + copied(&s.execute("layer.copyToDocument", json!({"document": 1})).unwrap()) + }; + assert!(close(text(&s, 1, id).runs[0].style.size_pt, 5.76), "paste {paste}"); + let (c, p) = styles_of(&mut s, id, [0, 2]); + let names = |v: &Value| v["styles"].as_array().unwrap().iter().map(|x| x["name"].as_str().unwrap().to_string()).collect::>(); + assert_eq!(names(&c), ["None", "Unrelated", "Character Style 1"], "paste {paste}"); + assert_eq!(names(&p), ["Basic Paragraph", "Unrelated", "Paragraph Style 1"], "paste {paste}"); + let (cs, ps) = (&c["styles"][2], &p["styles"][2]); + assert!(close(cs["attrs"]["size_pt"].as_f64().unwrap() as f32, 5.76), "{cs}"); + assert!(close(ps["characterAttrs"]["size_pt"].as_f64().unwrap() as f32, 5.76), "{ps}"); + assert_eq!((&c["current"]["character"], &c["current"]["characterOverride"]), (&cs["id"], &json!(false)), "paste {paste}"); + assert_eq!((&p["current"]["paragraph"], &p["current"]["paragraphOverride"]), (&ps["id"], &json!(false)), "paste {paste}"); + // The source keeps its 24 pt styles. + assert_eq!(doc(&s, 0).text_styles.character[0].attrs["size_pt"], json!(24.0)); + } +} + +/// A destination that already has a style of the same name keeps its definition (24 pt), and +/// the copy, at 5.76 pt, shows a local override ("+"), as in the reference application. +#[test] +fn copied_type_uses_the_destinations_same_named_style() { + let (mut s, _) = styled_type_docs(|s| { + s.execute("type.characterStyle.new", json!({"name": "Filler", "fromSelection": false})).unwrap(); + s.execute("type.characterStyle.new", json!({"name": "Character Style 1", "attrs": {"size": 24, "underline": true}, "fromSelection": false})).unwrap(); + }); + let id = copied(&s.execute("layer.copyToDocument", json!({"document": 1})).unwrap()); + let (c, _) = styles_of(&mut s, id, [0, 2]); + assert_eq!(c["styles"].as_array().unwrap().len(), 3, "no second Character Style 1: {c}"); + let existing = &c["styles"][2]; + assert_eq!(existing["attrs"]["size_pt"], json!(24.0)); + assert_eq!((&c["current"]["character"], &c["current"]["characterOverride"]), (&existing["id"], &json!(true))); + assert!(close(text(&s, 1, id).runs[0].style.size_pt, 5.76)); +} + +/// Duplicate Layer › New Document brings the styles the type uses (at the same size). +#[test] +fn type_duplicated_to_a_new_document_keeps_its_styles() { + let (mut s, t) = styled_type_docs(|_| {}); + let r = s.execute("layer.duplicate", json!({"document": "new"})).unwrap(); + let (i, id) = (r["document"].as_u64().unwrap() as usize, LayerId(r["layer"].as_u64().unwrap())); + s.set_active(i); + let c = s.execute("type.characterStyle.list", json!({"layer": id.0, "range": [0, 2]})).unwrap(); + let p = s.execute("type.paragraphStyle.list", json!({"layer": id.0, "range": [0, 2]})).unwrap(); + assert_eq!(c["styles"][1]["name"], "Character Style 1"); + assert_eq!(c["styles"][1]["attrs"]["size_pt"], json!(24.0)); + assert_eq!((&c["current"]["character"], &c["current"]["characterOverride"]), (&c["styles"][1]["id"], &json!(false))); + assert_eq!((&p["current"]["paragraph"], &p["current"]["paragraphOverride"]), (&p["styles"][1]["id"], &json!(false))); + assert_eq!(text(&s, i, id).runs, text(&s, 0, t).runs); +} + +/// Document 0 (RGB, 72 ppi) with "Hello" whose "He" is in Character Style 1 (red); document 1 +/// (CMYK, 72 ppi). The type layer is selected in document 0. +fn red_styled_type_docs() -> (Session, LayerId) { + let mut s = Session::new(); + s.execute("file.new", json!({"width": 200, "height": 100, "resolution": 72})).unwrap(); + let t = s.execute("type.create", json!({"text": "Hello", "size": 12, "x": 20, "y": 50})).unwrap()["layer"].as_u64().unwrap(); + s.execute("type.characterStyle.new", json!({"attrs": {"color": "#ff0000"}, "fromSelection": false, "apply": true, "layer": t, "range": [0, 2]})).unwrap(); + s.execute("file.new", json!({"width": 200, "height": 100, "resolution": 72, "mode": "cmyk"})).unwrap(); + s.set_active(0); + s.execute("layer.select", json!({"layer": t})).unwrap(); + (s, LayerId(t)) +} + +/// The colour Character Style 1 of document `i` sets, and whether "He" of `id` overrides it. +fn style_color(s: &mut Session, i: usize, id: LayerId) -> (photocraft_color::Color, bool) { + s.set_active(i); + let c = s.execute("type.characterStyle.list", json!({"layer": id.0, "range": [0, 2]})).unwrap(); + let style = c["styles"].as_array().unwrap().iter().find(|x| x["name"] == "Character Style 1").unwrap(); + (serde_json::from_value(style["attrs"]["color"].clone()).unwrap(), c["current"]["characterOverride"].as_bool().unwrap()) +} + +/// Type copied to a document of another colour mode converts its run colours, and the style it +/// brings converts with the same transform: the run matches its style (no override), so a later +/// change to the style's colour still reaches it. Converting the document itself (Image › Mode, +/// Convert to Profile with and without dither) keeps its styles in step the same way. +#[test] +fn copied_type_styles_convert_their_colours_with_the_type() { + let (mut s, _) = red_styled_type_docs(); + let id = copied(&s.execute("layer.copyToDocument", json!({"document": 1})).unwrap()); + let run = text(&s, 1, id).runs[0].style.color; + assert_eq!(run.mode, ColorMode::Cmyk, "the run converted"); + let (style, over) = style_color(&mut s, 1, id); + assert_eq!(style, run, "the copied style converted with the run"); + assert!(!over, "no false override"); + for (cmd, p) in [ + ("image.mode.cmyk", json!({})), + ("edit.convertToProfile", json!({"profile": "coated-cmyk", "dither": false})), + ("edit.convertToProfile", json!({"profile": "coated-cmyk", "dither": true})), + ("edit.convertToProfile", json!({"profile": "lab-d50"})), + ] { + let (mut s, t) = red_styled_type_docs(); + s.execute(cmd, p.clone()).unwrap(); + let run = text(&s, 0, t).runs[0].style.color; + assert_ne!(run.mode, ColorMode::Rgb, "{cmd} {p}: the run converted"); + let (style, over) = style_color(&mut s, 0, t); + assert_eq!(style, run, "{cmd} {p}: the style converted with the run"); + assert!(!over, "{cmd} {p}: no false override"); + } +} + +/// Duplicate Layer › New Document keeps the source's Basic Paragraph: type that inherits its +/// size from it has no override there, and Clear Override leaves it as it was. +#[test] +fn type_duplicated_to_a_new_document_keeps_the_sources_basic_paragraph() { + let mut s = Session::new(); + s.execute("file.new", json!({"width": 200, "height": 100})).unwrap(); + let t = LayerId(s.execute("type.create", json!({"text": "Hello", "size": 12, "x": 20, "y": 50})).unwrap()["layer"].as_u64().unwrap()); + s.execute("type.paragraphStyle.set", json!({"id": 0, "attrs": {"size": 30}})).unwrap(); + assert!(close(text(&s, 0, t).runs[0].style.size_pt, 30.0), "the type inherits Basic Paragraph"); + let basic = doc(&s, 0).text_styles.basic.clone(); + s.execute("layer.select", json!({"layer": t.0})).unwrap(); + let r = s.execute("layer.duplicate", json!({"document": "new"})).unwrap(); + let (i, id) = (r["document"].as_u64().unwrap() as usize, LayerId(r["layer"].as_u64().unwrap())); + assert_eq!(doc(&s, i).text_styles.basic, basic); + s.set_active(i); + let c = s.execute("type.characterStyle.list", json!({"layer": id.0})).unwrap(); + let p = s.execute("type.paragraphStyle.list", json!({"layer": id.0})).unwrap(); + assert_eq!((&c["current"]["characterOverride"], &p["current"]["paragraphOverride"]), (&json!(false), &json!(false)), "{c} {p}"); + s.execute("type.paragraphStyle.clearOverride", json!({"layer": id.0})).unwrap(); + s.execute("type.characterStyle.clearOverride", json!({"layer": id.0})).unwrap(); + assert!(close(text(&s, i, id).runs[0].style.size_pt, 30.0), "{}", text(&s, i, id).runs[0].style.size_pt); +} diff --git a/crates/engine/src/cmd/layer_menu_cmds.rs b/crates/engine/src/cmd/layer_menu_cmds.rs index b089fbd533..46aae07a71 100644 --- a/crates/engine/src/cmd/layer_menu_cmds.rs +++ b/crates/engine/src/cmd/layer_menu_cmds.rs @@ -434,8 +434,8 @@ pub(crate) fn reveal(path: &str, dry_run: bool) -> Result { if dry_run { return Ok(json!({"program": program, "args": args})); } - ensure_folder(program, &args)?; - spawn(program, &args)?; + ensure_folder(&program, &args)?; + spawn(&program, &args)?; Ok(json!({"path": path})) } @@ -453,8 +453,28 @@ fn ensure_folder(program: &str, args: &[String]) -> Result<()> { } /// The file-manager invocation that selects `path` on this platform. -pub fn reveal_command(path: &str) -> Result<(&'static str, Vec)> { - reveal_command_on(std::env::consts::OS, path) +pub fn reveal_command(path: &str) -> Result<(String, Vec)> { + let (program, args) = reveal_command_on(std::env::consts::OS, path)?; + Ok((system_program(program), args)) +} + +/// Windows tools run by full path: by bare name, Windows first looks in the app's own folder, so +/// an `explorer.exe` lying next to a portable PhotoCraft would start instead (#9666). +#[cfg(windows)] +fn system_program(program: &str) -> String { + windows_root(std::env::var_os("SystemRoot")).join(format!("{program}.exe")).to_string_lossy().into_owned() +} + +/// The Windows folder for the `SystemRoot` value `system_root`: `C:\Windows` when it is unset or +/// not an absolute path (a relative one would resolve against the working directory). +#[cfg(windows)] +pub(crate) fn windows_root(system_root: Option) -> std::path::PathBuf { + system_root.map(std::path::PathBuf::from).filter(|p| p.is_absolute()).unwrap_or_else(|| std::path::PathBuf::from(r"C:\Windows")) +} + +#[cfg(not(windows))] +fn system_program(program: &str) -> String { + program.to_string() } /// [`reveal_command`] on the platform `os` (a `std::env::consts::OS` value). diff --git a/crates/engine/src/cmd/smart_cmds.rs b/crates/engine/src/cmd/smart_cmds.rs index a79927652c..65b2ab2d09 100644 --- a/crates/engine/src/cmd/smart_cmds.rs +++ b/crates/engine/src/cmd/smart_cmds.rs @@ -389,7 +389,7 @@ pub fn specs() -> Vec { "layer.smartFilter.setParams", "Edit Smart Filter", &[], - r##"{"layer":id?,"index":u32?,"params":{…} (merged)}"##, + r##"{"layer":id?,"index":u32?,"params":{…} (merged),"replace":bool=false (params replace the stored ones instead)}"##, has_smart_filters, set_filter_params ), diff --git a/crates/engine/src/cmd/smart_cmds/filters.rs b/crates/engine/src/cmd/smart_cmds/filters.rs index af9d08b9a6..c37c17a6f2 100644 --- a/crates/engine/src/cmd/smart_cmds/filters.rs +++ b/crates/engine/src/cmd/smart_cmds/filters.rs @@ -170,7 +170,9 @@ fn edited_shape_params(s: &Session, previous: &Value, patch: &Value) -> Result Result { const CMD: &str = "layer.smartFilter.setParams"; - let new = p.get("params").cloned().ok_or_else(|| bad(CMD, "pass `params` (merged into the filter's parameters)"))?; + let new = p.get("params").cloned().ok_or_else(|| bad(CMD, "pass `params` (merged into the filter's parameters, or replacing them with `replace`)"))?; + // An editor holding all of a filter's settings replaces them, so a key it removed stops applying. + let replace = p.get("replace").and_then(Value::as_bool).unwrap_or(false); let authorize = s.authorize; // A Displace given another open document as its map embeds that one in place of the old // (#7423). It is read here, before the edit, from the session; the request is authorized @@ -183,7 +185,9 @@ pub(super) fn set_filter_params(s: &mut Session, p: &Value) -> Result { let doc = &s.active().ok_or(EngineError::NoDocument)?.doc; let sm = smart(doc, layer_param(s, p)?)?; let f = sm.smart_filters.get(filter_index(CMD, p, sm)?).ok_or_else(|| bad(CMD, "no smart filter at this index"))?; - let shape_params = if f.command == "filter.blur.shapeBlur" { Some(edited_shape_params(s, &f.params, &new)?) } else { None }; + let nothing = json!({}); + let previous = if replace { ¬hing } else { &f.params }; + let shape_params = if f.command == "filter.blur.shapeBlur" { Some(edited_shape_params(s, previous, &new)?) } else { None }; (f.command == DISPLACE, shape_params) }; let new_map = if displace && new_map_asked { @@ -209,6 +213,8 @@ pub(super) fn set_filter_params(s: &mut Session, p: &Value) -> Result { } if let Some(params) = shape_params { f.params = params; + } else if replace { + f.params = new; } else { match (&mut f.params, new) { (Value::Object(old), Value::Object(n)) => old.extend(n), diff --git a/crates/engine/src/cmd/smart_cmds/tests.rs b/crates/engine/src/cmd/smart_cmds/tests.rs index 6e8ce37f9c..6ae2082b3d 100644 --- a/crates/engine/src/cmd/smart_cmds/tests.rs +++ b/crates/engine/src/cmd/smart_cmds/tests.rs @@ -1397,3 +1397,40 @@ fn native_digest_cache_misses_after_copy_on_write_and_keeps_recently_used_source drop(newest); assert!(weak.upgrade().is_none()); } + +/// `replace` makes `params` the filter's whole settings, so a key the edit left out stops +/// applying; without it the params merge, as partial edits rely on. Either way it is one undo. +#[test] +fn set_params_replace_drops_the_keys_it_leaves_out() { + let mut s = session(8); + paint(&mut s); + convert(&mut s); + s.execute("image.adjustments.channelMixer", json!({"monochrome": true, "gray": [30, 30, 40, 0]})).unwrap(); + let params = |s: &Session| active_smart(s).smart_filters[0].params.clone(); + + s.execute("layer.smartFilter.setParams", json!({"params": {"monochrome": false}})).unwrap(); + assert_eq!(params(&s), json!({"monochrome": false, "gray": [30, 30, 40, 0]}), "merged by default"); + + let edit = json!({"monochrome": false, "red": [70, 30, 0, 0]}); + s.execute("layer.smartFilter.setParams", json!({"params": edit, "replace": true})).unwrap(); + assert_eq!(params(&s), edit, "replaced"); + + s.undo(); + assert_eq!(params(&s), json!({"monochrome": false, "gray": [30, 30, 40, 0]})); +} + +/// `replace` also holds for Shape Blur, whose settings otherwise merge before its shape resolves. +#[test] +fn set_params_replace_drops_a_shape_blur_radius_it_leaves_out() { + let mut s = session(8); + paint(&mut s); + convert(&mut s); + s.execute("filter.blur.shapeBlur", json!({"radius": 5, "shape": "circle"})).unwrap(); + let params = |s: &Session| active_smart(s).smart_filters[0].params.clone(); + + s.execute("layer.smartFilter.setParams", json!({"params": {"shape": "circle"}})).unwrap(); + assert_eq!(params(&s)["radius"], json!(5), "merged by default"); + + s.execute("layer.smartFilter.setParams", json!({"params": {"shape": "circle"}, "replace": true})).unwrap(); + assert!(params(&s).get("radius").is_none(), "replaced: {}", params(&s)); +} diff --git a/crates/engine/src/cmd/vector_cmds.rs b/crates/engine/src/cmd/vector_cmds.rs index cd18abb315..bec8a3f242 100644 --- a/crates/engine/src/cmd/vector_cmds.rs +++ b/crates/engine/src/cmd/vector_cmds.rs @@ -80,7 +80,7 @@ pub(crate) use paths::{is_work, path_mut}; pub(crate) use shape::{bake_path, map_path, map_shape, shift_shape, with_shape}; use shape::{ can_paste_shape_fill, can_paste_shape_stroke, combine_shapes, copy_shape_fill, copy_shape_stroke, has_shape_fill, has_shape_stroke, merge_components, - paste_shape_fill, paste_shape_stroke, selection_to_shape, shape_create, shape_edit, shape_info, shape_rasterize, + paste_shape_fill, paste_shape_stroke, path_to_shape, selection_to_shape, shape_create, shape_edit, shape_info, shape_rasterize, }; pub use shape::{preview_shape_stroke, refresh_shape, shape_path, transform_shape, translate_vectors}; use vector_mask::{toggle_vector_mask, vector_mask_add, vector_mask_delete, vector_mask_edit, vector_mask_info, vector_mask_rasterize, with}; @@ -230,6 +230,16 @@ pub fn specs() -> Vec { run: |s, p| path_to_selection_with_mode(s, p, "subtract"), journal: true, }, + spec!( + "path.toShape", + "Make Shape from Path", + [], + leak(format!( + r##"{{"name":str|"work"|"layer"="work" (the Work Path becomes the shape's path; a saved path stays) | "path":{{subpaths}} (inline; not with name),"consumeWorkPath":bool=false (with path: it was drawn into the Work Path, which goes),{fill}=foreground,{stroke}=none,"layerName":str?}} → shape.info"## + )), + has_doc, + path_to_shape + ), spec!("select.toWorkPath", "Make Work Path", [], r##"{"tolerance":0.5..10 px=2} → {subpaths,knots}"##, has_selection, select_to_work_path), spec!( "path.fill", diff --git a/crates/engine/src/cmd/vector_cmds/shape.rs b/crates/engine/src/cmd/vector_cmds/shape.rs index 860b890343..000a8d0a13 100644 --- a/crates/engine/src/cmd/vector_cmds/shape.rs +++ b/crates/engine/src/cmd/vector_cmds/shape.rs @@ -432,16 +432,7 @@ pub(super) fn shape_create(s: &mut Session, p: &Value) -> Result { let l = live_from_params(CMD, kind, p, None)?; (vector::shapes::live_path(&l), Some(l)) }; - let fg = s.tools.foreground; - let fgc = Color::rgba(fg[0], fg[1], fg[2], fg[3]); - let fill = match p.get("fill") { - Some(v) => parse_fill(v).map_err(|e| bad(CMD, e))?, - None => Some(Fill::Solid(fgc)), - }; - let stroke = match p.get("stroke") { - Some(v) => parse_stroke(v, None, fgc).map_err(|e| bad(CMD, e))?, - None => None, - }; + let (fill, stroke) = new_fill_stroke(s, CMD, p)?; vector::flatten::validate_shape(&path, stroke.as_ref()).map_err(|e| bad(CMD, e))?; // Add to an existing shape layer with a path operation (Shape tool in combine/subtract… mode). if let Some(target) = p.get("addTo").and_then(Value::as_u64) { @@ -471,6 +462,72 @@ pub(super) fn shape_create(s: &mut Session, p: &Value) -> Result { shape_info(s, id) } +/// A new shape layer's `fill` (default the foreground colour) and `stroke` (default none). +fn new_fill_stroke(s: &Session, cmd: &str, p: &Value) -> Result<(Option, Option)> { + let fg = s.tools.foreground; + let fgc = Color::rgba(fg[0], fg[1], fg[2], fg[3]); + let fill = match p.get("fill") { + Some(v) => parse_fill(v).map_err(|e| bad(cmd, e))?, + None => Some(Fill::Solid(fgc)), + }; + let stroke = match p.get("stroke") { + Some(v) => parse_stroke(v, None, fgc).map_err(|e| bad(cmd, e))?, + None => None, + }; + Ok((fill, stroke)) +} + +/// The Pen options bar's Make: Shape: a new shape layer, as one History step, from the work path +/// or a saved path (`name`), or from an inline `path` (a Pen path still being drawn). The Work +/// Path becomes the shape's path, so it is gone afterwards; a saved path stays. An inline `path` +/// leaves the document's paths alone unless `consumeWorkPath` says it was drawn into the Work +/// Path. Unlike the other path commands, `"work"` never falls back to the active layer's path: +/// that would duplicate the selected shape or vector mask. +pub(super) fn path_to_shape(s: &mut Session, p: &Value) -> Result { + const CMD: &str = "path.toShape"; + let name = match p.get("name") { + None | Some(Value::Null) => None, + Some(Value::String(n)) => Some(n.as_str()), + Some(_) => return Err(bad(CMD, "`name` must be a path name: \"work\", \"layer\" or a saved path's name")), + }; + let consume_flag = match p.get("consumeWorkPath") { + None | Some(Value::Null) => false, + Some(Value::Bool(b)) => *b, + Some(_) => return Err(bad(CMD, "`consumeWorkPath` must be true or false")), + }; + let (path, consume_work) = match p.get("path").filter(|v| !v.is_null()) { + Some(_) if name.is_some() => return Err(bad(CMD, "give `name` or `path`, not both")), + Some(v) => (parse_path(v).map_err(|e| bad(CMD, e))?, consume_flag), + None if super::is_work(name) => { + let d = s.active().ok_or(EngineError::NoDocument)?; + (d.doc.work_path.clone().ok_or_else(|| bad(CMD, "there is no Work Path"))?, true) + } + None => (super::resolve_path(s, name)?, false), + }; + if !path.subpaths.iter().any(|sp| sp.knots.len() >= 2) { + return Err(bad(CMD, "the path has no segment to make a shape from")); + } + let (fill, stroke) = new_fill_stroke(s, CMD, p)?; + vector::flatten::validate_shape(&path, stroke.as_ref()).map_err(|e| bad(CMD, e))?; + let layer_name = match p.get("layerName") { + None | Some(Value::Null) => None, + Some(Value::String(n)) if !n.trim().is_empty() => Some(n.clone()), + Some(_) => return Err(bad(CMD, "`layerName` must be a name that isn't empty")), + }; + let mut sh = ShapeLayer { path, fill, stroke, ..Default::default() }; + let id = s.edit("New Shape Layer", |doc, active| { + refresh_shape(doc, &mut sh); + let name = layer_name.unwrap_or_else(|| doc.next_layer_name(default_name("path"))); + let id = crate::layer_place::insert_new(doc, *active, Layer::new(name, LayerContent::Shape(sh)), crate::layer_place::Place::AutoEditable); + if consume_work { + doc.work_path = None; + } + *active = Some(id); + Ok(id) + })?; + shape_info(s, id) +} + pub(super) fn shape_edit(s: &mut Session, p: &Value) -> Result { const CMD: &str = "shape.edit"; let id = layer_id(s, p)?; diff --git a/crates/engine/src/cmd/vector_cmds/tests.rs b/crates/engine/src/cmd/vector_cmds/tests.rs index b659cbd656..47394823d6 100644 --- a/crates/engine/src/cmd/vector_cmds/tests.rs +++ b/crates/engine/src/cmd/vector_cmds/tests.rs @@ -403,6 +403,114 @@ fn path_to_selection_matches_analytic_shape() { assert!(m[100 * 200 + 160] > 0.2 && m[100 * 200 + 160] < 0.8); } +#[test] +fn path_to_shape_makes_a_shape_layer_from_the_work_path_in_one_step() { + let mut s = session(80, 80, 8); + let square = json!({"subpaths": [{"knots": [[10, 10], [50, 10], [50, 50], [10, 50]]}]}); + s.execute("path.set", json!({"path": square})).unwrap(); + let history = s.active().unwrap().history.past_len(); + let info = s.execute("path.toShape", json!({"fill": "#ff0000"})).unwrap(); + let id = LayerId(info["layer"].as_u64().unwrap()); + let d = doc(&s); + let LayerContent::Shape(sh) = &d.layer(id).unwrap().content else { panic!("not a shape layer") }; + assert_eq!(sh.path.subpaths[0].knots.len(), 4); + assert_eq!(sh.fill, Some(Fill::Solid(Color::rgba(1.0, 0.0, 0.0, 1.0)))); + // The Work Path became the shape's path. + assert!(d.work_path.is_none()); + assert_eq!(s.active().unwrap().active_layer, Some(id)); + assert_eq!(s.active().unwrap().history.past_len(), history + 1); + s.undo(); + assert!(doc(&s).layer(id).is_none()); + assert!(doc(&s).work_path.is_some()); +} + +#[test] +fn path_to_shape_keeps_a_saved_path() { + let mut s = session(80, 80, 8); + let tri = json!({"subpaths": [{"knots": [[10, 10], [50, 10], [30, 50]]}]}); + s.execute("path.set", json!({"name": "Tri", "path": tri})).unwrap(); + let info = s.execute("path.toShape", json!({"name": "Tri", "layerName": "Roof"})).unwrap(); + assert_eq!(info["name"], "Roof"); + assert_eq!(doc(&s).paths[0].name, "Tri"); +} + +#[test] +fn path_to_shape_rejects_bad_input_without_changing_history() { + let mut s = session(80, 80, 8); + assert!(s.execute("path.toShape", json!({})).is_err(), "no path"); + s.execute("path.set", json!({"path": {"subpaths": [{"knots": [[12, 12], [60, 12], [60, 60]]}]}})).unwrap(); + let before = doc(&s).clone(); + let history = s.active().unwrap().history.past_len(); + for p in [ + json!({"name": "missing"}), + json!({"name": 42}), + json!({"name": ["work"]}), + json!({"fill": "not a colour"}), + json!({"fill": 42}), + json!({"stroke": {"width": -1}}), + json!({"stroke": {"width": 1e100}}), + json!({"stroke": true}), + ] { + assert!(s.execute("path.toShape", p.clone()).is_err(), "accepted {p}"); + assert_eq!(*doc(&s), before, "{p} modified the document"); + assert_eq!(s.active().unwrap().history.past_len(), history, "{p} changed history"); + } +} + +/// With no Work Path, `path.toShape` doesn't take the active shape layer's path: that would only +/// duplicate the shape. +#[test] +fn path_to_shape_without_a_work_path_does_not_copy_the_active_shape() { + let mut s = session(80, 80, 8); + s.execute("shape.create", json!({"rect": [10, 10, 30, 30]})).unwrap(); + let layers = doc(&s).layers.len(); + for p in [json!({}), json!({"name": "work"})] { + assert!(s.execute("path.toShape", p.clone()).is_err(), "{p} made a shape"); + } + assert_eq!(doc(&s).layers.len(), layers); +} + +/// An inline `path` (a Pen path still being drawn) makes the shape and leaves the Work Path alone, +/// unless it was drawn into the Work Path (`consumeWorkPath`). +#[test] +fn path_to_shape_takes_an_inline_path() { + let mut s = session(80, 80, 8); + s.execute("path.set", json!({"path": {"subpaths": [{"knots": [[12, 12], [60, 12], [60, 60]]}]}})).unwrap(); + let drawn = json!({"subpaths": [{"knots": [[5, 5], [30, 5], [30, 30]]}]}); + let history = s.active().unwrap().history.past_len(); + let info = s.execute("path.toShape", json!({"path": drawn})).unwrap(); + let id = LayerId(info["layer"].as_u64().unwrap()); + let LayerContent::Shape(sh) = &doc(&s).layer(id).unwrap().content else { panic!("not a shape layer") }; + assert_eq!(sh.path.subpaths[0].knots[0].anchor, Point::new(5.0, 5.0)); + assert!(doc(&s).work_path.is_some(), "the Work Path stays"); + assert_eq!(s.active().unwrap().history.past_len(), history + 1); + s.execute("path.toShape", json!({"path": drawn, "consumeWorkPath": true})).unwrap(); + assert!(doc(&s).work_path.is_none()); +} + +#[test] +fn path_to_shape_rejects_paths_and_names_it_cannot_use() { + let mut s = session(80, 80, 8); + s.execute("path.set", json!({"path": {"subpaths": [{"knots": [[12, 12], [60, 12], [60, 60]]}]}})).unwrap(); + let before = doc(&s).clone(); + let drawn = json!({"subpaths": [{"knots": [[5, 5], [30, 5], [30, 30]]}]}); + for p in [ + json!({"path": {"subpaths": [{"knots": [[5, 5]]}]}}), + json!({"path": {"subpaths": []}}), + json!({"path": 42}), + json!({"path": drawn, "name": "work"}), + json!({"path": drawn, "consumeWorkPath": "yes"}), + json!({"layerName": 5}), + json!({"layerName": ""}), + json!({"layerName": " "}), + ] { + assert!(s.execute("path.toShape", p.clone()).is_err(), "accepted {p}"); + assert_eq!(*doc(&s), before, "{p} modified the document"); + } + s.execute("path.set", json!({"path": {"subpaths": [{"knots": [[12, 12]]}]}})).unwrap(); + assert!(s.execute("path.toShape", json!({})).is_err(), "a one-anchor Work Path"); +} + #[test] fn path_make_selection_rejects_invalid_options_without_changing_history() { let mut s = session(80, 80, 8); diff --git a/crates/engine/src/cmd/video_cmds/tests.rs b/crates/engine/src/cmd/video_cmds/tests.rs index d7feacb06a..a5e2f5db9c 100644 --- a/crates/engine/src/cmd/video_cmds/tests.rs +++ b/crates/engine/src/cmd/video_cmds/tests.rs @@ -213,9 +213,9 @@ fn tiff_page_errors_keep_memory_refusals_typed_and_other_context() { other => panic!("page 2 approval refusal lost its fields: {other:?}"), } - let hard = photocraft_io::IoError::PsdImportBudget { required: 9_000, limit: 8_000 }; + let hard = photocraft_io::IoError::PsdImportBudget { required: 9_000, limit: 8_000, free_memory: None }; match tiff_page_error(display, name, 2, hard) { - EngineError::PsdHardBudget { name: named, required, limit } => { + EngineError::PsdHardBudget { name: named, required, limit, .. } => { assert_eq!(named, name); assert_eq!((required, limit), (9_000, 8_000)); } @@ -244,7 +244,7 @@ fn video_frames_to_layers_keeps_a_layered_tiff_page_refusal_typed() { let _limit = super::limits::Scoped::psd_max_pixel_bytes(1); let err = s.execute("file.import.videoFramesToLayers", json!({"path": path})).unwrap_err(); match err { - EngineError::PsdHardBudget { name, required, limit } => { + EngineError::PsdHardBudget { name, required, limit, .. } => { assert_eq!(name, path); assert_eq!(limit, 1); assert!(required > limit, "the page estimate must be past the caller's limit: {required} > {limit}"); @@ -295,7 +295,7 @@ fn video_frames_to_layers_uses_the_footage_limit_for_a_single_page_layered_tiff( let _limit = super::limits::Scoped::psd_max_pixel_bytes(1); let err = s.execute("file.import.videoFramesToLayers", json!({"path": path})).unwrap_err(); match err { - EngineError::PsdHardBudget { name, required, limit } => { + EngineError::PsdHardBudget { name, required, limit, .. } => { assert_eq!(name, path); assert_eq!(limit, 1); assert!(required > limit, "the page estimate must be past the caller's limit: {required} > {limit}"); diff --git a/crates/engine/src/error.rs b/crates/engine/src/error.rs index 0abdb6302a..4f464b79d7 100644 --- a/crates/engine/src/error.rs +++ b/crates/engine/src/error.rs @@ -23,8 +23,14 @@ pub enum EngineError { PsdApprovalRequired { name: String, required: u64, soft_limit: u64, hard_limit: u64, available_ram: Option }, /// The file's estimated memory cannot be admitted within the hard ceiling, which no approval /// can raise. The requirement may equal the ceiling when the estimate saturated. - #[error("cannot open “{name}”: its estimated memory requirement of {required} bytes cannot be admitted within the {limit} byte hard limit on this machine")] - PsdHardBudget { name: String, required: u64, limit: u64 }, + /// + /// `free_memory` is the free memory measured when it set the limit, if it did. + #[error( + "cannot open “{name}”: its estimated memory requirement of {required_text} ({required} bytes) cannot be admitted within the {limit_text} ({limit} byte) hard limit{scope}{scratch}{advice}", + required_text = bytes_text(.required), limit_text = bytes_text(.limit), scope = build_limit_scope(build_memory_limit()), + scratch = unmeasured_scratch_hint(scratch_room_unmeasured()), advice = photocraft_io::memory::low_memory_advice(.free_memory) + )] + PsdHardBudget { name: String, required: u64, limit: u64, free_memory: Option }, /// The file behind an opened handle is not the one whose memory estimate was approved. /// The document is discarded and is not opened. #[error("“{name}” changed since it was checked; open it again to approve the new file")] @@ -36,6 +42,75 @@ pub enum EngineError { Cancelled, } +/// Where this build's hard memory limit comes from. +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +enum BuildMemoryLimit { + /// Measured from the computer's memory (64-bit desktop). + Measured, + /// The 32-bit desktop build: its cap, or the computer's memory if lower. + Desktop32Bit, + /// Fixed by the browser build. + FixedWeb, +} + +/// This build's memory-limit source, from its target. +fn build_memory_limit() -> BuildMemoryLimit { + memory_limit_for(cfg!(target_arch = "wasm32"), cfg!(target_pointer_width = "32")) +} + +/// The limit source for a target. The wasm32 check comes first: wasm32 is also 32-bit. +fn memory_limit_for(is_wasm32: bool, is_32_bit: bool) -> BuildMemoryLimit { + if is_wasm32 { + BuildMemoryLimit::FixedWeb + } else if is_32_bit { + BuildMemoryLimit::Desktop32Bit + } else { + BuildMemoryLimit::Measured + } +} + +/// The text after "hard limit": where the limit comes from and, where another build could open +/// the file, where to get it. Its sentences stand apart so the action isn't lost in the cause. +fn build_limit_scope(limit: BuildMemoryLimit) -> String { + let releases = crate::updates_cmds::RELEASES; + match limit { + BuildMemoryLimit::Measured => " on this machine".to_owned(), + BuildMemoryLimit::Desktop32Bit => format!( + " on this machine. This 32-bit build of PhotoCraft can use at most 2 GiB of memory for a file, or less if the computer has less memory free. The 64-bit build may be able to open it: download it from {releases}" + ), + BuildMemoryLimit::FixedWeb => format!(" of the browser version of PhotoCraft. To open it, download the desktop app from {releases}"), + } +} + +/// The current scratch configuration, not the admission-time cause of a refusal. +fn scratch_room_unmeasured() -> bool { + let stats = photocraft_raster::spill::stats(); + stats.free_space_unmeasured && stats.size_cap_bytes.is_none() +} + +/// Configuration guidance only: the refusal can instead be bound by a caller or build limit, +/// or by memory that cannot spill. Current scratch stats cannot identify that cause. +fn unmeasured_scratch_hint(unmeasured: bool) -> &'static str { + if unmeasured { + ". Current scratch configuration: free space can't be measured and no Scratch Size Limit is set. To configure scratch capacity, set a Scratch Size Limit in Preferences > Scratch Disks, or use a disk whose free space can be measured. Scratch capacity cannot override caller or build limits, or replace memory that cannot spill to disk" + } else { + "" + } +} + +/// A size for people, next to the exact byte count: "21.5 GiB", "900 MiB", "17 B". +fn bytes_text(bytes: &u64) -> String { + const GIB: u64 = 1 << 30; + const MIB: u64 = 1 << 20; + if *bytes >= GIB { + format!("{:.1} GiB", *bytes as f64 / GIB as f64) + } else if *bytes >= MIB { + format!("{} MiB", bytes / MIB) + } else { + format!("{bytes} B") + } +} + pub type Result = std::result::Result; impl EngineError { @@ -59,7 +134,7 @@ pub(crate) fn io_open_error(name: &str, error: photocraft_io::IoError) -> Engine IoError::PsdApprovalRequired { required, soft_limit, hard_limit, available_ram } => { EngineError::PsdApprovalRequired { name: name.to_string(), required, soft_limit, hard_limit, available_ram } } - IoError::PsdImportBudget { required, limit } => EngineError::PsdHardBudget { name: name.to_string(), required, limit }, + IoError::PsdImportBudget { required, limit, free_memory } => EngineError::PsdHardBudget { name: name.to_string(), required, limit, free_memory }, IoError::SourceChanged => EngineError::SourceChanged { name: name.to_string() }, error => EngineError::Other(format!("{name}: {error}")), } @@ -70,3 +145,102 @@ impl From for EngineError { Self::Other(format!("not enough memory for this operation ({error}); the document was not changed")) } } + +#[cfg(test)] +mod tests { + use super::*; + + fn hard(free_memory: Option) -> EngineError { + EngineError::PsdHardBudget { name: "big.psd".into(), required: 9000, limit: 4000, free_memory } + } + + #[test] + fn hard_budget_message_tells_the_user_to_free_memory_when_it_was_measured() { + let message = hard(Some(900 << 20)).to_string(); + assert!(message.ends_with("Close other apps and try again"), "{message}"); + assert!(message.contains("900 MiB"), "{message}"); + + let message = hard(Some(0)).to_string(); + assert!(message.contains("measured no free memory"), "{message}"); + + let message = hard(None).to_string(); + assert!(message.contains(&build_limit_scope(build_memory_limit())), "{message}"); + assert!(!message.contains("Close other apps"), "{message}"); + } + + #[test] + fn io_open_error_carries_the_free_memory_through() { + for free_memory in [None, Some(0), Some(3 << 30)] { + let error = photocraft_io::IoError::PsdImportBudget { required: 9000, limit: 4000, free_memory }; + match io_open_error("big.psd", error) { + EngineError::PsdHardBudget { required: 9000, limit: 4000, free_memory: carried, .. } => assert_eq!(carried, free_memory), + other => panic!("expected the typed hard refusal, got {other:?}"), + } + } + } + + #[test] + fn hard_budget_scope_text_per_build() { + assert_eq!(build_limit_scope(BuildMemoryLimit::Measured), " on this machine"); + let releases = crate::updates_cmds::RELEASES; + assert_eq!( + build_limit_scope(BuildMemoryLimit::Desktop32Bit), + format!( + " on this machine. This 32-bit build of PhotoCraft can use at most 2 GiB of memory for a file, or less if the computer has less memory free. The 64-bit build may be able to open it: download it from {releases}" + ) + ); + assert_eq!( + build_limit_scope(BuildMemoryLimit::FixedWeb), + format!(" of the browser version of PhotoCraft. To open it, download the desktop app from {releases}") + ); + } + + #[test] + fn unmeasured_scratch_hint_only_when_unmeasured() { + assert_eq!(unmeasured_scratch_hint(false), ""); + let hint = unmeasured_scratch_hint(true); + assert!(hint.starts_with(". Current scratch configuration:"), "{hint}"); + assert!(hint.contains("Scratch Size Limit in Preferences > Scratch Disks") && hint.contains("disk whose free space can be measured"), "{hint}"); + } + + #[test] + fn scratch_configuration_hint_does_not_promise_to_raise_a_binding_limit() { + let hint = unmeasured_scratch_hint(true); + // A caller-bound refusal can carry the same live scratch state as a capacity refusal. + // The note must describe that state without attributing this file's refusal to it. + assert!(hint.contains("cannot override caller or build limits"), "{hint}"); + assert!(hint.contains("memory that cannot spill to disk"), "{hint}"); + assert!(!hint.contains("for this file") && !hint.contains("so it adds no room"), "{hint}"); + } + + #[test] + fn hard_budget_message_names_file_numbers_and_scope() { + let text = EngineError::PsdHardBudget { name: "big.psd".into(), required: 23_049_071_616, limit: 2_147_483_648, free_memory: None }.to_string(); + for part in ["big.psd", "21.5 GiB", "23049071616 bytes", "2.0 GiB", "2147483648 byte", "hard limit"] { + assert!(text.contains(part), "{text}"); + } + assert!(text.contains(&build_limit_scope(build_memory_limit())), "{text}"); + } + + #[test] + fn bytes_text_picks_a_readable_unit() { + assert_eq!(bytes_text(&17), "17 B"); + assert_eq!(bytes_text(&(900 << 20)), "900 MiB"); + assert_eq!(bytes_text(&(2 << 30)), "2.0 GiB"); + assert_eq!(bytes_text(&23_049_071_616), "21.5 GiB"); + assert!(bytes_text(&u64::MAX).ends_with(" GiB")); + } + + #[test] + fn memory_limit_follows_the_target() { + assert_eq!(memory_limit_for(true, true), BuildMemoryLimit::FixedWeb); + assert_eq!(memory_limit_for(true, false), BuildMemoryLimit::FixedWeb); + assert_eq!(memory_limit_for(false, true), BuildMemoryLimit::Desktop32Bit); + assert_eq!(memory_limit_for(false, false), BuildMemoryLimit::Measured); + } + + #[test] + fn two_gib_in_the_text_matches_the_cap() { + assert_eq!(photocraft_io::memory::NATIVE_32BIT_PEAK_CAP, 2 << 30); + } +} diff --git a/crates/engine/src/jobs.rs b/crates/engine/src/jobs.rs index 15ae84a291..ba82bd9028 100644 --- a/crates/engine/src/jobs.rs +++ b/crates/engine/src/jobs.rs @@ -12,6 +12,10 @@ //! - [`Session::start`] runs a job-capable command on a worker thread and returns its //! [`JobId`]; [`Session::poll_jobs`] (called every frame by the UI) applies finished jobs. //! On wasm `start` runs inline (same API, written once). +//! - Work that is written as [`StepWork`] (Place) also runs where there are no threads: with +//! [`Session::set_cooperative_jobs`] (the web build's default) [`run_stepped`] registers the job +//! without a worker, and [`Session::poll_jobs`] runs one slice of it, about 8 ms, per call. The +//! UI stays responsive between slices, and the result is the same as on a worker. //! - [`Session::cancel_job`] sets the flag; the algorithms check it per tile, row band or //! iteration, and the result is discarded. The document is never touched by a worker. //! - A job with an effect outside the session (a save replacing its file) calls @@ -459,20 +463,44 @@ pub struct JobInfo { type Payload = Box; type Apply = Box Result + Send>; -/// Wall-clock milliseconds since some fixed point (0 on wasm, where `Instant` is unavailable and -/// jobs run inline anyway). +/// Milliseconds on the monotonic clock since some fixed point (`web_time` reads the browser's on wasm). fn now_ms() -> f64 { - #[cfg(not(target_arch = "wasm32"))] - { - static START: std::sync::OnceLock = std::sync::OnceLock::new(); - START.get_or_init(std::time::Instant::now).elapsed().as_secs_f64() * 1000.0 - } - #[cfg(target_arch = "wasm32")] - { - 0.0 + static START: std::sync::OnceLock = std::sync::OnceLock::new(); + START.get_or_init(web_time::Instant::now).elapsed().as_secs_f64() * 1000.0 +} + +/// How much of a frame [`Session::poll_jobs`] gives a [`StepWork`] job, unless +/// [`Session::set_job_step_budget`] says otherwise. +const STEP_BUDGET: std::time::Duration = std::time::Duration::from_millis(8); + +/// A deadline no job reaches, for running [`StepWork`] to the end in one go. +fn no_deadline() -> web_time::Instant { + let now = web_time::Instant::now(); + now.checked_add(std::time::Duration::from_secs(1 << 30)).unwrap_or(now) +} + +/// Work a job does a slice at a time (see [`run_stepped`]). +pub trait StepWork: Send + 'static { + /// Does some of the work and returns `Ok(None)` for "not finished, call again", or the result. + /// It should return soon after `deadline` passes (checking it between units of work), but + /// always does at least one unit, so that calling it again makes progress. `ctx` reports + /// progress and tells of cancellation, as for a worker. + fn step(&mut self, ctx: &JobCtx, deadline: web_time::Instant) -> Result>; +} + +/// Runs `work` to the end, as a worker does. +fn drive(mut work: impl StepWork, ctx: &JobCtx) -> Result { + loop { + ctx.check()?; + if let Some(t) = work.step(ctx, no_deadline())? { + return Ok(t); + } } } +/// Runs one slice of a cooperative job: `Ok(None)` when it has more to do. +type Stepper = Box Result> + Send>; + struct Running { id: JobId, command: String, @@ -496,7 +524,10 @@ struct Running { /// The document's layer selection when the job started: applying targets it, not whatever /// got selected meanwhile (a Type click does that without editing the document, #7366). layers: Option, - rx: std::sync::mpsc::Receiver>, + /// Where the worker thread sends its result. A cooperative job has none: [`Session::poll_jobs`] + /// runs its `stepper` instead. + rx: Option>>, + stepper: Option, apply: Option, #[cfg(not(target_arch = "wasm32"))] handle: Option>, @@ -524,6 +555,16 @@ impl LayerSelection { } impl Running { + /// Runs a slice of a cooperative job until `deadline`: `Ok(None)` when it has more to do. + /// A cancelled job ends with `Err(Cancelled)` before doing more. + fn step(&mut self, deadline: web_time::Instant) -> Result> { + self.ctx.check()?; + match self.stepper.as_mut() { + Some(stepper) => stepper(&self.ctx, deadline), + None => Err(EngineError::Other(format!("`{}` has nothing to run", self.label))), + } + } + fn info(&self) -> JobInfo { JobInfo { id: self.id, @@ -563,7 +604,6 @@ fn reap_draining(draining: &mut Vec) -> bool { } /// The session's job table (see the module docs). -#[derive(Default)] pub struct Jobs { next: u64, /// Set while [`Session::start`] runs a command: [`run`] spawns instead of running inline. @@ -580,6 +620,39 @@ pub struct Jobs { draining: Vec, /// The context inline job work runs under (see [`Session::set_inline_job_ctx`]). inline: Option, + /// No worker threads: [`StepWork`] jobs are stepped by [`Session::poll_jobs`], everything else + /// runs inline. On for wasm; see [`Session::set_cooperative_jobs`]. + cooperative: bool, + /// How long [`Session::poll_jobs`] runs a cooperative job per call. + step_budget: std::time::Duration, +} + +// Derivable on a desktop, where `cooperative` starts off; wasm starts it on. +#[allow(clippy::derivable_impls)] +impl Default for Jobs { + /// No jobs, spawning off; a session steps its jobs itself (cooperative) on wasm only. + fn default() -> Self { + Self { + next: 0, + spawn: false, + pending: None, + running: Vec::new(), + events: Vec::new(), + recent: Vec::new(), + #[cfg(not(target_arch = "wasm32"))] + draining: Vec::new(), + inline: None, + cooperative: cfg!(target_arch = "wasm32"), + step_budget: STEP_BUDGET, + } + } +} + +impl Jobs { + /// Does a job started now run on a worker thread? (Not inline, and not stepped on this thread.) + fn threaded(&self) -> bool { + self.spawn && !self.cooperative && !cfg!(target_arch = "wasm32") + } } const RECENT: usize = 16; @@ -684,10 +757,81 @@ pub fn run( // The job's document: stored paths it follows are resolved against it on any thread. let document = s.active().and_then(|d| d.path.as_deref()).map(std::path::PathBuf::from); let _document = crate::doc_path::scope(document.as_deref()); - if !s.jobs.spawn || cfg!(target_arch = "wasm32") { + if !s.jobs.threaded() { let t = work(&s.jobs.inline.clone().unwrap_or_default())?; return apply(s, t); } + let mut job = new_job(s, label, lock_document, authorization, document.clone(), apply)?; + let (tx, rx) = std::sync::mpsc::channel::>(); + #[cfg(not(target_arch = "wasm32"))] + { + let wctx = job.ctx.clone(); + let label_w = label.to_string(); + // The work closure is moved into the thread. If spawning fails (thread limits), there is + // no way to get it back, so the error is reported instead. + let spawned = std::thread::Builder::new().name(format!("photocraft-job-{}", job.id.0)).spawn(move || { + let _authorization = AuthorizationScope::enter(authorization); + let _document = crate::doc_path::scope(document.as_deref()); + let r = std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| work(&wctx).map(|t| Box::new(t) as Payload))) + .unwrap_or_else(|_| Err(EngineError::Other(format!("`{label_w}` failed with an internal error (logged); the document is unchanged")))); + wctx.finish_work(); + // The receiver is gone when the job was cancelled: nothing to report. + let _ = tx.send(r); + }); + job.handle = Some(spawned.map_err(|e| EngineError::Other(format!("could not start a background job: {e}")))?); + } + #[cfg(target_arch = "wasm32")] + { + // Unreachable (wasm runs inline above); keep the types used. + drop((work, tx)); + } + job.rx = Some(rx); + let id = job.id; + s.jobs.pending = Some(job); + Ok(json!({"job": id.0})) +} + +/// [`run`] for work done a slice at a time ([`StepWork`]): where the session has no worker threads +/// ([`Session::set_cooperative_jobs`], the web build) the job runs on the UI thread, a slice of +/// about 8 ms per [`Session::poll_jobs`], so the window keeps repainting meanwhile. Elsewhere it +/// is [`run`] with `work` driven to the end: on a worker thread for [`Session::start`], inline for +/// [`Session::execute`]. The result is the same either way. +pub fn run_stepped( + s: &mut Session, + label: &str, + lock_document: bool, + work: impl StepWork, + apply: impl FnOnce(&mut Session, T) -> Result + Send + 'static, +) -> Result { + if !(s.jobs.spawn && s.jobs.cooperative) { + return run(s, label, lock_document, move |ctx| drive(work, ctx), apply); + } + let authorization = s.authorize.or_else(|| RENDER_AUTHORIZATION.with(std::cell::Cell::get)); + let document = s.active().and_then(|d| d.path.as_deref()).map(std::path::PathBuf::from); + let mut job = new_job(s, label, lock_document, authorization, document.clone(), apply)?; + let (label_w, mut work) = (label.to_string(), work); + // The slices run under the requesting session's authority and document, as a worker would. + job.stepper = Some(Box::new(move |ctx, deadline| { + let _authorization = AuthorizationScope::enter(authorization); + let _document = crate::doc_path::scope(document.as_deref()); + std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| work.step(ctx, deadline))) + .unwrap_or_else(|_| Err(EngineError::Other(format!("`{label_w}` failed with an internal error (logged); the document is unchanged")))) + .map(|done| done.map(|t| Box::new(t) as Payload)) + })); + let id = job.id; + s.jobs.pending = Some(job); + Ok(json!({"job": id.0})) +} + +/// A job for [`run`] and [`run_stepped`] to start, without its worker. +fn new_job( + s: &mut Session, + label: &str, + lock_document: bool, + authorization: Option, + document: Option, + apply: impl FnOnce(&mut Session, T) -> Result + Send + 'static, +) -> Result { if s.jobs.pending.is_some() { return Err(EngineError::Other(format!("`{label}` started a second background job in one command"))); } @@ -706,41 +850,15 @@ pub fn run( (true, None) => return Err(EngineError::NoDocument), (false, _) => (None, None, None), }; - let ctx = JobCtx::new(); - let (tx, rx) = std::sync::mpsc::channel::>(); - let apply_document = document.clone(); let erased: Apply = Box::new(move |s, any| { let _authorization = AuthorizationScope::enter(authorization); - let _document = crate::doc_path::scope(apply_document.as_deref()); + let _document = crate::doc_path::scope(document.as_deref()); let t = any.downcast::().map_err(|_| EngineError::Other("internal error: job result type mismatch".into()))?; apply(s, *t) }); s.jobs.next = s.jobs.next.checked_add(1).ok_or_else(|| EngineError::Other("background job identifier space exhausted".into()))?; - let id = JobId(s.jobs.next); - #[cfg(not(target_arch = "wasm32"))] - let handle = { - let wctx = ctx.clone(); - let label_w = label.to_string(); - // The work closure is moved into the thread. If spawning fails (thread limits), there is - // no way to get it back, so the error is reported instead. - let spawned = std::thread::Builder::new().name(format!("photocraft-job-{}", id.0)).spawn(move || { - let _authorization = AuthorizationScope::enter(authorization); - let _document = crate::doc_path::scope(document.as_deref()); - let r = std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| work(&wctx).map(|t| Box::new(t) as Payload))) - .unwrap_or_else(|_| Err(EngineError::Other(format!("`{label_w}` failed with an internal error (logged); the document is unchanged")))); - wctx.finish_work(); - // The receiver is gone when the job was cancelled: nothing to report. - let _ = tx.send(r); - }); - Some(spawned.map_err(|e| EngineError::Other(format!("could not start a background job: {e}")))?) - }; - #[cfg(target_arch = "wasm32")] - { - // Unreachable (wasm runs inline above); keep the types used. - drop((work, tx)); - } - s.jobs.pending = Some(Running { - id, + Ok(Running { + id: JobId(s.jobs.next), command: String::new(), label: label.to_string(), params: Value::Null, @@ -750,18 +868,18 @@ pub fn run( before: crate::actions_record::Before::capture(s), doc, snapshot, - ctx, + ctx: JobCtx::new(), started_ms: now_ms(), coalesce: s.coalesce_request.clone(), color_restrict: s.color_restrict, filter_mask_layer: s.filter_mask_layer, layers, - rx, + rx: None, + stepper: None, apply: Some(erased), #[cfg(not(target_arch = "wasm32"))] - handle, - }); - Ok(json!({"job": id.0})) + handle: None, + }) } /// A document edit whose body is the job: like [`Session::edit`] (one undo step named `label`), @@ -773,7 +891,7 @@ pub fn edit_job( f: impl FnOnce(&mut Document, &mut Option, &JobCtx) -> Result + Send + 'static, finish: impl FnOnce(R) -> Value + Send + 'static, ) -> Result { - if !s.jobs.spawn || cfg!(target_arch = "wasm32") { + if !s.jobs.threaded() { // Inline: exactly `Session::edit`, as before jobs existed. let ctx = s.jobs.inline.clone().unwrap_or_default(); let r = s.edit(label, |doc, active| f(doc, active, &ctx))?; @@ -1089,15 +1207,17 @@ impl Session { /// insert the layer as one undo step when [`Session::poll_jobs`] applies it. `name` names the /// layer and the file; `params` are the command's (`scale`, `center`, `fit`, `smartObject`). /// The job's result is the command's: `{layer, frame, scale, bounds, smartObject}`. The active - /// document is locked meanwhile, so this is refused while another job runs on it. Runs inline - /// on wasm. + /// document is locked meanwhile, so this is refused while another job runs on it. On wasm (and + /// in a [cooperative](Session::set_cooperative_jobs) session) it is not a worker's job but + /// one [`Session::poll_jobs`] runs a slice of per call. pub fn start_place_bytes(&mut self, name: &str, bytes: Vec, linked: Option, params: Value) -> Result { let input = crate::file_cmds::PlaceInput::new(self, name, bytes, linked, ¶ms)?; let (command, label) = (input.command(), input.job_label()); if let Some(conflict) = self.job_conflict(command, true) { return Err(EngineError::Other(conflict)); } - self.start_job(command, json!({"name": name}), &label, true, move |ctx| crate::file_cmds::prepare_place(input, ctx), crate::file_cmds::apply_place) + let work = crate::file_cmds::PlaceSteps::new(input, self.cooperative_jobs()); + self.start_job_stepped(command, json!({"name": name}), &label, true, work, crate::file_cmds::apply_place) } /// Decodes a file in a job and optionally holds damaged PSD content for @@ -1288,9 +1408,30 @@ impl Session { work: impl FnOnce(&JobCtx) -> Result + Send + 'static, apply: impl FnOnce(&mut Session, T) -> Result + Send + 'static, ) -> Result { + self.start_registered(command, params, spawn, |s| run(s, label, lock_document, work, apply)) + } + + /// [`Session::start_job`] for [`StepWork`]: on a worker, or where the session is cooperative + /// (see [`Session::set_cooperative_jobs`]) a slice per [`Session::poll_jobs`] on this thread. + pub fn start_job_stepped( + &mut self, + command: &str, + params: Value, + label: &str, + lock_document: bool, + work: impl StepWork, + apply: impl FnOnce(&mut Session, T) -> Result + Send + 'static, + ) -> Result { + self.start_registered(command, params, true, |s| run_stepped(s, label, lock_document, work, apply)) + } + + /// Runs `register` (which calls [`run`] or [`run_stepped`]) with background jobs allowed when + /// `spawn` (the jobs then run on a worker, or on wasm inline or in slices, see + /// `Jobs::threaded`), and files the job it started under `command`. + fn start_registered(&mut self, command: &str, params: Value, spawn: bool, register: impl FnOnce(&mut Session) -> Result) -> Result { let prev_spawn = self.jobs.spawn; - self.jobs.spawn = spawn && !cfg!(target_arch = "wasm32"); - let r = run(self, label, lock_document, work, apply); + self.jobs.spawn = spawn; + let r = register(self); self.jobs.spawn = prev_spawn; let pending = self.jobs.pending.take(); match (r, pending) { @@ -1311,23 +1452,58 @@ impl Session { } } + /// Whether this session has no worker threads: [`StepWork`] jobs are run a slice at a time by + /// [`Session::poll_jobs`] on the UI thread, and every other command runs inline. The web + /// build (wasm) is always like this; tests turn it on to run that path on a desktop. + pub fn cooperative_jobs(&self) -> bool { + self.jobs.cooperative + } + + /// How long one [`Session::poll_jobs`] runs a cooperative job (8 ms by default, a share of a + /// frame). A slice always does one unit of work, so zero makes every poll do just that: tests + /// use it to count polls without depending on the machine's speed. + pub fn set_job_step_budget(&mut self, budget: std::time::Duration) { + self.jobs.step_budget = budget; + } + + /// Turn [`Session::cooperative_jobs`] on or off. Jobs already running keep running as they + /// started. + pub fn set_cooperative_jobs(&mut self, on: bool) { + self.jobs.cooperative = on; + } + /// Apply finished background jobs (on this thread) and return every job that ended since - /// the last call. Cheap when nothing runs; the UI calls it every frame. + /// the last call. Also runs one slice (about 8 ms) of a cooperative job, if there is one. Cheap + /// when nothing runs; the UI calls it every frame. pub fn poll_jobs(&mut self) -> Vec { let mut i = 0; + let mut stepped = false; + let budget = self.jobs.step_budget; while i < self.jobs.running.len() { - match self.jobs.running.get(i).map(|r| r.rx.try_recv()) { - Some(Ok(r)) => { + let Some(job) = self.jobs.running.get_mut(i) else { break }; + let finished = match &job.rx { + Some(rx) => match rx.try_recv() { + Ok(r) => Some(r), + Err(std::sync::mpsc::TryRecvError::Empty) => None, + Err(std::sync::mpsc::TryRecvError::Disconnected) => { + Some(Err(EngineError::Other(format!("`{}` stopped unexpectedly; the document is unchanged", job.label)))) + } + }, + // One cooperative job gets the frame's budget; any others wait for the next poll. + None if !stepped => { + stepped = true; + // An absurd budget (`Duration::MAX` through `set_job_step_budget`) must not + // overflow the deadline: fall back to one no job reaches. + job.step(web_time::Instant::now().checked_add(budget).unwrap_or_else(no_deadline)).transpose() + } + None => None, + }; + match finished { + Some(r) => { let job = self.jobs.running.remove(i); self.finish_job(job, r); } - Some(Err(std::sync::mpsc::TryRecvError::Empty)) => i += 1, - Some(Err(std::sync::mpsc::TryRecvError::Disconnected)) => { - let job = self.jobs.running.remove(i); - let label = job.label.clone(); - self.finish_job(job, Err(EngineError::Other(format!("`{label}` stopped unexpectedly; the document is unchanged")))); - } - None => break, + None => i += 1, } } #[cfg(not(target_arch = "wasm32"))] @@ -1343,11 +1519,19 @@ impl Session { } /// Block until job `id` ends, apply it, and return its result (the control channel's and - /// MCP's default `wait`, and the CLI). `Err(Cancelled)` if it was cancelled. + /// MCP's default `wait`, and the CLI). `Err(Cancelled)` if it was cancelled. A cooperative job + /// is run to the end here. pub fn wait_job(&mut self, id: JobId) -> Result { if let Some(i) = self.jobs.running.iter().position(|r| r.id == id) { - let job = self.jobs.running.remove(i); - let r = job.rx.recv().unwrap_or_else(|_| Err(EngineError::Other(format!("`{}` stopped unexpectedly", job.label)))); + let mut job = self.jobs.running.remove(i); + let r = match &job.rx { + Some(rx) => rx.recv().unwrap_or_else(|_| Err(EngineError::Other(format!("`{}` stopped unexpectedly", job.label)))), + None => loop { + if let Some(r) = job.step(no_deadline()).transpose() { + break r; + } + }, + }; self.finish_job(job, r); } match self.jobs.recent.iter().rev().find(|j| j.id == id) { diff --git a/crates/engine/src/jobs/tests.rs b/crates/engine/src/jobs/tests.rs index 5810ff5d21..f6d4cf6b85 100644 --- a/crates/engine/src/jobs/tests.rs +++ b/crates/engine/src/jobs/tests.rs @@ -1,4 +1,5 @@ use std::sync::Arc; +use std::sync::atomic::{AtomicBool, AtomicUsize}; use std::time::{Duration, Instant}; use serde_json::json; @@ -1161,6 +1162,224 @@ fn every_job_terminal_path_drops_a_live_commit_stroke() { } } +// ---------- cooperative jobs (no worker threads, as on the web) ---------- + +/// A job that needs `needed` calls, and records what each one saw. +struct Counting { + needed: usize, + done: usize, + /// How far ahead the deadline of each call was. + ahead: Arc>>, + calls: Arc, + thread: Arc>>, + dropped: Arc, +} + +impl Drop for Counting { + fn drop(&mut self) { + self.dropped.store(true, Ordering::Relaxed); + } +} + +impl StepWork for Counting { + fn step(&mut self, ctx: &JobCtx, deadline: web_time::Instant) -> Result> { + self.ahead.lock().unwrap().push(deadline.saturating_duration_since(web_time::Instant::now())); + *self.thread.lock().unwrap() = Some(std::thread::current().id()); + self.calls.fetch_add(1, Ordering::Relaxed); + self.done += 1; + ctx.progress(self.done as f32 / self.needed as f32, "Counting"); + Ok((self.done >= self.needed).then_some(self.done)) + } +} + +struct Probe { + ahead: Arc>>, + calls: Arc, + thread: Arc>>, + dropped: Arc, +} + +fn counting(needed: usize) -> (Counting, Probe) { + let probe = Probe { ahead: Arc::default(), calls: Arc::default(), thread: Arc::default(), dropped: Arc::default() }; + let work = + Counting { needed, done: 0, ahead: probe.ahead.clone(), calls: probe.calls.clone(), thread: probe.thread.clone(), dropped: probe.dropped.clone() }; + (work, probe) +} + +fn start_counting(s: &mut Session, needed: usize, lock: bool) -> (JobId, Probe) { + let (work, probe) = counting(needed); + let id = job(s.start_job_stepped("test.stepped", json!({}), "Stepping", lock, work, |_, n| Ok(json!({"steps": n}))).unwrap()); + (id, probe) +} + +#[test] +fn a_cooperative_job_gets_one_slice_per_poll_on_the_calling_thread() { + let mut s = session(40, 30); + s.set_cooperative_jobs(true); + let (id, probe) = start_counting(&mut s, 3, true); + assert!(s.has_jobs()); + assert_eq!(probe.calls.load(Ordering::Relaxed), 0, "starting does no work"); + // The document is locked as for a worker. + let refused = s.execute("layer.new.layer", json!({})).unwrap_err().to_string(); + assert!(refused.contains("Stepping"), "{refused}"); + for polls in 1..=2 { + assert!(s.poll_jobs().is_empty(), "poll {polls}"); + assert_eq!(probe.calls.load(Ordering::Relaxed), polls); + assert!(s.has_jobs()); + } + let info = s.job(id).unwrap(); + assert_eq!(info.message, "Counting"); + assert!((info.progress - 2.0 / 3.0).abs() < 1e-6, "{}", info.progress); + let events = s.poll_jobs(); + assert_eq!(events.len(), 1); + assert_eq!(events[0].outcome, JobOutcome::Done(json!({"steps": 3}))); + assert_eq!((events[0].command.as_str(), events[0].label.as_str()), ("test.stepped", "Stepping")); + assert!(!s.has_jobs()); + assert_eq!(*probe.thread.lock().unwrap(), Some(std::thread::current().id()), "no worker thread"); + // Each slice was given about a frame's budget: no more than 8 ms from the poll. + let ahead = probe.ahead.lock().unwrap().clone(); + assert!(ahead.iter().all(|d| *d <= STEP_BUDGET), "{ahead:?}"); + assert!(ahead.iter().any(|d| *d > Duration::ZERO), "{ahead:?}"); + assert!(probe.dropped.load(Ordering::Relaxed), "the finished work is let go"); + s.execute("layer.new.layer", json!({})).unwrap(); +} + +#[test] +fn a_cooperative_job_reports_real_elapsed_time() { + let mut s = session(8, 8); + s.set_cooperative_jobs(true); + let (id, _) = start_counting(&mut s, 5, false); + std::thread::sleep(Duration::from_millis(20)); + assert!(s.job(id).unwrap().elapsed_ms >= 15.0, "{}", s.job(id).unwrap().elapsed_ms); + assert_eq!(s.wait_job(id).unwrap(), json!({"steps": 5})); +} + +/// A budget too large to add to an `Instant` runs the slice to the end instead of overflowing. +#[test] +fn a_huge_step_budget_does_not_panic() { + let mut s = session(8, 8); + s.set_cooperative_jobs(true); + s.set_job_step_budget(Duration::MAX); + let (id, probe) = start_counting(&mut s, 2, false); + s.poll_jobs(); + assert_eq!(probe.calls.load(Ordering::Relaxed), 1, "one slice still runs"); + assert_eq!(s.wait_job(id).unwrap(), json!({"steps": 2})); +} + +#[test] +fn only_one_cooperative_job_is_stepped_per_poll() { + let mut s = session(8, 8); + s.set_cooperative_jobs(true); + let (a, pa) = start_counting(&mut s, 5, false); + let (b, pb) = start_counting(&mut s, 5, false); + s.poll_jobs(); + assert_eq!((pa.calls.load(Ordering::Relaxed), pb.calls.load(Ordering::Relaxed)), (1, 0)); + s.poll_jobs(); + assert_eq!((pa.calls.load(Ordering::Relaxed), pb.calls.load(Ordering::Relaxed)), (2, 0)); + // Both finish all the same. + assert_eq!(s.wait_job(a).unwrap(), json!({"steps": 5})); + assert_eq!(s.wait_job(b).unwrap(), json!({"steps": 5})); +} + +#[test] +fn wait_job_runs_a_cooperative_job_to_the_end() { + let mut s = session(8, 8); + s.set_cooperative_jobs(true); + let (id, probe) = start_counting(&mut s, 50, true); + assert_eq!(s.wait_job(id).unwrap(), json!({"steps": 50})); + assert_eq!(probe.calls.load(Ordering::Relaxed), 50); + assert!(!s.has_jobs()); +} + +#[test] +fn cancelling_a_cooperative_job_between_polls_discards_it() { + let mut s = session(8, 8); + s.set_cooperative_jobs(true); + let (id, probe) = start_counting(&mut s, 10, true); + s.poll_jobs(); + assert!(s.cancel_job(id)); + assert!(probe.dropped.load(Ordering::Relaxed), "the work is let go at once"); + assert!(!s.has_jobs()); + let events = s.poll_jobs(); + assert_eq!(events.len(), 1); + assert_eq!(events[0].outcome, JobOutcome::Cancelled); + assert_eq!(probe.calls.load(Ordering::Relaxed), 1, "no slice after the cancel"); + assert!(matches!(s.wait_job(id), Err(EngineError::Cancelled))); + s.execute("layer.new.layer", json!({})).unwrap(); +} + +#[test] +fn a_failing_or_panicking_slice_fails_the_job() { + struct Fails(bool); + impl StepWork<()> for Fails { + fn step(&mut self, _: &JobCtx, _: web_time::Instant) -> Result> { + if self.0 { Err(EngineError::Other("the slice failed".into())) } else { panic!("a bug in the slice") } + } + } + for panics in [false, true] { + let mut s = session(8, 8); + s.set_cooperative_jobs(true); + let id = job(s.start_job_stepped("test.stepped", json!({}), "Failing", true, Fails(!panics), |_, ()| Ok(json!({}))).unwrap()); + let events = s.poll_jobs(); + assert_eq!(events.len(), 1, "panics={panics}"); + let JobOutcome::Failed(msg) = &events[0].outcome else { panic!("{:?}", events[0]) }; + assert_eq!(events[0].id, id); + if panics { + assert!(msg.contains("internal error"), "{msg}"); + } else { + assert_eq!(msg, "the slice failed"); + } + assert!(!s.has_jobs()); + s.execute("layer.new.layer", json!({})).unwrap(); + } +} + +#[test] +fn a_cooperative_session_runs_other_commands_inline() { + let mut s = session(60, 40); + s.set_cooperative_jobs(true); + assert!(matches!(s.start("filter.blur.gaussianBlur", json!({"radius": 3})).unwrap(), Started::Done(_))); + assert!(!s.has_jobs()); + let opened = s.start_open("a.png", OpenSource::Bytes(Arc::new(Vec::new()))); + assert!(opened.is_err() || matches!(opened, Ok(Started::Done(_))), "opening runs inline too"); +} + +#[test] +fn stepped_work_without_cooperation_runs_on_a_worker_or_inline() { + // A worker thread, when started in the background. + let mut s = session(8, 8); + assert!(!s.cooperative_jobs() || cfg!(target_arch = "wasm32")); + let (id, probe) = start_counting(&mut s, 4, true); + let e = wait_event(&mut s, id); + assert_eq!(e.outcome, JobOutcome::Done(json!({"steps": 4}))); + assert_ne!(*probe.thread.lock().unwrap(), Some(std::thread::current().id()), "ran on a worker"); + assert_eq!(probe.calls.load(Ordering::Relaxed), 4); + + // Inline, when run as part of a command. + let (work, probe) = counting(6); + let v = run_stepped(&mut s, "Inline", true, work, |_, n| Ok(json!({"steps": n}))).unwrap(); + assert_eq!(v, json!({"steps": 6})); + assert_eq!(*probe.thread.lock().unwrap(), Some(std::thread::current().id())); + assert!(!s.has_jobs()); + + // Cooperative, but not started in the background: inline as well. + s.set_cooperative_jobs(true); + let (work, _) = counting(3); + assert_eq!(run_stepped(&mut s, "Inline", true, work, |_, n| Ok(json!({"steps": n}))).unwrap(), json!({"steps": 3})); +} + +#[test] +fn an_inline_stepped_job_stops_when_cancelled() { + let mut s = session(8, 8); + let ctx = JobCtx::new(); + s.set_inline_job_ctx(Some(ctx.clone())); + let (work, probe) = counting(1_000_000); + ctx.cancel(); + let r = run_stepped(&mut s, "Inline", true, work, |_, n| Ok(json!({"steps": n}))); + assert!(matches!(r, Err(EngineError::Cancelled)), "{r:?}"); + assert!(probe.calls.load(Ordering::Relaxed) <= 1); +} + #[cfg(not(target_arch = "wasm32"))] #[test] fn background_admission_counts_cancelled_workers_until_they_finish() { @@ -1350,14 +1569,14 @@ fn a_failed_job_keeps_its_typed_error_for_wait_and_events() { json!({}), "Test hard budget", false, - |_ctx| -> Result<()> { Err(EngineError::PsdHardBudget { name: "too-big.psd".into(), required: 9000, limit: 4000 }) }, + |_ctx| -> Result<()> { Err(EngineError::PsdHardBudget { name: "too-big.psd".into(), required: 9000, limit: 4000, free_memory: None }) }, |_, _| Ok(Value::Null), ) .unwrap(); let id = job(started); let err = s.wait_job(id).expect_err("the job fails"); assert!( - matches!(&err, EngineError::PsdHardBudget { name, required, limit } if name == "too-big.psd" && *required == 9000 && *limit == 4000), + matches!(&err, EngineError::PsdHardBudget { name, required, limit, .. } if name == "too-big.psd" && *required == 9000 && *limit == 4000), "wait_job must not flatten the typed refusal: {err:?}" ); let event = s.poll_jobs().into_iter().find(|e| e.id == id).expect("the job event"); diff --git a/crates/engine/src/prefs.rs b/crates/engine/src/prefs.rs index 5b666078c6..ee61af791c 100644 --- a/crates/engine/src/prefs.rs +++ b/crates/engine/src/prefs.rs @@ -100,6 +100,11 @@ choice!( /// pointer (Photoshop), or erase with the current brush while dragging (Krita, Paint). RightClickPaint { BrushPicker = "brushPicker", Erase = "erase" } default BrushPicker ); +choice!( + /// Windows: which pen input supplies pressure. Windows Ink is the default; WinTab needs + /// Windows Ink turned off in the tablet driver's utility and a restart. + TabletInput { WindowsInk = "windowsInk", WinTab = "winTab" } default WindowsInk +); choice!(OtherCursor { Standard = "standard", Precise = "precise" } default Standard); choice!(CheckerSize { None = "none", Small = "small", Medium = "medium", Large = "large" } default Medium); choice!(CheckerColors { Light = "light", Medium = "medium", Dark = "dark", Red = "red", Orange = "orange", Green = "green", Blue = "blue", Purple = "purple", Custom = "custom" } default Light); @@ -287,9 +292,6 @@ pub struct Interface { /// objects in a large document stay visible (Photoshop's Clip Thumbnails to Layer Bounds; #4281). pub clip_thumbnails_to_layer_bounds: bool, pub show_tooltips: bool, - /// Menus, popups and collapsing sections fade and slide, and scroll areas glide to a new - /// position. Off, everything changes at once (a reduced-motion mode; #1218, #3273). - pub enable_animations: bool, /// Move tool drags show only the layer's outline and an arrow, leaving its pixels in place /// until release. Off (the default), the pixels follow the pointer live inside the outline. pub show_bounding_box_when_dragging_layer: bool, @@ -330,7 +332,6 @@ impl Default for Interface { show_menu_colors: true, clip_thumbnails_to_layer_bounds: false, show_tooltips: true, - enable_animations: true, show_bounding_box_when_dragging_layer: false, system_title_bar: false, show_file_name_in_title: true, @@ -396,6 +397,9 @@ pub struct Tools { pub right_click_with_painting_tools: RightClickPaint, /// Pen tablets: pressure, tilt and rotation reach the brush (off: a pen paints like a mouse). pub use_tablet_pressure: bool, + /// Windows: which pen input supplies pressure. Windows Ink is the default; WinTab needs + /// Windows Ink turned off in the tablet driver's utility and a restart. + pub tablet_input: TabletInput, /// Pen pressure response: `[input, output]` control points in 0..1 that the pen's pressure /// passes through before it reaches any brush ([`PressureCurve`]). Linear by default. pub pressure_curve: Vec<[f32; 2]>, @@ -423,6 +427,7 @@ impl Default for Tools { double_click_layer_mask_launches_select_and_mask: true, right_click_with_painting_tools: RightClickPaint::BrushPicker, use_tablet_pressure: true, + tablet_input: TabletInput::WindowsInk, pressure_curve: vec![[0.0, 0.0], [1.0, 1.0]], bundle_nudges: true, nudge_bundle_pause_ms: 1000, diff --git a/crates/engine/src/prefs/tests.rs b/crates/engine/src/prefs/tests.rs index f10df0d5be..351ce2883c 100644 --- a/crates/engine/src/prefs/tests.rs +++ b/crates/engine/src/prefs/tests.rs @@ -512,6 +512,20 @@ fn svg_group_rasterization_threshold_is_bounded_by_document_depth() { assert_eq!(s.prefs().file_handling.rasterize_svg_groups_deeper_than, 0, "out-of-range preferences leave the valid value unchanged"); } +#[test] +fn tablet_input_pref_defaults_to_windows_ink() { + let mut s = session(); + assert_eq!(s.prefs().tools.tablet_input, TabletInput::WindowsInk); + assert_eq!(s.execute("prefs.get", json!({"path": "tools.tabletInput"})).unwrap(), json!("windowsInk")); + assert_eq!(choices("tools.tabletInput"), Some(TabletInput::NAMES)); + s.execute("prefs.set", json!({"path": "tools.tabletInput", "value": "winTab"})).unwrap(); + assert_eq!(s.prefs().tools.tablet_input, TabletInput::WinTab); + for bad in [json!("ink"), json!(1), json!(true), json!(null)] { + assert!(s.execute("prefs.set", json!({"path": "tools.tabletInput", "value": bad})).is_err()); + } + assert_eq!(s.prefs().tools.tablet_input, TabletInput::WinTab, "rejected values change nothing"); +} + #[test] fn right_click_with_painting_tools_pref() { let mut s = session(); @@ -1025,6 +1039,25 @@ fn a_wrongly_typed_value_resets_only_that_field() { assert_eq!(invalid[1].keys, ["shortcuts", "file.open"]); } +#[test] +fn the_removed_enable_animations_preference_still_loads_and_is_unknown() { + // #9479: Interface › Enable animations is gone (Photoshop has no such setting). Files saved + // with it still load whole, without a reported bad value, and the key isn't written back. + let mut s = Session::new(); + let invalid = + s.load_prefs_json(r#"{"version": 2, "interface": {"enableAnimations": false, "showTooltips": false}, "performance": {"historyStates": 20}}"#).unwrap(); + assert!(invalid.is_empty(), "{invalid:?}"); + assert!(!s.prefs().interface.show_tooltips, "its neighbours load"); + assert_eq!(s.prefs().performance.history_states, 20); + assert!(!s.prefs_to_json().contains("enableAnimations")); + for value in [json!(true), json!(false), json!("nope")] { + let e = s.execute("prefs.set", json!({"values": {"interface.enableAnimations": value}})).unwrap_err(); + assert!(e.to_string().contains("unknown preference"), "{e}"); + assert!(s.execute("prefs.set", json!({"path": "interface.enableAnimations", "value": value})).is_err()); + } + assert!(s.execute("prefs.get", json!({"path": "interface.enableAnimations"})).is_err()); +} + #[test] fn a_wrongly_typed_section_or_colour_setting_resets_only_that_part() { let mut s = Session::new(); diff --git a/crates/engine/src/prefs/validate.rs b/crates/engine/src/prefs/validate.rs index 175d33f26a..f9c0b9f805 100644 --- a/crates/engine/src/prefs/validate.rs +++ b/crates/engine/src/prefs/validate.rs @@ -2,8 +2,8 @@ use super::shortcuts::normalize_shortcut; use super::{ AppearanceMode, Ask, CanvasBorder, CanvasColor, CheckerColors, CheckerSize, ColorPicker, DarkTheme, ExportLocation, ExportMetadata, FontPreview, GpuBackend, Interpolation, LightTheme, LineStyle, LinuxDisplayServer, LogDestination, LogDetail, OtherCursor, PaintingCursor, PlaybackPerformance, - PointSize, PressureCurve, QuickExportFormat, RawColorSpace, RawDemosaic, RawDepth, RawSharpen, RenderingMode, RightClickPaint, TextEngine, Theme, TypeUnit, - UiFontSize, UiScale, Unit, Value, + PointSize, PressureCurve, QuickExportFormat, RawColorSpace, RawDemosaic, RawDepth, RawSharpen, RenderingMode, RightClickPaint, TabletInput, TextEngine, + Theme, TypeUnit, UiFontSize, UiScale, Unit, Value, }; /// Preferences dialog sections in Photoshop's order: (id, title). @@ -88,6 +88,7 @@ pub fn choices(path: &str) -> Option<&'static [&'static str]> { "cursors.painting" => PaintingCursor::NAMES, "cursors.other" => OtherCursor::NAMES, "tools.rightClickWithPaintingTools" => RightClickPaint::NAMES, + "tools.tabletInput" => TabletInput::NAMES, "transparencyAndGamut.gridSize" => CheckerSize::NAMES, "transparencyAndGamut.gridColors" => CheckerColors::NAMES, "unitsAndRulers.rulers" | "guidesGridAndSlices.gridUnit" => Unit::NAMES, diff --git a/crates/engine/src/shell_commands.rs b/crates/engine/src/shell_commands.rs index f2af5eb5e9..49db9509e5 100644 --- a/crates/engine/src/shell_commands.rs +++ b/crates/engine/src/shell_commands.rs @@ -72,6 +72,7 @@ pub const SHELL_COMMANDS: &[(&str, &str, &[&str], Option<&str>)] = &[ ("window.togglePanels", "Show/Hide All Panels", &[], Some("Tab")), ("window.toggle.dock", "Show/Hide Panels", &[], Some("Shift+Tab")), ("window.toggle.options", "Options", &["Window"], None), + ("window.toggle.contextualTaskBar", "Contextual Task Bar", &["Window"], None), // Photoshop's Ctrl+Tab and Ctrl+Shift+Tab, on macOS too (⌘Tab belongs to the system, #2340). ("window.nextDocument", "Next Document", &[], Some("Ctrl+Tab")), ("window.previousDocument", "Previous Document", &[], Some("Ctrl+Shift+Tab")), diff --git a/crates/engine/tests/it/svg_smart_object.rs b/crates/engine/tests/it/svg_smart_object.rs index 1016aac628..d952225e5c 100644 --- a/crates/engine/tests/it/svg_smart_object.rs +++ b/crates/engine/tests/it/svg_smart_object.rs @@ -129,3 +129,45 @@ fn an_svg_placed_as_a_job_is_as_sharp_as_the_inline_place() { let inline_doc = inline.active().unwrap().doc.clone(); assert_eq!(surf.read_region(region), inline_doc.layers.last().unwrap().surface().unwrap().read_region(region), "same pixels as the inline place"); } + +/// With no worker threads (the web build) an SVG place is stepped a poll at a time, and renders +/// at its placement scale like the inline place does. +#[test] +fn an_svg_placed_in_steps_is_as_sharp_as_the_inline_place() { + use photocraft_engine::jobs::{JobOutcome, Started}; + let params = json!({"scale": 1000}); + let new_doc = || { + let mut s = Session::new(); + s.execute("file.new", json!({"width": 400, "height": 400, "background": "white"})).unwrap(); + s + }; + let mut inline = new_doc(); + let want = photocraft_engine::file_cmds::place_bytes(&mut inline, "logo.svg", SVG.as_bytes().to_vec(), None, ¶ms).unwrap(); + + let mut s = new_doc(); + s.set_cooperative_jobs(true); + s.set_job_step_budget(std::time::Duration::ZERO); + let Started::Job(id) = s.start_place_bytes("logo.svg", SVG.as_bytes().to_vec(), None, params).unwrap() else { panic!("expected a job") }; + let mut polls = 0; + let event = loop { + polls += 1; + assert!(polls < 1000, "the place never ended"); + if let Some(e) = s.poll_jobs().into_iter().find(|e| e.id == id) { + break e; + } + }; + assert!(polls > 1, "{polls}"); + let JobOutcome::Done(mut got) = event.outcome else { panic!("{:?}", event.outcome) }; + let mut want = want; + assert!(got.as_object_mut().and_then(|o| o.remove("layer")).is_some() && want.as_object_mut().and_then(|o| o.remove("layer")).is_some()); + assert_eq!(got, want); + let doc = s.active().unwrap().doc.clone(); + let layer = doc.layers.last().unwrap(); + assert!(matches!(layer.content, LayerContent::Smart(_))); + let surf = layer.surface().expect("rendered"); + assert!(alpha(surf, 200, 148) < 0.01 && alpha(surf, 200, 151) > 0.99, "a pixel-exact top edge"); + assert!(red(surf, 200, 192) < 0.02, "the thin line is a crisp band: {}", red(surf, 200, 192)); + let region = Rect::new(90, 140, 310, 260); + let inline_doc = inline.active().unwrap().doc.clone(); + assert_eq!(surf.read_region(region), inline_doc.layers.last().unwrap().surface().unwrap().read_region(region), "same pixels as the inline place"); +} diff --git a/crates/engine/tests/place_steps_measure.rs b/crates/engine/tests/place_steps_measure.rs new file mode 100644 index 0000000000..2bb2c5c077 --- /dev/null +++ b/crates/engine/tests/place_steps_measure.rs @@ -0,0 +1,155 @@ +//! How long each piece of a stepped Place takes (#10031): the numbers behind the web build's +//! promise that a large file does not freeze the window. +//! +//! Not part of the default suite. Run it in release on one thread, as the web build has: +//! +//! ```sh +//! RAYON_NUM_THREADS=1 cargo test --release -p photocraft-engine --test place_steps_measure -- --ignored --nocapture +//! ``` +//! +//! A synthetic 4096×4096 RGBA PNG is placed into a 3600×4200 document three ways: inline as one +//! call (the cost without steps), in steps of one unit each (the cost of every unit of work, so the +//! ones that cannot be cut up show), and in steps of the 8 ms a frame gives it (the longest frame +//! a user would see). + +use std::time::{Duration, Instant}; + +use photocraft_codecs::{ChannelLayout, EncodeOptions, Format, Image, SampleType}; +use photocraft_engine::jobs::{JobOutcome, Started}; +use photocraft_engine::{Session, file_cmds}; +use serde_json::json; + +const SIZE: u32 = 4096; + +/// A 4096×4096 RGBA PNG of smooth colour and four bits of noise a channel, which makes a file of +/// a few tens of MB as a photo does (no personal photo). +fn synthetic_png() -> Vec { + let mut data = Vec::with_capacity(SIZE as usize * SIZE as usize * 4); + let mut r = 0x9E37_79B9u32; + let mut noise = || { + r = r.wrapping_mul(1_664_525).wrapping_add(1_013_904_223); + (r >> 28) as u8 + }; + for y in 0..SIZE { + for x in 0..SIZE { + data.extend_from_slice(&[((x / 24) as u8) << 4 | noise(), ((y / 24) as u8) << 4 | noise(), (((x + y) / 48) as u8) << 4 | noise(), 0xF0 | noise()]); + } + } + let img = Image::from_raw(SIZE, SIZE, ChannelLayout::Rgba, SampleType::U8, data).unwrap(); + photocraft_codecs::encode(&img, Format::Png, &EncodeOptions::default()).unwrap() +} + +fn document() -> Session { + let mut s = Session::new(); + s.execute("file.new", json!({"width": 3600, "height": 4200})).unwrap(); + s +} + +/// A place's result without its layer id, which counts up across sessions. +fn strip_layer(v: &serde_json::Value) -> serde_json::Value { + let mut v = v.clone(); + v.as_object_mut().map(|o| o.remove("layer")); + v +} + +fn ms(d: Duration) -> f64 { + d.as_secs_f64() * 1000.0 +} + +/// Polls a started place to the end, timing every poll; returns (stage label, time) per poll. The +/// label is the status the poll left (the message is set as a unit starts, so a poll that ends in +/// a new one began a stage's last unit). +fn timed_polls(s: &mut Session, id: photocraft_engine::jobs::JobId) -> (Vec<(String, String, Duration)>, serde_json::Value) { + let mut polls = Vec::new(); + loop { + let before = s.job(id).map(|j| j.message).unwrap_or_default(); + let t = Instant::now(); + let events = s.poll_jobs(); + let took = t.elapsed(); + let after = s.job(id).map_or_else(|| "finish and apply".to_string(), |j| j.message); + polls.push((before, after, took)); + if let Some(e) = events.into_iter().find(|e| e.id == id) { + let JobOutcome::Done(result) = e.outcome else { panic!("{:?}", e.outcome) }; + return (polls, result); + } + assert!(polls.len() < 1_000_000); + } +} + +fn stage_of(before: &str, after: &str) -> &'static str { + match (before, after) { + ("", "") => "open the PNG (header, buffer)", + ("" | "Decoding", "Decoding") => "decode rows", + ("Decoding", "Flattening") => "image to document (one unit)", + ("Flattening", "Flattening") => "flatten a band", + ("Flattening", "Resizing") => "resize: plan the first pass", + (_, "Resizing") => "resize: bands and passes", + (_, "finish and apply") => "translate, layer and apply (one unit)", + _ => "other", + } +} + +#[test] +#[ignore = "a measurement, run by hand (see the module docs)"] +fn place_steps_timings() { + let t = Instant::now(); + let png = synthetic_png(); + println!("synthetic {SIZE}x{SIZE} RGBA PNG: {:.1} MB, made in {:.0} ms", png.len() as f64 / 1e6, ms(t.elapsed())); + println!("rayon threads: {}", rayon::current_num_threads()); + + // Inline, as one call: no steps. The first run warms the allocator; the second is the time. + let mut want = serde_json::Value::Null; + let mut inline_ms = 0.0; + for run in 1..=2 { + let mut inline = document(); + let t = Instant::now(); + want = file_cmds::place_bytes(&mut inline, "big.png", png.clone(), None, &json!({})).unwrap(); + inline_ms = ms(t.elapsed()); + println!("\ninline place {run} (one call, as a desktop worker does it): {inline_ms:.0} ms"); + } + + // Cooperative, one unit per poll: the time of every unit of work. + let mut s = document(); + s.set_cooperative_jobs(true); + s.set_job_step_budget(Duration::ZERO); + let t = Instant::now(); + let Started::Job(id) = s.start_place_bytes("big.png", png.clone(), None, json!({})).unwrap() else { panic!("expected a job") }; + let (polls, got) = timed_polls(&mut s, id); + let total = ms(t.elapsed()); + assert_eq!(strip_layer(&got), strip_layer(&want), "the stepped place is the inline place"); + println!("\nstepped, one unit per poll: {} units, {total:.0} ms in all", polls.len()); + println!("{:<42} {:>7} {:>10} {:>10}", "stage", "units", "total ms", "longest ms"); + let mut stages: Vec<&str> = Vec::new(); + for (b, a, _) in &polls { + let st = stage_of(b, a); + if !stages.contains(&st) { + stages.push(st); + } + } + for st in stages { + let times: Vec = polls.iter().filter(|(b, a, _)| stage_of(b, a) == st).map(|(_, _, d)| ms(*d)).collect(); + println!("{st:<42} {:>7} {:>10.1} {:>10.1}", times.len(), times.iter().sum::(), times.iter().copied().fold(0.0, f64::max)); + } + let longest = polls.iter().map(|(_, _, d)| ms(*d)).fold(0.0, f64::max); + println!("longest single unit: {longest:.1} ms"); + + // Cooperative with the frame budget: the frames a user would see. + let mut s = document(); + s.set_cooperative_jobs(true); + let t = Instant::now(); + let Started::Job(id) = s.start_place_bytes("big.png", png, None, json!({})).unwrap() else { panic!("expected a job") }; + let (polls, _) = timed_polls(&mut s, id); + let total = ms(t.elapsed()); + let mut times: Vec = polls.iter().map(|(_, _, d)| ms(*d)).collect(); + times.sort_by(f64::total_cmp); + println!( + "\nstepped, 8 ms a poll: {} polls, {total:.0} ms in all ({:+.0}% on inline); median poll {:.1} ms, 95th percentile {:.1} ms, longest {:.1} ms", + times.len(), + (total / inline_ms - 1.0) * 100.0, + times[times.len() / 2], + times[times.len() * 95 / 100], + times[times.len() - 1] + ); + let slow: Vec<_> = polls.iter().filter(|(_, _, d)| ms(*d) > 16.0).map(|(b, a, d)| format!("{} ({:.0} ms)", stage_of(b, a), ms(*d))).collect(); + println!("polls over 16 ms: {}", if slow.is_empty() { "none".to_string() } else { slow.join(", ") }); +} diff --git a/crates/io/src/flat.rs b/crates/io/src/flat.rs index f56052d9a9..859ec01eb9 100644 --- a/crates/io/src/flat.rs +++ b/crates/io/src/flat.rs @@ -6,7 +6,7 @@ use photocraft_codecs::{self as codecs, ChannelLayout, Format, Image, SampleType use photocraft_color::{BlendMode, ColorMode, PixelFormat, SampleType}; use photocraft_doc::{AlphaChannel, Document, Layer, LayerContent}; use photocraft_geom::{Rect, Size, TILE_SIZE}; -use photocraft_raster::{AllocationError, Interrupt, RowWriteError, Surface}; +use photocraft_raster::{AllocationError, Interrupt, PruneCursor, RowWriteError, Surface}; use crate::renderer::{BandRenderer, RenderError}; use crate::{ExportOptions, ExportResult, ImportResult, IoError, TgaBits, XmpEmbed}; @@ -126,6 +126,140 @@ fn import_flat_impl_with_options( (image_to_document_with(name, &img, ctl)?, Some(img)) } }; + apply_flat_format(&mut r, bytes, format, img.as_ref())?; + Ok(r) +} + +/// An image becoming a document's surface a bounded band of rows and a bounded batch of empty +/// tiles at a time, so a caller that must not block (the web build has no threads) can step it. +/// [`FlatBuilder::finish`] runs whatever is left, so it also gives the one-shot result. +pub(crate) struct FlatBuilder { + name: String, + img: Image, + mode: ColorMode, + depth: SampleType, + convert: RowConverter, + surface: Surface, + warnings: Vec, + /// Rows copied into `surface` so far. + rows: u32, + /// Rows per [`FlatBuilder::copy_step`]. + band: u32, + /// Whether the tiles are scanned for empty ones: only a source with alpha has any. + scans: bool, + prune: Option, +} + +/// Bytes a copy step converts at most; a step is a band of whole rows, so it is never split. +const COPY_BAND_BYTES: usize = 4 << 20; +/// Rows a copy step writes at most (a narrow image would otherwise copy the whole one in one step). +const COPY_BAND_ROWS: u32 = 256; +/// Tiles a prune step visits at most. +const PRUNE_BATCH: usize = 256; + +impl FlatBuilder { + /// Sets up the surface `img` becomes, without copying a pixel yet. Refuses an image whose + /// tiles the machine can't hold beside it, as [`image_to_document`] does. + pub(crate) fn new(name: &str, img: Image) -> Result { + let (w, h) = img.dimensions(); + let (mode, target_layout, depth, csample) = flat_target(img.layout(), img.sample_type()); + check_layer_fits(w, h, target_layout, csample, crate::memory::available())?; + let convert = RowConverter::new((img.layout(), img.sample_type()), (target_layout, csample)); + let row = (w as usize).saturating_mul(convert.src_px).max(1); + let band = (COPY_BAND_BYTES / row).clamp(1, COPY_BAND_ROWS as usize) as u32; + Ok(Self { + name: name.to_string(), + warnings: flat_warnings(&img), + surface: Surface::new(surface_format(target_layout, csample)), + scans: img.layout().has_alpha(), + convert, + mode, + depth, + rows: 0, + band: band.min(h.max(1)), + prune: None, + img, + }) + } + + /// True once every row is in the surface. + pub(crate) fn copy_done(&self) -> bool { + self.rows >= self.img.dimensions().1 + } + + /// Copies one bounded band of rows into the tiles, converted as [`image_to_document`] does. + pub(crate) fn copy_step(&mut self) -> Result<(), IoError> { + if self.copy_done() { + return Ok(()); + } + let (w, h) = self.img.dimensions(); + let y1 = self.rows.saturating_add(self.band).min(h); + let row = (w as usize).checked_mul(self.convert.src_px).filter(|&b| b > 0).ok_or_else(|| IoError::Unsupported("image too large".into()))?; + let at = (self.rows as usize).saturating_mul(row); + let end = (y1 as usize).saturating_mul(row); + let data = self.img.data().get(at..end).ok_or_else(|| IoError::Unsupported("the decoded image is shorter than its size".into()))?; + let to_i32 = |v: u32| i32::try_from(v).map_err(|_| IoError::Unsupported("image too large".into())); + let rect = Rect::new(0, to_i32(self.rows)?, to_i32(w)?, to_i32(y1)?); + let convert = &self.convert; + let failed = std::sync::atomic::AtomicBool::new(false); + self.surface + .try_write_rows_with_interrupt(rect, &Interrupt::NONE, |y, x0, dst| { + if !convert.fill(data, w as usize, y - rect.y0, x0, dst) { + failed.store(true, std::sync::atomic::Ordering::Relaxed); + } + }) + .map_err(|e| match e { + RowWriteError::Cancelled(_) => IoError::Cancelled, + RowWriteError::Allocation(ae) => alloc_error(ae, w, h), + })?; + if failed.load(std::sync::atomic::Ordering::Relaxed) { + return Err(IoError::Unsupported("the decoded image does not match its size".into())); + } + self.rows = y1; + Ok(()) + } + + /// True once every tile has been through the prune scan (at once for a source without alpha). + pub(crate) fn prune_done(&self) -> bool { + !self.scans || self.prune.as_ref().is_some_and(|c| c.is_done()) + } + + /// Drops one bounded batch of tiles that are entirely the default pixel; true when done. + pub(crate) fn prune_step(&mut self) -> bool { + if !self.scans { + return true; + } + if self.prune.is_none() { + self.prune = Some(self.surface.prune_cursor()); + } + let Some(cursor) = self.prune.as_mut() else { return true }; + self.surface.prune_batch(cursor, PRUNE_BATCH) + } + + /// The document, after copying and pruning whatever is left: the one-shot result and the last + /// step of a stepped one. + pub(crate) fn finish(mut self, bytes: &[u8], format: Option) -> Result { + let copied = self.copy_done(); + while !self.copy_done() { + self.copy_step()?; + } + if !copied { + // Any scan before the last rows missed the tiles they added: scan them all again. + self.prune = None; + } + while !self.prune_step() {} + let Self { name, img, mode, depth, surface, warnings, .. } = self; + let (w, h) = img.dimensions(); + let mut r = flat_document(&name, (w, h, img.layout(), mode, depth), surface, img.icc.clone(), &img.meta, warnings, Some(&img))?; + apply_flat_format(&mut r, bytes, format, Some(&img))?; + Ok(r) + } +} + +/// What every flat format does to the document of its pixels: the palette mode, the save +/// settings, a Targa's alpha channel and the profile an untagged image needs. `img` is the +/// decoded image, when the document was built from one (a streamed PNG has none). +pub(crate) fn apply_flat_format(r: &mut ImportResult, bytes: &[u8], format: Option, img: Option<&Image>) -> Result<(), IoError> { // A palette BMP, PNG or GIF opens in Indexed Color mode with its colour table, as in // Photoshop (#3802, #4804, #7886). A GIF is always palette-based: the first frame's table. let palette = match format { @@ -141,7 +275,7 @@ fn import_flat_impl_with_options( r.document.color_table = Some(photocraft_doc::ColorTable { colors, transparent }); } r.document.file_encoding = file_encoding_as(format, bytes); - if format == Some(Format::Tga) && img.as_ref().is_some_and(|i| i.layout() == ChannelLayout::Rgba) { + if format == Some(Format::Tga) && img.is_some_and(|i| i.layout() == ChannelLayout::Rgba) { tga_alpha_to_channel(&mut r.document)?; } // OpenEXR and Radiance HDR hold linear, scene-referred values (Rec. 709 primaries unless @@ -157,15 +291,15 @@ fn import_flat_impl_with_options( } if d.icc_profile.is_none() && d.mode == ColorMode::Rgb { // Only an image the whole-image path decoded can carry a CICP description (a PNG never does). - d.icc_profile = img.as_ref().and_then(cicp_profile); + d.icc_profile = img.and_then(cicp_profile); if d.icc_profile.is_none() - && let Some((profile, warning)) = img.as_ref().and_then(hdr_fallback) + && let Some((profile, warning)) = img.and_then(hdr_fallback) { d.icc_profile = Some(profile); r.warnings.push(warning); } } - Ok(r) + Ok(()) } /// A PQ or HLG image, which the decoder turned into linear light, on primaries @@ -650,22 +784,33 @@ fn image_to_document_with(name: &str, img: &Image, ctl: &Interrupt) -> Result) -> Result { - // What the decoder noticed (frames or pages left out, data ending early) comes first. - let mut warnings: Vec = img.warnings.iter().map(ToString::to_string).collect(); + let warnings = flat_warnings(img); let (mode, target_layout, depth, csample) = flat_target(img.layout(), img.sample_type()); - if img.sample_type() == CSample::F16 { - warnings.push("16-bit float samples are stored as 32-bit float".to_string()); - } let (w, h) = img.dimensions(); ctl.check().map_err(|_| IoError::Cancelled)?; // The decoded pixels are already here: check the tiles built beside them before they exist. check_layer_fits(w, h, target_layout, csample, available)?; - let s = image_surface_with(img, target_layout, csample, ctl)?; + let mut s = image_surface_with(img, target_layout, csample, ctl)?; + // Tiles that are entirely the default pixel (zero, so transparent) can only come from a + // source with alpha: an opaque one writes the maximum into every alpha sample. + if img.layout().has_alpha() { + s.prune(); + } ctl.check().map_err(|_| IoError::Cancelled)?; ctl.progress(0.95); flat_document(name, (w, h, img.layout(), mode, depth), s, img.icc.clone(), &img.meta, warnings, Some(img)) } +/// What the decoder noticed (frames or pages left out, data ending early) and the conversion +/// will add, for the document of `img`. +fn flat_warnings(img: &Image) -> Vec { + let mut warnings: Vec = img.warnings.iter().map(ToString::to_string).collect(); + if img.sample_type() == CSample::F16 { + warnings.push("16-bit float samples are stored as 32-bit float".to_string()); + } + warnings +} + /// The document colour mode, the layout and sample type of its surface, and its depth, for a /// decoded image of `layout` and `sample`. fn flat_target(layout: ChannelLayout, sample: CSample) -> (ColorMode, ChannelLayout, SampleType, CSample) { @@ -689,7 +834,7 @@ fn flat_target(layout: ChannelLayout, sample: CSample) -> (ColorMode, ChannelLay fn flat_document( name: &str, shape: (u32, u32, ChannelLayout, ColorMode, SampleType), - mut s: Surface, + s: Surface, icc: Option>, meta: &codecs::Metadata, mut warnings: Vec, @@ -697,11 +842,6 @@ fn flat_document( ) -> Result { let (w, h, layout, mode, depth) = shape; let mut doc = Document::new(name, Size::new(w, h), mode, depth); - // Tiles that are entirely the default pixel (zero, so transparent) can only come from a - // source with alpha: an opaque one writes the maximum into every alpha sample. - if layout.has_alpha() { - s.prune(); - } // As in Photoshop: an opaque image opens as the locked Background layer, one with // transparency (an alpha channel, or a tRNS chunk the decoder expands to one) as a normal // layer named "Layer 0", since a Background can't hold transparency. @@ -743,58 +883,48 @@ fn import_png_streamed(name: &str, bytes: &[u8], opts: &crate::ImportOptions, ct import_png_streamed_with(name, bytes, opts, ctl, min_bytes, crate::memory::available) } -/// [`import_png_streamed`], with the memory the machine can still use given (see -/// [`crate::memory::available`]): `None` when it isn't known. -fn import_png_streamed_with( - name: &str, - bytes: &[u8], - opts: &crate::ImportOptions, - ctl: &Interrupt, - min_bytes: u64, - available: impl FnOnce() -> Option, -) -> Result, IoError> { - struct Stream { - surface: Surface, - header: codecs::PngHeader, - convert: RowConverter, - } - // Rows are worked off 0.02..0.55 so a fallback to the whole-image path, which reports 0.6 - // after its decode, never takes progress backwards. - let state = std::cell::RefCell::new(None::); - let mut available = Some(available); - let busy = || IoError::Unsupported("the PNG reader re-entered itself".into()); - let mut begin = |header: &codecs::PngHeader| -> Result { - // Decoded size, from the header; a size that overflows is certainly large enough. - let bytes = u64::from(header.width) - .checked_mul(u64::from(header.height)) - .and_then(|px| px.checked_mul((header.layout.channels() * header.sample.bytes()) as u64)); - if bytes.is_some_and(|b| b < min_bytes) { - return Ok(false); - } - // A cancelled import is reported as such, not as the memory it would have needed. - ctl.check().map_err(|_| IoError::Cancelled)?; +/// A PNG's rows becoming the tiles of its layer as they are decoded: the surface, and what turns a +/// decoded row into its pixels. Shared by [`import_png_streamed`] (all at once) and the stepped +/// import ([`crate::PngImport`], a bounded piece at a time), which give the same document. +pub(crate) struct PngStream { + surface: Surface, + header: codecs::PngHeader, + convert: RowConverter, +} + +impl PngStream { + /// Sets up the surface for rows of `header`, after checking the layer's tiles and a group of + /// rows as decoded and as converted against `available` (the memory the machine can still use, + /// when known): Linux overcommits, so the tiles would be allocated even when they can't be + /// backed, and writing them would have the process killed. + pub(crate) fn new(header: &codecs::PngHeader, available: Option) -> Result { let (_, target_layout, _, csample) = flat_target(header.layout, header.sample); // The layer's tiles, plus one group of rows as decoded and as converted into them. - // Linux overcommits, so the tiles would be allocated even when they can't be backed, and - // writing them would have the process killed: refuse first, as `tiff_to_document` does. let bpp = surface_format(target_layout, csample).bytes_per_pixel() as u64; let src_px = (header.layout.channels() * header.sample.bytes()) as u64; let group = u64::from(header.width).saturating_mul(u64::from(header.height.min(TILE_SIZE as u32))); let needed = tile_bytes(header.width, header.height, bpp).saturating_add(group.saturating_mul(src_px)).saturating_add(group.saturating_mul(bpp)); - crate::memory::check_fits(header.width, header.height, needed, available.take().and_then(|f| f()))?; - *state.try_borrow_mut().map_err(|_| busy())? = Some(Stream { + crate::memory::check_fits(header.width, header.height, needed, available)?; + Ok(Self { surface: Surface::new(surface_format(target_layout, csample)), header: *header, convert: RowConverter::new((header.layout, header.sample), (target_layout, csample)), - }); - ctl.progress(0.02); - Ok(true) - }; - let mut rows = |y0: u32, data: &[u8]| -> Result<(), IoError> { - ctl.check().map_err(|_| IoError::Cancelled)?; - let mut guard = state.try_borrow_mut().map_err(|_| busy())?; - let Some(Stream { surface, header, convert }) = guard.as_mut() else { return Err(busy()) }; - let (w, h) = (header.width, header.height); + }) + } + + /// [`PngStream::new`] for a stepped import, which streams every PNG whose rows come in order + /// and not only the big ones: a layer under [`STREAM_MIN_BYTES`] of tiles is not checked + /// against free memory, as the whole-image path leaves it unchecked ([`check_layer_fits`]). + pub(crate) fn for_steps(header: &codecs::PngHeader) -> Result { + let (_, target_layout, _, csample) = flat_target(header.layout, header.sample); + let tiles = tile_bytes(header.width, header.height, surface_format(target_layout, csample).bytes_per_pixel() as u64); + Self::new(header, if tiles < STREAM_MIN_BYTES { None } else { crate::memory::available() }) + } + + /// Converts the whole rows `y0..` in `data` into the tiles, checking `ctl` as it goes. + pub(crate) fn write_rows(&mut self, y0: u32, data: &[u8], ctl: &Interrupt) -> Result<(), IoError> { + let (w, h) = (self.header.width, self.header.height); + let convert = &self.convert; let row_bytes = (w as usize).checked_mul(convert.src_px).filter(|&b| b > 0).ok_or_else(|| IoError::Unsupported("image too large".into()))?; let n = u32::try_from(data.len() / row_bytes).unwrap_or(0); if n == 0 || !data.len().is_multiple_of(row_bytes) { @@ -803,7 +933,7 @@ fn import_png_streamed_with( let to_i32 = |v: u32| i32::try_from(v).map_err(|_| IoError::Unsupported("image too large".into())); let rect = Rect::new(0, to_i32(y0)?, to_i32(w)?, to_i32(y0.saturating_add(n))?); let failed = std::sync::atomic::AtomicBool::new(false); - surface + self.surface .try_write_rows_with_interrupt(rect, ctl, |y, x0, dst| { if !convert.fill(data, w as usize, y - rect.y0, x0, dst) { failed.store(true, std::sync::atomic::Ordering::Relaxed); @@ -816,6 +946,76 @@ fn import_png_streamed_with( if failed.load(std::sync::atomic::Ordering::Relaxed) { return Err(IoError::Unsupported("the decoded image does not match its size".into())); } + Ok(()) + } + + /// Whether the layer is scanned for tiles of only the default pixel: only a source with alpha + /// has any. + pub(crate) fn scans(&self) -> bool { + self.header.layout.has_alpha() + } + + /// Drops the tiles that hold only the default pixel, all at once. + pub(crate) fn prune(&mut self) { + if self.scans() { + self.surface.prune(); + } + } + + /// Drops one bounded batch of those tiles from where `cursor` left off; true when done. + pub(crate) fn prune_step(&mut self, cursor: &mut photocraft_raster::PruneCursor) -> bool { + !self.scans() || self.surface.prune_batch(cursor, PRUNE_BATCH) + } + + /// A cursor for [`PngStream::prune_step`]. + pub(crate) fn prune_cursor(&self) -> photocraft_raster::PruneCursor { + self.surface.prune_cursor() + } + + /// The document of the layer, with the profile and metadata the file ended with. + pub(crate) fn into_document(self, name: &str, extras: codecs::PngExtras) -> Result { + let Self { surface, header, .. } = self; + let (mode, _, depth, _) = flat_target(header.layout, header.sample); + let warnings = extras.warnings.iter().map(ToString::to_string).collect(); + flat_document(name, (header.width, header.height, header.layout, mode, depth), surface, extras.icc, &extras.meta, warnings, None) + } +} + +/// [`import_png_streamed`], with the memory the machine can still use given (see +/// [`crate::memory::available`]): `None` when it isn't known. +fn import_png_streamed_with( + name: &str, + bytes: &[u8], + opts: &crate::ImportOptions, + ctl: &Interrupt, + min_bytes: u64, + available: impl FnOnce() -> Option, +) -> Result, IoError> { + // Rows are worked off 0.02..0.55 so a fallback to the whole-image path, which reports 0.6 + // after its decode, never takes progress backwards. + let state = std::cell::RefCell::new(None::); + let mut available = Some(available); + let busy = || IoError::Unsupported("the PNG reader re-entered itself".into()); + let mut begin = |header: &codecs::PngHeader| -> Result { + // Decoded size, from the header; a size that overflows is certainly large enough. + let bytes = u64::from(header.width) + .checked_mul(u64::from(header.height)) + .and_then(|px| px.checked_mul((header.layout.channels() * header.sample.bytes()) as u64)); + if bytes.is_some_and(|b| b < min_bytes) { + return Ok(false); + } + // A cancelled import is reported as such, not as the memory it would have needed. + ctl.check().map_err(|_| IoError::Cancelled)?; + *state.try_borrow_mut().map_err(|_| busy())? = Some(PngStream::new(header, available.take().and_then(|f| f()))?); + ctl.progress(0.02); + Ok(true) + }; + let mut rows = |y0: u32, data: &[u8]| -> Result<(), IoError> { + ctl.check().map_err(|_| IoError::Cancelled)?; + let mut guard = state.try_borrow_mut().map_err(|_| busy())?; + let Some(stream) = guard.as_mut() else { return Err(busy()) }; + stream.write_rows(y0, data, ctl)?; + let (h, n) = (stream.header.height, u32::try_from(data.len() / (stream.header.width as usize * stream.convert.src_px).max(1)).unwrap_or(0)); ctl.progress(0.02 + 0.53 * (y0 + n) as f32 / h.max(1) as f32); Ok(()) }; @@ -830,14 +1030,13 @@ fn import_png_streamed_with( return Ok(None); }; ctl.check().map_err(|_| IoError::Cancelled)?; - let Some(Stream { surface, header, .. }) = state.into_inner() else { return Ok(None) }; + let Some(mut stream) = state.into_inner() else { return Ok(None) }; if extras.orientation != 1 { return Ok(None); } ctl.progress(0.95); - let (mode, _, depth, _) = flat_target(header.layout, header.sample); - let warnings = extras.warnings.iter().map(ToString::to_string).collect(); - flat_document(name, (header.width, header.height, header.layout, mode, depth), surface, extras.icc, &extras.meta, warnings, None).map(Some) + stream.prune(); + stream.into_document(name, extras).map(Some) } /// The pixels of a decoded image as a surface of the target layout and sample type, converted @@ -2463,6 +2662,18 @@ mod streamed_png_tests { assert!(matches!(r, Err(IoError::Cancelled)), "{:?}", r.map(|_| ())); } + /// The stream a stepped import builds refuses a layer that won't fit with the error the + /// one-shot streamed import gives, and leaves a small one unchecked, as the whole-image path does. + #[test] + fn a_stream_for_steps_keeps_the_memory_errors() { + let big = codecs::PngHeader { width: 20_000, height: 20_000, layout: ChannelLayout::Rgba, sample: CSample::U8 }; + let e = PngStream::new(&big, Some(1 << 20)).err().expect("refused"); + assert!(matches!(&e, IoError::Unsupported(m) if m.contains("not enough memory to open this 20000 × 20000 px image")), "{e}"); + let small = codecs::PngHeader { width: 64, height: 64, layout: ChannelLayout::Rgba, sample: CSample::U8 }; + assert!(PngStream::for_steps(&small).is_ok(), "a small layer is not checked"); + assert!(PngStream::new(&small, Some(1 << 20)).is_err(), "though the check itself would refuse it"); + } + #[test] fn only_large_documents_stream() { let doc = |w, h, depth| Document::new("size", Size::new(w, h), ColorMode::Rgb, depth); @@ -2498,14 +2709,14 @@ mod streamed_png_tests { let lowered = crate::ImportOptions { psd_max_pixel_bytes: 99, ..Default::default() }; match tiff_admission(100, 0, &lowered, &ctl) { - Err(IoError::PsdImportBudget { required, limit }) => assert_eq!((required, limit), (100, 99)), + Err(IoError::PsdImportBudget { required, limit, .. }) => assert_eq!((required, limit), (100, 99)), other => panic!("expected the caller's limit to refuse, got {:?}", other.map(|_| ())), } assert_eq!(crate::psd_gate::active_attempt_remaining(), Some(ample), "a refused nested import leaves the parent's allowance untouched"); let stale = crate::ImportOptions { psd_high_memory_approved: true, psd_approved_estimate: Some(99), ..Default::default() }; match tiff_admission(100, 0, &stale, &ctl) { - Err(IoError::PsdImportBudget { required, limit }) => assert_eq!((required, limit), (100, 99)), + Err(IoError::PsdImportBudget { required, limit, .. }) => assert_eq!((required, limit), (100, 99)), other => panic!("expected the approved estimate bound to refuse, got {:?}", other.map(|_| ())), } assert_eq!(crate::psd_gate::active_attempt_remaining(), Some(ample), "a refused nested import leaves the parent's allowance untouched"); @@ -2532,7 +2743,7 @@ mod streamed_png_tests { crate::ImportOptions { psd_high_memory_approved: true, psd_approved_estimate: Some(u64::MAX), ..Default::default() }, ] { match tiff_admission(u64::MAX, 0, &opts, &Interrupt::NONE) { - Err(IoError::PsdImportBudget { required, limit }) => assert_eq!((required, limit), (u64::MAX, u64::MAX)), + Err(IoError::PsdImportBudget { required, limit, .. }) => assert_eq!((required, limit), (u64::MAX, u64::MAX)), other => panic!("expected a hard refusal for {opts:?}, got {:?}", other.map(|_| ())), } } @@ -2540,6 +2751,40 @@ mod streamed_png_tests { } } +#[cfg(test)] +mod build_tests { + use super::*; + + /// The stepped builder gives exactly what [`image_to_document`] gives, for every layout, over + /// a surface of several tiles. + #[test] + fn a_stepped_build_equals_image_to_document() { + for (layout, sample) in + [(ChannelLayout::Gray, CSample::U8), (ChannelLayout::GrayA, CSample::U16), (ChannelLayout::Rgb, CSample::U8), (ChannelLayout::Rgba, CSample::U16)] + { + let len = 300 * 260 * layout.channels() * sample.bytes(); + let data: Vec = (0..len).map(|i| (i.wrapping_mul(2_654_435_761) >> 11) as u8).collect(); + let mut img = Image::from_raw(300, 260, layout, sample, data).unwrap(); + img.meta.dpi = Some((300.0, 300.0)); + img.meta.text.push(("Comment".into(), "kept".into())); + let expected = image_to_document("a.png", &img).unwrap(); + let mut build = FlatBuilder::new("a.png", img).unwrap(); + while !build.copy_done() { + build.copy_step().unwrap(); + } + while !build.prune_step() {} + let got = build.finish(&[], None).unwrap(); + let (mut a, mut b) = (expected.document, got.document); + b.id = a.id; + for (x, y) in a.layers.iter_mut().zip(&mut b.layers) { + y.id = x.id; + } + assert!(a == b, "{layout:?} {sample:?}: the stepped build differs"); + assert_eq!(expected.warnings, got.warnings, "{layout:?} {sample:?}"); + } + } +} + #[cfg(test)] mod fused_tile_tests { use super::*; diff --git a/crates/io/src/lib.rs b/crates/io/src/lib.rs index fe85d88ce1..68b1754e61 100644 --- a/crates/io/src/lib.rs +++ b/crates/io/src/lib.rs @@ -52,6 +52,7 @@ pub mod exr_parts; mod flat; mod gradient_bake; pub mod guides_map; +mod png_steps; pub use gradient_bake::{Method as GradientMethod, bake as bake_gradient}; mod duotone_map; mod kra; @@ -99,6 +100,7 @@ pub use flat::{ export_png_streamed_with_renderer, export_preview_png_with_renderer, file_encoding, import_gif_frames, import_tiff_page, import_tiff_page_with_options, import_webp_frames, tga_alpha_channel_to_transparency, tga_default_bits, }; +pub use png_steps::PngImport; // Re-exported for the `flat_open_bench` example, which times the tile-building phase of a flat open. #[doc(hidden)] pub use flat::image_to_document; @@ -124,8 +126,12 @@ pub enum IoError { #[error("PSD: {0}")] Psd(#[from] PsdError), /// The conservative PSD pixel-storage and workspace estimate exceeded its allowance. - #[error("PSD import needs an estimated {required} bytes of pixel memory; limit is {limit} bytes")] - PsdImportBudget { required: u64, limit: u64 }, + /// + /// `free_memory` is the free memory measured when it set the limit (see + /// [`memory::MemoryBudget::measured_free`]); `None` when a caller or attempt allowance, the + /// platform cap or an unknown capacity set it. + #[error("PSD import needs an estimated {required} bytes of pixel memory; limit is {limit} bytes{advice}", advice = crate::memory::low_memory_advice(.free_memory))] + PsdImportBudget { required: u64, limit: u64, free_memory: Option }, /// PSD pixel-storage estimate exceeds the automatic soft limit, but is within the hard limit. /// Explicit approval is required to proceed. #[error( @@ -900,53 +906,91 @@ pub fn import_file(name: &str, path: &std::path::Path, opts: &ImportOptions, ctl import_file_for_open_with(name, path, opts, ctl).map(|(result, _)| result) } -/// Dispatches format-specific importers and propagates a structured PSD damage -/// flag alongside the ordinary best-effort import result. -fn import_stages(name: &str, bytes: &[u8], ctl: &photocraft_raster::Interrupt, opts: &ImportOptions, damaged: &mut bool) -> Result { +/// The importer a file goes to. +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +pub(crate) enum Route { + Pcraft, + Psd, + Affinity, + Ora, + Kra, + Xcf, + GzippedXcf, + Pdn, + Raw, + Svg, + /// A `.psd`/`.psb`/`.psdt` with no raster signature. + NamedPsd, + /// A flat raster format, through the codecs. + Flat, +} + +/// Which importer takes the file `name` holding `bytes`. The checks run in this order. +pub(crate) fn route(name: &str, bytes: &[u8]) -> Route { // A declared native extension must reach its loader so malformed bundles retain format errors. if has_extension(name, photocraft_format::EXTENSION) || photocraft_format::is_pcraft(bytes) { - let document = photocraft_format::load_from_bytes(bytes)?; - return Ok(ImportResult { warnings: open_warnings(&document), document, source_read_only: false, preview_only: false }); + return Route::Pcraft; } // Magic first: an Affinity file renamed .psd is still Affinity (#5258 corpus // preview_never_saves_back_to_its_native_or_renamed_source). if is_psd(bytes) { - return import_psd(name, ctl, damaged, opts, |want, recover| PsdFile::from_bytes_and_merged_preflight(bytes, want, recover)); + return Route::Psd; } if affinity::is_affinity(bytes) || affinity::has_extension(name) { - return affinity::import(name, bytes); + return Route::Affinity; } if ora::is_ora(bytes) || has_extension(name, "ora") { - return ora::import(name, bytes, ctl); + return Route::Ora; } // Krita files are ZIP containers. A recognized raster signature still wins over a // misleading .kra suffix (as with SVG imports). if kra::is_kra(bytes) || (kra::EXTENSIONS.iter().any(|e| has_extension(name, e)) && photocraft_codecs::detect(bytes).is_none()) { - return kra::import(name, bytes, ctl); + return Route::Kra; } // GIMP files are gzip or raw; as above, a recognized raster signature still wins over a // misleading .xcf suffix. if xcf::is_xcf(bytes) || (has_extension(name, "xcf") && photocraft_codecs::detect(bytes).is_none()) { - return xcf::import(name, bytes, ctl); + return Route::Xcf; } if xcf::is_gzipped_xcf(name, bytes) { - return xcf::import(name, &xcf::gunzip(bytes)?, ctl); + return Route::GzippedXcf; } if has_extension(name, "pdn") || bytes.starts_with(b"PDN3") { - return pdn::import(name, bytes, ctl); + return Route::Pdn; } if raw::is_raw(bytes) { - return raw::import_raw_demosaic(name, bytes, opts.demosaic); + return Route::Raw; } if is_svg_input(name, bytes) { - return svg::import_svg_with_group_depth(name, bytes, opts.max_group_depth); + return Route::Svg; } // A `.psd`/`.psb`/`.psdt` with no raster signature keeps the PSD error instead of // `codec: unrecognized image format` (#5258). Magic already returned above. if is_psd_input(name, bytes) { - return import_psd(name, ctl, damaged, opts, |want, recover| PsdFile::from_bytes_and_merged_preflight(bytes, want, recover)); + return Route::NamedPsd; + } + Route::Flat +} + +/// Dispatches format-specific importers and propagates a structured PSD damage +/// flag alongside the ordinary best-effort import result. +fn import_stages(name: &str, bytes: &[u8], ctl: &photocraft_raster::Interrupt, opts: &ImportOptions, damaged: &mut bool) -> Result { + match route(name, bytes) { + Route::Pcraft => { + let document = photocraft_format::load_from_bytes(bytes)?; + Ok(ImportResult { warnings: open_warnings(&document), document, source_read_only: false, preview_only: false }) + } + Route::Psd | Route::NamedPsd => import_psd(name, ctl, damaged, opts, |want, recover| PsdFile::from_bytes_and_merged_preflight(bytes, want, recover)), + Route::Affinity => affinity::import(name, bytes), + Route::Ora => ora::import(name, bytes, ctl), + Route::Kra => kra::import(name, bytes, ctl), + Route::Xcf => xcf::import(name, bytes, ctl), + Route::GzippedXcf => xcf::import(name, &xcf::gunzip(bytes)?, ctl), + Route::Pdn => pdn::import(name, bytes, ctl), + Route::Raw => raw::import_raw_demosaic(name, bytes, opts.demosaic), + Route::Svg => svg::import_svg_with_group_depth(name, bytes, opts.max_group_depth), + Route::Flat => flat::import_flat_with_options(name, bytes, opts, ctl), } - flat::import_flat_with_options(name, bytes, opts, ctl) } /// Extension names can be wrong (for example, an image downloaded as WebP and renamed `.svg`). @@ -1406,7 +1450,7 @@ mod tests { for (opts, what) in cases { super::psd_gate::set_active_attempt_budget(ample); match super::import_with_options_and_interrupt("nested.psd", &bytes, &opts, &ctl) { - Err(super::IoError::PsdImportBudget { required: r, limit }) => { + Err(super::IoError::PsdImportBudget { required: r, limit, .. }) => { assert_eq!((r, limit), (required, required - 1), "{what} must refuse with its exact fields") } other => panic!("expected {what} to refuse, got {:?}", other.map(|_| ())), diff --git a/crates/io/src/memory.rs b/crates/io/src/memory.rs index c9b8c54378..c4a304defa 100644 --- a/crates/io/src/memory.rs +++ b/crates/io/src/memory.rs @@ -31,9 +31,23 @@ pub const MAX_SOFT_BUDGET: u64 = 8 << 30; /// platform's actual allocation limits, but the process may run out of memory. pub const UNKNOWN_MEMORY_WARNING_THRESHOLD: u64 = 8 << 30; -/// Reserve subtracted from commit headroom when known. +/// Largest reserve subtracted from commit headroom when known. The reserve is a quarter of the +/// headroom, at least [`LOW_MEMORY_RESERVE`] and at most this, so a machine with little commit +/// headroom still has room for a small file. pub const COMMIT_RESERVE: u64 = 512 << 20; +/// The smallest amount an approved import leaves free: for the app, its display and the system. +/// +/// Free RAM or commit headroom at or below it leaves no room at all, so every file is refused. +pub const LOW_MEMORY_RESERVE: u64 = 256 << 20; + +/// What automatic opening leaves free once that is less than the quarter-of-free-RAM rule. +const AUTOMATIC_RAM_RESERVE: u64 = 1 << 30; + +/// When opening a file would leave less than this free, the approval prompt warns that +/// PhotoCraft may run out of memory. +pub const LOW_MEMORY_WARNING_MARGIN: u64 = 1 << 30; + /// Bytes Rust's layout rules allow for one contiguous allocation on this target /// (`isize::MAX`), not a bound on an import's aggregate peak. /// @@ -171,6 +185,11 @@ pub struct MemoryBudget { /// Set when available memory is unknown: estimates above this threshold still need explicit /// approval but also carry the uncertain-capacity warning. `None` when capacity is known. pub warning_threshold: Option, + /// The free memory measured when measured memory is what set the hard limit: the smaller of + /// the known available RAM and commit headroom. `None` when neither is known, when the + /// platform cap or the caller's limit is what bound the hard limit, and on the web. A refusal + /// reports it so the user can be told to free memory (see [`low_memory_advice`]). + pub measured_free: Option, } /// Admission decision for a given required memory estimate. @@ -213,6 +232,34 @@ impl MemoryBudget { pub fn requires_uncertainty_warning(&self, required: u64) -> bool { self.warning_threshold.is_some_and(|threshold| required > threshold) } + + /// The free memory to report when `required` is refused, or `None` when closing other apps + /// cannot help: the estimate overflowed `u64` (`u64::MAX`), or the limit that refused it was + /// not set by measured memory. + pub fn refusal_free_memory(&self, required: u64) -> Option { + if required == u64::MAX { None } else { self.measured_free } + } +} + +/// The sentence appended to a hard-memory refusal when measured free memory set the limit; empty +/// for `None`. `Some(0)` also covers the fail-closed reading of an unreadable memory limit. +pub fn low_memory_advice(free_memory: &Option) -> String { + match free_memory { + None => String::new(), + Some(0) => ". PhotoCraft measured no free memory, or could not read this system's memory limit. Close other apps and try again".to_string(), + Some(n) => format!(". About {} of memory is free. Close other apps and try again", size_text(*n)), + } +} + +/// A size for people: "3.0 GiB", "900 MiB", "512 B". +fn size_text(bytes: u64) -> String { + if bytes >= 1 << 30 { + format!("{:.1} GiB", bytes as f64 / (1u64 << 30) as f64) + } else if bytes >= 1 << 20 { + format!("{} MiB", bytes / (1 << 20)) + } else { + format!("{bytes} B") + } } /// Whether an approval-required estimate carries the unknown-capacity warning, given the @@ -252,16 +299,22 @@ pub fn native_platform_cap() -> u64 { /// The limits are for an import's aggregate peak estimate, not for one allocation: a peak may sum /// many buffers, each of which is separately bounded where the decoder allocates it. /// -/// Policy: -/// - Known RAM: H = min(floor(3*A/4), A - 1 GiB, C - reserve if known, [`native_platform_cap`]); -/// S = min(A/2, 8 GiB, H). -/// - Unknown native RAM: S = min(2 GiB, H) where H is [`native_platform_cap`], reduced by known -/// commit headroom; approval above S is possible up to H. 8 GiB is a warning threshold, not H. -/// - Web (wasm32): S = 1 GiB; H = min([`WASM_MAX_PEAK_BUDGET`], caller limit). +/// Policy (A = available RAM, C = commit headroom, each when known): +/// - Known RAM: H = min(floor(3*A/4), A - [`LOW_MEMORY_RESERVE`], C - reserve if known, +/// [`native_platform_cap`]), where the commit reserve is a quarter of C, at least +/// [`LOW_MEMORY_RESERVE`] and at most [`COMMIT_RESERVE`]. S = min(A/2, 8 GiB, max(A - 1 GiB, +/// A/4), max(C - [`COMMIT_RESERVE`], C/4) if known, H). Above 4/3 GiB free this is the usual +/// "leave 1 GiB free"; below it up to a quarter of free RAM opens automatically and the rest +/// goes to approval. At or below [`LOW_MEMORY_RESERVE`] of either there is no room. +/// - Unknown native RAM: S = min(2 GiB, commit soft room if known, H) where H is +/// [`native_platform_cap`], reduced by known commit headroom as above; approval above S is +/// possible up to H. 8 GiB is a warning threshold, not H. /// - <= S: automatic; S < E <= H: explicit approval; > H: refuse, no unlimited override. /// - The saturated `u64::MAX` overflow sentinel is always refused, even when H is `u64::MAX` /// (see [`MemoryBudget::decide`]). -/// - Known zero available RAM stays zero (it never becomes unknown/free). +/// - Known zero available RAM stays zero (it never becomes unknown/free). The fail-closed reading +/// of an unreadable memory limit is `Some(0)`, so it stays refused; only a credited tile share +/// (see [`resolve_budget_with_scratch`]) can pass, as before. /// - swap is never part of the adaptive budget. /// - Explicit caller limits may lower admission, never bypass the hard boundary. pub fn resolve_budget(snapshot: MemorySnapshot, caller_limit: Option) -> MemoryBudget { @@ -294,47 +347,72 @@ fn resolve_budget_credited(platform: Platform, snapshot: MemorySnapshot, caller_ if let Some(caller) = caller_limit.filter(|&c| c > 0) { hard = hard.min(caller); } - return MemoryBudget { soft_limit: WASM_BUDGET.min(hard), hard_limit: hard, available_ram: None, warning_threshold: None }; + return MemoryBudget { soft_limit: WASM_BUDGET.min(hard), hard_limit: hard, available_ram: None, warning_threshold: None, measured_free: None }; } let platform_cap = native_platform_cap(); - let (mut hard, mut soft, warning_threshold) = match snapshot.available_ram { - Some(a) => { - let h_pct = ((a as u128 * 3) / 4) as u64; - let h_reserve = a.saturating_sub(1 << 30); - let mut h = h_pct.min(h_reserve); + let ram = snapshot.available_ram; + let commit = snapshot.commit_headroom; - if let Some(c) = snapshot.commit_headroom { - let c_room = c.saturating_sub(COMMIT_RESERVE); - h = h.min(c_room); - } - - h = h.min(platform_cap); - - let s_pct = a / 2; - let s = s_pct.min(MAX_SOFT_BUDGET).min(h); - (h, s, None) - } - None => { - let mut h = platform_cap; - if let Some(c) = snapshot.commit_headroom { - let c_room = c.saturating_sub(COMMIT_RESERVE); - h = h.min(c_room); - } - let s = NATIVE_FALLBACK_BUDGET.min(h); - (h, s, Some(UNKNOWN_MEMORY_WARNING_THRESHOLD)) - } + // The room measured memory leaves; with neither measurement known only the platform cap bounds. + let measured_room = match (ram.map(ram_hard_room), commit.map(commit_hard_room)) { + (Some(r), Some(c)) => Some(r.min(c)), + (r, c) => r.or(c), + }; + let mut hard = measured_room.map_or(platform_cap, |room| room.min(platform_cap)); + let commit_soft = commit.map(commit_soft_room); + let (mut soft, warning_threshold) = match ram { + Some(a) => (ram_soft_room(a).min(commit_soft.unwrap_or(u64::MAX)).min(hard), None), + None => (NATIVE_FALLBACK_BUDGET.min(commit_soft.unwrap_or(u64::MAX)).min(hard), Some(UNKNOWN_MEMORY_WARNING_THRESHOLD)), }; // Tile pixels the scratch disk takes need no RAM (see [`resolve_budget_with_scratch`]). hard = hard.saturating_add(credit); soft = soft.saturating_add(credit); + let machine_limit = hard; if let Some(caller) = caller_limit.filter(|&c| c > 0) { hard = hard.min(caller); soft = soft.min(hard); } - MemoryBudget { soft_limit: soft, hard_limit: hard, available_ram: snapshot.available_ram, warning_threshold } + // Report the measured free memory only when it alone set the hard limit: where the platform + // cap equals the measured room, more free memory could not raise the limit. + let measured_free = match (ram, commit) { + (None, None) => None, + (Some(a), None) => Some(a), + (None, Some(c)) => Some(c), + (Some(a), Some(c)) => Some(a.min(c)), + } + .filter(|_| measured_room.is_some_and(|room| room < platform_cap) && hard >= machine_limit); + + MemoryBudget { soft_limit: soft, hard_limit: hard, available_ram: ram, warning_threshold, measured_free } +} + +/// Hard room (what an approved import may use) when `a` bytes of RAM are free: three quarters of +/// it, leaving at least [`LOW_MEMORY_RESERVE`]. +fn ram_hard_room(a: u64) -> u64 { + let quarter_rule = ((a as u128 * 3) / 4) as u64; + quarter_rule.min(a.saturating_sub(LOW_MEMORY_RESERVE)) +} + +/// Automatic room when `a` bytes of RAM are free: half of it, up to [`MAX_SOFT_BUDGET`], leaving +/// 1 GiB free or, when that is less, a quarter of it. +fn ram_soft_room(a: u64) -> u64 { + (a / 2).min(MAX_SOFT_BUDGET).min(a.saturating_sub(AUTOMATIC_RAM_RESERVE).max(a / 4)) +} + +/// Hard room when `c` bytes of commit headroom remain: all but a reserve of a quarter, at least +/// [`LOW_MEMORY_RESERVE`] and at most [`COMMIT_RESERVE`]. +fn commit_hard_room(c: u64) -> u64 { + // `clamp` panics only if its bounds are out of order, and they are constants. + const { assert!(LOW_MEMORY_RESERVE <= COMMIT_RESERVE) }; + let reserve = (c / 4).clamp(LOW_MEMORY_RESERVE, COMMIT_RESERVE); + c.saturating_sub(reserve) +} + +/// Automatic room when `c` bytes of commit headroom remain. +fn commit_soft_room(c: u64) -> u64 { + c.saturating_sub(COMMIT_RESERVE).max(c / 4) } /// Result of evaluating an import admission request. @@ -411,7 +489,9 @@ fn evaluate_psd_admission_for( } cap } - BudgetDecision::Refused => return Err(IoError::PsdImportBudget { required, limit: budget.hard_limit }), + BudgetDecision::Refused => { + return Err(IoError::PsdImportBudget { required, limit: budget.hard_limit, free_memory: budget.refusal_free_memory(required) }); + } }; if required > authorized_total { @@ -448,7 +528,7 @@ pub(crate) fn nested_import_local_bound(required: u64, caller_limit: u64, approv (caller, approved) => caller.or(approved), }; match limit { - Some(limit) if required > limit => Err(IoError::PsdImportBudget { required, limit }), + Some(limit) if required > limit => Err(IoError::PsdImportBudget { required, limit, free_memory: None }), _ => Ok(()), } } @@ -767,7 +847,7 @@ mod tests { for (approved, estimate) in [(false, None), (true, None), (true, Some(u64::MAX))] { match evaluate_psd_admission_for(Platform::Native, u64::MAX, 0, 0, approved, estimate, MemorySnapshot::UNKNOWN) { - Err(IoError::PsdImportBudget { required, limit }) => { + Err(IoError::PsdImportBudget { required, limit, .. }) => { assert_eq!((required, limit), (u64::MAX, u64::MAX), "the typed refusal keeps the estimate and limit unchanged") } other => panic!("approved={approved}, estimate={estimate:?}: expected a hard refusal, got {other:?}"), @@ -777,7 +857,7 @@ mod tests { // A caller limit equal to the sentinel, or an approved estimate of it, is no exception. assert!(matches!( evaluate_psd_admission_for(Platform::Native, u64::MAX, 0, u64::MAX, true, Some(u64::MAX), MemorySnapshot::UNKNOWN), - Err(IoError::PsdImportBudget { required: u64::MAX, limit: u64::MAX }) + Err(IoError::PsdImportBudget { required: u64::MAX, limit: u64::MAX, .. }) )); } @@ -816,8 +896,9 @@ mod tests { let snap_tight = MemorySnapshot { available_ram: None, swap_free: None, commit_headroom: Some(gb) }; let b_tight = resolve_budget(snap_tight, None); - assert_eq!(b_tight.hard_limit, gb - COMMIT_RESERVE); - assert_eq!(b_tight.soft_limit, gb - COMMIT_RESERVE); + // 1 GiB of headroom keeps a quarter free (256 MiB), not the full 512 MiB. + assert_eq!(b_tight.hard_limit, 768 << 20); + assert_eq!(b_tight.soft_limit, 512 << 20); let snap_room = MemorySnapshot { available_ram: None, swap_free: None, commit_headroom: Some(4 * gb) }; let b_room = resolve_budget(snap_room, None); @@ -995,7 +1076,7 @@ mod tests { assert!(evaluate_psd_admission(26 * gb, 18 * gb, 0, true, Some(26 * gb - 1), snap).is_err()); // 10 GiB non-spillable is over H: refused even when approved. let err = evaluate_psd_admission(28 * gb, 18 * gb, 0, true, Some(28 * gb), snap).unwrap_err(); - assert!(matches!(err, IoError::PsdImportBudget { required, limit } if required == 28 * gb && limit == 27 * gb)); + assert!(matches!(err, IoError::PsdImportBudget { required, limit, .. } if required == 28 * gb && limit == 27 * gb)); // A spillable share claimed beyond the total is clamped to the total. assert!(evaluate_psd_admission(5 * gb, u64::MAX, 0, false, None, snap).is_ok()); // The caller's explicit limit still bounds the whole import. @@ -1081,4 +1162,205 @@ mod tests { let without_swap = MemorySnapshot { available_ram: Some(4 * gb), swap_free: None, commit_headroom: None }; assert_eq!(resolve_budget_for(Platform::Native, with_swap, None), resolve_budget_for(Platform::Native, without_swap, None)); } + + const MIB: u64 = 1 << 20; + const GIB: u64 = 1 << 30; + + fn native_budget(ram: Option, commit: Option) -> MemoryBudget { + resolve_budget_for(Platform::Native, MemorySnapshot { available_ram: ram, swap_free: None, commit_headroom: commit }, None) + } + + fn hard_refusal(result: Result) -> (u64, u64, Option) { + match result { + Err(IoError::PsdImportBudget { required, limit, free_memory }) => (required, limit, free_memory), + other => panic!("expected a hard refusal, got {other:?}"), + } + } + + #[test] + fn low_ram_boundaries_keep_room_for_small_files() { + if cfg!(any(target_arch = "wasm32", target_pointer_width = "32")) { + return; + } + // (free RAM, soft limit, hard limit) + let table = [ + (0, 0, 0), + (128 * MIB, 0, 0), + (256 * MIB, 0, 0), + (256 * MIB + 1, 64 * MIB, 1), + (512 * MIB, 128 * MIB, 256 * MIB), + (GIB, 256 * MIB, 768 * MIB), + (GIB + 1, 256 * MIB, 768 * MIB), + (1366 * MIB, 342 * MIB, 2049 * MIB / 2), + (3 * GIB / 2, 512 * MIB, 1152 * MIB), + (2 * GIB, GIB, 3 * GIB / 2), + (3 * GIB, 3 * GIB / 2, 9 * GIB / 4), + (4 * GIB, 2 * GIB, 3 * GIB), + (8 * GIB, 4 * GIB, 6 * GIB), + ]; + for (ram, soft, hard) in table { + let b = native_budget(Some(ram), None); + // The soft limit is also bounded by the hard limit: 256 MiB + 1 leaves 1 byte. + let soft = soft.min(hard); + assert_eq!((b.soft_limit, b.hard_limit), (soft, hard), "free RAM {ram}"); + assert_eq!(b.warning_threshold, None); + } + } + + #[test] + fn low_commit_boundaries_keep_room_for_small_files() { + if cfg!(any(target_arch = "wasm32", target_pointer_width = "32")) { + return; + } + // (commit headroom, soft limit, hard limit) with plenty of RAM, then with RAM unknown. + let table = [ + (0, 0, 0), + (128 * MIB, 0, 0), + (256 * MIB, 0, 0), + (512 * MIB, 128 * MIB, 256 * MIB), + (512 * MIB + 1, 128 * MIB, 256 * MIB + 1), + (GIB, 512 * MIB, 768 * MIB), + (3 * GIB / 2, GIB, 1152 * MIB), + (2 * GIB, 3 * GIB / 2, 3 * GIB / 2), + (5 * GIB, 9 * GIB / 2, 9 * GIB / 2), + ]; + for (commit, soft, hard) in table { + let b = native_budget(Some(64 * GIB), Some(commit)); + assert_eq!((b.soft_limit, b.hard_limit), (soft, hard), "commit {commit}, RAM known"); + let unknown = native_budget(None, Some(commit)); + assert_eq!(unknown.hard_limit, hard, "commit {commit}, RAM unknown"); + assert_eq!(unknown.soft_limit, soft.min(2 * GIB), "commit {commit}, RAM unknown"); + assert_eq!(unknown.warning_threshold, Some(UNKNOWN_MEMORY_WARNING_THRESHOLD)); + } + } + + #[test] + fn budgets_grow_with_free_memory_and_leave_the_reserve() { + if cfg!(any(target_arch = "wasm32", target_pointer_width = "32")) { + return; + } + for by_commit in [false, true] { + let (mut last_soft, mut last_hard) = (0, 0); + let mut measured = 0; + while measured <= 9 * GIB { + let b = if by_commit { native_budget(Some(64 * GIB), Some(measured)) } else { native_budget(Some(measured), None) }; + assert!(b.soft_limit <= b.hard_limit, "commit={by_commit} {measured}"); + assert!(b.hard_limit <= measured, "commit={by_commit} {measured}"); + assert!(b.soft_limit >= last_soft && b.hard_limit >= last_hard, "commit={by_commit} {measured}: not non-decreasing"); + if b.hard_limit > 0 { + assert!(measured - b.hard_limit >= LOW_MEMORY_RESERVE, "commit={by_commit} {measured}: reserve not kept"); + } + (last_soft, last_hard) = (b.soft_limit, b.hard_limit); + measured += 16 * MIB; + } + } + } + + #[test] + fn a_small_file_opens_on_a_machine_with_little_free_memory() { + if cfg!(any(target_arch = "wasm32", target_pointer_width = "32")) { + return; + } + let b = native_budget(Some(900 * MIB), None); + assert_eq!(b.decide(100 * MIB), BudgetDecision::Automatic); + assert_eq!(b.decide(300 * MIB), BudgetDecision::RequiresApproval); + assert_eq!(b.decide(700 * MIB), BudgetDecision::Refused); + + // The reported case: about 190 MB beyond 1 GiB free. + let snap = MemorySnapshot { available_ram: Some(190_693_376 + GIB), swap_free: None, commit_headroom: None }; + let (required, limit, free) = hard_refusal(evaluate_psd_admission_for(Platform::Native, 1_136_504_592, 0, 0, false, None, snap)); + assert_eq!((required, limit), (1_136_504_592, (190_693_376 + GIB) * 3 / 4)); + assert_eq!(free, Some(190_693_376 + GIB)); + assert!(matches!(evaluate_psd_admission_for(Platform::Native, 500_000_000, 0, 0, false, None, snap), Err(IoError::PsdApprovalRequired { .. }))); + } + + #[test] + fn refusals_report_free_memory_only_when_measured_memory_set_the_limit() { + if cfg!(any(target_arch = "wasm32", target_pointer_width = "32")) { + return; + } + let snap = |ram, commit| MemorySnapshot { available_ram: ram, swap_free: None, commit_headroom: commit }; + let refuse = |required, caller, snapshot| hard_refusal(evaluate_psd_admission_for(Platform::Native, required, 0, caller, false, None, snapshot)); + + // RAM binds. + assert_eq!(refuse(2 * GIB, 0, snap(Some(GIB), None)), (2 * GIB, 768 * MIB, Some(GIB))); + // Commit headroom below RAM binds. + assert_eq!(refuse(2 * GIB, 0, snap(Some(64 * GIB), Some(GIB))), (2 * GIB, 768 * MIB, Some(GIB))); + // Commit headroom alone (RAM unknown). + assert_eq!(refuse(2 * GIB, 0, snap(None, Some(GIB))), (2 * GIB, 768 * MIB, Some(GIB))); + // Zero measured RAM (also the fail-closed unreadable limit) refuses everything. + assert_eq!(refuse(1, 0, snap(Some(0), None)), (1, 0, Some(0))); + // A binding caller limit is not the machine's. + assert_eq!(refuse(2 * GIB, GIB, snap(Some(8 * GIB), None)), (2 * GIB, GIB, None)); + assert_eq!(refuse(2 * GIB, GIB, MemorySnapshot::UNKNOWN), (2 * GIB, GIB, None)); + // The overflow sentinel is not helped by closing apps. + assert_eq!(refuse(u64::MAX, 0, snap(Some(8 * GIB), None)), (u64::MAX, 6 * GIB, None)); + assert_eq!(refuse(u64::MAX, 0, MemorySnapshot::UNKNOWN), (u64::MAX, u64::MAX, None)); + + // On the budget itself. + assert_eq!(native_budget(Some(8 * GIB), None).measured_free, Some(8 * GIB)); + assert_eq!(native_budget(Some(8 * GIB), None).refusal_free_memory(u64::MAX), None); + assert_eq!(native_budget(None, None).measured_free, None); + assert_eq!(resolve_budget_for(Platform::Web, snap(Some(GIB), None), None).measured_free, None); + // A caller limit equal to the machine's limit does not hide the measurement. + assert_eq!(resolve_budget_for(Platform::Native, snap(Some(8 * GIB), None), Some(6 * GIB)).measured_free, Some(8 * GIB)); + assert_eq!(resolve_budget_for(Platform::Native, snap(Some(8 * GIB), None), Some(6 * GIB - 1)).measured_free, None); + } + + /// Only 32-bit native has a finite cap: when it equals the measured room, freeing memory + /// cannot raise the limit, so no free-memory figure is reported. + #[test] + fn a_platform_cap_equal_to_the_measured_room_reports_no_free_memory() { + let cap = native_platform_cap(); + if cap == u64::MAX { + return; + } + assert_eq!(native_budget(None, Some(cap + COMMIT_RESERVE)).measured_free, None); + assert_eq!(native_budget(None, Some(cap - 1 + COMMIT_RESERVE)).measured_free, Some(cap - 1 + COMMIT_RESERVE)); + } + + #[test] + fn scratch_credit_adds_to_the_low_memory_limits() { + if cfg!(any(target_arch = "wasm32", target_pointer_width = "32")) { + return; + } + let snap = |ram, commit| MemorySnapshot { available_ram: ram, swap_free: None, commit_headroom: commit }; + with_mock_scratch(Some(40 * GIB), || { + let one_gib = snap(Some(GIB), None); + let out = evaluate_psd_admission_for(Platform::Native, 2 * GIB + 100 * MIB, 2 * GIB, 0, false, None, one_gib).unwrap(); + assert_eq!(out.authorized_total, 256 * MIB + 2 * GIB); + + let err = evaluate_psd_admission_for(Platform::Native, 2 * GIB + 500 * MIB, 2 * GIB, 0, false, None, one_gib).unwrap_err(); + assert!(matches!(err, IoError::PsdApprovalRequired { soft_limit, hard_limit, .. } + if soft_limit == 2 * GIB + 256 * MIB && hard_limit == 2 * GIB + 768 * MIB)); + + let refused = hard_refusal(evaluate_psd_admission_for(Platform::Native, 2 * GIB + 800 * MIB, 2 * GIB, 0, true, None, one_gib)); + assert_eq!(refused, (2 * GIB + 800 * MIB, 2 * GIB + 768 * MIB, Some(GIB))); + + // Fail closed: nothing measured, so only the credited tile share passes. + let zero = snap(Some(0), None); + assert!(evaluate_psd_admission_for(Platform::Native, 2 * GIB, 2 * GIB, 0, false, None, zero).is_ok()); + let refused = hard_refusal(evaluate_psd_admission_for(Platform::Native, 2 * GIB + 1, 2 * GIB, 0, true, None, zero)); + assert_eq!(refused, (2 * GIB + 1, 2 * GIB, Some(0))); + + // Low commit headroom with plenty of RAM: H = 256 MiB + credit. + let low_commit = snap(Some(64 * GIB), Some(512 * MIB)); + let refused = hard_refusal(evaluate_psd_admission_for(Platform::Native, 2 * GIB + 300 * MIB, 2 * GIB, 0, true, None, low_commit)); + assert_eq!(refused, (2 * GIB + 300 * MIB, 2 * GIB + 256 * MIB, Some(512 * MIB))); + let b = resolve_budget_credited(Platform::Native, low_commit, None, 2 * GIB); + assert_eq!((b.soft_limit, b.hard_limit), (2 * GIB + 128 * MIB, 2 * GIB + 256 * MIB)); + }); + } + + #[test] + fn low_memory_advice_names_the_free_memory() { + assert_eq!(low_memory_advice(&None), ""); + assert_eq!( + low_memory_advice(&Some(0)), + ". PhotoCraft measured no free memory, or could not read this system's memory limit. Close other apps and try again" + ); + assert_eq!(low_memory_advice(&Some(900 << 20)), ". About 900 MiB of memory is free. Close other apps and try again"); + assert_eq!(low_memory_advice(&Some(3 << 30)), ". About 3.0 GiB of memory is free. Close other apps and try again"); + assert_eq!(low_memory_advice(&Some(512)), ". About 512 B of memory is free. Close other apps and try again"); + } } diff --git a/crates/io/src/png_steps.rs b/crates/io/src/png_steps.rs new file mode 100644 index 0000000000..ac786b0a22 --- /dev/null +++ b/crates/io/src/png_steps.rs @@ -0,0 +1,176 @@ +//! A PNG import in resumable steps, for a caller that must not block for the whole file (the web +//! build has no threads): the same document [`crate::import_with_options_and_interrupt`] gives. +//! +//! A PNG whose rows come in final order is streamed: each decoded group of rows becomes tiles at +//! once and is dropped, as [`crate::import_with_options_and_interrupt`] does, so the image never +//! exists next to the layer built from it (a 100 MP RGBA8 file would need about 400 MB more, which +//! a browser tab does not have). Any other PNG (interlaced, animated, or stored in another +//! orientation) is decoded whole, turned upright and copied into tiles, each in bounded steps. + +use std::sync::Arc; + +use photocraft_codecs::{self as codecs, DecodeOptions, Format, Limits, OrientSteps, PngDecodeRows, PngExtras, PngFinish, SharedBytes, begin_png_finish}; +use photocraft_geom::TILE_SIZE; +use photocraft_raster::{Interrupt, PruneCursor}; + +use crate::flat::{FlatBuilder, PngStream, apply_flat_format}; +use crate::{ImportResult, IoError, Route}; + +/// The rows of a file being streamed into the tiles of its layer. +struct Streaming { + rows: PngDecodeRows, + stream: PngStream, +} + +/// A streamed layer being scanned for tiles that hold only the default pixel. +struct Pruning { + stream: PngStream, + cursor: PruneCursor, + extras: PngExtras, +} + +enum Stage { + /// The rows becoming tiles as they are decoded. + Stream(Box), + /// The streamed layer's prune scan. + Prune(Box), + /// The whole image, decoded a row at a time: a file whose rows can't be streamed. + Rows(Box>), + /// The decoded image turned upright (an EXIF orientation 2-8), a band of rows at a time. + Orient(Box), + /// The decoded image becoming the document, a band of rows and a batch of tiles at a time. + Build(Box), + Spent, +} + +/// A plain PNG file being imported as a document, a few rows at a time. +pub struct PngImport { + name: String, + bytes: Arc>, + stage: Stage, +} + +impl PngImport { + /// Starts importing `bytes` (named `name`) when the import would decode them as a plain PNG, + /// which reads the header and refuses what the import refuses; `None` for any other file, + /// which only [`crate::import_with_options_and_interrupt`] reads. The decoder shares `bytes`. + pub fn new(name: &str, bytes: &Arc>) -> Result, IoError> { + if crate::route(name, bytes) != Route::Flat || codecs::detect(bytes) != Some(Format::Png) { + return Ok(None); + } + let rows = PngDecodeRows::new_streaming(SharedBytes(Arc::clone(bytes)), &Limits::default())?; + let stage = if rows.streamable() { + let stream = PngStream::for_steps(&rows.header())?; + Stage::Stream(Box::new(Streaming { rows, stream })) + } else { + Stage::Rows(Box::new(Self::buffered(rows)?)) + }; + Ok(Some(Self { name: name.to_string(), bytes: Arc::clone(bytes), stage })) + } + + /// A decoder that holds the whole image: its output is reserved up front. + fn buffered(mut rows: PngDecodeRows) -> Result, IoError> { + rows.reserve_output()?; + Ok(rows) + } + + /// Whether the rows are streamed into the layer's tiles as they are decoded, so the decoded + /// image never exists whole. False for a file whose rows can't come in final order, and from + /// the moment a late `eXIf` sends a streamed one back to a whole decode. + pub fn streams(&self) -> bool { + matches!(self.stage, Stage::Stream(_) | Stage::Prune(_)) + } + + /// How much of the import is done, `0.0..=1.0`. + pub fn progress(&self) -> f32 { + match &self.stage { + Stage::Stream(s) => s.rows.progress(), + Stage::Rows(rows) => rows.progress(), + Stage::Orient(steps) => steps.progress(), + Stage::Prune(_) | Stage::Build(_) | Stage::Spent => 1.0, + } + } + + /// Works while `more()` returns true (at least one bounded piece per call): rows (into tiles + /// as they come, or into the whole image), the turn upright, the copy into tiles, then the + /// prune scan. `Some` once the document is built, after which the import is spent. + pub fn step(&mut self, more: &mut dyn FnMut() -> bool) -> Result, IoError> { + match std::mem::replace(&mut self.stage, Stage::Spent) { + Stage::Stream(mut s) => { + let result = { + let Streaming { rows, stream } = &mut *s; + let mut sink = |y0: u32, data: &[u8]| stream.write_rows(y0, data, &Interrupt::NONE); + rows.step_stream::(TILE_SIZE as u32, more, &mut sink)? + }; + self.stage = match result { + None => Stage::Stream(s), + // An `eXIf` after the image data turns the image: decode it whole instead, as + // the one-shot import does, with the streamed layer released first. + Some(extras) if extras.orientation != 1 => { + drop(s); + let rows = PngDecodeRows::new_streaming(SharedBytes(Arc::clone(&self.bytes)), &Limits::default())?; + Stage::Rows(Box::new(Self::buffered(rows)?)) + } + Some(extras) => { + let stream = s.stream; + let cursor = stream.prune_cursor(); + Stage::Prune(Box::new(Pruning { stream, cursor, extras })) + } + }; + Ok(None) + } + Stage::Prune(mut p) => loop { + if p.stream.prune_step(&mut p.cursor) { + let Pruning { stream, extras, .. } = *p; + let mut r = stream.into_document(&self.name, extras)?; + apply_flat_format(&mut r, &self.bytes, Some(Format::Png), None)?; + return Ok(Some(r)); + } + if !more() { + self.stage = Stage::Prune(p); + return Ok(None); + } + }, + Stage::Rows(mut rows) => { + self.stage = match rows.step(more)? { + Some(img) => { + // The resolution, upright orientation and final limit checks `decode` does. + match begin_png_finish(img, &DecodeOptions::default())? { + PngFinish::Done(img) => Stage::Build(Box::new(FlatBuilder::new(&self.name, *img)?)), + PngFinish::Orient(steps) => Stage::Orient(steps), + } + } + None => Stage::Rows(rows), + }; + Ok(None) + } + Stage::Orient(mut steps) => { + self.stage = match steps.step(more)? { + Some(img) => Stage::Build(Box::new(FlatBuilder::new(&self.name, img)?)), + None => Stage::Orient(steps), + }; + Ok(None) + } + Stage::Build(mut build) => loop { + if !build.copy_done() { + build.copy_step()?; + if !more() { + self.stage = Stage::Build(build); + return Ok(None); + } + continue; + } + if !build.prune_done() { + build.prune_step(); + if !more() { + self.stage = Stage::Build(build); + return Ok(None); + } + continue; + } + return build.finish(self.bytes.as_slice(), Some(Format::Png)).map(Some); + }, + Stage::Spent => Err(IoError::Unsupported("the PNG was already imported".into())), + } + } +} diff --git a/crates/io/src/psd_budget.rs b/crates/io/src/psd_budget.rs index a80230322d..9a91469add 100644 --- a/crates/io/src/psd_budget.rs +++ b/crates/io/src/psd_budget.rs @@ -249,7 +249,7 @@ pub fn estimate(file: &PsdFile) -> Result { pub fn check(file: &PsdFile, limit: u64) -> Result { let est = estimate(file)?; if est.total_bytes > limit { - return Err(IoError::PsdImportBudget { required: est.total_bytes, limit }); + return Err(IoError::PsdImportBudget { required: est.total_bytes, limit, free_memory: None }); } Ok(est) } diff --git a/crates/io/src/psd_budget/tests.rs b/crates/io/src/psd_budget/tests.rs index 9e24676716..edf83b7612 100644 --- a/crates/io/src/psd_budget/tests.rs +++ b/crates/io/src/psd_budget/tests.rs @@ -284,6 +284,29 @@ fn zero_available_ram_refuses_admission() { }); } +/// A small file opens with 900 MiB free (it used to be refused outright below 1 GiB); with no +/// free memory at all it is refused and the refusal says why. +#[test] +fn small_file_opens_with_little_free_memory_and_a_refusal_names_it() { + if cfg!(target_arch = "wasm32") { + return; // the web policy ignores a host snapshot; it has its own tests + } + let file = testgen::small(Version::Psd, Compression::Zip); + let bytes = file.to_bytes().unwrap(); + + let low = crate::memory::MemorySnapshot { available_ram: Some(900 << 20), swap_free: None, commit_headroom: None }; + crate::memory::with_mock_memory(low, || { + let res = crate::import_with_options("small.psd", &bytes, &crate::ImportOptions::default()); + assert!(res.is_ok(), "{:?}", res.map(|_| ())); + }); + + let none = crate::memory::MemorySnapshot { available_ram: Some(0), swap_free: None, commit_headroom: None }; + crate::memory::with_mock_memory(none, || { + let res = crate::import_with_options("small.psd", &bytes, &crate::ImportOptions::default()); + assert!(matches!(res, Err(IoError::PsdImportBudget { limit: 0, free_memory: Some(0), .. }))); + }); +} + #[test] fn preflight_rejection_and_approval_files_release_gate() { if cfg!(any(target_arch = "wasm32", target_pointer_width = "32")) { @@ -337,7 +360,7 @@ fn retry_estimate_cap_rejects_altered_or_enlarged_file() { // 3. Exceeds hard limit: refused completely regardless of approval let res = crate::memory::evaluate_psd_admission(10 * gb, 0, 0, true, Some(10 * gb), snap); - assert!(matches!(res, Err(IoError::PsdImportBudget { required, limit }) if required == 10 * gb && limit == 9 * gb)); + assert!(matches!(res, Err(IoError::PsdImportBudget { required, limit, .. }) if required == 10 * gb && limit == 9 * gb)); } #[test] @@ -413,7 +436,7 @@ fn nested_imports_consume_from_shared_allowance_and_do_not_reset_parent() { // Second nested consume exceeds remaining 1 GB let err = crate::psd_gate::consume_attempt_allowance(2 * gb).unwrap_err(); - assert!(matches!(err, IoError::PsdImportBudget { required, limit } if required == 2 * gb && limit == gb)); + assert!(matches!(err, IoError::PsdImportBudget { required, limit, .. } if required == 2 * gb && limit == gb)); // Allowance is still 1 GB (failed attempt does not reset or corrupt parent) assert!(crate::psd_gate::consume_attempt_allowance(gb).is_ok()); @@ -472,7 +495,7 @@ fn real_import_propagates_high_memory_approval_and_its_estimate_bound() { let lowered = crate::ImportOptions { psd_high_memory_approved: true, psd_max_pixel_bytes: required - 1, ..Default::default() }; assert!(matches!( crate::import_with_options("approval.psd", &bytes, &lowered), - Err(IoError::PsdImportBudget { required: r, limit: l }) if r == required && l == required - 1 + Err(IoError::PsdImportBudget { required: r, limit: l, .. }) if r == required && l == required - 1 )); }); }); @@ -527,7 +550,7 @@ fn memory_drop_while_waiting_for_the_gate_refuses_before_decoding() { let result = rx.recv_timeout(Duration::from_secs(10)).expect("the post-gate recheck must refuse instead of decoding"); match result { - Err(IoError::PsdImportBudget { required, limit: 0 }) => assert!(required > 0), + Err(IoError::PsdImportBudget { required, limit: 0, .. }) => assert!(required > 0), other => panic!("expected the post-gate recheck to refuse with a zero budget, got {other:?}"), } handle.join().expect("worker thread"); diff --git a/crates/io/src/psd_gate.rs b/crates/io/src/psd_gate.rs index d661166018..ce6c36dab2 100644 --- a/crates/io/src/psd_gate.rs +++ b/crates/io/src/psd_gate.rs @@ -79,14 +79,14 @@ pub(crate) fn consume_attempt_allowance(bytes: u64) -> Result<(), IoError> { ATTEMPT_ALLOWANCE.with(|a| match a.get() { Some(remaining) => { if bytes == u64::MAX || bytes > remaining { - return Err(IoError::PsdImportBudget { required: bytes, limit: remaining }); + return Err(IoError::PsdImportBudget { required: bytes, limit: remaining, free_memory: None }); } a.set(Some(remaining - bytes)); Ok(()) } None => { // Unknown allowance during reentrant gate must fail closed. - Err(IoError::PsdImportBudget { required: bytes, limit: 0 }) + Err(IoError::PsdImportBudget { required: bytes, limit: 0, free_memory: None }) } }) } @@ -193,7 +193,7 @@ mod tests { set_active_attempt_budget(u64::MAX); let err = consume_attempt_allowance(u64::MAX).expect_err("the overflow sentinel is never a charge"); - assert!(matches!(err, IoError::PsdImportBudget { required, limit } if required == u64::MAX && limit == u64::MAX)); + assert!(matches!(err, IoError::PsdImportBudget { required, limit, .. } if required == u64::MAX && limit == u64::MAX)); assert_eq!(active_attempt_remaining(), Some(u64::MAX), "a refused sentinel charge leaves the parent's allowance untouched"); // One byte below the sentinel is an ordinary, enormous charge. diff --git a/crates/io/src/tiff_layers.rs b/crates/io/src/tiff_layers.rs index 5c44776a01..413fee396e 100644 --- a/crates/io/src/tiff_layers.rs +++ b/crates/io/src/tiff_layers.rs @@ -1319,7 +1319,7 @@ mod tests { let lowered = ImportOptions { psd_high_memory_approved: true, psd_max_pixel_bytes: required - 1, ..Default::default() }; assert!(matches!( crate::import_with_options("l.tif", &bytes, &lowered), - Err(IoError::PsdImportBudget { required: r, limit: l }) if r == required && l == required - 1 + Err(IoError::PsdImportBudget { required: r, limit: l, .. }) if r == required && l == required - 1 )); }); }); @@ -1351,7 +1351,7 @@ mod tests { // remaining allowance is untouched. crate::psd_gate::set_active_attempt_budget(charged - 1); match crate::import_with_options_and_interrupt("charge.tif", &bytes, &ImportOptions::default(), &ctl) { - Err(IoError::PsdImportBudget { required, limit }) => assert_eq!((required, limit), (charged, charged - 1)), + Err(IoError::PsdImportBudget { required, limit, .. }) => assert_eq!((required, limit), (charged, charged - 1)), other => panic!("expected an import-budget refusal, got {other:?}"), } assert_eq!(crate::psd_gate::active_attempt_remaining(), Some(charged - 1), "a failed nested import leaves the allowance as it was"); @@ -1462,7 +1462,7 @@ mod tests { crate::memory::with_mock_memory(zero, || { crate::flat::with_before_composite_decode(hook(&decoded), || { match crate::import_with_options("bogus.tif", &bytes, &ImportOptions::default()) { - Err(IoError::PsdImportBudget { limit: 0, required }) => assert!(required > 0), + Err(IoError::PsdImportBudget { limit: 0, required, .. }) => assert!(required > 0), other => panic!("expected an import-budget refusal, got {other:?}"), } assert_eq!(decoded.get(), 0, "a refused file must not decode its composite"); @@ -1504,7 +1504,7 @@ mod tests { crate::memory::with_mock_memory(zero, || { crate::flat::with_before_composite_decode(hook(&decoded), || { match crate::import_with_options("zero.tif", &bytes, &ImportOptions::default()) { - Err(IoError::PsdImportBudget { limit: 0, required }) => assert!(required > 0), + Err(IoError::PsdImportBudget { limit: 0, required, .. }) => assert!(required > 0), other => panic!("expected an import-budget refusal, got {other:?}"), } assert_eq!(decoded.get(), 0, "a refused file must not decode its composite"); @@ -1589,7 +1589,7 @@ mod tests { let result = rx.recv_timeout(Duration::from_secs(10)).expect("the post-gate recheck must refuse instead of decoding"); match result { - Err(IoError::PsdImportBudget { limit: 0, required }) => assert!(required > 0), + Err(IoError::PsdImportBudget { limit: 0, required, .. }) => assert!(required > 0), other => panic!("expected the post-gate recheck to refuse with a zero budget, got {other:?}"), } assert!(!decoded.load(Ordering::SeqCst), "the composite must not be decoded after the post-gate refusal"); diff --git a/crates/io/tests/it/main.rs b/crates/io/tests/it/main.rs index 66b8712a72..db6fc6cdf3 100644 --- a/crates/io/tests/it/main.rs +++ b/crates/io/tests/it/main.rs @@ -45,6 +45,7 @@ mod pattern_fill_psd; mod pcraft_full_composite; mod pcraft_manifest_name; mod pdn_corpus; +mod png_steps; mod png_text_metadata; mod psd16_merged_transparency; mod psd32_export; diff --git a/crates/io/tests/it/png_steps.rs b/crates/io/tests/it/png_steps.rs new file mode 100644 index 0000000000..73960301c5 --- /dev/null +++ b/crates/io/tests/it/png_steps.rs @@ -0,0 +1,310 @@ +//! A PNG imported in steps gives the document `import_with_options_and_interrupt` gives. + +use std::sync::Arc; + +use photocraft_codecs::{ChannelLayout, EncodeOptions, Format, Image, SampleType, encode}; +use photocraft_doc::Document; +use photocraft_io::{ImportOptions, ImportResult, PngImport, import_with_options_and_interrupt}; +use photocraft_raster::Interrupt; + +/// A pseudo-random `w`×`h` image. +fn noise(w: u32, h: u32, layout: ChannelLayout, sample: SampleType) -> Image { + let len = w as usize * h as usize * layout.channels() * sample.bytes(); + Image::from_raw(w, h, layout, sample, (0..len).map(|i| (i.wrapping_mul(2_654_435_761) >> 11) as u8).collect()).unwrap() +} + +fn whole(name: &str, bytes: &[u8]) -> ImportResult { + import_with_options_and_interrupt(name, bytes, &ImportOptions::default(), &Interrupt::NONE).unwrap() +} + +/// Imports `bytes` in steps, `per_call` rows at a time (0: unlimited); returns the result and +/// how many calls it took. +fn stepped(name: &str, bytes: &[u8], per_call: usize) -> (ImportResult, usize) { + let bytes = Arc::new(bytes.to_vec()); + let mut import = PngImport::new(name, &bytes).unwrap().expect("a plain PNG"); + let mut calls = 0; + loop { + calls += 1; + let mut left = per_call; + let mut more = || { + left = left.wrapping_sub(1); + per_call == 0 || left > 0 + }; + if let Some(r) = import.step(&mut more).unwrap() { + return (r, calls); + } + assert!(calls < 100_000); + } +} + +/// The documents are the same but for the ids minted for them. +fn assert_same(a: &Document, b: &Document, what: &str) { + let (mut a, mut b) = (a.clone(), b.clone()); + b.id = a.id; + assert_eq!(a.layers.len(), b.layers.len(), "{what}"); + for (x, y) in a.layers.iter_mut().zip(&mut b.layers) { + y.id = x.id; + } + assert!(a == b, "{what}: the documents differ"); +} + +fn assert_stepped_equals_import(name: &str, bytes: &[u8], what: &str) { + let expected = whole(name, bytes); + for per_call in [1, 7, 0] { + let (got, _) = stepped(name, bytes, per_call); + assert_same(&got.document, &expected.document, &format!("{what}, {per_call} rows per call")); + assert_eq!(got.warnings, expected.warnings, "{what}"); + assert_eq!((got.source_read_only, got.preview_only), (expected.source_read_only, expected.preview_only), "{what}"); + } +} + +#[test] +fn stepped_png_import_equals_import() { + for layout in [ChannelLayout::Gray, ChannelLayout::GrayA, ChannelLayout::Rgb, ChannelLayout::Rgba] { + for sample in [SampleType::U8, SampleType::U16] { + let mut img = noise(45, 38, layout, sample); + img.meta.dpi = Some((144.0, 144.0)); + img.meta.text.push(("Comment".into(), "stepped".into())); + for interlaced in [false, true] { + let bytes = encode(&img, Format::Png, &EncodeOptions { png_interlaced: interlaced, ..Default::default() }).unwrap(); + assert_stepped_equals_import("a.png", &bytes, &format!("{layout:?} {sample:?} interlaced={interlaced}")); + } + } + } +} + +#[test] +fn stepped_png_import_keeps_a_palette_as_indexed_colour() { + let pal = [[255, 0, 0], [0, 255, 0], [0, 0, 255], [9, 9, 9]]; + let idx: Vec = (0..40 * 30).map(|i| (i % 4) as u8).collect(); + let bytes = photocraft_codecs::encode_png_indexed(40, 30, &idx, &pal, Some(3), None, None).unwrap(); + let (got, _) = stepped("p.png", &bytes, 0); + assert!(got.document.color_table.is_some(), "an Indexed Color document"); + assert_stepped_equals_import("p.png", &bytes, "palette"); +} + +#[test] +fn stepped_png_import_takes_a_step_per_row_and_bounded_steps_to_build_the_document() { + let bytes = encode(&noise(8, 20, ChannelLayout::Rgba, SampleType::U8), Format::Png, &EncodeOptions::default()).unwrap(); + let (_, calls) = stepped("a.png", &bytes, 1); + // 19 calls that each decode a row (its rows become tiles as they come), one that decodes the + // last row and reads to the end of the file, then the prune scan of the tiles and the document. + assert_eq!(calls, 21); + let arc = Arc::new(bytes); + let mut import = PngImport::new("a.png", &arc).unwrap().unwrap(); + assert_eq!(import.progress(), 0.0); + while import.step(&mut || false).unwrap().is_none() { + assert!(import.progress() <= 1.0); + } + assert!(import.step(&mut || true).is_err(), "a finished import is spent"); +} + +/// Imports `bytes` with an empty budget (one bounded piece per call); returns the result and the +/// number of calls. +fn stepped_zero_budget(name: &str, bytes: &[u8]) -> (ImportResult, usize) { + let bytes = Arc::new(bytes.to_vec()); + let mut import = PngImport::new(name, &bytes).unwrap().expect("a plain PNG"); + let mut calls = 0; + loop { + calls += 1; + if let Some(r) = import.step(&mut || false).unwrap() { + return (r, calls); + } + assert!(calls < 100_000, "the import never finished"); + } +} + +/// A CRC-valid PNG chunk. +fn png_chunk(kind: &[u8; 4], data: &[u8]) -> Vec { + let mut crc = flate2::Crc::new(); + crc.update(kind); + crc.update(data); + let mut out = u32::try_from(data.len()).unwrap().to_be_bytes().to_vec(); + out.extend_from_slice(kind); + out.extend_from_slice(data); + out.extend_from_slice(&crc.sum().to_be_bytes()); + out +} + +/// A compressed `zTXt` chunk with `text` as its value. +fn ztxt_chunk(keyword: &[u8], text: &[u8]) -> Vec { + use std::io::Write; + let mut encoder = flate2::write::ZlibEncoder::new(Vec::new(), flate2::Compression::fast()); + encoder.write_all(text).unwrap(); + let packed = encoder.finish().unwrap(); + let mut data = keyword.to_vec(); + data.extend_from_slice(&[0, 0]); + data.extend_from_slice(&packed); + png_chunk(b"zTXt", &data) +} + +/// `png` with `chunks` between the image data and `IEND`. +fn with_chunks_before_iend(png: &[u8], chunks: &[Vec]) -> Vec { + let mut at = 8; + loop { + let len = u32::from_be_bytes(png[at..at + 4].try_into().unwrap()) as usize; + if &png[at + 4..at + 8] == b"IEND" { + let mut out = png[..at].to_vec(); + for c in chunks { + out.extend_from_slice(c); + } + out.extend_from_slice(&png[at..]); + return out; + } + at += len + 12; + } +} + +#[test] +fn stepped_png_import_copies_a_multi_tile_image_in_bounded_steps() { + // Four tiles (300 × 260 at 256 px), with a compressed text chunk after the image data. + let mut img = noise(300, 260, ChannelLayout::Rgba, SampleType::U16); + img.meta.dpi = Some((240.0, 240.0)); + let base = encode(&img, Format::Png, &EncodeOptions::default()).unwrap(); + let text = "A".repeat(120_000); + let bytes = with_chunks_before_iend(&base, &[ztxt_chunk(b"Comment", text.as_bytes())]); + assert_stepped_equals_import("tiles.png", &bytes, "multi-tile with compressed text"); + + let expected = whole("tiles.png", &bytes); + let (got, calls) = stepped_zero_budget("tiles.png", &bytes); + assert_same(&got.document, &expected.document, "zero budget"); + assert_eq!(got.warnings, expected.warnings); + assert_eq!(got.document.metadata.text, vec![("Comment".into(), text)], "the compressed text survives the steps"); + // One call per row, then its copy bands, its prune batch and the document step, each a call + // of its own with an empty budget. + assert!(calls >= 260 + 4, "{} calls: an empty budget must not make one step do it all", calls); +} + +#[test] +fn only_a_plain_png_is_stepped() { + let png = Arc::new(encode(&noise(4, 4, ChannelLayout::Rgb, SampleType::U8), Format::Png, &EncodeOptions::default()).unwrap()); + assert!(PngImport::new("a.png", &png).unwrap().is_some()); + // The same bytes under a name that sends them to another importer, or another format. + assert!(PngImport::new("a.pcraft", &png).unwrap().is_none()); + let jpeg = Arc::new(encode(&noise(4, 4, ChannelLayout::Rgb, SampleType::U8), Format::Jpeg, &EncodeOptions::default()).unwrap()); + assert!(PngImport::new("a.jpg", &jpeg).unwrap().is_none()); + assert!(PngImport::new("a.svg", &Arc::new(b"".to_vec())).unwrap().is_none()); +} + +#[test] +fn a_damaged_png_fails_in_steps_as_it_does_whole() { + let bytes = encode(&noise(64, 64, ChannelLayout::Rgb, SampleType::U8), Format::Png, &EncodeOptions::default()).unwrap(); + for cut in [30, bytes.len() / 2] { + let cut = Arc::new(bytes.get(..cut).unwrap().to_vec()); + let whole = import_with_options_and_interrupt("a.png", &cut, &ImportOptions::default(), &Interrupt::NONE); + let stepped = PngImport::new("a.png", &cut).and_then(|import| { + let mut import = import.expect("a PNG by its signature"); + loop { + if let Some(r) = import.step(&mut || true)? { + return Ok(r); + } + } + }); + assert!(whole.is_err() && stepped.is_err(), "cut at {}", cut.len()); + } +} + +/// An `eXIf` chunk (little-endian) holding only the orientation `o`. +fn exif_chunk(o: u16) -> Vec { + let mut t = b"II*\0".to_vec(); + t.extend_from_slice(&8u32.to_le_bytes()); + t.extend_from_slice(&1u16.to_le_bytes()); + for v in [0x0112u16, 3] { + t.extend_from_slice(&v.to_le_bytes()); + } + t.extend_from_slice(&1u32.to_le_bytes()); + t.extend_from_slice(&o.to_le_bytes()); + t.extend_from_slice(&[0, 0, 0, 0, 0, 0]); + png_chunk(b"eXIf", &t) +} + +/// `png` with `chunk` just before its image data. +fn with_chunk_before_idat(png: &[u8], chunk: &[u8]) -> Vec { + let at = png.windows(4).position(|w| w == b"IDAT").unwrap() - 4; + let mut out = png[..at].to_vec(); + out.extend_from_slice(chunk); + out.extend_from_slice(&png[at..]); + out +} + +/// Drives `bytes` to the end a row at a time; true if the import streamed at the start. +fn streams_at_start(bytes: &[u8]) -> bool { + let bytes = Arc::new(bytes.to_vec()); + PngImport::new("a.png", &bytes).unwrap().unwrap().streams() +} + +/// A plain PNG streams its rows into the layer; a file that can't (interlaced, or stored in +/// another orientation) is decoded whole. +#[test] +fn a_plain_png_streams_and_other_files_are_decoded_whole() { + let img = noise(40, 30, ChannelLayout::Rgb, SampleType::U8); + let plain = encode(&img, Format::Png, &EncodeOptions::default()).unwrap(); + assert!(streams_at_start(&plain)); + let interlaced = encode(&img, Format::Png, &EncodeOptions { png_interlaced: true, ..Default::default() }).unwrap(); + assert!(!streams_at_start(&interlaced)); + assert!(!streams_at_start(&with_chunk_before_idat(&plain, &exif_chunk(6)))); + // An upright eXIf streams; one after the image data is only seen at the end. + assert!(streams_at_start(&with_chunk_before_idat(&plain, &exif_chunk(1)))); + assert!(streams_at_start(&with_chunks_before_iend(&plain, &[exif_chunk(6)]))); +} + +/// A file with an orientation turns upright in bands and gives the document the one-shot import +/// gives, whether the `eXIf` comes before the image data (decoded whole from the start) or after +/// it (streamed, then decoded whole), for every orientation, and a tall file takes many calls. +#[test] +fn an_oriented_png_is_turned_upright_in_steps_like_import() { + for (layout, sample) in [(ChannelLayout::Gray, SampleType::U8), (ChannelLayout::Rgba, SampleType::U16)] { + let mut img = noise(70, 150, layout, sample); + img.meta.dpi = Some((120.0, 120.0)); + img.icc = Some(vec![7; 40]); + let base = encode(&img, Format::Png, &EncodeOptions::default()).unwrap(); + for o in 2..=8u16 { + for late in [false, true] { + let bytes = if late { with_chunks_before_iend(&base, &[exif_chunk(o)]) } else { with_chunk_before_idat(&base, &exif_chunk(o)) }; + let what = format!("{layout:?} {sample:?} orientation {o}, eXIf {}", if late { "after" } else { "before" }); + let expected = whole("o.png", &bytes); + assert_eq!(expected.document.size.width, if o >= 5 { 150 } else { 70 }, "{what}: upright"); + let (got, calls) = stepped_zero_budget("o.png", &bytes); + assert_same(&got.document, &expected.document, &what); + assert_eq!(got.warnings, expected.warnings, "{what}"); + // 150 rows decoded one call each, the turn in bands of 64 output rows, the copy. + assert!(calls > 150 + 2, "{what}: {calls} calls"); + assert_stepped_equals_import("o.png", &bytes, &what); + } + } + } +} + +/// A late `eXIf` sends a streamed import back to a whole decode, and the import says so. +#[test] +fn a_late_exif_ends_the_streaming() { + let base = encode(&noise(20, 20, ChannelLayout::Rgb, SampleType::U8), Format::Png, &EncodeOptions::default()).unwrap(); + let bytes = Arc::new(with_chunks_before_iend(&base, &[exif_chunk(3)])); + let mut import = PngImport::new("a.png", &bytes).unwrap().unwrap(); + assert!(import.streams()); + while import.streams() { + assert!(import.step(&mut || false).unwrap().is_none()); + } + // From here the whole image is decoded. + assert!(import.step(&mut || false).unwrap().is_none()); + assert!(!import.streams()); +} + +/// A streamed import with an ICC profile, text and a resolution is the one-shot import, at every +/// depth and layout, 16-bit included. +#[test] +fn a_streamed_png_with_a_profile_and_text_equals_import() { + for layout in [ChannelLayout::Gray, ChannelLayout::GrayA, ChannelLayout::Rgb, ChannelLayout::Rgba] { + for sample in [SampleType::U8, SampleType::U16] { + let mut img = noise(300, 270, layout, sample); + img.icc = Some(vec![9; 60]); + img.meta.dpi = Some((200.0, 200.0)); + img.meta.text.push(("Title".into(), "streamed".into())); + let bytes = encode(&img, Format::Png, &EncodeOptions::default()).unwrap(); + assert!(streams_at_start(&bytes)); + assert_stepped_equals_import("s.png", &bytes, &format!("{layout:?} {sample:?} with a profile")); + let (got, _) = stepped("s.png", &bytes, 0); + assert_eq!(got.document.icc_profile.as_deref().map(Vec::as_slice), Some(&[9u8; 60][..])); + } + } +} diff --git a/crates/raster/Cargo.toml b/crates/raster/Cargo.toml index 058e275b60..f319dcee81 100644 --- a/crates/raster/Cargo.toml +++ b/crates/raster/Cargo.toml @@ -15,11 +15,19 @@ crc32fast = "1" lz4_flex = { version = "0.11", default-features = false, features = ["std", "safe-encode", "safe-decode"] } # Native only: converting a region's tiles is independent per tile, so it runs on all cores; -# sysinfo reads the physical RAM size for the memory limit and the scratch volume's free space. +# sysinfo reads the physical RAM size for the memory limit. [target.'cfg(not(target_arch = "wasm32"))'.dependencies] rayon = { workspace = true } +sysinfo = { version = "=0.40.1", default-features = false, features = ["system"] } + +# macOS reports capacity including purgeable space only through sysinfo's volume properties. +[target.'cfg(target_os = "macos")'.dependencies] sysinfo = { version = "=0.40.1", default-features = false, features = ["system", "disk"] } +# statvfs on the scratch directory. +[target.'cfg(unix)'.dependencies] +rustix = { version = "1.1", default-features = false, features = ["std", "fs"] } + # Available physical memory and commit headroom (memory/system.rs) through winsafe's safe # `GlobalMemoryStatusEx` wrapper. [target.'cfg(windows)'.dependencies] diff --git a/crates/raster/src/lib.rs b/crates/raster/src/lib.rs index 63b55617a7..4dd682a773 100644 --- a/crates/raster/src/lib.rs +++ b/crates/raster/src/lib.rs @@ -11,10 +11,12 @@ pub mod headroom; mod interrupt; pub use interrupt::{Cancelled, Interrupt}; pub mod scratch; +mod shift; +pub use shift::TranslateSteps; use std::collections::BTreeMap; use std::fmt; -use std::ops::{Deref, DerefMut}; +use std::ops::{Bound, Deref, DerefMut}; use std::sync::{Arc, RwLockReadGuard, RwLockWriteGuard}; use photocraft_color::{ColorMode, PixelFormat, SampleType, read_sample, read_samples, write_sample}; @@ -274,6 +276,20 @@ fn last_difference(a: &[u8], b: &[u8]) -> Option { x.iter().zip(y).rposition(|(p, q)| p != q).map(|i| k * DIFF_BLOCK + i) } +/// Where [`Surface::prune_batch`] resumes: after the last tile it visited. +#[derive(Clone, Debug, Default, PartialEq, Eq)] +pub struct PruneCursor { + after: Option, + done: bool, +} + +impl PruneCursor { + /// True once every tile has been visited. + pub fn is_done(&self) -> bool { + self.done + } +} + #[derive(Clone, Debug)] pub struct Surface { format: PixelFormat, @@ -776,6 +792,43 @@ impl Surface { self.tiles.retain(|_, t| t.bytes().chunks_exact(bpp).any(|px| px != dp)); } + /// A [`PruneCursor`] for [`Surface::prune_batch`], which drops the same tiles as [`Surface::prune`] + /// a batch at a time (for a caller that must not block: the web build has no threads). + pub fn prune_cursor(&self) -> PruneCursor { + PruneCursor::default() + } + + /// Drops the tiles that are entirely the default pixel, visiting at most `max` tiles in + /// coordinate order and resuming after them on the next call; returns true when every tile + /// has been visited (and so [`Surface::prune`] has nothing left to drop). A `max` of zero + /// visits one tile. The scan reads the live tile map from the cursor on: a tile inserted at or + /// before the last visited coordinate is not visited, one inserted after it is (and dropped + /// when it holds only the default pixel, which reads the same as an absent tile). + pub fn prune_batch(&mut self, cursor: &mut PruneCursor, max: usize) -> bool { + if cursor.done { + return true; + } + let dp = self.default_pixel.as_ref(); + let bpp = dp.len(); + let max = max.max(1); + let keys: Vec = match cursor.after { + None => self.tiles.keys().take(max).copied().collect(), + Some(after) => self.tiles.range((Bound::Excluded(after), Bound::Unbounded)).take(max).map(|(c, _)| *c).collect(), + }; + for c in &keys { + if self.tiles.get(c).is_some_and(|t| !t.bytes().chunks_exact(bpp).any(|px| px != dp)) { + self.tiles.remove(c); + } + } + let Some(last) = keys.last().copied() else { + cursor.done = true; + return true; + }; + cursor.after = Some(last); + cursor.done = keys.len() < max || self.tiles.range((Bound::Excluded(last), Bound::Unbounded)).next().is_none(); + cursor.done + } + #[inline] fn locate(&self, x: i32, y: i32) -> (TileCoord, usize) { let c = TileCoord::containing(x, y); @@ -1262,144 +1315,12 @@ impl Surface { out.tiles = sources().map(|(c, t)| (TileCoord::new(c.tx.saturating_add(tx), c.ty.saturating_add(ty)), t.clone())).collect(); return out; } - let bpp = self.format.bytes_per_pixel(); - let moved = content.translate(dx, dy); - let targets: std::collections::BTreeSet = sources().flat_map(|(c, _)| c.rect().translate(dx, dy).intersect(&moved).tiles()).collect(); - let mut uniform = UniformTiles::default(); + let mut builder = shift::ShiftBuilder::new(self, dx, dy, content); for (_, t) in sources() { - uniform.value_of(t, bpp); + builder.scan(t); } - // The fill row: one tile row of the default pixel, so the regions a shift vacates - // fill with bulk copies (empty when the default is zero — the tile starts zeroed). - - // One row of the default pixel, so the regions a shift vacates fill with bulk copies. - let fill_row: Vec = if self.default_pixel.iter().any(|&b| b != 0) { - let mut row = Vec::with_capacity(TILE_SIZE as usize * bpp); - for _ in 0..TILE_SIZE { - row.extend_from_slice(&self.default_pixel); - } - row - } else { - Vec::new() - }; - - // One tile row of the default pixel, to compare a finished tile with a row at a time. - let default_row = self.default_pixel.repeat(TILE_SIZE.unsigned_abs() as usize); - // Target tiles rebuilt from the same source tiles at the same offset are the same tile: - // a bundle can point thousands of tile references at one payload, and a move would - // otherwise copy it into a separate buffer for each. - let built: std::sync::Mutex, Option>>> = Default::default(); - let build_target = |dc: TileCoord| -> Option<(TileCoord, Arc)> { - let dr = dc.rect(); - let sr = dr.translate(dx.saturating_neg(), dy.saturating_neg()); - // Every pixel of the target comes from a source tile (none from the default pixel). - // `sr` must be the exact preimage: an offset of `i32::MIN` saturates its negation. - let covered = sr.width() == TILE_SIZE.unsigned_abs() - && sr.height() == TILE_SIZE.unsigned_abs() - && sr.translate(dx, dy) == dr - && content.contains_rect(&sr) - && sr.tiles().all(|sc| self.tiles.contains_key(&sc)); - if covered && let Some(shared) = uniform.window(self, sr) { - // A tile of only the default pixel is left out, as `prune` would. - let keep = shared.bytes().get(..bpp) != Some(&*self.default_pixel); - return keep.then_some((dc, shared)); - } - // The identities of the source tiles under a covered window (the offset is the same - // for every target of this call). - let memo_key: Option> = covered.then(|| sr.tiles().map(|sc| self.tiles.get(&sc).map_or(0, |t| Arc::as_ptr(t) as usize)).collect()); - if let Some(k) = &memo_key - && let Some(hit) = built.lock().unwrap_or_else(std::sync::PoisonError::into_inner).get(k) - { - return hit.clone().map(|t| (dc, t)); - } - - let mut data = scratch::take_exact((TILE_SIZE * TILE_SIZE) as usize * bpp, 0u8); - let (tx0, ty0) = (i64::from(dc.tx) * i64::from(TILE_SIZE), i64::from(dc.ty) * i64::from(TILE_SIZE)); - let row_len = TILE_SIZE as usize * bpp; - // Per stored row: copy the source span that falls inside the content in as few - // memcpys as the tile grid allows, and fill the vacated edges from the default - // row — no whole-tile pre-fill, which rewrote nearly every byte twice. - for local_y in 0..i64::from(TILE_SIZE) { - let y = ty0 + local_y; - let Some(row) = data.get_mut(local_y as usize * row_len..(local_y as usize + 1) * row_len) else { continue }; - let in_content_y = y - i64::from(dy) >= i64::from(content.y0) && y - i64::from(dy) < i64::from(content.y1); - // The row's target columns whose SOURCE lies inside the content are copied - // (the copy loop crosses source tiles as needed); the rest stays default — - // exactly the pixels the shift vacated. - let cx0 = (i64::from(content.x0) + i64::from(dx)).max(tx0); - let cx1 = (i64::from(content.x1) + i64::from(dx)).min(tx0 + i64::from(TILE_SIZE)); - if !in_content_y || cx1 <= cx0 { - if !fill_row.is_empty() { - row.copy_from_slice(&fill_row); - } - continue; - } - let left = (cx0.max(tx0) - tx0) as usize * bpp; - let copied_end = (cx1.min(tx0 + i64::from(TILE_SIZE)) - tx0) as usize * bpp; - if !fill_row.is_empty() { - if left > 0 { - row[..left].copy_from_slice(&fill_row[..left]); - } - if copied_end < row_len { - row[copied_end..].copy_from_slice(&fill_row[copied_end..]); - } - } - let mut x = cx0.max(tx0); - let x_end = cx1.min(tx0 + i64::from(TILE_SIZE)); - // Rows run over the same one or two source tiles: cache the last lookup. - let mut cached: Option<(i64, i64, TileBytes<'_>)> = None; - while x < x_end { - // The source document position this target column reads, and the source - // tile it lives in (the shift crosses source tiles as x runs). - let (sx, sy) = (x - i64::from(dx), y - i64::from(dy)); - let (tx, ty) = (sx.div_euclid(i64::from(TILE_SIZE)), sy.div_euclid(i64::from(TILE_SIZE))); - // A missing source tile inside the content holds the default pixel, not - // zeros: fill the span from the default row instead of skipping it - // (echelon's white-mask-with-sparse-tiles case). - if !matches!(&cached, Some((ctx, cty, _)) if *ctx == tx && *cty == ty) { - match self.tiles.get(&TileCoord::new(tx as i32, ty as i32)) { - Some(t) => cached = Some((tx, ty, t.bytes())), - None => { - let span_end = ((tx + 1) * i64::from(TILE_SIZE) + i64::from(dx)).min(x_end).max(x + 1); - if !fill_row.is_empty() { - let at = (x - tx0) as usize * bpp; - let len = (span_end - x) as usize * bpp; - if let Some(d) = row.get_mut(at..at + len) { - d.copy_from_slice(&fill_row[at..at + len]); - } - } - x = span_end; - continue; - } - } - } - let Some((_, _, st)) = &cached else { break }; - let span_end = (((tx + 1) * i64::from(TILE_SIZE) + i64::from(dx)).min(x_end)).max(x + 1); - let span = (span_end - x) as usize * bpp; - let src = ((sy - ty * i64::from(TILE_SIZE)) * row_len as i64 + (sx - tx * i64::from(TILE_SIZE)) * bpp as i64) as usize; - let dst = (x - tx0) as usize * bpp; - if let (Some(d), Some(sr)) = (row.get_mut(dst..dst + span), st.get(src..src + span)) { - d.copy_from_slice(sr); - } - x = span_end; - } - } - // A target that got only default pixels isn't stored, as `prune` would drop it. Checked - // after the copy, a row at a time: a tile with content stops at its first such row. - let finished = if data.chunks(default_row.len()).any(|row| row != default_row) { - Some(Arc::new(Tile::from_vec(data))) - } else { - scratch::give(data); - None - }; - // Workers that missed the memo at the same time each built a copy: all of them take - // the one stored first, so the targets share it however many threads raced. - let finished = match memo_key { - Some(k) => built.lock().unwrap_or_else(std::sync::PoisonError::into_inner).entry(k).or_insert(finished).clone(), - None => finished, - }; - finished.map(|t| (dc, t)) - }; + let targets = builder.targets(self); + let build_target = |dc: TileCoord| builder.build(self, dc); #[cfg(not(target_arch = "wasm32"))] { use rayon::prelude::*; diff --git a/crates/raster/src/scratch_file.rs b/crates/raster/src/scratch_file.rs index 19a9a1056b..b8797ccac3 100644 --- a/crates/raster/src/scratch_file.rs +++ b/crates/raster/src/scratch_file.rs @@ -21,7 +21,7 @@ use std::fs::File; use std::path::{Path, PathBuf}; #[cfg(windows)] use std::sync::OnceLock; -use std::sync::atomic::{AtomicUsize, Ordering}; +use std::sync::atomic::{AtomicU64, AtomicUsize, Ordering}; use std::sync::{Mutex, PoisonError}; const ALIGN: u64 = 4096; @@ -48,6 +48,7 @@ pub(crate) struct Allocator { impl Allocator { /// Bytes currently allocated (end of file minus free space). + #[cfg(test)] pub fn used(&self) -> u64 { self.end - self.by_offset.values().sum::() } @@ -108,6 +109,9 @@ pub(crate) struct ScratchFile { #[cfg(not(windows))] linked: bool, allocator: Mutex, + /// What [`ScratchFile::used`] reads. No lock: `free` truncates the file under the allocator lock, + /// and a dead folder would block that, so a status read must not wait for it. + used: AtomicU64, } impl std::fmt::Debug for ScratchFile { @@ -129,6 +133,7 @@ impl ScratchFile { #[cfg(not(windows))] linked, allocator: Mutex::new(Allocator::default()), + used: AtomicU64::new(0), }) } @@ -145,6 +150,7 @@ impl ScratchFile { pub fn write(&self, data: &[u8]) -> std::io::Result { let len = u32::try_from(data.len()).map_err(|_| std::io::Error::other("block larger than 4 GiB"))?; let mut extent = self.lock().alloc(len); + self.used.fetch_add(extent.alloc, Ordering::Relaxed); if let Err(e) = write_all_at(&self.main, data, extent.offset) { self.free(extent); return Err(e); @@ -164,6 +170,7 @@ impl ScratchFile { } pub fn free(&self, extent: Extent) { + self.used.fetch_sub(extent.alloc, Ordering::Relaxed); let mut allocator = self.lock(); allocator.free(extent); if allocator.end == 0 { @@ -175,7 +182,7 @@ impl ScratchFile { } pub fn used(&self) -> u64 { - self.lock().used() + self.used.load(Ordering::Relaxed) } fn lock(&self) -> std::sync::MutexGuard<'_, Allocator> { @@ -483,6 +490,23 @@ mod tests { assert_eq!(a.alloc(10).offset, 4096, "remainder of the split hole is used next"); } + #[test] + fn used_follows_writes_and_frees() { + let dir = std::env::temp_dir().join(format!("pc-scratch-used-{}", std::process::id())); + let scratch = ScratchFile::create(&dir).unwrap(); + assert_eq!(scratch.used(), 0); + let a = scratch.write(b"one").unwrap(); + assert_eq!(scratch.used(), a.alloc); + let b = scratch.write(&[1u8; 9000]).unwrap(); + assert_eq!(scratch.used(), a.alloc + b.alloc); + scratch.free(a); + assert_eq!(scratch.used(), b.alloc); + scratch.free(b); + assert_eq!(scratch.used(), 0); + drop(scratch); + let _ = std::fs::remove_dir_all(&dir); + } + #[test] fn file_roundtrip_and_crc() { let dir = std::env::temp_dir().join("photocraft-scratch-test"); diff --git a/crates/raster/src/shift.rs b/crates/raster/src/shift.rs new file mode 100644 index 0000000000..6c3a49ffab --- /dev/null +++ b/crates/raster/src/shift.rs @@ -0,0 +1,285 @@ +//! [`Surface::translated`] in pieces: the target tiles of a shift by a whole number of pixels +//! that is not a whole number of tiles, each built from the source tiles it reads. The one-shot +//! call and [`TranslateSteps`] build every tile with the same code, so their results are equal. + +use std::collections::{BTreeSet, HashMap}; +use std::sync::{Arc, Mutex}; + +use photocraft_geom::{Rect, TILE_SIZE, TileCoord}; + +use super::{Surface, Tile, TileBytes, UniformTiles, scratch}; + +/// What the target tiles of one shift share: the offset, the source's content bounds, rows of the +/// default pixel, which source tiles are one solid value, and the tiles already built. +pub(super) struct ShiftBuilder { + dx: i32, + dy: i32, + content: Rect, + bpp: usize, + default_pixel: Box<[u8]>, + /// One row of the default pixel, so the regions a shift vacates fill with bulk copies (empty + /// when the default is zero: the tile starts zeroed). + fill_row: Vec, + /// One tile row of the default pixel, to compare a finished tile with a row at a time. + default_row: Vec, + pub(super) uniform: UniformTiles, + /// Target tiles rebuilt from the same source tiles at the same offset are the same tile: a + /// bundle can point thousands of tile references at one payload, and a move would otherwise + /// copy it into a separate buffer for each. + built: Mutex, Option>>>, +} + +impl ShiftBuilder { + /// A builder for shifting `src` by (`dx`, `dy`); `content` must hold every pixel of `src` + /// that isn't the default one. + pub(super) fn new(src: &Surface, dx: i32, dy: i32, content: Rect) -> Self { + let bpp = src.format.bytes_per_pixel(); + let fill_row: Vec = if src.default_pixel.iter().any(|&b| b != 0) { + let mut row = Vec::with_capacity(TILE_SIZE as usize * bpp); + for _ in 0..TILE_SIZE { + row.extend_from_slice(&src.default_pixel); + } + row + } else { + Vec::new() + }; + Self { + dx, + dy, + content, + bpp, + default_pixel: src.default_pixel.clone(), + fill_row, + default_row: src.default_pixel.repeat(TILE_SIZE.unsigned_abs() as usize), + uniform: UniformTiles::default(), + built: Mutex::default(), + } + } + + /// The source tiles that can hold content, in coordinate order. + pub(super) fn sources(src: &Surface, content: Rect) -> impl Iterator)> { + src.tiles.iter().filter(move |(c, _)| !c.rect().intersect(&content).is_empty()) + } + + /// Notes whether source tile `t` is one solid value, so targets reading only such tiles share + /// one tile. + pub(super) fn scan(&mut self, t: &Arc) { + self.uniform.value_of(t, self.bpp); + } + + /// The target tiles: every tile a source tile's pixels land on. + pub(super) fn targets(&self, src: &Surface) -> BTreeSet { + let (dx, dy) = (self.dx, self.dy); + let moved = self.content.translate(dx, dy); + Self::sources(src, self.content).flat_map(|(c, _)| c.rect().translate(dx, dy).intersect(&moved).tiles()).collect() + } + + /// Builds target tile `dc` of `src` shifted; `None` when it would hold only the default pixel. + pub(super) fn build(&self, src: &Surface, dc: TileCoord) -> Option<(TileCoord, Arc)> { + let (dx, dy, content, bpp) = (self.dx, self.dy, self.content, self.bpp); + let (fill_row, default_row, built, uniform) = (&self.fill_row, &self.default_row, &self.built, &self.uniform); + let dr = dc.rect(); + let sr = dr.translate(dx.saturating_neg(), dy.saturating_neg()); + // Every pixel of the target comes from a source tile (none from the default pixel). + // `sr` must be the exact preimage: an offset of `i32::MIN` saturates its negation. + let covered = sr.width() == TILE_SIZE.unsigned_abs() + && sr.height() == TILE_SIZE.unsigned_abs() + && sr.translate(dx, dy) == dr + && content.contains_rect(&sr) + && sr.tiles().all(|sc| src.tiles.contains_key(&sc)); + if covered && let Some(shared) = uniform.window(src, sr) { + // A tile of only the default pixel is left out, as `prune` would. + let keep = shared.bytes().get(..bpp) != Some(&*self.default_pixel); + return keep.then_some((dc, shared)); + } + // The identities of the source tiles under a covered window (the offset is the same + // for every target of this call). + let memo_key: Option> = covered.then(|| sr.tiles().map(|sc| src.tiles.get(&sc).map_or(0, |t| Arc::as_ptr(t) as usize)).collect()); + if let Some(k) = &memo_key + && let Some(hit) = built.lock().unwrap_or_else(std::sync::PoisonError::into_inner).get(k) + { + return hit.clone().map(|t| (dc, t)); + } + + let mut data = scratch::take_exact((TILE_SIZE * TILE_SIZE) as usize * bpp, 0u8); + let (tx0, ty0) = (i64::from(dc.tx) * i64::from(TILE_SIZE), i64::from(dc.ty) * i64::from(TILE_SIZE)); + let row_len = TILE_SIZE as usize * bpp; + // Per stored row: copy the source span that falls inside the content in as few + // memcpys as the tile grid allows, and fill the vacated edges from the default + // row — no whole-tile pre-fill, which rewrote nearly every byte twice. + for local_y in 0..i64::from(TILE_SIZE) { + let y = ty0 + local_y; + let Some(row) = data.get_mut(local_y as usize * row_len..(local_y as usize + 1) * row_len) else { continue }; + let in_content_y = y - i64::from(dy) >= i64::from(content.y0) && y - i64::from(dy) < i64::from(content.y1); + // The row's target columns whose SOURCE lies inside the content are copied + // (the copy loop crosses source tiles as needed); the rest stays default — + // exactly the pixels the shift vacated. + let cx0 = (i64::from(content.x0) + i64::from(dx)).max(tx0); + let cx1 = (i64::from(content.x1) + i64::from(dx)).min(tx0 + i64::from(TILE_SIZE)); + if !in_content_y || cx1 <= cx0 { + if !fill_row.is_empty() { + row.copy_from_slice(fill_row); + } + continue; + } + let left = (cx0.max(tx0) - tx0) as usize * bpp; + let copied_end = (cx1.min(tx0 + i64::from(TILE_SIZE)) - tx0) as usize * bpp; + if !fill_row.is_empty() { + if left > 0 { + row[..left].copy_from_slice(&fill_row[..left]); + } + if copied_end < row_len { + row[copied_end..].copy_from_slice(&fill_row[copied_end..]); + } + } + let mut x = cx0.max(tx0); + let x_end = cx1.min(tx0 + i64::from(TILE_SIZE)); + // Rows run over the same one or two source tiles: cache the last lookup. + let mut cached: Option<(i64, i64, TileBytes<'_>)> = None; + while x < x_end { + // The source document position this target column reads, and the source + // tile it lives in (the shift crosses source tiles as x runs). + let (sx, sy) = (x - i64::from(dx), y - i64::from(dy)); + let (tx, ty) = (sx.div_euclid(i64::from(TILE_SIZE)), sy.div_euclid(i64::from(TILE_SIZE))); + // A missing source tile inside the content holds the default pixel, not + // zeros: fill the span from the default row instead of skipping it + // (echelon's white-mask-with-sparse-tiles case). + if !matches!(&cached, Some((ctx, cty, _)) if *ctx == tx && *cty == ty) { + match src.tiles.get(&TileCoord::new(tx as i32, ty as i32)) { + Some(t) => cached = Some((tx, ty, t.bytes())), + None => { + let span_end = ((tx + 1) * i64::from(TILE_SIZE) + i64::from(dx)).min(x_end).max(x + 1); + if !fill_row.is_empty() { + let at = (x - tx0) as usize * bpp; + let len = (span_end - x) as usize * bpp; + if let Some(d) = row.get_mut(at..at + len) { + d.copy_from_slice(&fill_row[at..at + len]); + } + } + x = span_end; + continue; + } + } + } + let Some((_, _, st)) = &cached else { break }; + let span_end = (((tx + 1) * i64::from(TILE_SIZE) + i64::from(dx)).min(x_end)).max(x + 1); + let span = (span_end - x) as usize * bpp; + let src = ((sy - ty * i64::from(TILE_SIZE)) * row_len as i64 + (sx - tx * i64::from(TILE_SIZE)) * bpp as i64) as usize; + let dst = (x - tx0) as usize * bpp; + if let (Some(d), Some(sr)) = (row.get_mut(dst..dst + span), st.get(src..src + span)) { + d.copy_from_slice(sr); + } + x = span_end; + } + } + // A target that got only default pixels isn't stored, as `prune` would drop it. Checked + // after the copy, a row at a time: a tile with content stops at its first such row. + let finished = if data.chunks(default_row.len()).any(|row| row != default_row) { + Some(Arc::new(Tile::from_vec(data))) + } else { + scratch::give(data); + None + }; + // Workers that missed the memo at the same time each built a copy: all of them take + // the one stored first, so the targets share it however many threads raced. + let finished = match memo_key { + Some(k) => built.lock().unwrap_or_else(std::sync::PoisonError::into_inner).entry(k).or_insert(finished).clone(), + None => finished, + }; + finished.map(|t| (dc, t)) + } +} + +/// A surface shifted by whole pixels, a bounded piece of work at a time: the same surface +/// [`Surface::translated`] returns, for a caller that must not block for the whole shift (the web +/// build has no threads). A unit of work is the scan of one source tile or the build of one +/// target tile, so a call of [`TranslateSteps::step`] that is asked to stop does no more than one. +pub struct TranslateSteps { + src: Surface, + builder: ShiftBuilder, + /// The source tiles still to scan, then the target tiles still to build, both in coordinate + /// order: the targets are the tiles the shifted source tiles land on, found as they are scanned. + scan: std::vec::IntoIter<(TileCoord, Arc)>, + sources: usize, + found: BTreeSet, + targets: Option>, + built: usize, + total_targets: usize, + out: Surface, + /// Set when the shift is by whole tiles, which needs no building. + whole_tiles: bool, + dx: i32, + dy: i32, + content: Rect, +} + +impl TranslateSteps { + /// Prepares to shift `src` by (`dx`, `dy`); `content` must hold every pixel of `src` that + /// isn't the default one (`src.content_bounds()`, say), as for [`Surface::translated`]. + pub fn new(src: Surface, dx: i32, dy: i32, content: Rect) -> Self { + let whole_tiles = dx % TILE_SIZE == 0 && dy % TILE_SIZE == 0; + let builder = ShiftBuilder::new(&src, dx, dy, content); + let tiles: Vec<(TileCoord, Arc)> = + if whole_tiles { Vec::new() } else { ShiftBuilder::sources(&src, content).map(|(c, t)| (*c, Arc::clone(t))).collect() }; + let out = Surface { format: src.format, default_pixel: src.default_pixel.clone(), tiles: Default::default() }; + Self { + sources: tiles.len(), + scan: tiles.into_iter(), + builder, + found: BTreeSet::new(), + targets: None, + built: 0, + total_targets: 0, + out, + whole_tiles, + dx, + dy, + content, + src, + } + } + + /// How much of the shift is done, `0.0..=1.0`. + pub fn progress(&self) -> f32 { + let todo = self.scan.len() + self.targets.as_ref().map_or(0, ExactSizeIterator::len); + let total = self.sources + self.total_targets; + if total == 0 { 0.0 } else { (1.0 - todo as f32 / total as f32).clamp(0.0, 1.0) } + } + + /// Does at least one unit of work, then goes on while `more()` returns true; `Some` with the + /// shifted surface once the last tile is built. + pub fn step(&mut self, more: &mut dyn FnMut() -> bool) -> Option { + if self.whole_tiles { + return Some(self.src.translated(self.dx, self.dy, self.content)); + } + loop { + if self.targets.is_none() { + match self.scan.next() { + Some((c, t)) => { + self.builder.scan(&t); + let moved = self.content.translate(self.dx, self.dy); + self.found.extend(c.rect().translate(self.dx, self.dy).intersect(&moved).tiles()); + } + None => { + let list: Vec = std::mem::take(&mut self.found).into_iter().collect(); + self.total_targets = list.len(); + self.targets = Some(list.into_iter()); + } + } + } else if let Some(dc) = self.targets.as_mut().and_then(Iterator::next) { + if let Some((c, t)) = self.builder.build(&self.src, dc) { + self.out.tiles.insert(c, t); + } + self.built += 1; + } else { + return Some(std::mem::replace( + &mut self.out, + Surface { format: self.src.format, default_pixel: self.src.default_pixel.clone(), tiles: Default::default() }, + )); + } + if !more() { + return None; + } + } + } +} diff --git a/crates/raster/src/spill.rs b/crates/raster/src/spill.rs index ac37c85686..2fc5707fa7 100644 --- a/crates/raster/src/spill.rs +++ b/crates/raster/src/spill.rs @@ -22,10 +22,16 @@ //! poisons the tile: edits and saves check the health of the document they publish, plus //! [`check_since`] for failures that came and went during the operation. The //! infallible display API uses a temporary placeholder, never replacement pixel storage. +//! +//! No lock is held across a call into the scratch folder. Opening and measuring it run on a +//! short-lived query thread, at most one per folder and question; callers wait a bounded time +//! for the answer, and a late answer still applies if that folder is still the configured one. +//! Status reads the UI makes every frame stay fast whatever the folder does. +use std::collections::VecDeque; use std::path::{Path, PathBuf}; use std::sync::atomic::{AtomicBool, AtomicU64, AtomicUsize, Ordering}; -use std::sync::{Arc, Mutex, PoisonError, RwLock, RwLockReadGuard, RwLockWriteGuard, Weak}; +use std::sync::{Arc, Condvar, Mutex, PoisonError, RwLock, RwLockReadGuard, RwLockWriteGuard, Weak}; use std::time::{Duration, Instant}; use crate::scratch_file::{Extent, ScratchFile}; @@ -235,6 +241,8 @@ struct Manager { next_space_check: AtomicU64, /// A sweep wrote successfully since the last resume: reset the retry backoff. recovering: AtomicBool, + /// The last free-space query for the scratch directory got no answer. + space_unmeasured: AtomicBool, registry: Mutex, config: Mutex, evictions: AtomicU64, @@ -259,6 +267,8 @@ struct Config { backoff: Duration, /// Explicit scratch size limit ([`set_size_cap`]); the free-space reserve always applies. size_cap: Option, + /// Scratch bytes the volume allows, as of the last answer; `None` = unmeasured. + room: Option, } struct Pause { @@ -272,6 +282,51 @@ const RETRY_MAX: Duration = Duration::from_secs(60); const SPACE_CHECK_EVERY: u64 = 64 << 20; /// Leave at least max(1 GiB, 5 % of the volume) free for the system and other programs. const RESERVE_MIN: u64 = 1 << 30; +/// How long a caller waits for the scratch folder to answer. A healthy disk answers in far less; +/// the query goes on after this and its answer still counts when it comes. +const QUERY_WAIT: Duration = Duration::from_secs(2); +/// Most folder queries in flight at once. A system call on a dead hard mount can't be cancelled, +/// so each stuck one keeps its thread, and every other folder tried on that mount adds one. +const MAX_QUERIES: usize = 16; + +/// A question in flight about a scratch folder (open it and/or measure it). +struct Query { + dir: PathBuf, + prepare: bool, + deadline: Instant, + done: Arc, +} + +/// Set once a query's answer has been applied (or discarded). +#[derive(Default)] +struct QueryDone { + finished: Mutex, + wake: Condvar, +} + +impl QueryDone { + fn finish(&self) { + *self.finished.lock().unwrap_or_else(PoisonError::into_inner) = true; + self.wake.notify_all(); + } + + fn finished(&self) -> bool { + *self.finished.lock().unwrap_or_else(PoisonError::into_inner) + } + + /// Wait until the query finishes or `deadline` passes; a deadline already past returns at once. + fn wait_until(&self, deadline: Instant) { + let Some(left) = deadline.checked_duration_since(Instant::now()) else { return }; + let done = self.finished.lock().unwrap_or_else(PoisonError::into_inner); + drop(self.wake.wait_timeout_while(done, left, |done| !*done).unwrap_or_else(PoisonError::into_inner)); + } +} + +static QUERIES: Mutex> = Mutex::new(Vec::new()); +/// Query threads alive, counted until they finish, including closing any file they opened; +/// `QUERIES` only dedupes questions. +static QUERY_THREADS: AtomicUsize = AtomicUsize::new(0); +static QUERY_HOOK: RwLock> = RwLock::new(None); static M: Manager = Manager { failed: AtomicUsize::new(0), @@ -284,8 +339,9 @@ static M: Manager = Manager { space_limit: AtomicU64::new(u64::MAX), next_space_check: AtomicU64::new(0), recovering: AtomicBool::new(false), + space_unmeasured: AtomicBool::new(false), registry: Mutex::new(Registry { cells: Vec::new(), hand: 0 }), - config: Mutex::new(Config { dir: None, file: None, last_error: None, budget: 0, paused: None, backoff: RETRY_FIRST, size_cap: None }), + config: Mutex::new(Config { dir: None, file: None, last_error: None, budget: 0, paused: None, backoff: RETRY_FIRST, size_cap: None, room: None }), evictions: AtomicU64::new(0), reloads: AtomicU64::new(0), written: AtomicU64::new(0), @@ -345,27 +401,73 @@ impl Manager { self.set_active(c.budget); } - /// Open the scratch file and check its volume's room; pause (and say why) if either fails. - /// The caller holds the config lock. Returns whether spilling can go ahead. - fn prepare(&self, c: &mut Config) -> bool { - let Some(dir) = c.dir.clone() else { return false }; - if c.file.is_none() { - match std::fs::create_dir_all(&dir).and_then(|()| ScratchFile::create(&dir)) { - Ok(f) => c.file = Some(Arc::new(f)), - Err(e) => { - self.pause(c, &format!("could not create a scratch file in {}: {e}", dir.display())); - return false; - } + /// Apply a finished folder query. `file` is the scratch file a `prepare` query opened (or the + /// error), `sampled_used` the scratch bytes in use just before the volume was asked, `space` + /// what the volume reported. Discarded if the folder changed meanwhile. + fn settle(&self, dir: &Path, prepare: bool, file: Option>, sampled_used: u64, space: Option<(u64, u64)>, done: &QueryDone) { + // Declared before the guard so a rejected file closes after the lock is released. + let mut _spare: Option = None; + let mut c = self.config(); + // Under the config lock, so a caller holding the lock can tell answered from not. + done.finish(); + if c.dir.as_deref() != Some(dir) { + return; + } + match file { + Some(Ok(f)) if c.file.is_none() => c.file = Some(Arc::new(f)), + Some(Ok(f)) => _spare = Some(f), + Some(Err(e)) if c.file.is_none() => { + self.pause(&mut c, &format!("could not create a scratch file in {}: {e}", dir.display())); + return; } + Some(Err(_)) | None => {} } let used = c.file.as_ref().map_or(0, |f| f.used()); - refresh_space(c, &dir, used); - if used >= self.space_limit.load(Ordering::Relaxed) { - let msg = no_room(&dir, c.size_cap); - self.pause(c, &msg); - return false; + apply_space(&mut c, sampled_used, space); + if !prepare { + return; } - true + if c.file.is_none() { + // The folder changed away and back while this ran. + self.pause(&mut c, ¬_responding(dir)); + return; + } + if used >= self.space_limit.load(Ordering::Relaxed) { + let msg = no_room(dir, c.size_cap); + self.pause(&mut c, &msg); + return; + } + if c.paused.is_some() { + self.resume(&mut c); + } + } + + /// Open the scratch file and check its volume's room, waiting up to [`QUERY_WAIT`]; an answer + /// that comes later is applied by [`Manager::settle`]. Pauses (and says why) on failure or + /// silence. The caller holds no lock. + fn prepare(&self, dir: &Path) { + let done = ask(dir, true); + let mut c = self.config(); + if c.dir.as_deref() != Some(dir) || done.as_ref().is_some_and(|d| d.finished()) { + return; + } + // No answer in time: it still counts when it comes. Until then: + let used = c.file.as_ref().map_or(0, |f| f.used()); + apply_space(&mut c, used, None); + if c.file.is_none() || c.paused.is_some() { + self.pause(&mut c, ¬_responding(dir)); + } + } + + /// Measure the volume's free space, waiting up to [`QUERY_WAIT`]. The caller holds no lock. + fn measure(&self, dir: &Path) { + let done = ask(dir, false); + let mut c = self.config(); + if c.dir.as_deref() != Some(dir) || done.as_ref().is_some_and(|d| d.finished()) { + return; + } + let used = c.file.as_ref().map_or(0, |f| f.used()); + apply_space(&mut c, used, None); } /// Retry a paused scratch disk once its backoff has elapsed. Cheap when not paused. @@ -373,40 +475,44 @@ impl Manager { if !self.paused.load(Ordering::Acquire) { return; } - let mut c = match self.config.try_lock() { - Ok(c) => c, - Err(std::sync::TryLockError::Poisoned(p)) => p.into_inner(), - // Someone else is configuring or retrying. - Err(std::sync::TryLockError::WouldBlock) => return, - }; + let c = self.config(); let due = c.paused.as_ref().is_some_and(|p| Instant::now() >= p.retry_at); if !due { return; } - if c.dir.is_none() || c.budget == 0 { - c.paused = None; - self.paused.store(false, Ordering::Release); - return; - } - if self.prepare(&mut c) { - self.resume(&mut c); + self.retry_now(c); + } + + /// Retry a paused scratch disk now (the guard is released before the folder is asked). + fn retry_now(&self, mut c: std::sync::MutexGuard<'_, Config>) { + let dir = match c.dir.clone() { + Some(dir) if c.budget > 0 => dir, + _ => { + c.paused = None; + self.paused.store(false, Ordering::Release); + return; + } + }; + // Push the next retry out so other threads don't all wait on this one. + let wait = c.backoff; + if let Some(p) = &mut c.paused { + p.retry_at = Instant::now().checked_add(wait).unwrap_or_else(Instant::now); } + drop(c); + self.prepare(&dir); } /// The scratch file, if spilling is on and the volume still has room. fn file(&self) -> Option> { - let mut c = self.config(); if self.budget.load(Ordering::Relaxed) == 0 { return None; } - if c.file.is_none() && !self.prepare(&mut c) { - return None; - } - c.file.clone() + self.config().file.clone() } - /// Whether the scratch file may grow further; re-reads free space every - /// [`SPACE_CHECK_EVERY`] bytes and pauses spilling when the volume runs low. + /// Whether the scratch file may grow further; asks for free space every + /// [`SPACE_CHECK_EVERY`] bytes (in the background, never waiting) and pauses spilling when the + /// volume runs low. fn has_room(&self, file: &ScratchFile) -> bool { let used = file.used(); if used < self.next_space_check.load(Ordering::Relaxed) && used < self.space_limit.load(Ordering::Relaxed) { @@ -414,8 +520,20 @@ impl Manager { } let mut c = self.config(); let Some(dir) = c.dir.clone() else { return false }; - refresh_space(&c, &dir, used); if used < self.space_limit.load(Ordering::Relaxed) { + // Ask in the background: this can be any thread, the UI's too. The answer moves the limit. + drop(c); + let query = start_query(&dir, false); + let c = self.config(); + // A rejected request must remain due. Don't overwrite a new folder's state or an + // answer that arrived before this lock was reacquired. + if c.dir.as_deref() == Some(dir.as_path()) && !query.as_ref().is_some_and(|(done, _)| done.finished()) { + if query.is_some() { + self.next_space_check.store(used.saturating_add(SPACE_CHECK_EVERY), Ordering::Relaxed); + } else { + self.space_unmeasured.store(true, Ordering::Relaxed); + } + } return true; } if c.paused.is_none() { @@ -488,14 +606,128 @@ impl Manager { } } -/// Free space on the volume holding `dir`, minus the reserve, sets how far the file may grow. -fn refresh_space(c: &Config, dir: &Path, used: u64) { - let room = free_space(dir).map_or(u64::MAX, |(available, total)| used.saturating_add(available.saturating_sub(RESERVE_MIN.max(total / 20)))); - let limit = c.size_cap.map_or(room, |cap| cap.min(room)); - M.space_limit.store(limit, Ordering::Relaxed); +/// Record a volume's answer (`None` = it didn't say) and derive the growth limit from it. +fn apply_space(c: &mut Config, used: u64, space: Option<(u64, u64)>) { + M.space_unmeasured.store(space.is_none(), Ordering::Relaxed); + c.room = space.map(|(available, total)| used.saturating_add(available.saturating_sub(RESERVE_MIN.max(total / 20)))); + store_limit(c); M.next_space_check.store(used.saturating_add(SPACE_CHECK_EVERY), Ordering::Relaxed); } +/// Publish the scratch size the volume and the size limit allow. +fn store_limit(c: &Config) { + let room = c.room.unwrap_or(u64::MAX); + M.space_limit.store(c.size_cap.map_or(room, |cap| cap.min(room)), Ordering::Relaxed); +} + +fn not_responding(dir: &Path) -> String { + format!("scratch disk {} is not responding", dir.display()) +} + +/// Start (or join) a query about `dir`: the same question is never asked by a second thread, and +/// at most [`MAX_QUERIES`] run at once. `None` if no thread could be started. +fn start_query(dir: &Path, prepare: bool) -> Option<(Arc, Instant)> { + let mut queries = QUERIES.lock().unwrap_or_else(PoisonError::into_inner); + if let Some(q) = queries.iter().find(|q| q.prepare == prepare && q.dir.as_path() == dir) { + return Some((q.done.clone(), q.deadline)); + } + if QUERY_THREADS.load(Ordering::Acquire) >= MAX_QUERIES { + return None; + } + let now = Instant::now(); + let deadline = now.checked_add(QUERY_WAIT).unwrap_or(now); + let done = Arc::new(QueryDone::default()); + queries.push(Query { dir: dir.to_path_buf(), prepare, deadline, done: done.clone() }); + let (job_dir, job_done) = (dir.to_path_buf(), done.clone()); + QUERY_THREADS.fetch_add(1, Ordering::AcqRel); + let spawned = std::thread::Builder::new().name("pc-scratch-query".into()).spawn(move || run_query(job_dir, prepare, job_done)); + if spawned.is_err() { + QUERY_THREADS.fetch_sub(1, Ordering::AcqRel); + queries.pop(); + return None; + } + Some((done, deadline)) +} + +/// Ask about `dir` and wait up to [`QUERY_WAIT`] for the answer. The caller holds no lock. +fn ask(dir: &Path, prepare: bool) -> Option> { + let (done, deadline) = start_query(dir, prepare)?; + done.wait_until(deadline); + Some(done) +} + +/// The query thread: touches the folder, then hands the answer to [`Manager::settle`]. +fn run_query(dir: PathBuf, prepare: bool, done: Arc) { + let hook = *QUERY_HOOK.read().unwrap_or_else(PoisonError::into_inner); + if let Some(hook) = hook { + hook(&dir); + } + // Before measuring: writes made during the query come off the free space and must not be + // counted again on top of it. Another folder's file says nothing about this one. + let (open, used) = { + let c = M.config(); + let current = c.file.as_ref().filter(|_| c.dir.as_deref() == Some(dir.as_path())); + (prepare && current.is_none(), current.map_or(0, |f| f.used())) + }; + let file = open.then(|| std::fs::create_dir_all(&dir).and_then(|()| ScratchFile::create(&dir))); + let space = free_space(&dir); + // Forget it first: a caller that joined it can rely on the answer, and a later caller asks anew. + QUERIES.lock().unwrap_or_else(PoisonError::into_inner).retain(|q| !Arc::ptr_eq(&q.done, &done)); + M.settle(&dir, prepare, file, used, space, &done); + QUERY_THREADS.fetch_sub(1, Ordering::AcqRel); +} + +/// Whether a query about `dir` is past its wait without an answer. +fn query_overdue(dir: Option<&Path>) -> bool { + let Some(dir) = dir else { return false }; + let now = Instant::now(); + let queries = QUERIES.lock().unwrap_or_else(PoisonError::into_inner); + queries.iter().any(|q| q.dir.as_path() == dir && now >= q.deadline) +} + +/// Scratch files on their way out, oldest first. +struct Retired { + files: VecDeque<(Arc, Arc)>, + /// Closer threads alive. + closers: usize, +} + +/// Most closer threads at once: enough that one close stuck on a dead mount doesn't hold up the +/// files behind it, few enough that stuck closes can't pile up threads. +const MAX_CLOSERS: usize = 4; + +static RETIRED: Mutex = Mutex::new(Retired { files: VecDeque::new(), closers: 0 }); + +/// Let go of a scratch file off this thread: the last reference closes it, which can flush to its +/// folder, and a dead mount blocks that, while leaving a dead folder is how a user recovers. The +/// returned handle finishes when this reference is gone. +fn retire(file: Arc) -> Arc { + let done = Arc::new(QueryDone::default()); + let mut retired = RETIRED.lock().unwrap_or_else(PoisonError::into_inner); + retired.files.push_back((file, done.clone())); + // If no thread can start, the file waits in the queue for the next one rather than closing here. + if retired.closers < MAX_CLOSERS && std::thread::Builder::new().name("pc-scratch-close".into()).spawn(close_retired).is_ok() { + retired.closers += 1; + } + done +} + +fn close_retired() { + loop { + let next = { + let mut retired = RETIRED.lock().unwrap_or_else(PoisonError::into_inner); + let next = retired.files.pop_front(); + if next.is_none() { + retired.closers = retired.closers.saturating_sub(1); + } + next + }; + let Some((file, done)) = next else { return }; + drop(file); + done.finish(); + } +} + fn no_room(dir: &Path, cap: Option) -> String { match cap { Some(cap) => format!("scratch disk {} reached its size limit ({} MB) or is low on free space", dir.display(), cap >> 20), @@ -503,16 +735,97 @@ fn no_room(dir: &Path, cap: Option) -> String { } } -/// (available, total) bytes of the volume holding `dir`: the mount point that is its longest -/// prefix. `None` if unknown, which disables only the free-space check, not spilling. -#[cfg(not(target_arch = "wasm32"))] +/// (available, total) bytes of the volume holding `dir`, asked of the directory itself so that a +/// network folder or any other mount reports its own numbers: `GetDiskFreeSpaceEx` on Windows, +/// `statvfs` on Unix. Available is what the current user can write (per-user quotas on Windows, the +/// root reserve on Unix). `None` if the system can't say (the query failed, or it reports a total +/// of zero, as some FUSE and WebDAV mounts do), which disables only the free-space check, not +/// spilling; [`free_space_unmeasured`] tells the user. +#[cfg(any(unix, windows))] fn free_space(dir: &Path) -> Option<(u64, u64)> { let dir = std::fs::canonicalize(dir).ok()?; - let disks = sysinfo::Disks::new_with_refreshed_list_specifics(sysinfo::DiskRefreshKind::nothing().with_storage()).ok()?; - disks.iter().filter(|d| dir.starts_with(d.mount_point())).max_by_key(|d| d.mount_point().as_os_str().len()).map(|d| (d.available_space(), d.total_space())) + let (available, total) = volume_space(&dir)?; + known_space(with_purgeable_space(&dir, available, total), total) } -#[cfg(target_arch = "wasm32")] +/// A zero total means the system could not say (a failed query, or a mount that reports no +/// capacity); treating that as an empty disk would pause spilling, so it counts as unknown. +#[cfg(any(unix, windows))] +fn known_space(available: u64, total: u64) -> Option<(u64, u64)> { + (total != 0).then_some((available, total)) +} + +/// (available, total) bytes of the volume holding `dir`, from `statvfs`. +#[cfg(unix)] +fn volume_space(dir: &Path) -> Option<(u64, u64)> { + let vfs = rustix::io::retry_on_intr(|| rustix::fs::statvfs(dir)).ok()?; + Some((vfs.f_bavail.saturating_mul(vfs.f_frsize), vfs.f_blocks.saturating_mul(vfs.f_frsize))) +} + +/// (available, total) bytes of the volume holding `dir`, from `GetDiskFreeSpaceEx`. `dir` is +/// canonical, so verbatim (`\\?\C:\x`, `\\?\UNC\server\share\x`), which also reaches paths past +/// MAX_PATH and keeps trailing dots significant; winsafe takes `&str`, so a non-UTF-8 folder name +/// uses its nearest UTF-8 ancestor (the same volume unless a mount point has such a name). +#[cfg(windows)] +fn volume_space(dir: &Path) -> Option<(u64, u64)> { + disk_free_space(dir.ancestors().find_map(Path::to_str)?) +} + +#[cfg(windows)] +fn disk_free_space(dir: &str) -> Option<(u64, u64)> { + // GetDiskFreeSpaceEx requires the trailing backslash on UNC paths. + let arg = if dir.ends_with('\\') { dir.to_string() } else { format!("{dir}\\") }; + let (mut available, mut total) = (0, 0); + winsafe::GetDiskFreeSpaceEx(Some(&arg), Some(&mut available), Some(&mut total), None).ok()?; + Some((available, total)) +} + +/// `statvfs` doesn't count purgeable space (local snapshots and caches macOS frees on demand) but +/// sysinfo does: when the listed disk with the longest mount point holding `dir` is this volume, +/// use its available figure. A listed disk counts as this volume when the mount point's own +/// `statvfs` gives the same numbers (APFS volumes in one container share them, and firmlinks give +/// `/Users` and `/` different device ids, so ids can't be compared); a change between the two +/// readings just keeps the `statvfs` figure. sysinfo asks every mounted volume for its properties, +/// so an unrelated dead mount must not hold up this measurement: the lookup runs on a helper thread +/// that is waited for at most [`PURGEABLE_WAIT`]. Never fails. +#[cfg(target_os = "macos")] +fn with_purgeable_space(dir: &Path, available: u64, total: u64) -> u64 { + static LISTING: AtomicBool = AtomicBool::new(false); + // A listing already running may be stuck on some mount: don't start another. + if LISTING.swap(true, Ordering::AcqRel) { + return available; + } + let dir = dir.to_path_buf(); + let (tx, rx) = std::sync::mpsc::channel(); + let spawned = std::thread::Builder::new().name("pc-scratch-disks".into()).spawn(move || { + let found: Option = sysinfo::Disks::new_with_refreshed_list_specifics(sysinfo::DiskRefreshKind::nothing().with_storage()).ok().and_then(|disks| { + disks + .iter() + .filter(|d| dir.starts_with(d.mount_point())) + .max_by_key(|d| d.mount_point().as_os_str().len()) + .filter(|d| volume_space(d.mount_point()) == Some((available, total))) + .map(|d| d.available_space()) + }); + LISTING.store(false, Ordering::Release); + let _ = tx.send(found); + }); + if spawned.is_err() { + LISTING.store(false, Ordering::Release); + return available; + } + rx.recv_timeout(PURGEABLE_WAIT).ok().flatten().unwrap_or(available) +} + +/// How long a measurement waits for the mounted-volume listing before using the `statvfs` figure. +#[cfg(target_os = "macos")] +const PURGEABLE_WAIT: Duration = Duration::from_millis(500); + +#[cfg(all(any(unix, windows), not(target_os = "macos")))] +fn with_purgeable_space(_dir: &Path, available: u64, _total: u64) -> u64 { + available +} + +#[cfg(not(any(unix, windows)))] fn free_space(_dir: &Path) -> Option<(u64, u64)> { None } @@ -521,7 +834,11 @@ fn free_space(_dir: &Path) -> Option<(u64, u64)> { fn maybe_evict() { let budget = M.budget.load(Ordering::Relaxed); if budget == 0 { - M.retry(); + // The supervisor retries when there is one; this can be any thread, the UI's too, and a + // retry waits for the folder. + if MAINTENANCE.load(Ordering::Acquire) == 0 { + M.retry(); + } return; } let resident = M.resident.load(Ordering::Relaxed); @@ -591,25 +908,28 @@ pub fn set_size_cap(cap: Option) { return; } c.size_cap = cap; + store_limit(&c); M.next_space_check.store(0, Ordering::Relaxed); - if let Some(p) = &mut c.paused { - p.retry_at = Instant::now(); + if c.paused.is_some() { c.backoff = RETRY_FIRST; + M.retry_now(c); } - drop(c); - M.retry(); } /// Turn the scratch disk on (`dir` and a non-zero `budget_bytes`) or off. Tiles already on disk /// stay readable either way. Changing the directory starts a new scratch file there; the old one /// is deleted once its last tile is freed or changed. A directory that can't be used is kept and /// retried with backoff (spilling stays paused meanwhile); the error is returned and reported. +/// Waits up to 2 s for the folder; a folder that doesn't answer counts as unusable until it does. pub fn configure(dir: Option<&Path>, budget_bytes: usize) -> Result<(), String> { - let mut c = M.config(); let dir = dir.filter(|_| budget_bytes > 0).map(Path::to_path_buf); - if dir != c.dir { - c.file = None; - } + let mut c = M.config(); + let old = if dir != c.dir { + c.room = None; + c.file.take() + } else { + None + }; c.dir = dir.clone(); c.budget = if dir.is_some() { budget_bytes } else { 0 }; c.backoff = RETRY_FIRST; @@ -617,7 +937,22 @@ pub fn configure(dir: Option<&Path>, budget_bytes: usize) -> Result<(), String> c.last_error = None; M.paused.store(false, Ordering::Release); M.next_space_check.store(0, Ordering::Relaxed); - if dir.is_some() && !M.prepare(&mut c) { + drop(c); + let start = Instant::now(); + let closing = old.map(retire); + if let Some(dir) = &dir { + M.prepare(dir); + } + // One wait for the whole change: closing the old file gets what the new folder left over. + if let Some(closing) = closing { + closing.wait_until(start.checked_add(QUERY_WAIT).unwrap_or(start)); + } + let c = M.config(); + if c.dir != dir { + // A newer configure owns the state now. + return Ok(()); + } + if c.paused.is_some() { return Err(c.last_error.clone().unwrap_or_default()); } M.set_active(c.budget); @@ -666,6 +1001,8 @@ pub struct SpillStats { pub paused: bool, /// Scratch file size limit ([`set_size_cap`]); `None` = only the free-space reserve. pub size_cap_bytes: Option, + /// Spilling is on but the scratch directory's volume won't report its free space ([`free_space_unmeasured`]). + pub free_space_unmeasured: bool, } pub fn stats() -> SpillStats { @@ -682,6 +1019,7 @@ pub fn stats() -> SpillStats { last_error: c.last_error.clone(), paused: c.paused.is_some(), size_cap_bytes: c.size_cap, + free_space_unmeasured: enabled() && (M.space_unmeasured.load(Ordering::Relaxed) || query_overdue(c.dir.as_deref())), } } @@ -693,17 +1031,24 @@ pub fn last_error() -> Option { /// Uncompressed tile bytes the scratch disk can still take before it reaches its size limit /// ([`set_size_cap`]) or the volume's free-space reserve, so an import can admit tile pixels /// beyond physical RAM. `None` while spilling is off or paused, and when neither the free space -/// nor a size limit is known (nothing to promise). Tiles are written compressed; this counts -/// them uncompressed, less 1/64 for the allocator's block rounding, so it never over-promises. +/// nor a size limit is known (nothing to promise), which includes a folder that doesn't answer +/// within 2 s. Tiles are written compressed; this counts them uncompressed, less 1/64 for the allocator's block rounding, so it never over-promises. pub fn scratch_capacity() -> Option { if !enabled() || paused() { return None; } - let (dir, used, cap) = { - let c = M.config(); - (c.dir.clone()?, c.file.as_ref().map_or(0, |f| f.used()), c.size_cap) - }; - let room = free_space(&dir).map(|(available, total)| available.saturating_sub(RESERVE_MIN.max(total / 20))); + let dir = M.config().dir.clone()?; + M.measure(&dir); + let c = M.config(); + // A slow query must not describe a directory configured meanwhile, and a sweep can also have + // paused spilling meanwhile. + if c.dir.as_deref() != Some(dir.as_path()) || c.paused.is_some() { + return None; + } + let used = c.file.as_ref().map_or(0, |f| f.used()); + let cap = c.size_cap; + let room = c.room.map(|room| room.saturating_sub(used)); + drop(c); let room = match (room, cap) { (Some(room), Some(cap)) => room.min(cap.saturating_sub(used)), (Some(room), None) => room, @@ -713,6 +1058,21 @@ pub fn scratch_capacity() -> Option { Some(room - room / 64) } +/// Whether spilling is on but the scratch directory's volume won't report its free space, so the +/// reserve doesn't apply and imports earn scratch room only up to a size limit. Two short locks, +/// neither ever held across a query, so it is safe to call every frame. A query past its wait +/// counts as unmeasured even with nobody waiting on it. +pub fn free_space_unmeasured() -> bool { + if !enabled() { + return false; + } + if M.space_unmeasured.load(Ordering::Relaxed) { + return true; + } + let c = M.config(); + query_overdue(c.dir.as_deref()) +} + /// Whether spilling is on (tiles beyond the budget go to disk). pub fn enabled() -> bool { M.budget.load(Ordering::Relaxed) > 0 @@ -762,6 +1122,18 @@ pub fn scratch_handle_for_tests() -> Option { M.config().file.as_ref().and_then(|f| f.duplicate_handle().ok()) } +/// Runs at the start of every folder query, off every lock: tests stall it to simulate a dead mount. +#[doc(hidden)] +pub fn set_query_hook_for_tests(hook: Option) { + *QUERY_HOOK.write().unwrap_or_else(PoisonError::into_inner) = hook; +} + +/// Query threads still alive, so a test can wait until a stalled query has fully settled. +#[doc(hidden)] +pub fn query_threads_for_tests() -> usize { + QUERY_THREADS.load(Ordering::Acquire) +} + /// Evict down to the budget now, on this thread (tests, and before a measurement). pub fn settle() { let budget = M.budget.load(Ordering::Relaxed); @@ -784,6 +1156,210 @@ fn log_error(msg: &str) { mod tests { use super::*; + #[cfg(windows)] + #[test] + fn free_space_keeps_a_trailing_dot_folder() { + let base = std::fs::canonicalize(std::env::temp_dir()).unwrap().join(format!("photocraft-dot-{}", std::process::id())); + let dir = base.join("x."); + if std::fs::create_dir_all(&dir).is_err() { + let _ = std::fs::remove_dir_all(&base); + return; + } + let space = free_space(&dir); + let _ = std::fs::remove_dir_all(&base); + assert!(space.is_some()); + } + + // `free_space` returned `None` on Windows before: `canonicalize` gives `\\?\C:\..`, which never + // started with the mount point `C:\`. + #[cfg(windows)] + #[test] + fn free_space_finds_the_temp_volume_on_windows() { + let temp = std::env::temp_dir(); + let (available, total) = free_space(&temp).unwrap(); + assert!(total > 0); + assert!(available <= total); + let mut temp_volume_total = 0; + winsafe::GetDiskFreeSpaceEx(Some(temp.to_str().unwrap()), None, Some(&mut temp_volume_total), None).unwrap(); + assert_eq!(total, temp_volume_total); + } + + // The real redirector path: the administrative share of this machine's system drive. + #[cfg(windows)] + #[test] + fn free_space_reads_a_unc_path() { + let unc = Path::new(r"\\localhost\C$\Windows"); + if std::fs::canonicalize(unc).is_err() { + eprintln!("the administrative share {} isn't reachable; skipping", unc.display()); + return; + } + let (_, unc_total) = free_space(unc).unwrap(); + let (_, local_total) = free_space(Path::new(r"C:\")).unwrap(); + assert_eq!(unc_total, local_total); + } + + #[cfg(windows)] + #[test] + fn free_space_reads_a_folder_past_max_path() { + let base = std::fs::canonicalize(std::env::temp_dir()).unwrap().join(format!("photocraft-long-{}", std::process::id())); + let mut deep = base.clone(); + while deep.as_os_str().len() <= 300 { + deep.push("a".repeat(40)); + } + if std::fs::create_dir_all(&deep).is_err() { + let _ = std::fs::remove_dir_all(&base); + return; + } + let space = free_space(&deep); + let _ = std::fs::remove_dir_all(&base); + assert!(space.is_some()); + } + + #[cfg(windows)] + #[test] + fn free_space_reads_a_non_utf8_folder() { + use std::os::windows::ffi::OsStringExt; + let mut wide: Vec = format!("photocraft-nonutf8-{}-", std::process::id()).encode_utf16().collect(); + wide.push(0xD800); + let dir = std::env::temp_dir().join(std::ffi::OsString::from_wide(&wide)); + if std::fs::create_dir_all(&dir).is_err() { + return; + } + let space = free_space(&dir); + let _ = std::fs::remove_dir_all(&dir); + assert!(space.is_some()); + } + + // `/dev/shm` is tmpfs, which sysinfo never lists: the same situation as an unlisted NFS mount. + // Before the directory itself was asked, it reported the numbers of `/`. + #[cfg(target_os = "linux")] + #[test] + fn free_space_reads_an_unlisted_mount() { + let shm = Path::new("/dev/shm"); + if !shm.is_dir() { + return; + } + let (available, total) = free_space(shm).unwrap(); + assert!(available <= total); + // An independent oracle: `df` asks the same mount for its size. + let Ok(out) = std::process::Command::new("df").args(["-B1", "--output=size"]).arg(shm).output() else { + eprintln!("df couldn't be run; skipping the comparison"); + return; + }; + let text = String::from_utf8_lossy(&out.stdout); + let parsed = text.lines().rev().map(str::trim).find(|l| !l.is_empty()).and_then(|l| l.parse::().ok()); + let Some(parsed) = parsed.filter(|_| out.status.success()) else { + eprintln!("df gave no size for {}; skipping the comparison", shm.display()); + return; + }; + assert_eq!(total, parsed); + } + + #[cfg(target_os = "macos")] + #[test] + fn free_space_reads_the_temp_volume_on_macos() { + let temp = std::fs::canonicalize(std::env::temp_dir()).unwrap(); + assert_eq!(free_space(&temp).unwrap().1, volume_space(&temp).unwrap().1); + } + + #[cfg(target_os = "macos")] + #[test] + fn free_space_reads_an_unlisted_mount_on_macos() { + // `/dev` is devfs; a zero total counts as unknown, so compare only when it is known. + if let Some((_, total)) = free_space(Path::new("/dev")) { + assert_ne!(total, free_space(Path::new("/")).unwrap().1); + } + } + + #[cfg(any(unix, windows))] + #[test] + fn free_space_of_a_missing_directory_is_unknown() { + let missing = std::env::temp_dir().join(format!("photocraft-missing-{}", std::process::id())); + assert_eq!(free_space(&missing), None); + } + + #[cfg(any(unix, windows))] + #[test] + fn a_volume_with_no_total_is_unknown() { + assert_eq!(known_space(0, 0), None); + assert_eq!(known_space(5, 0), None); + assert_eq!(known_space(0, 10), Some((0, 10))); + assert_eq!(known_space(5, 10), Some((5, 10))); + } + + static CAPPED_GATE: (Mutex, Condvar) = (Mutex::new(false), Condvar::new()); + + fn hold_capped(dir: &Path) { + if dir.file_name().and_then(|n| n.to_str()).is_some_and(|n| n.starts_with("photocraft-capped-")) { + let mut open = CAPPED_GATE.0.lock().unwrap_or_else(PoisonError::into_inner); + while !*open { + open = CAPPED_GATE.1.wait(open).unwrap_or_else(PoisonError::into_inner); + } + } + } + + #[test] + fn query_threads_stay_capped_and_single_flight() { + set_query_hook_for_tests(Some(hold_capped)); + let base = std::env::temp_dir().join(format!("photocraft-capped-{}", std::process::id())); + let first = start_query(&base, false).unwrap(); + let again = start_query(&base, false).unwrap(); + assert!(Arc::ptr_eq(&first.0, &again.0) && first.1 == again.1, "the same question must not start a second thread"); + let mut started = 1; + for i in 0..2 * MAX_QUERIES { + if start_query(&base.join(format!("photocraft-capped-{i}")), false).is_some() { + started += 1; + } + } + assert_eq!(started, MAX_QUERIES); + // Exercise the real growth path while every query slot is occupied. A separate manager + // keeps this check independent of other tests' process-wide scratch configuration. + let file = ScratchFile::create(&base).unwrap(); + let manager = Manager { + failed: AtomicUsize::new(0), + read_errors: AtomicU64::new(0), + resident: AtomicUsize::new(0), + live: AtomicUsize::new(0), + budget: AtomicUsize::new(1), + paused: AtomicBool::new(false), + epoch: AtomicU64::new(0), + space_limit: AtomicU64::new(u64::MAX), + next_space_check: AtomicU64::new(0), + recovering: AtomicBool::new(false), + space_unmeasured: AtomicBool::new(false), + registry: Mutex::new(Registry { cells: Vec::new(), hand: 0 }), + config: Mutex::new(Config { + dir: Some(base.join("growth")), + file: None, + last_error: None, + budget: 1, + paused: None, + backoff: RETRY_FIRST, + size_cap: None, + room: None, + }), + evictions: AtomicU64::new(0), + reloads: AtomicU64::new(0), + written: AtomicU64::new(0), + }; + let allowed = manager.has_room(&file); + let next_check = manager.next_space_check.load(Ordering::Relaxed); + let unmeasured = manager.space_unmeasured.load(Ordering::Relaxed); + *CAPPED_GATE.0.lock().unwrap_or_else(PoisonError::into_inner) = true; + CAPPED_GATE.1.notify_all(); + let start = Instant::now(); + while query_threads_for_tests() != 0 { + assert!(start.elapsed() < Duration::from_secs(30), "queries never finished"); + std::thread::sleep(Duration::from_millis(10)); + } + set_query_hook_for_tests(None); + assert!(allowed, "the last measured growth limit still applies"); + assert_eq!(next_check, 0, "a rejected growth query must stay due"); + assert!(unmeasured, "a rejected growth query must not report the old measurement as current"); + drop(file); + let _ = std::fs::remove_dir_all(&base); + } + #[test] fn failed_read_retains_backing_and_blocks_commit_until_repaired() { let dir = std::env::temp_dir().join(format!("photocraft-read-failure-{}", std::process::id())); diff --git a/crates/raster/src/tests.rs b/crates/raster/src/tests.rs index 2910a5cdd8..cae726b152 100644 --- a/crates/raster/src/tests.rs +++ b/crates/raster/src/tests.rs @@ -448,6 +448,27 @@ fn content_bounds_and_prune() { assert_eq!(s.content_bounds(), Rect::new(300, 10, 310, 20)); } +#[test] +fn prune_in_batches_drops_what_prune_drops() { + let mut whole = Surface::new(PixelFormat::RGBA8); + whole.fill_rect(Rect::new(300, 10, 310, 20), &[1.0, 1.0, 1.0, 1.0]); + whole.write_pixel(-5, -5, &[0.0, 0.0, 0.0, 1.0]); + whole.write_pixel(-5, -5, &[0.0, 0.0, 0.0, 0.0]); + whole.fill_rect(Rect::new(600, 600, 610, 610), &[1.0, 0.0, 0.0, 1.0]); + let mut stepped = whole.clone(); + whole.prune(); + let mut cursor = stepped.prune_cursor(); + let mut calls = 0; + while !stepped.prune_batch(&mut cursor, 1) { + calls += 1; + assert!(calls < 100, "the prune scan never finished"); + } + assert!(calls >= 2, "one tile per call visits every tile over several calls"); + assert_eq!(stepped.tile_count(), whole.tile_count()); + assert_eq!(stepped.content_bounds(), whole.content_bounds()); + assert_eq!(stepped.to_interleaved(whole.content_bounds()), whole.to_interleaved(whole.content_bounds())); +} + #[test] fn interleaved_roundtrip_crossing_tiles() { let r = Rect::new(-20, 250, 280, 262); @@ -676,6 +697,66 @@ fn translated_matches_reading_the_moved_pixels() { let _ = s.translated(i32::MIN + 1, 3, all); } +/// Runs `steps` to the end with `more` always false, counting the calls it took. +fn run_steps(mut steps: TranslateSteps) -> (Surface, usize) { + for calls in 1..=1_000_000 { + if let Some(out) = steps.step(&mut || false) { + return (out, calls); + } + } + panic!("the shift never finished") +} + +/// A shift in pieces gives the surface of the one-shot shift, bit for bit, at every depth and +/// offset (whole tiles, off the grid, negative), over a non-zero default pixel, solid fills and +/// sparse tiles. +#[test] +fn translate_steps_equal_translated() { + for fmt in [PixelFormat::RGBA8, PixelFormat::RGBA16, PixelFormat::RGBA32F, PixelFormat::GRAY8] { + let mut s = Surface::with_default(fmt, &vec![0.25; fmt.channels()]); + let r = Rect::new(-37, 200, 530, 300); + let v: Vec = (0..r.width() * r.height() * fmt.channels() as u32).map(|i| (i % 251) as f32 / 250.0).collect(); + s.write_region(r, &v); + s.fill_rect(Rect::new(600, -300, 1700, 900), &vec![0.75; fmt.channels()]); + s.write_pixel(3000, 5, &vec![0.5; fmt.channels()]); + for (dx, dy) in [(0, 0), (256, -512), (1, 0), (-3, 7), (300, -257), (-1000, 999), (10, 7)] { + let content = s.content_bounds(); + let (got, _) = run_steps(TranslateSteps::new(s.clone(), dx, dy, content)); + assert!(got == s.translated(dx, dy, content), "{fmt:?} by ({dx}, {dy})"); + } + } +} + +/// Each call of a shift in pieces builds at most one tile, so a large shift takes as many calls +/// as it has source and target tiles, and none of them rebuilds everything. +#[test] +fn translate_steps_do_one_tile_per_call() { + let mut s = Surface::new(PixelFormat::RGBA8); + s.fill_rect(Rect::new(0, 0, 3 * TILE_SIZE, 2 * TILE_SIZE), &[0.1, 0.2, 0.3, 1.0]); + s.write_pixel(5, 5, &[1.0, 0.0, 0.0, 1.0]); + let content = s.content_bounds(); + let sources = s.tiles().count(); + let targets = s.translated(7, 3, content).tiles().count(); + let (got, calls) = run_steps(TranslateSteps::new(s.clone(), 7, 3, content)); + assert!(got == s.translated(7, 3, content)); + // One call per source tile scanned, one to start building, one per target tile built (a few + // of them hold only the default pixel and are not kept) and one that hands the result over. + assert!(calls >= sources + targets + 2, "{calls} calls for {sources} sources and {targets} targets"); + assert!(calls <= sources + targets + 2 + 8, "{calls} calls for {sources} sources and {targets} targets"); + // Asked to go on, a call does more than one unit. + let mut steps = TranslateSteps::new(s.clone(), 7, 3, content); + let mut left = 4; + assert!( + steps + .step(&mut || { + left -= 1; + left > 0 + }) + .is_none() + ); + assert!(steps.progress() > 0.0 && steps.progress() < 1.0); +} + /// Many references to one payload, moved off the tile grid: the rebuilt tiles that read the /// same source tiles at the same offset are one tile, not a copy each. #[test] diff --git a/crates/raster/tests/scratch_capacity.rs b/crates/raster/tests/scratch_capacity.rs index 33698e7d15..f6f0733ad5 100644 --- a/crates/raster/tests/scratch_capacity.rs +++ b/crates/raster/tests/scratch_capacity.rs @@ -4,6 +4,25 @@ use photocraft_raster::spill; +/// The room, once no query is outstanding. A query that outlives its 2 s wait on a slow machine +/// counts as no answer, and its late answer would change the status between two reads, so ask again +/// until the room and the status describe the same answer. +fn answered_capacity() -> Option { + let mut room = None; + let started = std::time::Instant::now(); + for _ in 0..10 { + room = spill::scratch_capacity(); + while spill::query_threads_for_tests() != 0 { + assert!(started.elapsed() < std::time::Duration::from_secs(30), "scratch capacity query did not finish within 30 seconds: {:?}", spill::stats()); + std::thread::sleep(std::time::Duration::from_millis(10)); + } + if room.is_none() == spill::free_space_unmeasured() { + break; + } + } + room +} + #[test] fn scratch_capacity_follows_spilling_the_size_limit_and_pauses() { let root = std::env::temp_dir().join(format!("photocraft-scratch-capacity-{}", std::process::id())); @@ -15,11 +34,31 @@ fn scratch_capacity_follows_spilling_the_size_limit_and_pauses() { spill::configure(Some(&dir), 1 << 20).unwrap(); assert!(spill::enabled() && !spill::paused()); + // With no size limit, the flag says exactly when the capacity is unknown. + let unknown = answered_capacity().is_none(); + assert_eq!(spill::free_space_unmeasured(), unknown); // The free-space reserve applies; an unknown volume without a size limit promises nothing. if let Some(room) = spill::scratch_capacity() { assert!(room < u64::MAX / 2, "the reserve and margin are applied: {room}"); } + let measurable = answered_capacity().is_some(); + + // A folder that stops answering is flagged and clears once it answers again. Windows keeps the + // open scratch file's folder, so this part needs a folder that can be removed. + if std::fs::remove_dir_all(&dir).is_ok() { + assert_eq!(spill::scratch_capacity(), None); + assert!(spill::free_space_unmeasured()); + assert!(spill::stats().free_space_unmeasured); + std::fs::create_dir_all(&dir).unwrap(); + let unknown = answered_capacity().is_none(); + assert_eq!(spill::free_space_unmeasured(), unknown); + assert_eq!(spill::stats().free_space_unmeasured, unknown); + if measurable { + assert!(!unknown, "the folder answers again: its room must be known again"); + } + } + // The Scratch Size Limit bounds it, less the 1/64 margin, whatever the volume has free. let cap = 64u64 << 20; spill::set_size_cap(Some(cap)); @@ -36,5 +75,6 @@ fn scratch_capacity_follows_spilling_the_size_limit_and_pauses() { spill::set_size_cap(None); spill::configure(None, 0).unwrap(); assert_eq!(spill::scratch_capacity(), None); + assert!(!spill::free_space_unmeasured()); let _ = std::fs::remove_dir_all(&root); } diff --git a/crates/raster/tests/scratch_slow_folder.rs b/crates/raster/tests/scratch_slow_folder.rs new file mode 100644 index 0000000000..6d7350575e --- /dev/null +++ b/crates/raster/tests/scratch_slow_folder.rs @@ -0,0 +1,208 @@ +//! A scratch folder that stops answering (a dead hard-mounted network share) must not freeze +//! anything: status reads stay prompt, opening and measuring wait a bounded time, retries do not +//! pile up threads, leaving the folder works, and a late answer applies only to the folder it +//! was about. +//! +//! One test function: the spill manager is process-wide, so its steps must not interleave. + +use std::path::Path; +use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering}; +use std::sync::{Condvar, Mutex}; +use std::time::{Duration, Instant}; + +use photocraft_color::{ColorMode, PixelFormat, SampleType}; +use photocraft_geom::{Rect, TILE_SIZE}; +use photocraft_raster::{Surface, spill}; + +const TILE_BYTES: usize = (TILE_SIZE * TILE_SIZE) as usize * 4; + +/// Folders whose name starts with "hung" stall their queries while this is on. +static STALL: AtomicBool = AtomicBool::new(false); +/// Queries that reached the stall since the last reset. +static ENTERED: AtomicUsize = AtomicUsize::new(0); +/// `true` once the stalled queries may go on. +static GATE: (Mutex, Condvar) = (Mutex::new(false), Condvar::new()); + +fn stall(dir: &Path) { + let hung = dir.file_name().and_then(|n| n.to_str()).is_some_and(|n| n.starts_with("hung")); + if !STALL.load(Ordering::SeqCst) || !hung { + return; + } + ENTERED.fetch_add(1, Ordering::SeqCst); + let mut open = GATE.0.lock().unwrap(); + while !*open { + open = GATE.1.wait(open).unwrap(); + } +} + +fn arm() { + ENTERED.store(0, Ordering::SeqCst); + *GATE.0.lock().unwrap() = false; + STALL.store(true, Ordering::SeqCst); +} + +fn release() { + STALL.store(false, Ordering::SeqCst); + *GATE.0.lock().unwrap() = true; + GATE.1.notify_all(); +} + +fn poll_until(what: &str, cond: impl Fn() -> bool) { + let start = Instant::now(); + while !cond() { + assert!(start.elapsed() < Duration::from_secs(30), "timed out waiting for {what}: {:?}", spill::stats()); + std::thread::sleep(Duration::from_millis(10)); + } +} + +/// Run `f` and require that it returns well before a query's wait. +fn prompt(what: &str, f: impl FnOnce() -> T) -> T { + let start = Instant::now(); + let out = f(); + assert!(start.elapsed() < Duration::from_millis(1500), "{what} took {:?}", start.elapsed()); + out +} + +/// A query's 2 s wait plus a scheduling allowance. +const QUERY_DEADLINE: Duration = Duration::from_secs(6); + +/// Run `f` and require that it returns within [`QUERY_DEADLINE`]. +fn bounded(what: &str, f: impl FnOnce() -> T) -> T { + let start = Instant::now(); + let out = f(); + assert!(start.elapsed() < QUERY_DEADLINE, "{what} took {:?}", start.elapsed()); + out +} + +fn rgba8() -> PixelFormat { + PixelFormat { mode: ColorMode::Rgb, sample: SampleType::U8, alpha: true } +} + +/// Incompressible bytes, different per seed. +fn noise(seed: u32, len: usize) -> Vec { + let mut x = seed.wrapping_mul(2_654_435_761).max(1); + (0..len) + .map(|_| { + x ^= x << 13; + x ^= x >> 17; + x ^= x << 5; + x as u8 + }) + .collect() +} + +fn surface(seed: u32, n: i32) -> Surface { + let mut s = Surface::new(rgba8()); + for i in 0..n { + let r = Rect::from_xywh(i * TILE_SIZE, 0, TILE_SIZE as u32, TILE_SIZE as u32); + s.write_interleaved(r, &noise(seed + i as u32, TILE_BYTES)); + } + s +} + +#[test] +fn a_folder_that_stops_answering_never_freezes_the_app() { + let root = std::env::temp_dir().join(format!("photocraft-scratch-slow-{}", std::process::id())); + let good = root.join("good"); + let good2 = root.join("good2"); + let hung1 = root.join("hung1"); + let hung2 = root.join("hung2"); + let hung3 = root.join("hung3"); + spill::set_query_hook_for_tests(Some(stall)); + + // A. A healthy folder. + spill::configure(Some(&good), 1 << 20).unwrap(); + assert!(spill::enabled() && !spill::paused()); + let measurable = spill::scratch_capacity().is_some(); + + // B. Configuring a folder that never answers: status reads stay prompt meanwhile (they + // blocked on the config lock before), and configure gives up after its wait. + arm(); + let began = Instant::now(); + let configuring = { + let hung1 = hung1.clone(); + std::thread::spawn(move || spill::configure(Some(&hung1), 1 << 20)) + }; + poll_until("the first query to start", || ENTERED.load(Ordering::SeqCst) == 1); + prompt("last_error", spill::last_error); + prompt("check_integrity", spill::check_integrity).ok(); + prompt("stats", spill::stats); + prompt("free_space_unmeasured", spill::free_space_unmeasured); + prompt("paused", spill::paused); + let result = configuring.join().unwrap(); + assert!(began.elapsed() < QUERY_DEADLINE, "configure of a hung folder took {:?}", began.elapsed()); + assert!(result.as_ref().err().is_some_and(|e| e.contains("not responding")), "{result:?}"); + assert!(spill::paused() && !spill::enabled()); + assert_eq!(spill::stats().dir.as_deref(), Some(hung1.as_path())); + + // C. Retries neither wait nor start more threads: the question is already being asked. + for _ in 0..5 { + spill::retry_now_for_tests(); + prompt("maintain_budget", spill::maintain_budget); + } + assert_eq!(ENTERED.load(Ordering::SeqCst), 1, "a retry started a second query"); + assert!(spill::paused()); + + // D. Leaving the dead folder works while its query is stuck. + prompt("configure away from a hung folder", || spill::configure(Some(&good2), 1 << 20)).unwrap(); + assert!(spill::enabled() && !spill::paused()); + + // E. The stuck query's late answer is about a folder that is no longer current: discarded. + release(); + poll_until("the stuck query to settle", || spill::query_threads_for_tests() == 0); + let st = spill::stats(); + assert_eq!(st.dir.as_deref(), Some(good2.as_path()), "{st:?}"); + assert!(spill::enabled() && !spill::paused() && st.last_error.is_none(), "{st:?}"); + + // F. A late answer for the current folder applies: spilling resumes by itself. + arm(); + let result = bounded("configure of a second hung folder", || spill::configure(Some(&hung2), 1 << 20)); + assert!(result.is_err()); + assert!(spill::paused()); + release(); + poll_until("the late answer to resume spilling", || spill::enabled() && !spill::paused() && spill::last_error().is_none()); + assert_eq!(spill::stats().dir.as_deref(), Some(hung2.as_path())); + + // G. The open folder stops answering when measured: no answer counts as unknown, spilling + // goes on, and asking again costs nothing. + spill::configure(Some(&hung3), 1 << 20).unwrap(); + arm(); + assert_eq!(bounded("scratch_capacity", spill::scratch_capacity), None); + assert!(spill::free_space_unmeasured()); + assert!(spill::stats().free_space_unmeasured); + assert!(spill::enabled() && !spill::paused()); + for _ in 0..5 { + assert_eq!(prompt("scratch_capacity", spill::scratch_capacity), None); + } + assert_eq!(ENTERED.load(Ordering::SeqCst), 1, "asking again started a second query"); + release(); + if measurable { + poll_until("the late answer to measure the volume", || !spill::free_space_unmeasured()); + } + + poll_until("the previous query to finish", || spill::query_threads_for_tests() == 0); + + // H. The growth check never stalls eviction: tiles still spill while it is unanswered. + spill::set_budget(8 * TILE_BYTES); + arm(); + spill::set_size_cap(Some(1 << 50)); + let trigger_tiles = surface(1, 32); + poll_until("the growth query to reach the stall", || ENTERED.load(Ordering::SeqCst) >= 1); + let evictions = spill::stats().evictions; + let tiles = surface(33, 32); + prompt("settle", spill::settle); + assert!(spill::stats().evictions > evictions, "{:?}", spill::stats()); + poll_until("the unanswered growth check to count as unknown", spill::free_space_unmeasured); + release(); + if measurable { + poll_until("the growth check to be answered", || !spill::free_space_unmeasured()); + } + spill::set_size_cap(None); + + // Cleanup. + spill::set_query_hook_for_tests(None); + drop(tiles); + drop(trigger_tiles); + spill::configure(None, 0).unwrap(); + let _ = std::fs::remove_dir_all(&root); +} diff --git a/crates/tablet/Cargo.toml b/crates/tablet/Cargo.toml index e14e4a5ae0..cc68771f61 100644 --- a/crates/tablet/Cargo.toml +++ b/crates/tablet/Cargo.toml @@ -3,7 +3,7 @@ name = "photocraft-tablet" version.workspace = true edition.workspace = true license.workspace = true -description = "Pen tablet pressure, tilt, rotation and eraser end on macOS (AppKit) and Linux X11 (XInput2), and barrel button on Windows" +description = "Pen tablet pressure, tilt, rotation and eraser end on macOS (AppKit), Linux X11 (XInput2) and Windows (WinTab), and barrel button on Windows" # The one isolated `unsafe` helper crate (see AGENTS.md, Never crash): the AppKit event # monitor on macOS and the WH_GETMESSAGE pointer hook on Windows need platform interop. Only @@ -31,6 +31,15 @@ objc2-app-kit = { version = "=0.3.2", default-features = false, features = ["std [target.'cfg(target_os = "linux")'.dependencies] x11rb = { version = "=0.13.2", default-features = false, features = ["xinput"] } +# WinTab 1.4: a system context on PhotoCraft's real window supplies pressure, tilt, rotation and +# the eraser end while Windows Ink is disabled. `wintab` safely wraps the vendor's wintab32.dll, +# loaded at run time; only the Windows target builds it. `windows` is pinned to the version +# `wintab` uses. +[target.'cfg(target_os = "windows")'.dependencies] +log = { workspace = true } +wintab = "=0.1.1" +windows = { version = "=0.62.2", features = ["Win32_Foundation"] } + # Tests build real tablet NSEvents (from CGEvents) and read them through the monitor's path. [target.'cfg(target_os = "macos")'.dev-dependencies] objc2-app-kit = { version = "=0.3.2", default-features = false, features = ["std", "block2", "NSEvent", "NSGraphicsContext", "objc2-core-graphics", "NSApplication", "NSResponder"] } diff --git a/crates/tablet/src/lib.rs b/crates/tablet/src/lib.rs index 41b48f9966..ca158a9137 100644 --- a/crates/tablet/src/lib.rs +++ b/crates/tablet/src/lib.rs @@ -8,6 +8,9 @@ //! - **Windows** ([`windows::Monitor`]): a thread-local message hook inspects `WM_POINTER*` //! messages on the UI thread's message queue to read `PEN_FLAG_BARREL` (`GetPointerPenInfo`), //! which winit 0.30 drops by mapping pen inputs to touch events. +//! - **Windows WinTab** ([`wintab`]): with Windows Ink disabled for the tablet, a WinTab 1.4 +//! system context on PhotoCraft's window supplies pressure, tilt, rotation and the eraser end. +//! The vendor driver still moves the cursor; [`wintab::poll`] is called once per frame. //! AppKit's monitor API and Windows' thread hook need OS interop, so `macos.rs` and `windows.rs` //! allow `unsafe` (an isolated, tested helper crate with `SAFETY:` //! comments on every block). @@ -37,6 +40,8 @@ pub mod xi; pub mod macos; #[cfg(target_os = "windows")] pub mod windows; +#[cfg(target_os = "windows")] +pub mod wintab; #[cfg(target_os = "linux")] pub mod x11; diff --git a/crates/tablet/src/windows.rs b/crates/tablet/src/windows.rs index eb5b2b28c2..c8426fefa5 100644 --- a/crates/tablet/src/windows.rs +++ b/crates/tablet/src/windows.rs @@ -102,6 +102,9 @@ unsafe extern "system" fn get_msg_proc(code: i32, w_param: usize, l_param: isize // SAFETY: Win32 guarantees that for code >= 0, l_param points to a valid MSG struct // dispatched to this thread's message queue. let msg = unsafe { &*(l_param as *const MSG) }; + // The WinTab backend shares this thread hook: it decodes the driver's proximity + // messages (and ignores everything else) to clear a pen that left the tablet. + crate::wintab::on_message(msg.message, msg.w_param, msg.l_param); match msg.message { WM_POINTERDOWN | WM_POINTERUPDATE => { let pointer_id = (msg.w_param & 0xFFFF) as u32; diff --git a/crates/tablet/src/wintab.rs b/crates/tablet/src/wintab.rs new file mode 100644 index 0000000000..3193ae24f1 --- /dev/null +++ b/crates/tablet/src/wintab.rs @@ -0,0 +1,334 @@ +//! WinTab 1.4 backend for Windows. +//! +//! The app opens a WinTab context on its real top-level window and polls queued packets once per +//! frame. This module only translates Wintab packets into [`Sample`]s; it does not synthesise +//! pointer events. With Windows Ink disabled for the tablet, the vendor driver provides the +//! mouse cursor while this module provides pressure, tilt, rotation and the eraser flag. +//! +//! Devices without orientation axes (pressure-only tablets) are opened with a packet that asks +//! only for the fields the driver reports; their tilt is neutral rather than a made-up value. +//! +//! The context is thread-local because Wintab contexts belong to the thread and window that +//! opened them. [`install`] and [`poll`] must therefore run on the UI thread. + +use std::cell::RefCell; +use std::ffi::c_void; +use std::time::{Duration, Instant}; + +use windows::Win32::Foundation::{HWND, LPARAM, WPARAM}; + +use crate::{Error, Sample}; + +wintab::packet! { + struct PenPacket { status, buttons, x, y, normal_pressure, orientation } +} + +wintab::packet! { + struct PressurePacket { status, buttons, x, y, normal_pressure } +} + +/// The open context. A device that reports orientation gets tilt and rotation; a pressure-only +/// device gets a packet without the orientation field, so a zeroed field never becomes a tilt. +enum Backend { + Oriented { context: wintab::Context, axes: [wintab::Axis; 3] }, + PressureOnly { context: wintab::Context }, +} + +struct State { + backend: Backend, + pressure_axis: wintab::Axis, + last_packet: Instant, + emitted: bool, + focused: bool, + /// The pen is inside the tablet's sensing range (`WT_PROXIMITY`, hardware transitions). + proximity_in: bool, + /// Requests a frame when a WinTab message arrives, so pressure-only strokes update without + /// cursor movement. + wake: Box, +} + +thread_local! { + static STATE: RefCell> = const { RefCell::new(None) }; +} + +/// Opens a WinTab system context on `hwnd`. +/// +/// Call on the UI thread. A previous context on this thread is replaced, so the caller keeps the +/// app's normal single-window lifetime. The context is polled with [`poll`]. `wake` is called from +/// the thread's message hook for every WinTab message: a frame is then requested even when the +/// pen only changes pressure (no cursor movement, no other input event). +pub fn install(hwnd: isize, wake: Box) -> Result<(), Error> { + if hwnd == 0 { + return Err(Error::Unsupported("no window handle".into())); + } + let wintab = wintab::Wintab::load().map_err(|e| Error::Platform(e.to_string()))?; + let device = wintab.device(0).ok_or_else(|| Error::Unsupported("no Wintab digitizer".into()))?; + let pressure_axis = device.pressure.ok_or_else(|| Error::Unsupported("Wintab device has no pressure axis".into()))?; + let hwnd = HWND(hwnd as *mut c_void); + let options = wintab::ContextOptions::new().system(true).name("PhotoCraft WinTab"); + // Ask only for the fields the device reports: a pressure-only tablet never fills + // orientation, and reading a zeroed orientation would invent a maximum tilt. + let backend = match device.orientation { + Some(axes) => { + let context = wintab.open::(hwnd, &options).map_err(|e| Error::Platform(e.to_string()))?; + if let Err(error) = context.overlap(true) { + log::warn!("WinTab: could not take overlap priority: {error}"); + } + Backend::Oriented { context, axes } + } + None => { + let context = wintab.open::(hwnd, &options).map_err(|e| Error::Platform(e.to_string()))?; + if let Err(error) = context.overlap(true) { + log::warn!("WinTab: could not take overlap priority: {error}"); + } + Backend::PressureOnly { context } + } + }; + STATE.with_borrow_mut(|slot| { + *slot = Some(State { backend, pressure_axis, last_packet: Instant::now(), emitted: false, focused: false, proximity_in: true, wake }); + }); + Ok(()) +} + +/// Drains queued packets and reports the newest sample. +/// +/// Reports `Some` while a pen is in use, `None` once the pen has left the tablet. Leaving is the +/// packet's proximity status, not a quiet period: a pen held still may send no packets for a +/// while, and treating that as left painted a held airbrush build-up at mouse pressure. A long +/// timeout remains only as a fallback for drivers that never report the leave. +/// +/// Coordinates in the packet are not used: with Windows Ink off, the vendor driver moves the +/// normal cursor, and PhotoCraft's existing pointer path supplies the position. +/// +/// `focused` is whether the app's window has focus. Another tablet application can take the top +/// WinTab overlap priority; when PhotoCraft is activated again it has to ask for it back. The +/// window procedure belongs to winit, so focus from the app's input is the activation signal. +pub fn poll(focused: bool, callback: &dyn Fn(Option)) { + STATE.with_borrow_mut(|slot| { + let Some(state) = slot.as_mut() else { return }; + if focused && !state.focused { + let result = match &state.backend { + Backend::Oriented { context, .. } => context.overlap(true), + Backend::PressureOnly { context } => context.overlap(true), + }; + if let Err(error) = result { + log::warn!("WinTab: could not take overlap priority: {error}"); + } + } else if !focused && state.focused { + let result = match &state.backend { + Backend::Oriented { context, .. } => context.overlap(false), + Backend::PressureOnly { context } => context.overlap(false), + }; + if let Err(error) = result { + log::warn!("WinTab: could not release overlap priority: {error}"); + } + } + state.focused = focused; + let State { backend, pressure_axis, last_packet, emitted, proximity_in, .. } = state; + match backend { + Backend::Oriented { context, axes } => { + let mut packets = Vec::new(); + context.drain(&mut packets); + for packet in packets { + if packet.status.out_of_context() { + if *emitted { + *emitted = false; + callback(None); + } + continue; + } + let sample = sample(&packet, pressure_axis, axes); + *last_packet = Instant::now(); + *emitted = true; + callback(Some(sample)); + } + } + Backend::PressureOnly { context } => { + let mut packets = Vec::new(); + context.drain(&mut packets); + for packet in packets { + if packet.status.out_of_context() { + if *emitted { + *emitted = false; + callback(None); + } + continue; + } + let sample = sample_pressure(&packet, pressure_axis); + *last_packet = Instant::now(); + *emitted = true; + callback(Some(sample)); + } + } + } + if !*proximity_in && *emitted { + *emitted = false; + callback(None); + } + if *emitted && last_packet.elapsed() >= Duration::from_secs(60) { + *emitted = false; + callback(None); + } + }); +} + +/// Handles a WinTab window message from the thread's message hook (`windows.rs`). +/// +/// A hardware proximity leave is a `WT_PROXIMITY` message, not a packet status: the context's +/// `TPS_PROXIMITY` status only says the cursor left the context. Clearing the feed here covers +/// drivers that send the hardware leave without a following out-of-context packet. +pub(crate) fn on_message(message: u32, wparam: usize, lparam: isize) { + // This runs inside the Win32 hook, where a panic aborts the app: a driver call under `poll` + // that pumps this thread's messages would find `STATE` borrowed. Such a message is skipped. + let _ = STATE.try_with(|cell| { + let Ok(mut slot) = cell.try_borrow_mut() else { return }; + let Some(state) = slot.as_mut() else { return }; + let decoded = match &state.backend { + Backend::Oriented { context, .. } => context.message(message, WPARAM(wparam), LPARAM(lparam)), + Backend::PressureOnly { context } => context.message(message, WPARAM(wparam), LPARAM(lparam)), + }; + let win_message = decoded.is_some(); + if let Some(wintab::Message::Proximity { entering, hardware }) = decoded + && hardware + { + state.proximity_in = entering; + } + if win_message { + // Packets can arrive with no cursor movement; the frame then polls them. + (state.wake)(); + } + }); +} + +/// Closes the context on this thread. +pub fn uninstall() { + STATE.with_borrow_mut(|slot| *slot = None); +} + +/// One packet from a device with orientation axes as the UI's pen sample. +/// +/// Angles come from the device's own axes (`TU_CIRCLE`), falling back to Wintab's usual tenths +/// of a degree when an axis does not measure angles. +fn sample(packet: &PenPacket, pressure: &wintab::Axis, orientation: &[wintab::Axis; 3]) -> Sample { + let raw = packet.orientation; + let degrees = |index: usize, value: i32| orientation[index].degrees(value).map_or(value as f32 / 10.0, |degrees| degrees as f32); + let azimuth = degrees(0, raw.azimuth).to_radians(); + // Wintab altitude is the angle from the tablet plane (0 = flat, 90 = upright); W3C tilt is + // the angle from the perpendicular, per axis: atan2 of the in-plane projection over height. + // Wintab azimuth 0 points at the tablet's top and grows clockwise, while W3C +x is right and + // +y towards the user, so the in-plane components are (sin(azimuth), -cos(azimuth)). + let elevation = degrees(1, raw.altitude).abs().to_radians(); + let in_plane_x = elevation.cos() * azimuth.sin(); + let in_plane_y = -(elevation.cos() * azimuth.cos()); + let height = elevation.sin(); + Sample { + pressure: pressure.normalize(packet.normal_pressure as i32), + tilt_x: in_plane_x.atan2(height).to_degrees(), + tilt_y: in_plane_y.atan2(height).to_degrees(), + rotation: degrees(2, raw.twist), + eraser: packet.status.inverted(), + } + .sanitized() +} + +/// One packet from a device without orientation axes: pressure and the eraser end, neutral tilt. +fn sample_pressure(packet: &PressurePacket, pressure: &wintab::Axis) -> Sample { + Sample { pressure: pressure.normalize(packet.normal_pressure as i32), tilt_x: 0.0, tilt_y: 0.0, rotation: 0.0, eraser: packet.status.inverted() } + .sanitized() +} + +#[cfg(test)] +mod tests { + use super::*; + use wintab::Units; + + fn pressure_axis() -> wintab::Axis { + wintab::Axis { min: 0, max: 32767, units: Units::None, resolution: 0.0 } + } + + fn angle_axis() -> wintab::Axis { + wintab::Axis { min: 0, max: 3599, units: Units::Circle, resolution: 3600.0 } + } + + fn axes() -> [wintab::Axis; 3] { + [angle_axis(), angle_axis(), angle_axis()] + } + + fn packet(normal_pressure: u32) -> PenPacket { + PenPacket { status: wintab::Status(0), buttons: wintab::Buttons(0), x: 0, y: 0, normal_pressure, orientation: wintab::Orientation::default() } + } + + fn pressure_packet(normal_pressure: u32) -> PressurePacket { + PressurePacket { status: wintab::Status(0), buttons: wintab::Buttons(0), x: 0, y: 0, normal_pressure } + } + + /// Pressure is normalized through the device's own axis. + #[test] + fn pressure_maps_through_the_device_axis() { + let axes = axes(); + let s = sample(&packet(16384), &pressure_axis(), &axes); + assert!((s.pressure - 0.5).abs() < 0.01, "{}", s.pressure); + let s = sample(&packet(0), &pressure_axis(), &axes); + assert_eq!(s.pressure, 0.0); + } + + /// The inverted status bit is the eraser end. + #[test] + fn eraser_comes_from_the_inverted_status() { + let axes = axes(); + let inverted = PenPacket { status: wintab::Status(wintab::sys::TPS_INVERT), ..packet(0) }; + assert!(sample(&inverted, &pressure_axis(), &axes).eraser); + assert!(!sample(&packet(0), &pressure_axis(), &axes).eraser); + } + + /// Orientation axes are converted to degrees for the W3C tilt projection. + #[test] + fn orientation_axes_report_degrees() { + let axes = axes(); + let tilted = PenPacket { orientation: wintab::Orientation { azimuth: 450, altitude: 300, twist: 900 }, ..packet(0) }; + let sample = sample(&tilted, &pressure_axis(), &axes); + assert!((sample.tilt_x - 50.8).abs() < 0.1, "{}", sample.tilt_x); + assert!((sample.tilt_y + 50.8).abs() < 0.1, "{}", sample.tilt_y); + assert!((sample.rotation - 90.0).abs() < 0.1, "{}", sample.rotation); + } + + /// A pressure-only device keeps pressure and the eraser end, with neutral tilt. + #[test] + fn pressure_only_devices_get_pressure_and_neutral_tilt() { + let s = sample_pressure(&pressure_packet(16384), &pressure_axis()); + assert!((s.pressure - 0.5).abs() < 0.01, "{}", s.pressure); + assert_eq!((s.tilt_x, s.tilt_y, s.rotation), (0.0, 0.0, 0.0)); + let inverted = PressurePacket { status: wintab::Status(wintab::sys::TPS_INVERT), ..pressure_packet(0) }; + assert!(sample_pressure(&inverted, &pressure_axis()).eraser); + } + + /// Wintab azimuth 0 is the tablet top; W3C axes are right and toward the user. + #[test] + fn cardinal_azimuths_match_w3c_tilt() { + let axes = axes(); + let tilt = |azimuth: i32| { + let p = PenPacket { orientation: wintab::Orientation { azimuth, altitude: 450, twist: 0 }, ..packet(0) }; + sample(&p, &pressure_axis(), &axes) + }; + let top = tilt(0); + assert!(top.tilt_x.abs() < 0.1 && (top.tilt_y + 45.0).abs() < 0.1, "{top:?}"); + let right = tilt(900); + assert!((right.tilt_x - 45.0).abs() < 0.1 && right.tilt_y.abs() < 0.1, "{right:?}"); + let bottom = tilt(1800); + assert!(bottom.tilt_x.abs() < 0.1 && (bottom.tilt_y - 45.0).abs() < 0.1, "{bottom:?}"); + let left = tilt(2700); + assert!((left.tilt_x + 45.0).abs() < 0.1 && left.tilt_y.abs() < 0.1, "{left:?}"); + } + + /// An upright pen has no tilt; a flat one has the most. + #[test] + fn an_upright_pen_has_no_tilt_and_a_flat_one_has_the_most() { + let axes = axes(); + let upright = PenPacket { orientation: wintab::Orientation { azimuth: 0, altitude: 900, twist: 0 }, ..packet(0) }; + let s = sample(&upright, &pressure_axis(), &axes); + assert!(s.tilt_x.abs() < 0.1 && s.tilt_y.abs() < 0.1, "{s:?}"); + let flat = PenPacket { orientation: wintab::Orientation { azimuth: 0, altitude: 0, twist: 0 }, ..packet(0) }; + let s = sample(&flat, &pressure_axis(), &axes); + assert!(s.tilt_x.abs() < 0.1 && (s.tilt_y + 90.0).abs() < 0.1, "{s:?}"); + } +} diff --git a/crates/text/src/cjk.rs b/crates/text/src/cjk.rs index ab1c7d8992..1fe0f12534 100644 --- a/crates/text/src/cjk.rs +++ b/crates/text/src/cjk.rs @@ -136,18 +136,30 @@ fn os_locale() -> Option { #[cfg(target_os = "windows")] fn os_locale() -> Option { - use std::os::windows::process::CommandExt; - const CREATE_NO_WINDOW: u32 = 0x0800_0000; - let out = std::process::Command::new("reg") - .args(["query", "HKCU\\Control Panel\\International", "/v", "LocaleName"]) - .creation_flags(CREATE_NO_WINDOW) - .output() - .ok()?; + let out = locale_query().output().ok()?; let text = String::from_utf8_lossy(&out.stdout); // " LocaleName REG_SZ ja-JP" text.lines().find(|l| l.contains("LocaleName")).and_then(|l| l.split_whitespace().last()).map(str::to_string) } +/// `reg query` for the UI locale, with `reg.exe` by full path: by bare name, Windows first looks in +/// the app's own folder, so a `reg.exe` lying next to a portable PhotoCraft would start (#9666). +#[cfg(target_os = "windows")] +fn locale_query() -> std::process::Command { + use std::os::windows::process::CommandExt; + const CREATE_NO_WINDOW: u32 = 0x0800_0000; + let mut cmd = std::process::Command::new(windows_root(std::env::var_os("SystemRoot")).join("System32").join("reg.exe")); + cmd.args(["query", "HKCU\\Control Panel\\International", "/v", "LocaleName"]).creation_flags(CREATE_NO_WINDOW); + cmd +} + +/// The Windows folder for the `SystemRoot` value `system_root`: `C:\Windows` when it is unset or +/// not an absolute path (a relative one would resolve against the working directory). +#[cfg(target_os = "windows")] +fn windows_root(system_root: Option) -> std::path::PathBuf { + system_root.map(std::path::PathBuf::from).filter(|p| p.is_absolute()).unwrap_or_else(|| std::path::PathBuf::from(r"C:\Windows")) +} + #[cfg(not(any(target_os = "macos", target_os = "windows")))] fn os_locale() -> Option { None @@ -654,6 +666,30 @@ mod tests { use super::*; use CjkScript::*; + /// `reg.exe` runs from System32, not from wherever a bare name would find one first (#9666), + /// and the query still answers the UI locale. + #[cfg(target_os = "windows")] + #[test] + fn locale_query_runs_the_system_reg() { + let cmd = locale_query(); + let system = windows_root(std::env::var_os("SystemRoot")).join("System32").join("reg.exe"); + assert_eq!(std::path::Path::new(cmd.get_program()), system); + assert!(os_locale().is_some_and(|l| !l.is_empty())); + } + + /// `SystemRoot` unset or relative (which would resolve against the working directory) falls + /// back to `C:\Windows`. + #[cfg(target_os = "windows")] + #[test] + fn the_windows_folder_falls_back_when_system_root_is_unset_or_relative() { + use std::path::PathBuf; + assert_eq!(windows_root(Some(r"D:\WinNT".into())), PathBuf::from(r"D:\WinNT")); + assert_eq!(windows_root(None), PathBuf::from(r"C:\Windows")); + assert_eq!(windows_root(Some(r"Windows".into())), PathBuf::from(r"C:\Windows")); + assert_eq!(windows_root(Some(r"\Windows".into())), PathBuf::from(r"C:\Windows")); + assert_eq!(windows_root(Some("".into())), PathBuf::from(r"C:\Windows")); + } + #[test] fn explicit_locale_scripts_are_distinct_from_the_non_cjk_default() { assert_eq!(locale_script(Some("ja_JP.UTF-8")), Some(Japanese)); diff --git a/crates/ui-egui/Cargo.toml b/crates/ui-egui/Cargo.toml index 26177c5e68..e0111e9ca5 100644 --- a/crates/ui-egui/Cargo.toml +++ b/crates/ui-egui/Cargo.toml @@ -40,6 +40,9 @@ serde_json = { workspace = true } log = { workspace = true } # Display order of right-to-left labels (`bidi_text.rs`); already linked through usvg. unicode-bidi = "0.3" +# Context-sensitive dotted/dotless I mapping for Azerbaijani and Turkish UI text. +icu_casemap = "2.3" +icu_locale_core = "2.3" base64 = "0.23" # Inflating the translation catalogs, stored deflated (build.rs); already linked through photocraft-io. flate2 = { workspace = true } diff --git a/crates/ui-egui/src/app.rs b/crates/ui-egui/src/app.rs index 34c2ef16e1..0a77bbdf3b 100644 --- a/crates/ui-egui/src/app.rs +++ b/crates/ui-egui/src/app.rs @@ -245,8 +245,12 @@ impl eframe::App for PhotocraftApp { self.finish_type_reset_logic(ctx); } + /// Drain the platform's optional WinTab queue before the frame's input is processed. fn raw_input_hook(&mut self, ctx: &egui::Context, raw_input: &mut egui::RawInput) { let frame_start = gpu_canvas::now_ms(); + if let Some(tablet_poll) = self.services.tablet_poll.as_mut() { + tablet_poll(raw_input.focused); + } // An undecorated window gets its caption back when the toolkit changes its flags // (maximize, restore, …): take it off again before the frame is laid out (#2246). if let Some(window_frame) = self.services.window_frame.as_mut() { diff --git a/crates/ui-egui/src/app/frame.rs b/crates/ui-egui/src/app/frame.rs index eec74bfcc4..3908d3888f 100644 --- a/crates/ui-egui/src/app/frame.rs +++ b/crates/ui-egui/src/app/frame.rs @@ -169,6 +169,8 @@ impl PhotocraftApp { // A real UI pass consumes the one in-flight synthetic batch (see `inject_synthetic`). self.begin_synthetic_pass(&ctx); self.hover_layer = None; + // The contextual task bar reports itself again if this frame draws it (#10890). + self.ui.task_bar_shown = None; i18n::set_current(i18n::Lang::from_pref(&self.session.prefs().interface.language)); // Fonts registered via set_fonts only take effect next frame; named families would panic now. if !self.fonts_ready { diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs index c0b4f5d883..656025addb 100644 --- a/crates/ui-egui/src/canvas.rs +++ b/crates/ui-egui/src/canvas.rs @@ -69,7 +69,7 @@ use display::texture_key; pub(crate) use display::{cache_key, canvas_display, display_doc, display_image}; use display::{checker, hdr_preview, sync_display_lut}; pub use drag::{Drag, fixed_size_px, marquee_corners, marquee_px, marquee_readout, readout_in, size_readout, square_px}; -pub(crate) use drag::{angle_readout, draw_readout, draw_value_readout}; +pub(crate) use drag::{angle_readout, doc_box_corners, draw_readout, draw_value_readout}; #[cfg(test)] pub(crate) use drag::{marquee_drag_ants, marquee_preview_px}; #[cfg(test)] @@ -601,7 +601,8 @@ fn update_canvas_navigation(app: &mut PhotocraftApp, view: &mut View, input: Can let bars_id = egui::Id::unique(("pc-canvas-bars-hover", input.idx)); let over_bars = input.ctx.data(|d| d.get_temp::(bars_id)).unwrap_or(false); let nav_hovered = input.response.hovered() || input.free_hover || over_bars; - // Interface › Enable Animations off: the wheel moves the canvas without a glide (#5721). + // Like Photoshop, a wheel notch moves the canvas the whole step in one frame, without a + // glide (`smooth` off; #5721, #9479). // General › Animated Zoom: the wheel zoom eases over the frames of a notch, or is one instant step. // Enhanced Controls › Enable Gestures off: two fingers on a touch screen neither zoom nor // turn the view (#204); the mouse and trackpad are unaffected. @@ -613,7 +614,7 @@ fn update_canvas_navigation(app: &mut PhotocraftApp, view: &mut View, input: Can app.session.prefs().general.animated_zoom, input.wheel_owner, nav_hovered, - app.session.prefs().interface.enable_animations, + false, touch_gestures, ); if nav_hovered { @@ -1367,6 +1368,20 @@ fn paint_primary_overlays(app: &mut PhotocraftApp, ui: &mut egui::Ui, view: &mut crate::slice_ui::draw_overlay(app, painter, xf); crate::frame_tool::draw_overlay(app, painter, xf); crate::frame_tool::task_bar(app, ui, xf); + // The Crop tool's contextual task bar under its frame (#10890), on the frame's own tile only: + // the other tiles would map the active document's frame with their own transform. + if app.session.active_index() == Some(idx) { + // Done asks for a fit of the cropped document (`commit_crop`): like a view menu row + // above, the stored camera wins over this frame's copy, or the write-back drops it. + let before = app.ui.views.get(idx).cloned(); + crate::crop_task_bar::draw(app, ui, xf); + if let Some(now) = app.ui.views.get(idx) + && Some(now) != before.as_ref() + { + *view = now.clone(); + ctx.request_repaint(); + } + } crate::artboard_tool::draw_overlay(app, painter, xf); // Snap lines last: over the transform preview's pixels and the other overlays, which would // otherwise hide where the moving content lines up. @@ -1879,7 +1894,7 @@ pub fn canvas_view(app: &mut PhotocraftApp, ui: &mut egui::Ui, idx: usize, rect: app.session.prefs().general.animated_zoom, wheel_owner, hover_here, - app.session.prefs().interface.enable_animations, + false, app.session.prefs().enhanced_controls.touch_gestures, ) .is_some()); diff --git a/crates/ui-egui/src/canvas/drag.rs b/crates/ui-egui/src/canvas/drag.rs index aae9dbdb86..53eb81c592 100644 --- a/crates/ui-egui/src/canvas/drag.rs +++ b/crates/ui-egui/src/canvas/drag.rs @@ -294,6 +294,15 @@ pub(crate) fn marquee_drag_ants(d: &Drag, xf: &ViewXform, marquee: Option<[f64; marquee_ants(xf, d.tool, a, b) } +/// The corners on screen of the document-axis box dragged from `a` to `b`, clockwise from its +/// top-left: a turned parallelogram in a rotated view, as the box the release creates (the Type +/// tools' text box, the Move tool's layer marquee). +pub(crate) fn doc_box_corners(xf: &ViewXform, a: [f64; 2], b: [f64; 2]) -> [Pos2; 4] { + let (x0, x1) = (a[0].min(b[0]) as f32, a[0].max(b[0]) as f32); + let (y0, y1) = (a[1].min(b[1]) as f32, a[1].max(b[1]) as f32); + [xf.to_screen(x0, y0), xf.to_screen(x1, y0), xf.to_screen(x1, y1), xf.to_screen(x0, y1)] +} + /// The size readout shown beside the cursor while dragging a marquee: the width and height values. pub fn marquee_readout(r: [f64; 4]) -> [String; 2] { [format!("{} px", r[2] - r[0]), format!("{} px", r[3] - r[1])] diff --git a/crates/ui-egui/src/canvas/gesture.rs b/crates/ui-egui/src/canvas/gesture.rs index 04ad55a3a7..cc2d3d1ef8 100644 --- a/crates/ui-egui/src/canvas/gesture.rs +++ b/crates/ui-egui/src/canvas/gesture.rs @@ -99,10 +99,12 @@ fn finish(app: &mut PhotocraftApp, mut d: Drag, click: Option) { crate::vector_ui::freeform_finish_owned(app, &d.points, d.lasso.as_ref().map_or(&[], |l| l.straight()), owner); } } - // Photoshop: a click without dragging opens Create Rectangle / Ellipse / … instead. + // Photoshop: a click without dragging opens Create Rectangle / Ellipse / … instead. In Path + // mode a click adds nothing: the dialog makes a shape layer, which Path mode never draws, + // and the click's few pixels of travel would add a speck of a subpath to the work path. t if crate::vector_ui::is_shape_tool(t) && crate::shape_dialog::is_click(d.start, &d.points, app.point_zoom()) - && crate::shape_dialog::open(app, t, d.start).is_some() => {} + && (crate::vector_ui::draws_path(&app.ui.tool_options) || crate::shape_dialog::open(app, t, d.start).is_some()) => {} t if crate::vector_ui::is_shape_tool(t) => crate::vector_ui::finish_shape(app, t, d.start, [end[0], end[1]], d.live), Tool::PathSelection => crate::vector_ui::path_selection_finish(app, d.start, [end[0], end[1]]), Tool::Type | Tool::VerticalType | Tool::HorizontalTypeMask | Tool::VerticalTypeMask => crate::type_tool::pointer_up(app, d.start, [end[0], end[1]]), diff --git a/crates/ui-egui/src/canvas/paint.rs b/crates/ui-egui/src/canvas/paint.rs index e65cad697c..0f3a92edef 100644 --- a/crates/ui-egui/src/canvas/paint.rs +++ b/crates/ui-egui/src/canvas/paint.rs @@ -1,6 +1,7 @@ use super::display::{canvas_display, checker, display_doc, display_image}; use super::drag::{ - angle_readout, draw_marquee_readout, draw_value_readout, marquee_ants, marquee_drag_ants, marquee_preview_px, single_line_drag_px, size_readout, + angle_readout, doc_box_corners, draw_marquee_readout, draw_value_readout, marquee_ants, marquee_drag_ants, marquee_preview_px, single_line_drag_px, + size_readout, }; use super::gesture::constrained_polygon_point; use super::strokes::{EngineStroke, SPOT_HEALING_TRAIL, draw_smoothing_string, strokes_live}; @@ -615,8 +616,8 @@ pub(super) fn draw_drag_preview(app: &mut PhotocraftApp, painter: &egui::Painter painter.circle_filled(b, 3.0, Color32::WHITE); } Tool::Type | Tool::VerticalType | Tool::HorizontalTypeMask | Tool::VerticalTypeMask => { - let r = Rect::from_two_pos(xf.to_screen(d.start[0] as f32, d.start[1] as f32), xf.to_screen(last[0] as f32, last[1] as f32)); - let pts = [r.left_top(), r.right_top(), r.right_bottom(), r.left_bottom(), r.left_top()]; + let [p0, p1, p2, p3] = doc_box_corners(xf, d.start, last); + let pts = [p0, p1, p2, p3, p0]; painter.add(egui::Shape::line(pts.to_vec(), Stroke::new(1.0, Color32::WHITE))); painter.add(egui::Shape::dashed_line(&pts, Stroke::new(1.0, Color32::BLACK), 3.0, 3.0)); } diff --git a/crates/ui-egui/src/canvas/wheel_nav.rs b/crates/ui-egui/src/canvas/wheel_nav.rs index 3ada75339b..13847d0d88 100644 --- a/crates/ui-egui/src/canvas/wheel_nav.rs +++ b/crates/ui-egui/src/canvas/wheel_nav.rs @@ -36,8 +36,9 @@ //! (the Photoshop behaviour, measured frame by frame on a screen recording). Zooming reads the //! wheel events themselves and ignores egui's smoothed tail. //! -//! In both modes panning keeps the smoothed delta, and ⇧/Shift snap zoom reads the wheel events -//! and stays instant. The Alt state is taken from the wheel events (and the Alt key's own press +//! In both modes the canvas pans by this frame's wheel events, the whole notch at once with no +//! glide, as in Photoshop (#9479), while [`read`] keeps egui's smoothed delta; ⇧/Shift snap zoom +//! reads the wheel events and stays instant. The Alt state is taken from the wheel events (and the Alt key's own press //! and release, `wheel_events`) and kept until the next wheel event: releasing Alt while the tail //! is still settling must not turn it into a pan. @@ -366,9 +367,10 @@ fn alt_gesture(m: &Modifiers) -> bool { m.alt && (!m.command || (m.ctrl && !m.mac_cmd && !m.shift)) } -/// [`read`], choosing how a plain wheel scroll pans: `smooth` glides it over a few frames (egui's -/// smoothed delta); off, as with Interface › Enable Animations off, the view moves the whole notch -/// in the frame the wheel turns and stops there (#5721), as scroll areas already do. +/// [`read`], choosing how a wheel scroll pans: `smooth` glides it over a few frames (egui's +/// smoothed delta, as in the Liquify and Camera Raw previews); off, the view moves the whole notch +/// in the frame the wheel turns and stops there (#5721). The canvas pans with it off, as Photoshop +/// does (#9479). /// `touch_gestures` is Preferences › Enhanced Controls › Enable Gestures: off, a touch screen's /// two-finger pinch doesn't zoom ([`pinch_factor`]). /// `animated_zoom` is Preferences › General › Animated Zoom: on, the wheel zoom is eased over the @@ -384,16 +386,16 @@ pub fn read_with( smooth: bool, touch_gestures: bool, ) -> Option { - let notch = ctx.options(|o| o.input_options.line_scroll_speed); + let options = ctx.options(|o| o.input_options); + let notch = options.line_scroll_speed; // --- Modifier tracking (always runs for all callers) --- - let (scroll, zoom_delta, latest_alt, latest_shift, wheel, page) = ctx.input(|i| { + let (smoothed, zoom_delta, latest_alt, latest_shift, wheel, page) = ctx.input(|i| { let wheel = wheel_events(i); - let latest_alt = wheel.last().map(|(_, _, m, _)| alt_gesture(m)); - let latest_shift = wheel.last().map(|(_, _, m, _)| m.shift && !m.command && !m.ctrl); + let latest_alt = wheel.last().map(|(_, _, m, _)| gesture_mode(m).0); + let latest_shift = wheel.last().map(|(_, _, m, _)| gesture_mode(m).1); (i.smooth_scroll_delta, pinch_factor(i, touch_gestures), latest_alt, latest_shift, wheel, i.content_rect().height()) }); - let wheel = mark_unsmoothed(ctx, wheel); let alt = match latest_alt { Some(a) => { ctx.data_mut(|d| d.insert_temp(alt_id(), a)); @@ -408,6 +410,8 @@ pub fn read_with( } None => ctx.data(|d| d.get_temp::(shift_id())).unwrap_or(false), }; + let scroll = if smooth { smoothed } else { unsmoothed_scroll(&wheel, (alt, shift), &options, page) }; + let wheel = mark_unsmoothed(ctx, wheel); if !hovered { return None; @@ -510,17 +514,55 @@ pub fn read_with( let eased = ease_zoom_delta(ctx, owner, along(raw - instant)) + along(instant); // The plain wheel zooms through `y`; its sideways part (⌘/Ctrl + wheel, a trackpad's // horizontal scroll) is not a zoom event, so it pans like any scroll: smoothed, or - // with Enable Animations off at once (#5721). - if alt { Vec2::new(0.0, eased) } else { Vec2::new(if smooth { scroll.x } else { raw.x }, eased) } + // unsmoothed at once (#5721, #9479). + if alt { Vec2::new(0.0, eased) } else { Vec2::new(scroll.x, eased) } } else { ctx.data_mut(|d| d.remove::(zoom_ease_id(owner))); - // Unsmoothed, a plain scroll pans by this frame's own wheel events (none: no tail). - if smooth || alt || shift { scroll } else { raw } + // Unsmoothed, a scroll pans by this frame's own wheel events (none: no tail). + scroll }; classify(Input { scroll, raw, zoom_delta, alt, shift, zoom_with_wheel, pinch_zooms, animated_zoom, notch }) } } +/// The ⌥/Alt and ⇧/Shift gesture a wheel event belongs to: ⌥ as [`alt_gesture`] decides; ⇧ with +/// ⌘/Ctrl is not one (it scrolls sideways, [`configure`]), so it belongs to the plain wheel. +fn gesture_mode(m: &Modifiers) -> (bool, bool) { + (alt_gesture(m), m.shift && !m.command && !m.ctrl) +} + +/// This frame's wheel scroll without egui's smoothing (points, content direction): what egui's +/// smoothed delta spreads over the next frames, all of it now and no tail after. ⇧ or ⌘/Ctrl fold +/// it sideways as egui does ([`configure`]), so every pan, plain or sideways, moves at once. +/// Only the wheel events of the gesture in progress (`mode`, the ⌥ and ⇧ of [`gesture_mode`]) +/// count: a ⌥ zoom notch in the same frame as a plain pan notch doesn't pan too. +fn unsmoothed_scroll(wheel: &[(MouseWheelUnit, Vec2, Modifiers, TouchPhase)], mode: (bool, bool), options: &egui::InputOptions, page: f32) -> Vec2 { + wheel.iter().fold(Vec2::ZERO, |sum, (unit, delta, modifiers, phase)| { + // egui scrolls only by `Move` events; a trackpad's `Start`, `End` or `Cancel` delta + // (`WheelState::on_wheel_event`) is not a scroll. + if *phase != TouchPhase::Move || gesture_mode(modifiers) != mode { + return sum; + } + // egui turns these into its own zoom, not a scroll. + if modifiers.matches_any(options.zoom_modifier) { + return sum; + } + let d = *delta + * match unit { + MouseWheelUnit::Point => 1.0, + MouseWheelUnit::Line => options.line_scroll_speed, + MouseWheelUnit::Page => page, + }; + let sideways = modifiers.matches_any(options.horizontal_scroll_modifier); + let upright = modifiers.matches_any(options.vertical_scroll_modifier); + sum + match (sideways, upright) { + (true, false) => Vec2::new(d.x + d.y, 0.0), + (false, true) => Vec2::new(0.0, d.x + d.y), + _ => d, + } + }) +} + fn is_alt_key(key: Key) -> bool { matches!(key, Key::AltLeft | Key::AltRight) } diff --git a/crates/ui-egui/src/canvas/wheel_nav/tests.rs b/crates/ui-egui/src/canvas/wheel_nav/tests.rs index 423cc4b488..a7b2d9f58d 100644 --- a/crates/ui-egui/src/canvas/wheel_nav/tests.rs +++ b/crates/ui-egui/src/canvas/wheel_nav/tests.rs @@ -87,7 +87,41 @@ fn unsmoothed_wheel_pans_at_once_without_a_glide() { assert!(smooth[1..].iter().any(|p| p.y != 0.0), "and the rest follows"); } -/// Interface › Enable Animations off only stops the *pan* gliding. A plain wheel that zooms +/// Unsmoothed, only `Move` wheel events pan, as egui scrolls by them alone: a trackpad's +/// `Start`, `End` or `Cancel` event with a delta doesn't move the canvas. +#[test] +fn unsmoothed_pan_ignores_wheel_events_outside_the_move_phase() { + let ctx = Context::default(); + configure(&ctx); + let owner = Id::unique("test-unsmoothed-phase"); + let event = |phase: TouchPhase| Event::MouseWheel { + source: egui::MouseWheelSource::Unknown, + unit: MouseWheelUnit::Point, + delta: Vec2::new(0.0, -30.0), + phase, + modifiers: Modifiers::NONE, + }; + let pan_of = |n: u32, events: Vec| { + let raw = RawInput { time: Some(f64::from(n) / 60.0), predicted_dt: 1.0 / 60.0, events, ..Default::default() }; + let mut pan = Vec2::ZERO; + let mut out = ctx.run_ui(raw, |ui| { + if let Some(Wheel::Pan(d)) = read_with(ui.ctx(), false, true, true, owner, true, false, true) { + pan = d; + } + }); + out.textures_delta.clear(); + pan + }; + for (n, phase) in [TouchPhase::Start, TouchPhase::End, TouchPhase::Cancel].into_iter().enumerate() { + let n = u32::try_from(n).unwrap_or(0) * 2; + assert_eq!(pan_of(n, vec![event(phase)]), Vec2::ZERO, "{phase:?} doesn't pan"); + assert_eq!(pan_of(n + 1, Vec::new()), Vec2::ZERO, "nor after {phase:?}"); + } + let moved = pan_of(10, vec![event(TouchPhase::Start), event(TouchPhase::Move), event(TouchPhase::End)]); + assert!(near(moved, Vec2::new(0.0, -30.0)), "only the Move delta pans: {moved:?}"); +} + +/// Pan smoothing off (the canvas, #9479) only stops the *pan* gliding. A plain wheel that zooms /// (Zoom with Scroll Wheel) with Animated Zoom on must still ease over the frames of a notch, /// exactly as it does with the pan smoothing on. #[test] @@ -372,7 +406,7 @@ fn animated_zoom_does_not_ease_a_trackpad() { assert!(frames[1..].iter().all(|f| *f == 1.0), "no tail after it: {frames:?}"); } -/// Zoom with Scroll Wheel + Animated Zoom with Enable Animations off: the wheel zooms eased, but +/// Zoom with Scroll Wheel + Animated Zoom with pan smoothing off: the wheel zooms eased, but /// a sideways wheel still pans without a glide (#5721), all of it in the frame it turns. #[test] fn animated_zoom_keeps_the_sideways_wheel_unsmoothed_with_animations_off() { @@ -397,6 +431,44 @@ fn animated_zoom_keeps_the_sideways_wheel_unsmoothed_with_animations_off() { assert!(pans[1..].iter().all(|p| *p == Vec2::ZERO), "no glide after it: {pans:?}"); } +/// One frame of `events` read with pan smoothing off (the canvas, #9479) and Animated Zoom on. +fn unsmoothed_frame(events: Vec, zoom_with_wheel: bool) -> Option { + let ctx = Context::default(); + configure(&ctx); + let raw = RawInput { time: Some(0.0), predicted_dt: 1.0 / 60.0, events, ..Default::default() }; + let mut wheel = None; + let mut out = ctx.run_ui(raw, |ui| wheel = read_with(ui.ctx(), zoom_with_wheel, true, true, Id::unique("test-mixed"), true, false, true)); + out.textures_delta.clear(); + wheel +} + +/// Unsmoothed, the canvas pans by the wheel events of the gesture in progress only (the latest +/// event's modifiers pick it, as for zooming): a ⌥ notch (a zoom) or a ⇧ notch (a snap zoom) +/// arriving in the same frame as the panning notch must not pan the canvas too. +#[test] +fn unsmoothed_pan_takes_only_the_wheel_events_of_the_gesture_in_progress() { + let down = Vec2::new(0.0, -1.0); + // ⌥ zooms, then a plain notch pans: one notch, not two. + let pan = unsmoothed_frame(vec![wheel(down, Modifiers::ALT), wheel(down, Modifiers::NONE)], false); + assert_eq!(pan, Some(Wheel::Pan(Vec2::new(0.0, -40.0))), "only the plain notch pans"); + // ⇧ + wheel pans sideways: a plain notch before it in the frame is not part of that. + let pan = unsmoothed_frame(vec![wheel(down, Modifiers::NONE), wheel(down, Modifiers::SHIFT)], false); + assert_eq!(pan, Some(Wheel::Pan(Vec2::new(-40.0, 0.0))), "only the ⇧ notch pans, sideways"); + // Zoom with Scroll Wheel: ⌥ + wheel pans; the plain notch before it zooms and doesn't pan. + let pan = unsmoothed_frame(vec![wheel(down, Modifiers::NONE), wheel(down, Modifiers::ALT)], true); + assert_eq!(pan, Some(Wheel::Pan(Vec2::new(0.0, -40.0))), "only the ⌥ notch pans"); + // ...and with the plain wheel zooming, a ⇧ snap notch earlier in the frame doesn't pan sideways. + let zoom = unsmoothed_frame(vec![wheel(Vec2::new(0.0, 1.0), Modifiers::SHIFT), wheel(down, Modifiers::NONE)], true); + assert!(matches!(zoom, Some(Wheel::Zoom(f)) if f < 1.0), "the plain notch zooms, nothing pans: {zoom:?}"); + // ⌘/Ctrl + wheel is part of the plain gesture: it pans sideways alongside a plain notch. + let pan = unsmoothed_frame(vec![wheel(down, CTRL), wheel(down, Modifiers::NONE)], false); + assert_eq!(pan, Some(Wheel::Pan(Vec2::new(-40.0, -40.0))), "⌘/Ctrl + wheel and a plain notch both pan"); + // A held ⌥ the wheel event itself misses (#8049) still makes it the ⌥ gesture's. + let alt_key = |pressed: bool| Event::Key { key: Key::AltLeft, physical_key: None, pressed, repeat: false, modifiers: Modifiers::NONE }; + let pan = unsmoothed_frame(vec![wheel(down, Modifiers::NONE), alt_key(true), wheel(down, Modifiers::NONE), alt_key(false)], true); + assert_eq!(pan, Some(Wheel::Pan(Vec2::new(0.0, -40.0))), "only the notch under the held ⌥ pans"); +} + /// A diagonal point step with ⌥ is measured as egui measures it, folded onto one axis: (5, 5) /// is a 10-point step, which egui smooths, so Animated Zoom eases it. #[test] diff --git a/crates/ui-egui/src/canvas/zoom_field.rs b/crates/ui-egui/src/canvas/zoom_field.rs index 4f256e44b0..d236041b53 100644 --- a/crates/ui-egui/src/canvas/zoom_field.rs +++ b/crates/ui-egui/src/canvas/zoom_field.rs @@ -439,7 +439,15 @@ fn drop_taken_text(ctx: &Context) { ctx.data_mut(|d| d.remove_temp::<(char, u64)>(taken_key_id())); return; } - let same = |t: &str| t.chars().eq(c.to_lowercase()) || t.chars().eq(c.to_uppercase()); + let same = |t: &str| { + if c == 'I' { + // The consumed logical I key may emit either Turkic letter on the active keyboard, + // whatever the interface language (an English UI on a Turkish keyboard emits `ı`). + matches!(t, "I" | "i" | "İ" | "ı") + } else { + t.chars().eq(c.to_lowercase()) || t.chars().eq(c.to_uppercase()) + } + }; let found = ctx.input_mut(|i| { let at = i.events.iter().position(|e| matches!(e, egui::Event::Text(t) if same(t))); at.map(|at| i.events.remove(at)).is_some() @@ -558,6 +566,37 @@ fn on_pasteboard(app: &crate::PhotocraftApp, ctx: &Context, pos: egui::Pos2) -> mod tests { use super::*; + /// Whether `text` survives `drop_taken_text` after the menu took the logical key `key`. + fn text_survives(key: char, text: &str) -> bool { + let ctx = Context::default(); + ctx.begin_pass(egui::RawInput { events: vec![egui::Event::Text(text.into())], ..Default::default() }); + let pass = ctx.cumulative_pass_nr(); + ctx.data_mut(|d| d.insert_temp(taken_key_id(), (key, pass))); + drop_taken_text(&ctx); + let survives = ctx.input(|i| i.events.iter().any(|e| matches!(e, egui::Event::Text(_)))); + ctx.end_pass().textures_delta.clear(); + survives + } + + /// A menu mnemonic consumes the text emitted by the same logical key on Turkic keyboards. The + /// keyboard layout is not the interface language: an English UI on a Turkish keyboard too. + #[test] + fn menu_i_key_does_not_leak_dotless_text_into_zoom_in_any_ui_language() { + for code in ["az", "tr", "en", "de"] { + let lang = crate::i18n::Lang::from_code(code).unwrap(); + crate::i18n::with_language(lang, || { + for text in ["I", "i", "İ", "ı"] { + assert!(!text_survives('I', text), "{code}: {text} leaked after the I key"); + } + // Only the I key folds the Turkic letters; another key's text is not taken. + for text in ["İ", "ı", "j"] { + assert!(text_survives('K', text), "{code}: {text} was taken for the K key"); + } + assert!(!text_survives('K', "k"), "{code}: k leaked after the K key"); + }); + } + } + #[test] fn enter_reads_one_separator_and_the_number_before_a_second_one() { let number = |t: &str| Entry::Number(t.into()); diff --git a/crates/ui-egui/src/control.rs b/crates/ui-egui/src/control.rs index 0b557492ca..a86f3de703 100644 --- a/crates/ui-egui/src/control.rs +++ b/crates/ui-egui/src/control.rs @@ -15,7 +15,7 @@ //! - `ui.window.open {document?}` / `ui.window.close {window}`: extra document windows //! - `ui.pointer {events: [{kind: down|move|up, x, y, pressure?, tiltX?, tiltY?, rotation?}], tool?, modifiers?, button?}`: drive the active tool in document coordinates (`button: "secondary"` opens the tool's canvas context menu (the pasteboard colour menu outside the image) or Brush Preset picker, or erases with Preferences › Tools › Right-click with painting tools = erase) //! - `ui.click {x, y, button?, count?}` / `ui.move {x, y}`: synthetic pointer input in screen points -//! (`count` at most [`MAX_CLICKS`]) +//! (`count` at most [`MAX_CLICKS`], `x` and `y` within ±[`MAX_SCREEN_POINT`]) //! - `ui.key {key, command?, shift?, alt?, ctrl?}` / `ui.type {text}`: synthetic keyboard input //! - The synthetic input methods reject unknown fields, wrong types, unknown enum values and //! out-of-range numbers before acting, naming the parameter (#2449) @@ -51,7 +51,7 @@ use dispatch::dispatch; pub use inspect::{inspect, save_screenshot, save_screenshot_rgba}; #[cfg(test)] use params::screen_point; -pub use params::{MAX_CLICKS, UI_SET_FIELDS}; +pub use params::{MAX_CLICKS, MAX_SCREEN_POINT, UI_SET_FIELDS}; use params::{err, ok}; pub type ControlResponse = Value; diff --git a/crates/ui-egui/src/control/dispatch.rs b/crates/ui-egui/src/control/dispatch.rs index 2d1b3d8486..d9b7298388 100644 --- a/crates/ui-egui/src/control/dispatch.rs +++ b/crates/ui-egui/src/control/dispatch.rs @@ -1,8 +1,8 @@ use super::METHODS; use super::inspect::inspect; use super::params::{ - BUTTONS, KEY_MODIFIERS, MAX_CLICKS, POINTER_MODIFIERS, UI_SET_FIELDS, bool_field, err, f32_field, f32_range, input_choice, input_modifiers, input_number, - input_object, merged_object, modifiers_from, num_field, ok, screen_point, uint_field, whole_object, + BUTTONS, KEY_MODIFIERS, MAX_CLICKS, MAX_SCREEN_POINT, POINTER_MODIFIERS, UI_SET_FIELDS, bool_field, err, f32_field, f32_range, input_choice, + input_modifiers, input_number, input_object, merged_object, modifiers_from, num_field, ok, screen_point, uint_field, whole_object, }; use super::{ControlRequest, DialogKind, Outcome, PhotocraftApp, SHELL_DIALOG, Tool, ToolEvent, Value, json, run_waiting, tool_event, wrap}; use photocraft_engine::jobs::{CancelReport, JobId}; @@ -605,6 +605,19 @@ fn crop_fill_param(p: &Value) -> std::result::Result, String> { // -- panels: Histogram, masks targets, docking, Color panel -- +/// The `panels` patch with its `task_bar` merged into the bar's current place, so `{"at": [x, y]}` +/// keeps a pin and `{"pinned": true}` keeps a dragged position (#10890). +fn panels_patch(app: &PhotocraftApp, patch: Option<&Value>) -> std::result::Result, String> { + let Some(mut patch) = patch.cloned() else { return Ok(None) }; + if let Some(obj) = patch.as_object_mut() + && let Some(bar) = obj.get("task_bar") + { + let merged = merged_object(&app.ui.panels.task_bar, Some(bar), "panels.task_bar")?; + obj.insert("task_bar".into(), serde_json::to_value(merged).map_err(|e| e.to_string())?); + } + Ok(Some(patch)) +} + struct PanelSet { histogram_panel: Option, histogram_range: Option>, @@ -629,7 +642,7 @@ impl PanelSet { histogram_panel: merged_object(&app.ui.histogram_panel, p.get("histogramPanel"), "histogramPanel")?, histogram_range: histogram_range_param(p)?, histogram_refresh: bool_field(p, "histogramRefresh")?, - panels: merged_object(&app.ui.panels, p.get("panels"), "panels")?, + panels: merged_object(&app.ui.panels, panels_patch(app, p.get("panels"))?.as_ref(), "panels")?, mask_target: bool_field(p, "maskTarget")?, updates_open: bool_field(p, "updatesOpen")?, vector_mask_target: bool_field(p, "vectorMaskTarget")?, @@ -1155,8 +1168,9 @@ fn click(app: &mut PhotocraftApp, ctx: &egui::Context, p: &Value, click: bool) - let parsed = (|| -> std::result::Result<_, String> { let p = input_object(p, None, fields)?; // Screen coordinates in points (as reported by ui.inspect window size). - let x = input_number(&p, "x", "x", None)?.unwrap_or(0.0) as f32; - let y = input_number(&p, "y", "y", None)?.unwrap_or(0.0) as f32; + let range = Some((-MAX_SCREEN_POINT, MAX_SCREEN_POINT)); + let x = input_number(&p, "x", "x", range)?.unwrap_or(0.0) as f32; + let y = input_number(&p, "y", "y", range)?.unwrap_or(0.0) as f32; let button = match input_choice(&p, "button", "button", &BUTTONS)?.unwrap_or("left") { "right" | "secondary" => egui::PointerButton::Secondary, "middle" => egui::PointerButton::Middle, diff --git a/crates/ui-egui/src/control/inspect.rs b/crates/ui-egui/src/control/inspect.rs index 5b3b952f65..9522088656 100644 --- a/crates/ui-egui/src/control/inspect.rs +++ b/crates/ui-egui/src/control/inspect.rs @@ -29,6 +29,9 @@ pub fn inspect(app: &PhotocraftApp, ctx: &egui::Context) -> Value { dialogs.push(json!({"id": SHELL_DIALOG, "kind": kind, "title": crate::workspace_ui::title(kind), "fields": fields})); } dialogs.extend(crate::discard_ui::inspect(app)); + // Last frame's task bar rect, unless the bar can't show now (hidden by `ui.set` before the + // next draw). + let task_bar_rect = app.ui.task_bar_shown.filter(|_| crate::crop_task_bar::eligible(app)); json!({ "window": {"width": screen.width(), "height": screen.height(), "pixelsPerPoint": ctx.pixels_per_point()}, "scratch": photocraft_raster::spill::stats(), @@ -92,6 +95,15 @@ pub fn inspect(app: &PhotocraftApp, ctx: &egui::Context) -> Value { }) }), "panels": app.ui.panels, + // The contextual task bar (#10890): Window › Contextual Task Bar, whether it shows now and + // where (screen points), and its place (pinned, dragged-to corner). + "taskBar": json!({ + "enabled": app.ui.panels.context_task_bar, + "visible": task_bar_rect.is_some(), + "rect": task_bar_rect, + "pinned": app.ui.panels.task_bar.pinned, + "at": app.ui.panels.task_bar.at, + }), "dockTabs": app.ui.dock_tabs, "dock": app.ui.dock, "docking": app.ui.docking, diff --git a/crates/ui-egui/src/control/params.rs b/crates/ui-egui/src/control/params.rs index b52f87ad0c..8e33f18399 100644 --- a/crates/ui-egui/src/control/params.rs +++ b/crates/ui-egui/src/control/params.rs @@ -61,6 +61,10 @@ pub const UI_SET_FIELDS: [&str; 49] = [ /// the same ceiling as the steps of one batch request. pub const MAX_CLICKS: u64 = 256; +/// Largest `ui.click` / `ui.move` coordinate, in screen points either way (#9137). Far beyond any +/// display, yet small enough that egui's pointer delta between two such points stays finite. +pub const MAX_SCREEN_POINT: f64 = 1e6; + pub(super) fn ok(v: Value) -> Outcome { Outcome::Done(json!({"ok": true, "result": v})) } diff --git a/crates/ui-egui/src/control/tests.rs b/crates/ui-egui/src/control/tests.rs index d190d110b9..e3756a39ea 100644 --- a/crates/ui-egui/src/control/tests.rs +++ b/crates/ui-egui/src/control/tests.rs @@ -890,7 +890,7 @@ fn ui_set_drives_the_layers_panel_artboard_filter() { assert_eq!(app.ui.layer_filter_by, FilterBy::Artboard); let bad = call(&mut app, &ctx, "ui.set", json!({"layerFilter": {"by": "artboards"}})); assert_eq!(bad["ok"], false, "{bad}"); - assert!(bad.to_string().contains("kind, name, effect, mode, attribute, color, smartObject or artboard"), "{bad}"); + assert!(bad.to_string().contains("kind, name, effect, mode, attribute, color, smartObject, artboard or group"), "{bad}"); assert_eq!(app.ui.layer_filter_by, FilterBy::Artboard, "a bad value changed nothing"); } @@ -2022,6 +2022,35 @@ fn huge_click_count_is_rejected() { } } +/// #9137: a coordinate past f32's range became `inf`, and on the next frame egui's pointer +/// delta `inf - inf` panicked outside the dispatch guard, closing the app. +#[test] +fn huge_click_coordinate_is_rejected() { + let mut app = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default()); + let ctx = egui::Context::default(); + for method in ["ui.click", "ui.move"] { + for (field, v) in [("x", 1e308), ("y", -1e308), ("x", 3.5e38), ("y", 1e7), ("x", -1.5e6)] { + let (req, _rx) = ControlRequest::new(method, json!({ field: v })); + let Outcome::Done(r) = handle(&mut app, &ctx, &req) else { panic!("{method} {field}={v}: accepted") }; + assert_eq!(r["ok"], false, "{method} {field}={v}: {r}"); + assert!(r["error"].as_str().unwrap().starts_with(&format!("{field} must be between")), "{r}"); + assert!(app.synthetic.is_empty(), "a rejected {method} queues nothing"); + } + } + // Points at the edges of the range, off-window included, reach egui and run a frame each. + let edge = MAX_SCREEN_POINT; + for (method, x, y) in [("ui.move", edge, -edge), ("ui.click", -edge, edge), ("ui.click", -5.0, 20.0)] { + let (req, _rx) = ControlRequest::new(method, json!({"x": x, "y": y})); + assert!(matches!(handle(&mut app, &ctx, &req), Outcome::AfterInput)); + while !app.synthetic.is_empty() { + let events = app.take_synthetic_step(); + ctx.run_ui(egui::RawInput { events, ..Default::default() }, |_| {}).textures_delta.clear(); + } + let pos = ctx.input(|i| i.pointer.latest_pos()); + assert_eq!(pos, Some(egui::pos2(x as f32, y as f32)), "{method} {x},{y}"); + } +} + /// #2449: the error of a rejected synthetic input call, after checking it changed nothing. fn rejected(app: &mut PhotocraftApp, ctx: &egui::Context, method: &str, params: Value, names: &str) -> String { let (tool, revision) = (app.ui.tool, app.session.active().map(|d| d.revision)); diff --git a/crates/ui-egui/src/dialogs/adjust_dialog.rs b/crates/ui-egui/src/dialogs/adjust_dialog.rs index 715c0860bb..ba34906548 100644 --- a/crates/ui-egui/src/dialogs/adjust_dialog.rs +++ b/crates/ui-egui/src/dialogs/adjust_dialog.rs @@ -246,7 +246,7 @@ pub fn owns(fields: &Map) -> bool { } /// Root of the dialog editor's view state in egui memory. -fn dialog_mem(kind: &str) -> egui::Id { +pub(crate) fn dialog_mem(kind: &str) -> egui::Id { egui::Id::unique(("adjust-dialog", kind)) } @@ -307,6 +307,31 @@ pub fn open(app: &mut PhotocraftApp, command: &str) -> Option { Some(app.ui.open_dialog(crate::state::DialogKind::Command, fields)) } +/// Sets an adjustment dialog's parameters to the complete set `recorded` renders in a `mode` +/// document, so the controls show it and OK keeps it. Laid over the dialog's defaults instead, a +/// default can be read over a recorded key that means the same setting (a Lab `lightness` over +/// `points`). Settings the engine can't read are left as they are, for OK to report on. +pub(crate) fn seed_from_recorded(fields: &mut Map, recorded: &Value, mode: photocraft_doc::ColorMode) { + let Some(kind) = fields.get("__adjust").and_then(Value::as_str) else { return }; + let Ok(adjustment) = photocraft_engine::adjust_params::from_params(kind, recorded, None, mode) else { return }; + if let Value::Object(mut values) = photocraft_engine::adjust_params::to_params(&adjustment) { + // Selective Color's chosen row is editor state, absent from the normalized adjustment. + // Keep it so an older single-colour record reopens on the colour the user edited. + if kind == "selectiveColor" + && let Some(colors) = recorded.get("colors") + { + values.insert("colors".into(), colors.clone()); + } + // The curves already hold Curves' Smooth passes: OK must overwrite a stored count, or + // each render would apply them again. + if recorded.get("smooth").is_some() { + values.insert("smooth".into(), json!(0)); + } + fields.retain(|k, _| k.starts_with("__") || k == "target"); + fields.extend(values); + } +} + /// Whether the dialog's captured target is a set of several Lab components, whose Levels and /// Curves settings are kept as a separate combined record. fn combined_lab_target(fields: &Map) -> bool { diff --git a/crates/ui-egui/src/dialogs/adjust_dialog/tests.rs b/crates/ui-egui/src/dialogs/adjust_dialog/tests.rs index 2a6f6f5510..09723b7530 100644 --- a/crates/ui-egui/src/dialogs/adjust_dialog/tests.rs +++ b/crates/ui-egui/src/dialogs/adjust_dialog/tests.rs @@ -47,7 +47,7 @@ fn every_adjustment_with_an_editor_has_a_dialog() { for kind in adjust_editors::KINDS { assert!(has_dialog(&format!("image.adjustments.{kind}")), "{kind}"); } - for id in ["image.adjustments.invert", "image.adjustments.selectiveColor", "image.adjustments.desaturate", "filter.blur.gaussianBlur"] { + for id in ["image.adjustments.invert", "image.adjustments.desaturate", "filter.blur.gaussianBlur"] { assert!(!has_dialog(id), "{id}"); } } @@ -219,6 +219,7 @@ fn sample_params(kind: &str) -> Value { "posterize" => json!({"levels": 3}), "threshold" => json!({"level": 90}), "gradientMap" => json!({"stops": [[0, "#200040"], [1, "#ffd080"]]}), + "selectiveColor" => json!({"method": "absolute", "blues": [10, 0, -20, 0]}), _ => json!({}), } } @@ -967,3 +968,354 @@ fn captured_filter_mask_curves_stay_gray_after_selecting_native_channels() { assert!(add_point_at(&mut app, &egui::Context::default(), 8.0, 8.0, false)); assert_eq!(crate::filter_dialog::params_of(&app.ui.dialog_mut(id).unwrap().fields), before); } + +// --------------------------------------------------------------------------------------------- +// Selective Color: one editor for the dialog and the Properties panel. The Colors dropdown is +// driven here through the dialog's `colors` field (what it writes, and what `ui.dialog.set` +// sets), not by opening the list. + +const SELECTIVE: &str = "image.adjustments.selectiveColor"; + +/// A red left half and a blue right half, so each colour range has pixels to change. +fn selective_app() -> PhotocraftApp { + let mut s = photocraft_engine::Session::new(); + s.execute("file.new", json!({"width": 64, "height": 48})).unwrap(); + s.execute("select.rect", json!({"x": 0, "y": 0, "width": 32, "height": 48})).unwrap(); + s.execute("edit.fill", json!({"color": "#c03020"})).unwrap(); + s.execute("select.rect", json!({"x": 32, "y": 0, "width": 32, "height": 48})).unwrap(); + s.execute("edit.fill", json!({"color": "#2030c0"})).unwrap(); + s.execute("select.deselect", json!({})).unwrap(); + PhotocraftApp::new(s, crate::Services::default()) +} + +fn selective_dialog() -> (Harness<'static, PhotocraftApp>, u64) { + let mut h = Harness::builder() + .with_size(egui::vec2(1200.0, 900.0)) + .with_step_dt(1.0 / 60.0) + .build_ui_state(|ui, app| crate::dialogs::show(app, ui.ctx()), selective_app()); + PhotocraftApp::setup_context(&h.ctx, crate::theme::ThemeKind::ALL[0]); + let id = open(h.state_mut(), SELECTIVE).unwrap(); + h.run_steps(3); + (h, id) +} + +fn set_field(h: &mut Harness<'static, PhotocraftApp>, id: u64, key: &str, value: Value) { + h.state_mut().ui.dialog_mut(id).unwrap().fields.insert(key.into(), value); +} + +/// What the Cyan, Magenta, Yellow and Black sliders show. +fn slider_values(h: &Harness<'static, PhotocraftApp>) -> Vec { + h.query_all_by_role(egui::accesskit::Role::Slider).filter_map(|n| n.accesskit_node().numeric_value()).collect() +} + +/// Press the `index`th slider in its middle and drag past its right (or left) end. +fn drag_slider(h: &mut Harness<'static, PhotocraftApp>, index: usize, right: bool) { + let r = h.query_all_by_role(egui::accesskit::Role::Slider).nth(index).expect("slider").rect(); + let from = r.center(); + let to = egui::pos2(if right { r.right() + 40.0 } else { r.left() - 40.0 }, from.y); + h.hover_at(from); + h.run_steps(1); + h.drag_at(from); + h.run_steps(1); + for i in 1..=6 { + h.hover_at(from + (to - from) * (i as f32 / 6.0)); + h.run_steps(1); + } + h.drop_at(to); + h.run_steps(3); +} + +fn pixel(app: &PhotocraftApp, x: usize, y: usize) -> [f32; 4] { + let st = app.session.active().unwrap(); + photocraft_compose::render(&st.doc, st.doc.bounds()).px[y * 64 + x] +} + +fn row_is_zero(v: &Value) -> bool { + v.as_array().is_some_and(|a| a.len() == 4 && a.iter().all(|x| x.as_f64() == Some(0.0))) +} + +/// The reported bug (#11463), through the real dropdown: choosing another colour shows that +/// colour's own values instead of carrying the sliders over, and keeps the first colour's edit. +#[test] +fn selective_color_colors_dropdown_shows_each_colours_own_values() { + let (mut h, id) = selective_dialog(); + set_field(&mut h, id, "reds", json!([30.0, 0.0, 0.0, 0.0])); + h.run_steps(3); + assert_eq!(slider_values(&h), [30.0, 0.0, 0.0, 0.0]); + let named = |n: &egui_kittest::Node<'_>| { + let a = n.accesskit_node(); + a.value().as_deref() == Some("Reds") || a.label().as_deref() == Some("Reds") + }; + let at = h.query_all_by_role(egui::accesskit::Role::ComboBox).find(|n| named(n)).expect("the Colors dropdown").rect().center(); + h.hover_at(at); + h.run_steps(1); + h.drag_at(at); + h.run_steps(3); + let blues = h.query_by_label("Blues").expect("the list opened on the press").rect().center(); + for k in 1..=6 { + h.hover_at(at + (blues - at) * (k as f32 / 6.0)); + h.run_steps(1); + } + h.drop_at(blues); + h.run_steps(3); + assert_eq!(field(&h, id, "colors"), json!("blues")); + assert_eq!(slider_values(&h), [0.0; 4], "Blues shows its own row"); + assert_eq!(field(&h, id, "reds"), json!([30.0, 0.0, 0.0, 0.0]), "Reds keeps its edit"); +} + +#[test] +fn selective_color_dialog_edits_one_colour_at_a_time() { + let (mut h, id) = selective_dialog(); + let steps = h.state().session.active().unwrap().history.past_len(); + assert_eq!(slider_values(&h), [0.0; 4]); + assert_eq!(field(&h, id, "colors"), Value::Null, "opens on Reds"); + drag_slider(&mut h, 0, true); + let reds = field(&h, id, "reds"); + let red_cyan = reds[0].as_f64().unwrap(); + assert!(red_cyan > 0.0, "{reds}"); + assert_eq!(slider_values(&h)[0], red_cyan); + // Another colour: its own row, still at 0; Reds keep theirs. + set_field(&mut h, id, "colors", json!("blues")); + h.run_steps(3); + assert_eq!(slider_values(&h), [0.0; 4], "the sliders show the Blues row"); + assert_eq!(field(&h, id, "reds"), reds); + assert_eq!(field(&h, id, "colors"), json!("blues"), "the editor keeps the colour field"); + drag_slider(&mut h, 0, false); + assert!(field(&h, id, "blues")[0].as_f64().unwrap() < 0.0); + assert_eq!(field(&h, id, "reds"), reds, "editing Blues leaves Reds alone"); + // Back to Reds: intact. + set_field(&mut h, id, "colors", json!("reds")); + h.run_steps(3); + assert_eq!(slider_values(&h)[0], red_cyan); + assert_eq!(h.state().session.active().unwrap().history.past_len(), steps, "nothing is committed before OK"); +} + +#[test] +fn selective_color_dialog_ok_applies_every_colour_in_one_step() { + let (mut h, id) = selective_dialog(); + let (before_red, before_blue) = (pixel(h.state(), 8, 8), pixel(h.state(), 56, 8)); + let steps = h.state().session.active().unwrap().history.past_len(); + set_field(&mut h, id, "method", json!("absolute")); + set_field(&mut h, id, "reds", json!([0.0, 0.0, 0.0, 60.0])); + set_field(&mut h, id, "blues", json!([0.0, 0.0, 0.0, 60.0])); + set_field(&mut h, id, "colors", json!("blues")); + h.run_steps(3); + crate::dialogs::confirm(h.state_mut(), id).unwrap(); + let app = h.state(); + assert_eq!(app.session.active().unwrap().history.past_len(), steps + 1, "one history step"); + let (cmd, params) = app.session.journal.last().unwrap(); + assert_eq!(cmd, SELECTIVE); + for key in photocraft_engine::adjust_cmds::RANGES { + assert!(params[key].is_array(), "{key} in {params}"); + } + assert_eq!(params["reds"][3].as_f64(), Some(60.0)); + assert_eq!(params["blues"][3].as_f64(), Some(60.0)); + assert_ne!(pixel(app, 8, 8), before_red, "Reds changed"); + assert_ne!(pixel(app, 56, 8), before_blue, "Blues changed"); +} + +#[test] +fn selective_color_dialog_cancel_leaves_the_document_untouched() { + let (mut h, id) = selective_dialog(); + let before = h.state().session.active().unwrap().doc.clone(); + drag_slider(&mut h, 0, true); + set_field(&mut h, id, "blues", json!([0.0, 0.0, 0.0, 60.0])); + h.run_steps(2); + h.state_mut().ui.close_dialog(id); + h.run_steps(2); + assert!(std::sync::Arc::ptr_eq(&before, &h.state().session.active().unwrap().doc)); +} + +#[test] +fn selective_color_reset_zeroes_every_colour_and_returns_to_reds() { + let (mut h, id) = selective_dialog(); + set_field(&mut h, id, "reds", json!([10.0, 0.0, 0.0, 0.0])); + set_field(&mut h, id, "blues", json!([0.0, 20.0, 0.0, 0.0])); + set_field(&mut h, id, "method", json!("absolute")); + set_field(&mut h, id, "colors", json!("blues")); + h.run_steps(2); + // Alt turns Cancel into Reset; click the real button. + h.event(egui::Event::ModifiersChanged(egui::Modifiers::ALT)); + h.run_steps(2); + let reset = h.get_by_label("Reset").rect(); + let click = |pressed| egui::Event::PointerButton { pos: reset.center(), button: egui::PointerButton::Primary, pressed, modifiers: egui::Modifiers::ALT }; + input(&mut h, egui::Modifiers::ALT, &[egui::Event::PointerMoved(reset.center()), click(true), click(false)]); + assert!(h.state().ui.dialogs.iter().any(|d| d.id == id), "Reset keeps the dialog open"); + assert_eq!(field(&h, id, "colors"), Value::Null, "back to Reds"); + for key in photocraft_engine::adjust_cmds::RANGES { + assert!(row_is_zero(&field(&h, id, key)), "{key}: {}", field(&h, id, key)); + } + assert_eq!(field(&h, id, "method"), json!("relative")); + assert_eq!(slider_values(&h), [0.0; 4]); +} + +#[test] +fn selective_color_ok_on_malformed_params_reports_and_commits_nothing() { + let cases = [ + json!({"reds": "oops"}), + json!({"blues": [1, "x", 0, 0]}), + json!({"colors": "blues", "cyan": "not a number"}), + json!({"colors": "purples"}), + json!({"method": "sideways"}), + ]; + for case in cases { + let (mut h, id) = selective_dialog(); + let doc = h.state().session.active().unwrap().doc.clone(); + let steps = h.state().session.active().unwrap().history.past_len(); + let journal = h.state().session.journal.len(); + for (k, v) in case.as_object().unwrap() { + set_field(&mut h, id, k, v.clone()); + } + h.run_steps(3); + assert!(crate::dialogs::confirm(h.state_mut(), id).is_err(), "{case}: OK reports an error"); + let app = h.state(); + assert_eq!(app.session.active().unwrap().history.past_len(), steps, "{case}: no history step"); + assert_eq!(app.session.journal.len(), journal, "{case}: nothing journaled"); + assert!(std::sync::Arc::ptr_eq(&doc, &app.session.active().unwrap().doc), "{case}: document untouched"); + } +} + +fn click_radio(h: &mut Harness<'static, PhotocraftApp>, label: &str) { + h.get_by_role_and_label(egui::accesskit::Role::RadioButton, label).click(); + h.run_steps(3); +} + +#[test] +fn selective_color_method_radios_set_the_method() { + let (mut h, id) = selective_dialog(); + let steps = h.state().session.active().unwrap().history.past_len(); + click_radio(&mut h, "Absolute"); + assert_eq!(field(&h, id, "method"), json!("absolute")); + assert_eq!(h.state().session.active().unwrap().history.past_len(), steps, "nothing is committed before OK"); + click_radio(&mut h, "Relative"); + assert_eq!(field(&h, id, "method"), json!("relative")); + click_radio(&mut h, "Absolute"); + crate::dialogs::confirm(h.state_mut(), id).unwrap(); + let app = h.state(); + assert_eq!(app.session.active().unwrap().history.past_len(), steps + 1); + let (_, params) = app.session.journal.last().unwrap(); + assert_eq!(params["method"], json!("absolute")); +} + +/// The layer preview shows every colour's row (not just the one the sliders show) until the +/// dialog closes, and never touches the committed document. +#[test] +fn selective_color_preview_shows_every_colour_until_cancel() { + let (mut h, id) = selective_dialog(); + let doc = h.state().session.active().unwrap().doc.clone(); + let steps = h.state().session.active().unwrap().history.past_len(); + let (before_red, before_blue) = (pixel(h.state(), 8, 8), pixel(h.state(), 56, 8)); + set_field(&mut h, id, "method", json!("absolute")); + set_field(&mut h, id, "reds", json!([0.0, 0.0, 0.0, 60.0])); + set_field(&mut h, id, "blues", json!([0.0, 0.0, 0.0, 60.0])); + set_field(&mut h, id, "colors", json!("blues")); + h.run_steps(3); + let app = h.state_mut(); + assert!(crate::adjust_preview::on_layer(app, 0), "previews through the layer"); + let (shown, _) = crate::adjust_preview::display_doc(app, 0).expect("a preview document"); + let shown = photocraft_compose::render(&shown, shown.bounds()); + assert_ne!(shown.px[8 * 64 + 8], before_red, "Reds shown"); + assert_ne!(shown.px[8 * 64 + 56], before_blue, "Blues shown"); + assert_eq!(pixel(app, 8, 8), before_red, "the committed document is unchanged"); + assert_eq!(pixel(app, 56, 8), before_blue); + assert!(std::sync::Arc::ptr_eq(&doc, &app.session.active().unwrap().doc)); + h.state_mut().ui.close_dialog(id); + h.run_steps(2); + let app = h.state_mut(); + assert!(crate::adjust_preview::display_doc(app, 0).is_none(), "closing the dialog drops the preview"); + assert!(std::sync::Arc::ptr_eq(&doc, &app.session.active().unwrap().doc)); + assert_eq!(app.session.active().unwrap().history.past_len(), steps); +} + +#[test] +fn selective_color_dialog_folds_the_single_colour_form_into_the_rows() { + let (mut h, id) = selective_dialog(); + set_field(&mut h, id, "colors", json!("blues")); + set_field(&mut h, id, "cyan", json!(30)); + h.run_steps(3); + for key in ["cyan", "magenta", "yellow", "black"] { + assert_eq!(field(&h, id, key), Value::Null, "{key} folded"); + } + assert_eq!(field(&h, id, "blues")[0].as_f64(), Some(30.0)); + assert_eq!(field(&h, id, "colors"), json!("blues")); + assert_eq!(slider_values(&h)[0], 30.0); + // A later slider edit is not overridden by the old scalars. + drag_slider(&mut h, 0, false); + assert!(field(&h, id, "blues")[0].as_f64().unwrap() < 30.0); +} + +/// `relative` overrides `method` in the engine, so a dialog holding both would show one and apply +/// the other. The editor keeps only `method`, and the edits made so far. +#[test] +fn selective_color_dialog_folds_relative_into_the_method() { + let (mut h, id) = selective_dialog(); + set_field(&mut h, id, "reds", json!([10.0, 0.0, 0.0, 0.0])); + set_field(&mut h, id, "colors", json!("blues")); + set_field(&mut h, id, "method", json!("relative")); + set_field(&mut h, id, "relative", json!(false)); + h.run_steps(3); + assert_eq!(field(&h, id, "relative"), Value::Null, "folded"); + assert_eq!(field(&h, id, "method"), json!("absolute")); + assert_eq!(field(&h, id, "reds")[0].as_f64(), Some(10.0)); + assert_eq!(field(&h, id, "colors"), json!("blues")); + // The Method button now decides what OK applies. + set_field(&mut h, id, "method", json!("relative")); + h.run_steps(2); + crate::dialogs::confirm(h.state_mut(), id).unwrap(); + let (_, params) = h.state().session.journal.last().unwrap(); + assert_eq!(params["method"], json!("relative")); + assert!(params.get("relative").is_none()); +} + +#[test] +fn selective_color_open_last_restores_every_row_and_the_method() { + let mut app = selective_app(); + let id = open(&mut app, SELECTIVE).unwrap(); + let dialog = app.ui.dialog_mut(id).unwrap(); + dialog.fields.insert("method".into(), json!("absolute")); + dialog.fields.insert("reds".into(), json!([10.0, -20.0, 30.0, 5.0])); + dialog.fields.insert("blues".into(), json!([-15.0, 0.0, 25.0, 0.0])); + dialog.fields.insert("colors".into(), json!("blues")); + let fields = dialog.fields.clone(); + remember(&mut app, &fields); + app.ui.dialogs.clear(); + let id = open_last(&mut app, SELECTIVE).unwrap(); + let restored = &app.ui.dialog_mut(id).unwrap().fields; + assert_eq!(restored["method"], json!("absolute")); + assert_eq!(restored["reds"], json!([10.0, -20.0, 30.0, 5.0])); + assert_eq!(restored["blues"], json!([-15.0, 0.0, 25.0, 0.0])); + assert!(!restored.contains_key("colors"), "reopens on Reds"); +} + +#[test] +fn selective_color_open_last_reads_an_old_single_colour_pref() { + let mut app = selective_app(); + app.session.prefs.edit(|prefs| prefs.dialogs.insert(SELECTIVE.into(), json!({"colors": "blues", "cyan": 30}))); + let id = open_last(&mut app, SELECTIVE).unwrap(); + let restored = &app.ui.dialog_mut(id).unwrap().fields; + assert_eq!(restored["blues"][0].as_f64(), Some(30.0)); + assert!(!restored.contains_key("cyan")); +} + +#[test] +fn selective_color_editor_survives_malformed_params() { + let (mut h, id) = selective_dialog(); + for colors in [json!(3), json!("purples"), json!(null), json!(["reds"])] { + set_field(&mut h, id, "colors", colors); + h.run_steps(2); + assert_eq!(slider_values(&h), [0.0; 4]); + } + set_field(&mut h, id, "cyan", json!("not a number")); + h.run_steps(2); + set_field(&mut h, id, "cyan", Value::Null); + set_field(&mut h, id, "reds", json!("oops")); + h.run_steps(2); + set_field(&mut h, id, "blues", json!([1, "x"])); + set_field(&mut h, id, "colors", json!("blues")); + h.run_steps(2); + assert_eq!(slider_values(&h), [1.0, 0.0, 0.0, 0.0], "a malformed row reads as zeros where it is not numbers"); + drag_slider(&mut h, 1, true); + let row = field(&h, id, "blues"); + assert!(row.as_array().is_some_and(|a| a.len() == 4 && a.iter().all(Value::is_number)), "rebuilt as four numbers: {row}"); + assert!(row[1].as_f64().unwrap() > 0.0); +} diff --git a/crates/ui-egui/src/dialogs/adjust_editors.rs b/crates/ui-egui/src/dialogs/adjust_editors.rs index c2c503d05c..ca87b090ff 100644 --- a/crates/ui-egui/src/dialogs/adjust_editors.rs +++ b/crates/ui-egui/src/dialogs/adjust_editors.rs @@ -4,7 +4,7 @@ //! Every editor edits the kind's complete parameter set (`photocraft_engine::adjust_params`) as a //! JSON object and reports an [`Edit`]: `changed` while values move (the host previews them live) //! and `commit` when a gesture ends (the Properties host then runs one `layer.setAdjustment`; a -//! dialog commits on OK). Selective Color and Color Lookup keep their editors in `adjust_ui`. +//! dialog commits on OK). Color Lookup keeps its editor in `adjust_ui`. use crate::point_curve as curve_edit; use crate::state::CurvesEditorState as CurveUi; @@ -28,6 +28,7 @@ mod curves; mod gradient_map; mod hue_saturation; mod levels; +mod selective_color; mod session; #[cfg(test)] @@ -48,10 +49,11 @@ use hue_saturation::hue_saturation; use hue_saturation::{lightness_track, move_hue_range_handle, saturation_track}; use levels::levels; pub use levels::{auto_levels, gamma_from_pos, gamma_pos}; +use selective_color::selective_color; pub use session::{layer_editor, layer_mem, properties_coalesce, properties_reset, session_start}; -/// Kinds edited here (Selective Color and Color Lookup have their own editors; Invert has none). -pub const KINDS: [&str; 13] = [ +/// Kinds edited here (Color Lookup has its own editor in `adjust_ui`; Invert has none). +pub const KINDS: [&str; 14] = [ "brightnessContrast", "levels", "curves", @@ -65,6 +67,7 @@ pub const KINDS: [&str; 13] = [ "posterize", "threshold", "gradientMap", + "selectiveColor", ]; pub fn has_editor(kind: &str) -> bool { @@ -161,6 +164,7 @@ pub fn editor(ui: &mut egui::Ui, kind: &str, v: &mut Value, cx: &EditorCx) -> Ed "posterize" => sliders(ui, v, &[("levels", "Levels", 2.0, 255.0, 4.0, "", None)]), "threshold" => threshold(ui, v, cx), "gradientMap" => gradient_map(ui, v, cx), + "selectiveColor" => selective_color(ui, v, cx), _ => Edit::default(), } } diff --git a/crates/ui-egui/src/dialogs/adjust_editors/selective_color.rs b/crates/ui-egui/src/dialogs/adjust_editors/selective_color.rs new file mode 100644 index 0000000000..88f2ae27bc --- /dev/null +++ b/crates/ui-egui/src/dialogs/adjust_editors/selective_color.rs @@ -0,0 +1,100 @@ +use photocraft_engine::adjust_cmds::RANGES; + +use super::{Edit, EditorCx, RichText, Tokens, Value, adjust_params, json, nums, widgets}; + +// --------------------------------------------------------------------------------------------- +// Selective Color + +/// The nine colours, in [`RANGES`] order. +const RANGE_LABELS: [&str; 9] = ["Reds", "Yellows", "Greens", "Cyans", "Blues", "Magentas", "Whites", "Neutrals", "Blacks"]; + +/// The single-colour scalar form of the params (`"colors":"blues","cyan":30`), which this editor +/// folds into the per-colour rows. +const SCALARS: [&str; 4] = ["cyan", "magenta", "yellow", "black"]; + +/// The colour the editor shows. The dialog keeps it in the `"colors"` field (so automation can +/// drive it with `ui.dialog.set`); the Properties panel keeps it in egui memory, because its +/// params go to `layer.setAdjustment`. +fn selected_range(ui: &egui::Ui, v: &Value, cx: &EditorCx) -> usize { + let range = if cx.dialog { + v.get("colors").and_then(Value::as_str).and_then(|c| RANGES.iter().position(|r| *r == c)).unwrap_or(0) + } else { + ui.data(|d| d.get_temp::(cx.mem.with("selc-range"))).unwrap_or(0) + }; + range.min(RANGES.len() - 1) +} + +/// Selective Color: a colour dropdown, the Cyan/Magenta/Yellow/Black sliders of that colour's row, +/// and Relative/Absolute. Changing the colour is no edit of the values. +pub(super) fn selective_color(ui: &mut egui::Ui, v: &mut Value, cx: &EditorCx) -> Edit { + let t = Tokens::get(ui.ctx()); + let mut e = Edit::default(); + // Params in the older single-colour form move into the rows, and `relative`, which the engine + // reads over `method`, into `method`, so the controls show what OK applies. Unparsable ones + // stay as they are, for the command to report on OK. + if (SCALARS.iter().any(|k| v.get(*k).is_some()) || v.get("relative").is_some()) + && let Ok(adj) = adjust_params::from_params("selectiveColor", &*v, None, photocraft_doc::ColorMode::Rgb) + { + let mut folded = adjust_params::to_params(&adj); + if cx.dialog + && let Some(colors) = v.get("colors").cloned() + && let Some(o) = folded.as_object_mut() + { + o.insert("colors".into(), colors); + } + *v = folded; + e.changed = true; + } + let range = selected_range(ui, v, cx); + let mut picked = range; + ui.horizontal(|ui| { + ui.label(RichText::new(tl!("Colors")).color(t.text_dim)); + let opts: Vec<(usize, &str)> = RANGE_LABELS.iter().copied().enumerate().collect(); + widgets::dropdown(ui, &format!("selc-colors-{:x}", cx.mem.value()), tl!("Color"), &mut picked, &opts, 150.0); + }); + if picked != range { + let picked = picked.min(RANGES.len() - 1); + if cx.dialog { + if let (Some(o), Some(name)) = (v.as_object_mut(), RANGES.get(picked)) { + o.insert("colors".into(), json!(name)); + e.changed = true; + } + } else { + ui.data_mut(|d| d.insert_temp(cx.mem.with("selc-range"), picked)); + } + } + let range = picked.min(RANGES.len() - 1); + let key = RANGES.get(range).copied().unwrap_or("reds"); + ui.add_space(4.0); + let mut row = nums(v, key, [0.0; 4]); + let mut moved = false; + for (k, text) in [tl!("Cyan"), tl!("Magenta"), tl!("Yellow"), tl!("Black")].into_iter().enumerate() { + let mut x = row.get(k).copied().unwrap_or(0.0).clamp(-100.0, 100.0); + let r = widgets::slider_row(ui, text, &mut x, -100.0..=100.0, "%", None); + if r.changed() + && let Some(slot) = row.get_mut(k) + { + *slot = x.round(); + moved = true; + } + e.add(Edit::of(&r)); + } + if moved && let Some(o) = v.as_object_mut() { + // A whole new row, so a missing or malformed one becomes four numbers. + o.insert(key.into(), json!(row)); + } + ui.add_space(4.0); + let method = v.get("method").and_then(Value::as_str).unwrap_or("relative").to_string(); + ui.horizontal(|ui| { + for (m, text) in [("relative", tl!("Relative")), ("absolute", tl!("Absolute"))] { + if ui.radio(method == m, text).clicked() + && method != m + && let Some(o) = v.as_object_mut() + { + o.insert("method".into(), json!(m)); + e.add(Edit::discrete(true)); + } + } + }); + e +} diff --git a/crates/ui-egui/src/dialogs/adjust_editors/session.rs b/crates/ui-egui/src/dialogs/adjust_editors/session.rs index 12eb73b470..d254b49bba 100644 --- a/crates/ui-egui/src/dialogs/adjust_editors/session.rs +++ b/crates/ui-egui/src/dialogs/adjust_editors/session.rs @@ -85,7 +85,6 @@ pub fn layer_editor(app: &mut PhotocraftApp, ui: &mut egui::Ui, id: LayerId, adj let t = Tokens::get(ui.ctx()); let kind = photocraft_engine::commands::adjustment_kind(adj); match adj { - Adjustment::SelectiveColor { .. } => return crate::adjust_ui::selective_color_editor(app, ui, id, adj), Adjustment::ColorLookup { .. } => return crate::adjust_ui::color_lookup_editor(app, ui, id, adj), Adjustment::Invert => { ui.label(RichText::new(tl!("Invert has no settings.")).color(t.text_faint)); diff --git a/crates/ui-egui/src/dialogs/adjust_editors/ui_tests.rs b/crates/ui-egui/src/dialogs/adjust_editors/ui_tests.rs index f41fe4eca0..88dcbaf062 100644 --- a/crates/ui-egui/src/dialogs/adjust_editors/ui_tests.rs +++ b/crates/ui-egui/src/dialogs/adjust_editors/ui_tests.rs @@ -995,3 +995,75 @@ fn gradient_map_stop_picker_closed_without_a_colour_changes_nothing() { assert!(h.state().live_adjust.is_none()); } } + +/// Selective Color in Properties: the Colors dropdown's choice lives in editor memory, so +/// switching colour commits nothing, and each colour keeps its own row. +#[test] +fn selective_color_properties_switch_colour_without_committing() { + let mut h = app_harness("selectiveColor", "rgb", 8); + let (_, before) = layer(&h); + let steps = h.state().session.active().unwrap().history.past_len(); + let nudge = |h: &mut Harness<'static, PhotocraftApp>| { + let r = + h.query_all_by_role(egui::accesskit::Role::Slider).rfind(|n| n.accesskit_node().label().as_deref() == Some("Cyan")).expect("Cyan slider").rect(); + drag(h, r.center(), Pos2::new(r.right() + 40.0, r.center().y)); + }; + nudge(&mut h); + let (_, reds) = layer(&h); + assert_ne!(reds, before); + assert_eq!(h.state().session.active().unwrap().history.past_len(), steps + 1); + // Switch to Blues through the Colors dropdown: press it, drag onto the option, release. + let named = |n: &egui_kittest::Node<'_>| { + let a = n.accesskit_node(); + a.value().as_deref() == Some("Reds") || a.label().as_deref() == Some("Reds") + }; + let at = h.query_all_by_role(egui::accesskit::Role::ComboBox).find(|n| named(n)).expect("the Colors dropdown").rect().center(); + h.hover_at(at); + h.run_steps(1); + h.drag_at(at); + h.run_steps(3); + let blues = h.query_by_label("Blues").expect("the list opened on the press").rect().center(); + for k in 1..=6 { + h.hover_at(at + (blues - at) * (k as f32 / 6.0)); + h.run_steps(1); + } + h.drop_at(blues); + h.run_steps(4); + assert!( + h.query_all_by_role(egui::accesskit::Role::ComboBox).any(|n| { + let a = n.accesskit_node(); + a.value().as_deref() == Some("Blues") || a.label().as_deref() == Some("Blues") + }), + "the dropdown keeps its choice" + ); + assert_eq!(layer(&h).1, reds, "switching colour changes nothing"); + assert_eq!(h.state().session.active().unwrap().history.past_len(), steps + 1); + assert!(h.state().live_adjust.is_none()); + nudge(&mut h); + let (Adjustment::SelectiveColor { adjustments: first, .. }, (_, Adjustment::SelectiveColor { adjustments: now, .. })) = (&reds, layer(&h)) else { + panic!("Selective Color layer") + }; + assert_eq!(now[0], first[0], "Reds untouched by editing Blues"); + assert_ne!(now[4], [0.0; 4], "Blues edited"); + assert_eq!(h.state().session.active().unwrap().history.past_len(), steps + 2); +} + +/// The Method radios in Properties commit through the real controls; the current one is a no-op. +#[test] +fn selective_color_properties_method_radios_commit() { + let mut h = app_harness("selectiveColor", "rgb", 8); + let steps = |h: &Harness<'_, PhotocraftApp>| h.state().session.active().unwrap().history.past_len(); + let start = steps(&h); + let radio = |h: &mut Harness<'static, PhotocraftApp>, text: &str| { + let at = h.query_all_by_role_and_label(egui::accesskit::Role::RadioButton, text).last().expect("method radio").rect().center(); + click(h, at); + }; + radio(&mut h, "Absolute"); + assert!(matches!(layer(&h).1, Adjustment::SelectiveColor { relative: false, .. })); + assert_eq!(steps(&h), start + 1); + radio(&mut h, "Absolute"); + assert_eq!(steps(&h), start + 1, "the current method is no step"); + radio(&mut h, "Relative"); + assert!(matches!(layer(&h).1, Adjustment::SelectiveColor { relative: true, .. })); + assert_eq!(steps(&h), start + 2); +} diff --git a/crates/ui-egui/src/dialogs/adjust_preview.rs b/crates/ui-egui/src/dialogs/adjust_preview.rs index 5d060f2c6a..60e52bf47a 100644 --- a/crates/ui-egui/src/dialogs/adjust_preview.rs +++ b/crates/ui-egui/src/dialogs/adjust_preview.rs @@ -30,8 +30,8 @@ //! RGB, adjusts and converts back (CMYK even changes when the settings are neutral), which a //! composite in display RGB can't reproduce; //! - in Grayscale documents, kinds that make colour from gray (Vibrance, Color Balance, Black & -//! White, Photo Filter, Channel Mixer, Gradient Map, colorized Hue/Saturation): the command -//! folds each pixel back to gray, the composite would carry the colour through; +//! White, Photo Filter, Channel Mixer, Gradient Map, Selective Color, colorized Hue/Saturation): +//! the command folds each pixel back to gray, the composite would carry the colour through; //! - on the GPU canvas, documents the wgpu compositor doesn't cover (it would fall back to a //! full CPU composite per change); on the CPU canvas, documents above the proxy size. diff --git a/crates/ui-egui/src/dialogs/adjust_preview/tests.rs b/crates/ui-egui/src/dialogs/adjust_preview/tests.rs index c83966066c..40418c202b 100644 --- a/crates/ui-egui/src/dialogs/adjust_preview/tests.rs +++ b/crates/ui-egui/src/dialogs/adjust_preview/tests.rs @@ -3,7 +3,7 @@ use photocraft_color::{BlendMode, Color, PixelFormat, SampleType}; use photocraft_doc::Size; use serde_json::json; -const KINDS: [&str; 13] = crate::adjust_editors::KINDS; +const KINDS: [&str; 14] = crate::adjust_editors::KINDS; /// Settings that move every kind well away from neutral. pub(crate) fn sample(kind: &str) -> Value { @@ -21,6 +21,7 @@ pub(crate) fn sample(kind: &str) -> Value { "posterize" => json!({"levels": 3}), "threshold" => json!({"level": 90}), "gradientMap" => json!({"stops": [[0, "#200040"], [1, "#ffd080"]]}), + "selectiveColor" => json!({"method": "absolute", "reds": [10, -20, 30, 5], "blues": [-15, 0, 25, 0]}), _ => json!({}), } } @@ -105,7 +106,7 @@ pub(crate) fn max_diff(a: &Document, b: &Document) -> f32 { } /// Kinds that make colour from gray: grayscale documents preview them on the CPU proxy. -const GRAY_COLOUR: [&str; 6] = ["vibrance", "colorBalance", "blackWhite", "photoFilter", "channelMixer", "gradientMap"]; +const GRAY_COLOUR: [&str; 7] = ["vibrance", "colorBalance", "blackWhite", "photoFilter", "channelMixer", "gradientMap", "selectiveColor"]; #[test] fn preview_composite_matches_the_destructive_command() { diff --git a/crates/ui-egui/src/dialogs/discard_ui.rs b/crates/ui-egui/src/dialogs/discard_ui.rs index 41ca4e4acb..b08fb22247 100644 --- a/crates/ui-egui/src/dialogs/discard_ui.rs +++ b/crates/ui-egui/src/dialogs/discard_ui.rs @@ -414,7 +414,8 @@ fn button_label(mac: bool, label: &str, key: Option) -> String { /// The labels of one dialog's buttons, each with its key in the same style: "(Y)es" when every /// translation starts with its key, otherwise appended to all ("Ja (Y)", "Nein (N)") (#5564). fn button_labels(mac: bool, buttons: &[(&str, Option)]) -> Vec { - let starts_with_key = |label: &str, k: Key| label.split_at_checked(1).is_some_and(|(first, _)| first.eq_ignore_ascii_case(k.name())); + let starts_with_key = + |label: &str, k: Key| label.chars().next().and_then(crate::menu_keys::label_key).is_some_and(|c| k.name().chars().eq(std::iter::once(c))); let inline = buttons.iter().all(|&(label, key)| key.is_none_or(|k| starts_with_key(tl!(label), k))); buttons .iter() @@ -423,7 +424,7 @@ fn button_labels(mac: bool, buttons: &[(&str, Option)]) -> Vec { match key { None => text.to_string(), Some(_) if mac => text.to_string(), - Some(k) => match text.split_at_checked(1) { + Some(k) => match text.chars().next().and_then(|c| text.split_at_checked(c.len_utf8())) { Some((first, rest)) if inline => format!("({first}){rest}"), _ => format!("{text} ({})", k.name()), }, diff --git a/crates/ui-egui/src/dialogs/discard_ui/tests.rs b/crates/ui-egui/src/dialogs/discard_ui/tests.rs index a75a1aeb99..5617e0245a 100644 --- a/crates/ui-egui/src/dialogs/discard_ui/tests.rs +++ b/crates/ui-egui/src/dialogs/discard_ui/tests.rs @@ -188,6 +188,17 @@ fn mnemonic_labels_bracket_the_key() { assert_eq!(button_label(false, "保存", Some(Key::S)), "保存 (S)"); } +/// Fixed ASCII access keys do not mistake a dotted Azerbaijani i for dotless I. +#[test] +fn azerbaijani_dialog_button_mnemonics_use_locale_casing() { + let az = crate::i18n::Lang::from_code("az").unwrap(); + crate::i18n::with_language(az, || { + assert_eq!(button_label(false, "i", Some(Key::I)), "i (I)"); + assert_eq!(button_label(false, "ı", Some(Key::I)), "(ı)"); + assert_eq!(button_label(false, "İ", Some(Key::I)), "İ (I)"); + }); +} + type Prompted = egui_kittest::Harness<'static, PhotocraftApp>; /// The unsaved-changes prompt for `command` over `app`'s dirty documents, as `os` draws it (with diff --git a/crates/ui-egui/src/dialogs/distort_ui.rs b/crates/ui-egui/src/dialogs/distort_ui.rs index aa5c8fe4d9..1f8e05d214 100644 --- a/crates/ui-egui/src/dialogs/distort_ui.rs +++ b/crates/ui-egui/src/dialogs/distort_ui.rs @@ -361,10 +361,12 @@ pub fn keys(app: &mut PhotocraftApp, ctx: &egui::Context) -> bool { return true; } if app.distort.select_mask.is_some() { - // Enter closes a Polygonal Lasso polygon, else OK; Esc drops one, else Cancel. + // Enter closes a Polygonal Lasso polygon, else OK; Esc ends a brush resize (with + // Control+Alt, its macOS gesture, still held too), else drops a polygon, else Cancel. + let resize_esc = |ctx: &egui::Context| ctx.input_mut(|i| i.consume_key(Modifiers::CTRL | Modifiers::ALT, Key::Escape)); if enter(ctx) { crate::select_mask_ui::enter(app); - } else if esc(ctx) { + } else if esc(ctx) || (crate::select_mask_ui::resizing(app) && resize_esc(ctx)) { crate::select_mask_ui::escape(app); } return true; diff --git a/crates/ui-egui/src/dialogs/export_dialog.rs b/crates/ui-egui/src/dialogs/export_dialog.rs index acfaa16db1..dcd6ba003d 100644 --- a/crates/ui-egui/src/dialogs/export_dialog.rs +++ b/crates/ui-egui/src/dialogs/export_dialog.rs @@ -462,6 +462,9 @@ fn settings(f: &Map) -> ExportSettings { let metadata = s(f, "metadata"); ExportSettings { jpeg_quality: (fmt == "jpg").then_some(quality), + // Photoshop's 1-7 Export As presets measured 4:2:0 at 1-4 and 4:4:4 at 5-7. + // An exact mapping to 1-100 is unestablished; reuse PhotoCraft's Save for Web cutoff. + jpeg_chroma_subsampling: fmt == "jpg" && quality <= 50, webp_lossless: fmt != "webp" || lossless(f), webp_quality: (fmt == "webp" && !lossless(f)).then_some(quality), xmp_all: metadata == "all", diff --git a/crates/ui-egui/src/dialogs/export_dialog/tests.rs b/crates/ui-egui/src/dialogs/export_dialog/tests.rs index c5a7bdfa2f..90624f8778 100644 --- a/crates/ui-egui/src/dialogs/export_dialog/tests.rs +++ b/crates/ui-egui/src/dialogs/export_dialog/tests.rs @@ -526,6 +526,109 @@ fn export_document_scales_and_flattens() { assert_eq!(settings(&f).jpeg_quality, Some(85)); } +/// Read the main JPEG frame, skipping complete segments rather than searching marker bytes: +/// APP metadata can contain a thumbnail JPEG with its own frame and different sampling. +fn jpeg_sampling_factors(bytes: &[u8]) -> [(u8, u8); 3] { + assert_eq!(bytes.get(..2), Some([0xff, 0xd8].as_slice()), "JPEG SOI"); + let mut offset = 2; + loop { + assert_eq!(bytes.get(offset), Some(&0xff), "JPEG marker prefix"); + while bytes.get(offset) == Some(&0xff) { + offset += 1; + } + let marker = *bytes.get(offset).expect("JPEG marker"); + offset += 1; + match marker { + 0x01 | 0xd0..=0xd8 => continue, // Standalone markers have no length. + 0x00 | 0xd9 | 0xda => panic!("JPEG has no frame before scan/end"), + _ => {} + } + let length_bytes = bytes.get(offset..offset + 2).expect("JPEG segment length"); + let length = usize::from(u16::from_be_bytes([length_bytes[0], length_bytes[1]])); + assert!(length >= 2, "JPEG segment length includes its two length bytes"); + let end = offset.checked_add(length).expect("JPEG segment end"); + let segment = bytes.get(offset + 2..end).expect("complete JPEG segment"); + if matches!(marker, 0xc0..=0xc3 | 0xc5..=0xc7 | 0xc9..=0xcb | 0xcd..=0xcf) { + assert_eq!(segment.get(5), Some(&3), "JPEG frame must have three components"); + assert_eq!(segment.len(), 6 + 3 * 3, "JPEG frame component descriptors"); + return std::array::from_fn(|i| { + let sampling = segment[6 + 3 * i + 1]; + (sampling >> 4, sampling & 0x0f) + }); + } + offset = end; + } +} + +#[test] +fn jpeg_export_sampling_skips_embedded_thumbnail() { + // An APP segment contains an entire 4:2:0 thumbnail; the main frame is 4:4:4. + let frame_420 = [0xff, 0xc0, 0, 17, 8, 0, 1, 0, 1, 3, 1, 0x22, 0, 2, 0x11, 1, 3, 0x11, 1]; + let mut thumbnail = vec![0xff, 0xd8]; + thumbnail.extend_from_slice(&frame_420); + thumbnail.extend_from_slice(&[0xff, 0xd9]); + assert_eq!(jpeg_sampling_factors(&thumbnail), [(2, 2), (1, 1), (1, 1)]); + let mut jpeg = vec![0xff, 0xd8, 0xff, 0xe1]; + jpeg.extend_from_slice(&u16::try_from(thumbnail.len() + 2).unwrap().to_be_bytes()); + jpeg.extend_from_slice(&thumbnail); + jpeg.push(0xff); // Marker fill byte before the main frame. + let mut frame_444 = frame_420; + frame_444[11] = 0x11; + jpeg.extend_from_slice(&frame_444); + assert_eq!(jpeg_sampling_factors(&jpeg), [(1, 1); 3]); +} + +/// High-quality JPEG must keep the colour detail of a transparent graphic over its background; +/// lower qualities use chroma subsampling, including at the quality-50 boundary. +#[test] +fn jpeg_export_preserves_fine_colour_edges() { + use photocraft_doc::{Color, ColorMode, Layer, SampleType, Size}; + use photocraft_geom::Rect; + + for depth in [SampleType::U8, SampleType::U16, SampleType::F32] { + let mut doc = Document::with_background("colour detail", Size::new(32, 16), ColorMode::Rgb, depth, Color::WHITE); + let mut graphic = Layer::raster("transparent graphic", doc.pixel_format()); + for x in (0..32).step_by(2) { + graphic.surface_mut().unwrap().fill_rect(Rect::from_xywh(x, 0, 1, 16), &[1.0, 0.0, 0.0, 1.0]); + } + doc.layers.push(graphic); + let before = doc.clone(); + for quality in [1, 50, 51, 85, 100] { + let fields = json!({"format": "jpg", "quality": quality, "scale": 100}).as_object().unwrap().clone(); + let out = default_export_document(&doc, &fields, None).unwrap(); + let encoded = photocraft_io::export(&out, "detail.jpg", &settings(&fields).io_options()).unwrap(); + let expected_sampling = if quality <= 50 { [(2, 2), (1, 1), (1, 1)] } else { [(1, 1); 3] }; + assert_eq!(jpeg_sampling_factors(&encoded.bytes), expected_sampling, "{depth:?}, quality {quality}: JPEG sampling"); + let decoded = photocraft_codecs::decode(&encoded.bytes).unwrap().convert(photocraft_codecs::ChannelLayout::Rgb, photocraft_codecs::SampleType::U8); + assert_eq!(decoded.dimensions(), (32, 16), "{depth:?}, quality {quality}"); + // Lower qualities also lose detail to quantization, independently of chroma sampling. + if quality == 100 { + let mut max_error = 0; + for (i, pixel) in decoded.data().as_chunks::<3>().0.iter().enumerate() { + let expected: [u8; 3] = if i % 32 % 2 == 0 { [255, 0, 0] } else { [255, 255, 255] }; + for (actual, expected) in pixel.iter().zip(expected) { + max_error = max_error.max(actual.abs_diff(expected)); + } + } + assert!(max_error <= 8, "{depth:?}: JPEG at quality 100 loses colour detail by {max_error} levels"); + } + assert_eq!(doc, before, "{depth:?}, quality {quality}: export leaves the layered source unchanged"); + } + } +} + +#[test] +fn jpeg_export_settings_follow_quality_sampling_cutoff() { + for quality in 1..=100 { + let fields = json!({"format": "jpg", "quality": quality}).as_object().unwrap().clone(); + let options = settings(&fields).io_options(); + assert_eq!(options.encode.jpeg_quality, quality); + assert_eq!(options.encode.jpeg_chroma_subsampling, quality <= 50, "quality {quality}"); + } + // Save As retains the codec's existing sampling default. + assert!(ExportSettings::default().io_options().encode.jpeg_chroma_subsampling); +} + /// #1353: a scale that changes only the height (the width rounds back to the original) /// used to be skipped, so the exported file kept the original size while the dialog /// labelled it as scaled. diff --git a/crates/ui-egui/src/dialogs/filter_dialog.rs b/crates/ui-egui/src/dialogs/filter_dialog.rs index ca448b9bf4..be53034183 100644 --- a/crates/ui-egui/src/dialogs/filter_dialog.rs +++ b/crates/ui-egui/src/dialogs/filter_dialog.rs @@ -306,7 +306,6 @@ pub fn preview_factor(command: &str, params: &Value, k: u32) -> u32 { /// Commands outside `filter.*` that get the schema dialog *with* live preview. pub const PREVIEWED: &[&str] = &[ - "image.adjustments.selectiveColor", "image.adjustments.colorLookup", "image.adjustments.shadowsHighlights", "image.adjustments.replaceColor", diff --git a/crates/ui-egui/src/dialogs/filter_dialog/tests.rs b/crates/ui-egui/src/dialogs/filter_dialog/tests.rs index dcaa32ddbd..036b085882 100644 --- a/crates/ui-egui/src/dialogs/filter_dialog/tests.rs +++ b/crates/ui-egui/src/dialogs/filter_dialog/tests.rs @@ -905,20 +905,6 @@ fn notes_after_a_spec_are_not_parameters() { } } -#[test] -fn selective_color_dialog_ok_applies() { - // With the junk `reds: 0` the dialog's OK failed (`reds` must be an array of 4 numbers). - let mut app = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default()); - app.run("file.new", json!({"width": 8, "height": 8})).unwrap(); - let id = open(&mut app, "image.adjustments.selectiveColor").unwrap(); - let fields = app.ui.dialogs.last().unwrap().fields.clone(); - assert!(fields.keys().all(|k| k.starts_with("__") || k.chars().all(|ch| ch.is_ascii_alphanumeric())), "{fields:?}"); - assert!(!fields.contains_key("reds"), "the per-range arrays are not dialog fields"); - app.ui.dialog_mut(id).unwrap().fields.insert("black".into(), json!(40.0)); - crate::dialogs::confirm(&mut app, id).unwrap(); - assert_eq!(app.session.journal.last().map(|j| j.0.as_str()), Some("image.adjustments.selectiveColor")); -} - /// A filtered test image with structure at every scale (low-frequency waves plus a ramp). fn waves(n: u32) -> Document { let mut doc = Document::with_background( diff --git a/crates/ui-egui/src/dialogs/liquify_ui.rs b/crates/ui-egui/src/dialogs/liquify_ui.rs index 5a6725bcc5..5d10bd82b9 100644 --- a/crates/ui-egui/src/dialogs/liquify_ui.rs +++ b/crates/ui-egui/src/dialogs/liquify_ui.rs @@ -191,9 +191,12 @@ impl LiquifyOpts { if let Some(t) = v.get("tool") { let tool: LiquifyTool = serde_json::from_value(t.clone()).map_err(|e| format!("bad tool: {e}"))?; // Strokes can twirl counterclockwise, but no tool does: hold Alt with Twirl Clockwise. - if !LiquifyTool::ALL.contains(&tool) { + if tool == LiquifyTool::TwirlCcw { return Err(format!("{t} is not a Liquify tool: choose twirlCw and hold Alt (Option) to twirl counterclockwise")); } + if !LiquifyTool::ALL.contains(&tool) { + return Err(format!("{t} is not a Liquify tool")); + } self.tool = tool; } Ok(()) @@ -656,7 +659,12 @@ fn open_on( // Liquify opens as it was left (#418). Saved values are clamped; a bad one is skipped. d.opts.size = ((canvas.width().max(canvas.height()) as f32) / 10.0).round().clamp(10.0, 1500.0); if let Some(saved) = app.session.prefs().dialogs.get(REMEMBERED) { - let _ = d.opts.apply(saved); + // Older versions had a Twirl Counterclockwise tool; its saved choice is Twirl Clockwise now. + let mut saved = saved.clone(); + if saved.get("tool").and_then(Value::as_str) == Some("twirlCcw") { + saved["tool"] = json!("twirlCw"); + } + let _ = d.opts.apply(&saved); } // Layer ids belong to one document: a remembered backdrop Use starts at All Layers. d.opts.backdrop_layer = None; diff --git a/crates/ui-egui/src/dialogs/liquify_ui/tests.rs b/crates/ui-egui/src/dialogs/liquify_ui/tests.rs index 546cd00f91..8ff60e1429 100644 --- a/crates/ui-egui/src/dialogs/liquify_ui/tests.rs +++ b/crates/ui-egui/src/dialogs/liquify_ui/tests.rs @@ -199,8 +199,9 @@ fn brush_settings_are_remembered_between_uses() { } /// The reference application's Liquify has Twirl Clockwise only: no Twirl Counterclockwise -/// tool on the strip or a shortcut, and a script or saved setting naming it is refused with a -/// clear error instead of selecting it (Alt with Twirl Clockwise twirls counterclockwise). +/// tool on the strip or a shortcut. A script naming it is refused with a clear error (Alt with +/// Twirl Clockwise twirls counterclockwise); a setting saved by an older version opens on Twirl +/// Clockwise. #[test] fn the_tool_strip_has_no_twirl_counterclockwise() { assert!(!LiquifyTool::ALL.contains(&LiquifyTool::TwirlCcw)); @@ -218,12 +219,18 @@ fn the_tool_strip_has_no_twirl_counterclockwise() { let err = control(&mut app, &json!({"tool": "twirlCcw"})).unwrap_err(); assert!(err.contains("twirlCw") && err.contains("Alt"), "{err}"); assert_eq!(app.distort.liquify.as_ref().unwrap().opts.tool, LiquifyTool::Pucker, "the tool stays"); - // A preference saved by an older version that names it opens, and on another tool. + // Actions that are not tools are refused too, without the Alt hint that fits twirlCcw only. + for action in ["reconstructAll", "freezeAll", "thawAll", "invertFreeze"] { + let err = control(&mut app, &json!({ "tool": action })).unwrap_err(); + assert!(err.contains("not a Liquify tool") && !err.contains("Alt"), "{action}: {err}"); + } + assert_eq!(app.distort.liquify.as_ref().unwrap().opts.tool, LiquifyTool::Pucker, "the tool stays"); + // A preference saved by an older version that names it opens on Twirl Clockwise. cancel(&mut app); app.session.prefs.edit(|p| p.dialogs.insert(REMEMBERED.into(), json!({"tool": "twirlCcw", "density": 70}))); open(&mut app, &ctx).unwrap(); let o = &app.distort.liquify.as_ref().unwrap().opts; - assert_ne!(o.tool, LiquifyTool::TwirlCcw); + assert_eq!(o.tool, LiquifyTool::TwirlCw, "the saved twirl keeps its tool"); assert_eq!(o.density, 70.0, "the rest of the saved settings still apply"); } diff --git a/crates/ui-egui/src/dialogs/open_prompt.rs b/crates/ui-egui/src/dialogs/open_prompt.rs index 2da15f9fb4..bcd9f0b7b9 100644 --- a/crates/ui-egui/src/dialogs/open_prompt.rs +++ b/crates/ui-egui/src/dialogs/open_prompt.rs @@ -407,6 +407,10 @@ fn show_memory(app: &mut PhotocraftApp, prompt: &MemoryPrompt) { }; message.push_str("\n\n"); message.push_str(tl!("Opening this document uses more memory and may slow down your computer or other running applications.")); + if available.is_some_and(|a| a.saturating_sub(prompt.estimated) < photocraft_io::memory::LOW_MEMORY_WARNING_MARGIN) { + message.push_str("\n\n"); + message.push_str(tl!("Little memory would be left after opening this file. Close other apps first, or PhotoCraft may run out of memory.")); + } if prompt.uncertain_capacity_warning { message.push_str("\n\n"); message.push_str(tl!( diff --git a/crates/ui-egui/src/dialogs/palette.rs b/crates/ui-egui/src/dialogs/palette.rs index eeb01de764..cddf314a5d 100644 --- a/crates/ui-egui/src/dialogs/palette.rs +++ b/crates/ui-egui/src/dialogs/palette.rs @@ -7,14 +7,19 @@ use crate::{PhotocraftApp, icons}; /// Case-insensitive subsequence match score (higher is better); None = no match. pub fn fuzzy_score(query: &str, text: &str) -> Option { + fuzzy_score_in(crate::i18n::Lang::EN, query, text) +} + +/// Score a subsequence after converting both strings in the text's language. +fn fuzzy_score_in(lang: crate::i18n::Lang, query: &str, text: &str) -> Option { if query.is_empty() { return Some(0); } - let t: Vec = text.to_lowercase().chars().collect(); + let t: Vec = lang.lowercase(text).chars().collect(); let mut score = 0; let mut ti = 0; let mut last = None; - for qc in query.to_lowercase().chars() { + for qc in lang.lowercase(query).chars() { let mut found = false; while ti < t.len() { if t[ti] == qc { @@ -39,8 +44,20 @@ pub fn fuzzy_score(query: &str, text: &str) -> Option { /// Bonus that puts a command or tool whose name is exactly the query ahead of every fuzzy match /// ("settings" finds Settings before Color Settings). fn exact_bonus(query: &str, names: &[&str]) -> i32 { + exact_bonus_in(crate::i18n::Lang::EN, query, names) +} + +/// Favor a complete displayed name, ignoring its trailing ellipsis and localized case. +fn exact_bonus_in(lang: crate::i18n::Lang, query: &str, names: &[&str]) -> i32 { let q = query.trim(); - if !q.is_empty() && names.iter().any(|n| n.trim_end_matches('…').trim().to_lowercase() == q.to_lowercase()) { 1000 } else { 0 } + if !q.is_empty() && names.iter().any(|n| lang.lowercase(n.trim_end_matches('…').trim()) == lang.lowercase(q)) { 1000 } else { 0 } +} + +/// Rank the UI wording in its language and the documented English aliases independently. +fn bilingual_score(lang: crate::i18n::Lang, query: &str, local: &str, english: &str, local_name: &str, english_name: &str) -> Option { + let local = fuzzy_score_in(lang, query, local).map(|s| s + exact_bonus_in(lang, query, &[local_name])); + let english = fuzzy_score(query, english).map(|s| s + exact_bonus(query, &[english_name])); + local.into_iter().chain(english).max() } /// How many recently run commands the palette remembers. @@ -105,7 +122,7 @@ fn menu_hits(menus: Vec, q: &str, lang: crate::i18n::Lan let path = m.path.iter().map(|p| crate::i18n::tr(lang, p)).collect::>().join(" › "); let label = crate::i18n::tr_id(lang, &m.id, &m.label); // Match what is shown and the English name (commands are documented in English). - let s = fuzzy_score(q, &format!("{label} {path} {} {path_en}", m.label))? + exact_bonus(q, &[label, &m.label]); + let s = bilingual_score(lang, q, &format!("{label} {path}"), &format!("{} {path_en}", m.label), label, &m.label)?; Some(( s, m.id, @@ -176,8 +193,7 @@ pub fn show(app: &mut PhotocraftApp, ctx: &egui::Context) { if !empty || hits.is_empty() { hits.extend(menu_hits(menus, &q, lang)); for tool in crate::state::Tool::ALL { - if let Some(s) = fuzzy_score(&q, &format!("{} {}", tl!(tool.label()), tool.label())) { - let s = s + exact_bonus(&q, &[tl!(tool.label()).as_ref(), tool.label()]); + if let Some(s) = bilingual_score(lang, &q, tl!(tool.label()).as_ref(), tool.label(), tl!(tool.label()).as_ref(), tool.label()) { hits.push(( s + 2, format!("tool:{tool:?}"), @@ -267,6 +283,16 @@ mod tests { use super::{exact_bonus, fuzzy_score, push_recent}; use crate::PhotocraftApp; + /// Localized fuzzy and exact matches use Turkic casing while English aliases use root casing. + #[test] + fn azerbaijani_palette_keeps_dotted_i_and_english_aliases() { + let az = crate::i18n::Lang::from_code("az").unwrap(); + assert!(super::bilingual_score(az, "ŞƏKİL", "Şəkil", "Image", "Şəkil", "Image").unwrap() >= 1000); + assert_eq!(super::bilingual_score(az, "ŞƏKIL", "Şəkil", "Image", "Şəkil", "Image"), None); + assert!(super::bilingual_score(az, "IMAGE", "Şəkil", "Image", "Şəkil", "Image").unwrap() >= 1000); + assert!(super::fuzzy_score_in(az, "I\u{307}ŞIQ", "İşıq").is_some()); + } + #[test] fn open_palette_interrupts_the_ime_only_when_it_takes_focus() { let mut app = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default()); diff --git a/crates/ui-egui/src/dialogs/select_mask_ui.rs b/crates/ui-egui/src/dialogs/select_mask_ui.rs index a37d94d5a8..5b5fde322a 100644 --- a/crates/ui-egui/src/dialogs/select_mask_ui.rs +++ b/crates/ui-egui/src/dialogs/select_mask_ui.rs @@ -426,6 +426,9 @@ pub struct SelectMaskWorkspace { /// Document px per reduced-copy px (High Quality Preview uses 1). k: u32, pressed: bool, + /// An on-canvas brush resize in progress (#10497): the tool it resizes, where it began on + /// screen, the size and hardness then, and the button that drags it. + resize: Option<(SmTool, Pos2, f64, f32, egui::PointerButton)>, /// The device's texture side limit, as the context reports it each frame. texture_limit: usize, image_tex: Option, @@ -482,6 +485,18 @@ impl SelectMaskWorkspace { } } + /// Esc mid-resize: the brush goes back to its size and hardness when the drag began, as in + /// Photoshop. egui drops the drag on Esc, so the rest of it does nothing. + fn escape_resize(&mut self) { + let Some((tool, _, size, hardness, _)) = self.resize.take() else { return }; + match tool { + SmTool::Quick => self.quick_size = size, + SmTool::RefineEdge => self.refine_size = size, + _ => self.brush_size = size, + } + self.hardness = hardness; + } + fn pick(&mut self, t: SmTool) { self.tool = t; match t { @@ -761,6 +776,7 @@ pub fn open(app: &mut PhotocraftApp) -> Result<(), String> { hide_view: false, k, pressed: false, + resize: None, texture_limit: 2048, image_tex: None, zoom: 0.0, @@ -877,9 +893,16 @@ pub fn enter(app: &mut PhotocraftApp) -> bool { false } -/// Esc: drops a Polygonal Lasso polygon being drawn, else Cancel. +/// A brush resize is in progress (Esc then ends it, with Control+Alt still held too). +pub fn resizing(app: &PhotocraftApp) -> bool { + app.distort.select_mask.as_ref().is_some_and(|w| w.resize.is_some()) +} + +/// Esc: ends a brush resize as it began, else drops a Polygonal Lasso polygon being drawn, else +/// Cancel. pub fn escape(app: &mut PhotocraftApp) { match app.distort.select_mask.as_mut() { + Some(w) if w.resize.is_some() => w.escape_resize(), Some(w) if w.poly.is_some() => w.poly = None, _ => cancel(app), } @@ -1752,13 +1775,28 @@ fn paint_cursor(ctx: &egui::Context, w: &mut SelectMaskWorkspace, clip: &egui::P ctx.set_cursor_icon(egui::CursorIcon::Grab); } else if w.tool.brushes() { let r = (w.size() as f32 * 0.5 * v.zoom).max(2.0); - clip.circle_stroke(hp, r, Stroke::new(1.5, Color32::BLACK)); - clip.circle_stroke(hp, r, Stroke::new(0.75, Color32::WHITE)); - let add = w.add != alt; - for s in [Stroke::new(2.5, Color32::from_black_alpha(140)), Stroke::new(1.0, Color32::from_white_alpha(220))] { - clip.line_segment([hp - vec2(3.0, 0.0), hp + vec2(3.0, 0.0)], s); - if add { - clip.line_segment([hp - vec2(0.0, 3.0), hp + vec2(0.0, 3.0)], s); + // While its size is dragged the circle stays where the drag began, with the + // Diameter/Hardness readout beside the pointer, as on the main canvas (#10497). + let resize = w.resize.filter(|&(tool, ..)| tool == w.tool); + let center = resize.map_or(hp, |(_, anchor, ..)| anchor); + clip.circle_stroke(center, r, Stroke::new(1.5, Color32::BLACK)); + clip.circle_stroke(center, r, Stroke::new(0.75, Color32::WHITE)); + if resize.is_some() { + let hardness = if w.tool == SmTool::Brush { format!("{}%", w.hardness.round() as i64) } else { "—".into() }; + crate::canvas::draw_readout( + ctx, + "select-mask-brush-resize-readout", + hp, + ["Diameter:", "Hardness:"], + [format!("{} px", w.size().round() as i64), hardness], + ); + } else { + let add = w.add != alt; + for s in [Stroke::new(2.5, Color32::from_black_alpha(140)), Stroke::new(1.0, Color32::from_white_alpha(220))] { + clip.line_segment([hp - vec2(3.0, 0.0), hp + vec2(3.0, 0.0)], s); + if add { + clip.line_segment([hp - vec2(0.0, 3.0), hp + vec2(0.0, 3.0)], s); + } } } ctx.set_cursor_icon(egui::CursorIcon::None); @@ -1785,6 +1823,48 @@ fn canvas_input( events: &mut Vec, mods: &mut egui::Modifiers, ) { + // Alt+right-drag, or Control+Alt-drag, resizes the brush instead of selecting (#10497), from + // the press on, so its first frame never starts a stroke. Alt+left-drag still subtracts. + let (secondary, now) = ui.input(|i| (i.pointer.button_down(egui::PointerButton::Secondary), i.modifiers)); + let gesture = if secondary { crate::brush_resize::is_right_gesture(now) } else { crate::brush_resize::is_gesture(now) }; + // A resize keeps its drag until its button is let go: Space or the middle button may pan + // meanwhile, and if another tool is picked mid-drag the rest of it neither resizes nor + // selects with that tool. + let held = |button| ui.input(|i| i.pointer.button_down(button)); + if let Some((tool, .., button)) = w.resize + && (pan || tool != w.tool) + { + if !held(button) { + w.resize = None; + } + if !pan { + ctx.request_repaint(); + return; + } + } + if !pan && w.tool.brushes() && !w.pressed && (w.resize.is_some() || (resp.is_pointer_button_down_on() && gesture)) { + if w.resize.is_none() + && let Some(p) = ui.input(|i| i.pointer.press_origin()).or_else(|| resp.interact_pointer_pos()) + { + let button = if secondary { egui::PointerButton::Secondary } else { egui::PointerButton::Primary }; + w.resize = Some((w.tool, p, w.size(), w.hardness, button)); + } + if let (Some((_, anchor, size0, hardness0, _)), Some(p)) = (w.resize, resp.interact_pointer_pos()) { + let d = p - anchor; + let zoom = if w.zoom.is_finite() && w.zoom > 0.0 { w.zoom } else { 1.0 }; + let (size, hardness) = crate::brush_resize::resized((size0 as f32, hardness0 / 100.0), f64::from(d.x / zoom), f64::from(d.y / zoom), zoom); + w.set_size(f64::from(size)); + // Only the Brush tool has a hardness; Quick Selection and Refine Edge change size only. + if w.tool == SmTool::Brush { + w.hardness = (hardness * 100.0).round(); + } + } + if resp.drag_stopped() || w.resize.is_some_and(|(.., button)| !held(button)) { + w.resize = None; + } + ctx.request_repaint(); + return; + } if pan && resp.dragged() { let dl = resp.drag_delta(); w.center = [w.center[0] - f64::from(dl.x / w.zoom), w.center[1] - f64::from(dl.y / w.zoom)]; diff --git a/crates/ui-egui/src/dialogs/select_mask_ui/tests.rs b/crates/ui-egui/src/dialogs/select_mask_ui/tests.rs index 95a3a2ace9..e993830507 100644 --- a/crates/ui-egui/src/dialogs/select_mask_ui/tests.rs +++ b/crates/ui-egui/src/dialogs/select_mask_ui/tests.rs @@ -808,3 +808,292 @@ fn sparse_large_preview_counts_coverage_without_a_dense_canvas_mask() { assert_eq!(selected_pixels(Some(&inverted), smaller), 999_999); assert_eq!(selected_pixels(None, area), 0); } + +/// The workspace in a harness on `tool`, and a point over the image. +fn resize_harness(tool: &str) -> (egui_kittest::Harness<'static, PhotocraftApp>, egui::Pos2) { + let mut app = app_with_selection(); + open(&mut app).unwrap(); + ui(&mut app, json!({"tool": tool})); + let mut h = egui_kittest::Harness::builder().with_size(vec2(1400.0, 900.0)).build_ui_state( + |ui, app: &mut PhotocraftApp| { + let ctx = ui.ctx().clone(); + if !ctx.fonts(|f| f.families().contains(&egui::FontFamily::Name("medium".into()))) { + return; + } + crate::distort_ui::keys(app, &ctx); + keys(app, &ctx); + show(app, &ctx); + }, + app, + ); + PhotocraftApp::setup_context(&h.ctx, crate::theme::ThemeKind::ALL[0]); + h.run_steps(4); + (h, egui::Pos2::new(LEFT_W + 300.0, BAR_H + TAB_H + 300.0)) +} + +/// Presses `button` at `at` with `modifiers` held. +fn pointer_down(h: &mut egui_kittest::Harness<'_, PhotocraftApp>, at: egui::Pos2, button: egui::PointerButton, modifiers: Modifiers) { + h.event(egui::Event::ModifiersChanged(modifiers)); + h.event(egui::Event::PointerMoved(at)); + h.run_steps(1); + h.event(egui::Event::PointerButton { pos: at, button, pressed: true, modifiers }); + h.run_steps(1); +} + +/// Moves the held pointer from `from` by `by`, in four steps. +fn pointer_move(h: &mut egui_kittest::Harness<'_, PhotocraftApp>, from: egui::Pos2, by: egui::Vec2) { + for k in 1..=4 { + h.event(egui::Event::PointerMoved(from + by * (k as f32 / 4.0))); + h.run_steps(1); + } +} + +fn tap_key(h: &mut egui_kittest::Harness<'_, PhotocraftApp>, key: Key, pressed: bool) { + h.event(egui::Event::Key { key, physical_key: None, pressed, repeat: false, modifiers: Modifiers::NONE }); + h.run_steps(1); +} + +/// A whole drag of `button` from `at` by `by` with `modifiers` held. +fn pointer_drag(h: &mut egui_kittest::Harness<'_, PhotocraftApp>, at: egui::Pos2, button: egui::PointerButton, modifiers: Modifiers, by: egui::Vec2) { + pointer_down(h, at, button, modifiers); + pointer_move(h, at, by); + h.event(egui::Event::PointerButton { pos: at + by, button, pressed: false, modifiers }); + h.event(egui::Event::ModifiersChanged(Modifiers::NONE)); + h.run_steps(2); +} + +/// Alt+right-drag (and Control+Alt-drag) on the image resizes the current brush tool instead of +/// selecting, as on the main canvas (#10497): only that tool's size changes, the Brush's hardness +/// follows vertical motion, nothing is painted, and the next Alt-drag still subtracts. +#[test] +fn alt_right_drag_resizes_the_workspace_brush() { + use egui::PointerButton; + let (mut h, over) = resize_harness("brush"); + let zoom = h.state().distort.select_mask.as_ref().unwrap().zoom; + pointer_drag(&mut h, over, PointerButton::Secondary, Modifiers::ALT, vec2(40.0, -60.0)); + let w = h.state().distort.select_mask.as_ref().unwrap(); + let want = (30.0 + 2.0 * f64::from(40.0 / zoom)).round(); + assert_eq!(w.brush_size, want, "horizontal motion sets the diameter (zoom {zoom})"); + assert_eq!(w.hardness, 70.0, "upward motion softens the brush, 200 points for 100 %"); + assert_eq!((w.quick_size, w.refine_size), (30.0, 30.0), "the other tools keep their sizes"); + assert!(w.strokes.is_empty() && w.edits.is_empty() && w.undo.is_empty(), "resizing selected nothing"); + assert!(w.resize.is_none(), "the gesture ends with the button"); + // Alt with the left button is still the subtracting stroke. + pointer_drag(&mut h, over, PointerButton::Primary, Modifiers::ALT, vec2(30.0, 0.0)); + let w = h.state().distort.select_mask.as_ref().unwrap(); + // A Brush stroke is an edit (Quick Selection's are strokes). + assert_eq!(w.edits.len(), 1, "Alt+left-drag selects"); + assert_eq!(w.edits[0]["mode"], json!("subtract")); + assert_eq!(w.brush_size, want, "and doesn't resize"); + // Control+Alt-drag (the macOS gesture) resizes Quick Selection on its own. + h.state_mut().distort.select_mask.as_mut().unwrap().pick(SmTool::Quick); + pointer_drag(&mut h, over, PointerButton::Primary, Modifiers::CTRL | Modifiers::ALT, vec2(-10.0, 0.0)); + let w = h.state().distort.select_mask.as_ref().unwrap(); + assert_eq!(w.quick_size, (30.0 - 2.0 * f64::from(10.0 / zoom)).round().max(1.0)); + assert_eq!((w.brush_size, w.hardness), (want, 70.0), "the Brush keeps its size and hardness"); + assert!(w.strokes.is_empty() && w.edits.len() == 1, "resizing Quick Selection selected nothing"); +} + +/// Space pressed mid-resize pans, and the button released before Space still ends the resize +/// (CodeRabbit on #10559): a Space-drag that goes on after Space comes up paints, as any +/// Space-drag does, instead of resizing the brush from the old anchor. +#[test] +fn a_resize_released_while_space_pans_lets_the_next_drag_paint() { + use egui::PointerButton; + let (mut h, over) = resize_harness("brush"); + let zoom = h.state().distort.select_mask.as_ref().unwrap().zoom; + pointer_down(&mut h, over, PointerButton::Secondary, Modifiers::ALT); + pointer_move(&mut h, over, vec2(40.0, 0.0)); + tap_key(&mut h, Key::Space, true); + h.event(egui::Event::PointerButton { pos: over + vec2(40.0, 0.0), button: PointerButton::Secondary, pressed: false, modifiers: Modifiers::ALT }); + h.event(egui::Event::ModifiersChanged(Modifiers::NONE)); + h.run_steps(2); + let want = (30.0 + 2.0 * f64::from(40.0 / zoom)).round(); + assert_eq!(h.state().distort.select_mask.as_ref().unwrap().brush_size, want); + // Space+drag pans; Space comes up mid-drag and the drag goes on. + pointer_down(&mut h, over, PointerButton::Primary, Modifiers::NONE); + pointer_move(&mut h, over, vec2(0.0, 20.0)); + tap_key(&mut h, Key::Space, false); + pointer_move(&mut h, over + vec2(0.0, 20.0), vec2(30.0, 0.0)); + h.event(egui::Event::PointerButton { pos: over + vec2(30.0, 20.0), button: PointerButton::Primary, pressed: false, modifiers: Modifiers::NONE }); + h.run_steps(2); + let w = h.state().distort.select_mask.as_ref().unwrap(); + assert_eq!(w.brush_size, want, "the drag doesn't resize the brush"); + assert_eq!(w.edits.len(), 1, "the drag's rest paints"); + assert_eq!(w.edits[0]["mode"], json!("add")); + assert!(w.resize.is_none()); +} + +/// A resize belongs to the tool it began on (CodeRabbit on #10559): if another tool is picked +/// mid-drag, the rest of the drag neither resizes that tool nor selects with it. +#[test] +fn picking_another_tool_mid_resize_neither_resizes_nor_selects() { + use egui::PointerButton; + let (mut h, over) = resize_harness("brush"); + let zoom = h.state().distort.select_mask.as_ref().unwrap().zoom; + let want = (30.0 + 2.0 * f64::from(40.0 / zoom)).round(); + // Alt+right-drag the Brush larger, let go of Alt, press W (Quick Selection) and drag on. + pointer_down(&mut h, over, PointerButton::Secondary, Modifiers::ALT); + pointer_move(&mut h, over, vec2(40.0, 0.0)); + h.event(egui::Event::ModifiersChanged(Modifiers::NONE)); + tap_key(&mut h, Key::W, true); + tap_key(&mut h, Key::W, false); + assert_eq!(h.state().distort.select_mask.as_ref().unwrap().tool, SmTool::Quick); + pointer_move(&mut h, over + vec2(40.0, 0.0), vec2(40.0, 0.0)); + h.event(egui::Event::PointerButton { pos: over + vec2(80.0, 0.0), button: PointerButton::Secondary, pressed: false, modifiers: Modifiers::NONE }); + h.run_steps(2); + let w = h.state().distort.select_mask.as_ref().unwrap(); + assert_eq!((w.brush_size, w.quick_size), (want, 30.0), "Quick Selection keeps its size"); + assert!(w.strokes.is_empty() && w.edits.is_empty() && w.undo.is_empty(), "nothing was selected"); + // The same with the Lasso (not a brush) picked mid-drag: the rest of the drag draws no lasso. + tap_key(&mut h, Key::B, true); + tap_key(&mut h, Key::B, false); + pointer_down(&mut h, over, PointerButton::Secondary, Modifiers::ALT); + pointer_move(&mut h, over, vec2(20.0, 0.0)); + h.event(egui::Event::ModifiersChanged(Modifiers::NONE)); + tap_key(&mut h, Key::L, true); + tap_key(&mut h, Key::L, false); + assert_eq!(h.state().distort.select_mask.as_ref().unwrap().tool, SmTool::Lasso); + pointer_move(&mut h, over + vec2(20.0, 0.0), vec2(0.0, 60.0)); + pointer_move(&mut h, over + vec2(20.0, 60.0), vec2(-60.0, 0.0)); + h.event(egui::Event::PointerButton { pos: over + vec2(-40.0, 60.0), button: PointerButton::Secondary, pressed: false, modifiers: Modifiers::NONE }); + h.run_steps(2); + let w = h.state().distort.select_mask.as_ref().unwrap(); + assert!(w.strokes.is_empty() && w.edits.is_empty() && w.undo.is_empty(), "the Lasso selected nothing"); + assert!(w.resize.is_none(), "the gesture ends with the button"); +} + +/// A resize ends when its own button comes up, even while the middle button pans (CodeRabbit on +/// #10559): a left-drag begun before the middle button is let go doesn't resize the brush from +/// the old anchor when the pan ends. +#[test] +fn a_resize_released_while_the_middle_button_pans_ends_with_its_button() { + use egui::PointerButton; + let (mut h, over) = resize_harness("brush"); + let zoom = h.state().distort.select_mask.as_ref().unwrap().zoom; + let want = (30.0 + 2.0 * f64::from(40.0 / zoom)).round(); + pointer_down(&mut h, over, PointerButton::Secondary, Modifiers::ALT); + pointer_move(&mut h, over, vec2(40.0, 0.0)); + let at = over + vec2(40.0, 0.0); + h.event(egui::Event::PointerButton { pos: at, button: PointerButton::Middle, pressed: true, modifiers: Modifiers::ALT }); + h.run_steps(1); + h.event(egui::Event::PointerButton { pos: at, button: PointerButton::Secondary, pressed: false, modifiers: Modifiers::ALT }); + h.event(egui::Event::ModifiersChanged(Modifiers::NONE)); + h.run_steps(2); + assert_eq!(h.state().distort.select_mask.as_ref().unwrap().brush_size, want); + // The left button goes down while the middle one still pans, then the middle one comes up + // and the left drag goes on. + pointer_move(&mut h, at, vec2(0.0, 20.0)); + let at = at + vec2(0.0, 20.0); + h.event(egui::Event::PointerButton { pos: at, button: PointerButton::Primary, pressed: true, modifiers: Modifiers::NONE }); + h.run_steps(1); + pointer_move(&mut h, at, vec2(30.0, -20.0)); + let at = at + vec2(30.0, -20.0); + h.event(egui::Event::PointerButton { pos: at, button: PointerButton::Middle, pressed: false, modifiers: Modifiers::NONE }); + h.run_steps(1); + pointer_move(&mut h, at, vec2(60.0, -40.0)); + h.event(egui::Event::PointerButton { pos: at + vec2(60.0, -40.0), button: PointerButton::Primary, pressed: false, modifiers: Modifiers::NONE }); + h.run_steps(2); + let w = h.state().distort.select_mask.as_ref().unwrap(); + assert_eq!((w.brush_size, w.hardness), (want, 100.0), "the later drag doesn't resize the brush"); + assert!(w.resize.is_none(), "the gesture ended with its button"); +} + +/// Esc mid-resize puts the brush back and ends only the resize, as in Photoshop (FredApps on +/// #10559): the workspace stays open, the rest of that drag neither resizes nor selects, and the +/// next drag selects as usual. +#[test] +fn escape_mid_resize_restores_the_brush_and_keeps_the_workspace() { + use egui::PointerButton; + let (mut h, over) = resize_harness("brush"); + pointer_down(&mut h, over, PointerButton::Secondary, Modifiers::ALT); + pointer_move(&mut h, over, vec2(40.0, -60.0)); + let w = h.state().distort.select_mask.as_ref().unwrap(); + assert!(w.resize.is_some() && w.brush_size > 30.0 && w.hardness < 100.0, "the drag resizes"); + // Esc with Alt and the right button still held. + h.event(egui::Event::Key { key: Key::Escape, physical_key: None, pressed: true, repeat: false, modifiers: Modifiers::ALT }); + h.run_steps(1); + h.event(egui::Event::Key { key: Key::Escape, physical_key: None, pressed: false, repeat: false, modifiers: Modifiers::ALT }); + h.run_steps(1); + let w = h.state().distort.select_mask.as_ref().expect("Esc ends the resize, not the workspace"); + assert_eq!((w.brush_size, w.hardness), (30.0, 100.0), "the brush is as it was"); + assert!(w.resize.is_none()); + // The drag goes on with Alt and the right button held: it does nothing. + pointer_move(&mut h, over + vec2(40.0, -60.0), vec2(40.0, 40.0)); + h.event(egui::Event::PointerButton { pos: over + vec2(80.0, -20.0), button: PointerButton::Secondary, pressed: false, modifiers: Modifiers::ALT }); + h.event(egui::Event::ModifiersChanged(Modifiers::NONE)); + h.run_steps(2); + let w = h.state().distort.select_mask.as_ref().unwrap(); + assert_eq!((w.brush_size, w.hardness), (30.0, 100.0), "the rest of the drag doesn't resize"); + assert!(w.strokes.is_empty() && w.edits.is_empty() && w.undo.is_empty(), "nor select"); + assert!(w.resize.is_none()); + // The next drag selects with the brush as it was. + pointer_drag(&mut h, over, PointerButton::Primary, Modifiers::NONE, vec2(30.0, 0.0)); + let w = h.state().distort.select_mask.as_ref().unwrap(); + assert_eq!((w.brush_size, w.hardness), (30.0, 100.0), "the next drag doesn't resize"); + assert_eq!(w.edits.len(), 1, "it selects"); + assert_eq!(w.edits[0]["mode"], json!("add")); + // Control+Alt-drag (the macOS gesture) on Quick Selection, Esc with both still held. + let ctrl_alt = Modifiers::CTRL | Modifiers::ALT; + h.state_mut().distort.select_mask.as_mut().unwrap().pick(SmTool::Quick); + pointer_down(&mut h, over, PointerButton::Primary, ctrl_alt); + pointer_move(&mut h, over, vec2(30.0, 0.0)); + assert!(h.state().distort.select_mask.as_ref().unwrap().quick_size > 30.0, "the drag resizes"); + h.event(egui::Event::Key { key: Key::Escape, physical_key: None, pressed: true, repeat: false, modifiers: ctrl_alt }); + h.run_steps(1); + let w = h.state().distort.select_mask.as_ref().expect("the workspace stays open"); + assert_eq!(w.quick_size, 30.0, "Quick Selection's size is as it was"); + assert!(w.resize.is_none()); + pointer_move(&mut h, over + vec2(30.0, 0.0), vec2(30.0, 0.0)); + h.event(egui::Event::PointerButton { pos: over + vec2(60.0, 0.0), button: PointerButton::Primary, pressed: false, modifiers: ctrl_alt }); + h.event(egui::Event::ModifiersChanged(Modifiers::NONE)); + h.run_steps(2); + let w = h.state().distort.select_mask.as_ref().unwrap(); + assert_eq!(w.quick_size, 30.0, "the rest of the drag doesn't resize"); + assert!(w.strokes.is_empty() && w.edits.len() == 1, "nor select"); +} + +/// The brush circles drawn last frame (the black outline's centre and radius). +fn brush_circles(h: &egui_kittest::Harness<'_, PhotocraftApp>) -> Vec<(egui::Pos2, f32)> { + h.output() + .shapes + .iter() + .filter_map(|c| match &c.shape { + egui::Shape::Circle(s) if s.stroke == Stroke::new(1.5, Color32::BLACK) => Some((s.center, s.radius)), + _ => None, + }) + .collect() +} + +/// While the brush is resized its circle stays where the drag began, at the new size, and the +/// Diameter/Hardness readout follows the pointer, as on the main canvas (FredApps on #10559). +#[test] +fn the_resize_circle_stays_put_while_the_readout_follows_the_pointer() { + use egui::PointerButton; + let (mut h, over) = resize_harness("brush"); + let zoom = h.state().distort.select_mask.as_ref().unwrap().zoom; + let readout = || egui::Id::unique("select-mask-brush-resize-readout"); + h.event(egui::Event::PointerMoved(over)); + h.run_steps(2); + assert_eq!(brush_circles(&h), [(over, 15.0 * zoom)], "hovering, the circle is at the pointer"); + pointer_down(&mut h, over, PointerButton::Secondary, Modifiers::ALT); + for by in [vec2(40.0, -60.0), vec2(60.0, -60.0)] { + pointer_move(&mut h, over, by); + // The cursor is drawn before the frame's input, so it shows the new size a frame later. + h.run_steps(1); + let at = over + by; + let w = h.state().distort.select_mask.as_ref().unwrap(); + let (size, hardness) = (w.brush_size, w.hardness); + assert_eq!(brush_circles(&h), [(over, size as f32 * 0.5 * zoom)], "the circle stays at the anchor at the new size ({by:?})"); + let rect = h.ctx.memory(|m| m.area_rect(readout())).expect("the readout shows"); + assert_eq!(rect.min, at + vec2(16.0, 18.0), "the readout is beside the pointer"); + assert!(h.query_by_label(&format!("{} px", size.round() as i64)).is_some(), "it shows the diameter"); + assert!(h.query_by_label(&format!("{}%", hardness.round() as i64)).is_some(), "and the hardness"); + } + h.event(egui::Event::PointerButton { pos: over + vec2(60.0, -60.0), button: PointerButton::Secondary, pressed: false, modifiers: Modifiers::ALT }); + h.event(egui::Event::ModifiersChanged(Modifiers::NONE)); + h.run_steps(2); + let size = h.state().distort.select_mask.as_ref().unwrap().brush_size; + assert_eq!(brush_circles(&h), [(over + vec2(60.0, -60.0), size as f32 * 0.5 * zoom)], "after the drag the circle follows the pointer again"); + assert!(h.query_by_label("Diameter:").is_none(), "and the readout is gone"); +} diff --git a/crates/ui-egui/src/dialogs/shape_dialog/tests.rs b/crates/ui-egui/src/dialogs/shape_dialog/tests.rs index 7af252f087..1ca5de28f7 100644 --- a/crates/ui-egui/src/dialogs/shape_dialog/tests.rs +++ b/crates/ui-egui/src/dialogs/shape_dialog/tests.rs @@ -354,3 +354,35 @@ fn right_click_picks_the_unit_of_that_field_only_and_it_is_not_remembered() { let s = sides(&frame(&egui::Context::default(), &app, &mut f, vec![])); assert_eq!(shown(&s), [("1.76".to_string(), "cm".to_string()), ("3.53".to_string(), "cm".to_string())]); } + +/// CodeRabbit on #9456: in Path mode a click opens no Create dialog, whose OK would make a shape +/// layer; Path mode never draws one (a drag adds its outline to the work path). +#[test] +fn a_path_mode_click_opens_no_create_dialog() { + for tool in [Tool::Rectangle, Tool::EllipseShape, Tool::Triangle, Tool::Polygon] { + let mut app = app(); + app.ui.tool_options.shape_mode = "path".into(); + let before = layers(&app); + press(&mut app, tool, [20.4, 30.2], [20.4, 30.2]); + assert!(app.ui.dialogs.is_empty(), "{tool:?}: no Create dialog in Path mode"); + assert_eq!(layers(&app), before, "{tool:?}: and no layer"); + } +} + +/// CodeRabbit on #9456: a Path-mode click that moved a little, still within the click slop, adds +/// nothing to the work path either. Its box would round to a 1 × 1 or 2 × 2 px outline. +#[test] +fn a_path_mode_click_that_moved_a_little_adds_no_subpath() { + let work = |app: &PhotocraftApp| app.session.active().unwrap().doc.work_path.as_ref().map_or(0, |p| p.subpaths.len()); + for tool in [Tool::Rectangle, Tool::EllipseShape, Tool::Triangle, Tool::Polygon, Tool::Line] { + for end in [[20.8, 30.8], [21.8, 31.9]] { + let mut app = app(); + app.ui.tool_options.shape_mode = "path".into(); + let before = layers(&app); + press(&mut app, tool, [20.2, 30.2], end); + assert_eq!(work(&app), 0, "{tool:?} to {end:?}: no subpath"); + assert!(app.ui.dialogs.is_empty(), "{tool:?} to {end:?}: no Create dialog"); + assert_eq!(layers(&app), before, "{tool:?} to {end:?}: and no layer"); + } + } +} diff --git a/crates/ui-egui/src/dialogs/smart_filter_dialog.rs b/crates/ui-egui/src/dialogs/smart_filter_dialog.rs index dbe00fdf9b..bd9d374217 100644 --- a/crates/ui-egui/src/dialogs/smart_filter_dialog.rs +++ b/crates/ui-egui/src/dialogs/smart_filter_dialog.rs @@ -134,7 +134,14 @@ pub(crate) fn edit_command(app: &PhotocraftApp, fields: &Map) -> } Ok((COMMAND.into(), params)) } else { - Ok(("layer.smartFilter.setParams".into(), json!({"layer": layer.0, "index": index, "params": crate::filter_dialog::params_of(fields)}))) + // An adjustment's dialog opens on all the recorded settings and may remove keys, so OK + // replaces them: merged, a removed one stays stored and can override the edit (a stale + // Channel Mixer `gray` is read over `red`, a stale Color Lookup `data` over `lut`). + let replace = fields.get("__command").and_then(Value::as_str).is_some_and(|c| c.starts_with("image.adjustments.")); + Ok(( + "layer.smartFilter.setParams".into(), + json!({"layer": layer.0, "index": index, "params": crate::filter_dialog::params_of(fields), "replace": replace}), + )) } } diff --git a/crates/ui-egui/src/file_open.rs b/crates/ui-egui/src/file_open.rs index 1534502a4f..865f65d7ef 100644 --- a/crates/ui-egui/src/file_open.rs +++ b/crates/ui-egui/src/file_open.rs @@ -81,6 +81,13 @@ fn queue_takes_drop(queued: usize, bytes: usize, incoming: usize) -> bool { queued < MAX_QUEUED_DROPS && bytes.saturating_add(incoming) <= MAX_QUEUED_DROP_BYTES } +/// Whether the shell's place inbox, holding `files` files of `bytes` bytes together, takes one more +/// of `incoming` bytes: the limits of the drop queue it is drained into, so browser reads that +/// finish between two frames can't hold more than the queue itself would. +pub fn place_inbox_takes(files: usize, bytes: usize, incoming: usize) -> bool { + queue_takes_drop(files, bytes, incoming) +} + /// `warnings` from an import, plus one for each font family the active document's type uses that /// isn't installed (#4559): Photoshop warns about missing fonts as a file opens, and the CLI and /// automation already report them; the type would otherwise silently render in a fallback face. @@ -385,8 +392,9 @@ impl PhotocraftApp { /// Place the next file dropped on the canvas and start Free Transform on it, once no other /// transform is in progress (so several files are placed and transformed one after another). - /// With background jobs on, a file is placed by a job: the next one waits until that job has - /// landed and its Free Transform has been applied (see `jobs_ui::finish_place`). + /// With background jobs on (or a session that steps its jobs, as on the web), a file is placed + /// by a job: the next one waits until that job has landed and its Free Transform has been + /// applied (see `jobs_ui::finish_place`). /// /// Each file goes into the document it was dropped on, never into whichever one is active now: /// files dropped on a document in another tab wait until it is back in view, and are discarded @@ -502,8 +510,10 @@ impl PhotocraftApp { self.place_bytes_with(name, bytes, linked, &serde_json::json!({})) } + /// [`PhotocraftApp::place_bytes`] with the command's `params` (a frame to fill): a job where + /// places run in the background, else synchronously. fn place_bytes_with(&mut self, name: &str, bytes: Vec, linked: Option, params: &serde_json::Value) -> Result { - let r = if self.background_jobs { + let r = if crate::jobs_ui::place_in_background(self) { crate::jobs_ui::start_place_bytes(self, name, bytes, linked, params) } else { photocraft_engine::file_cmds::place_bytes(&mut self.session, name, bytes, linked, params).map_err(|e| e.to_string()) diff --git a/crates/ui-egui/src/file_open/tests.rs b/crates/ui-egui/src/file_open/tests.rs index 037cdda108..c1b5ccde35 100644 --- a/crates/ui-egui/src/file_open/tests.rs +++ b/crates/ui-egui/src/file_open/tests.rs @@ -591,6 +591,112 @@ fn background_drops_are_placed_by_a_job_one_after_another() { assert!(app.drop_places.is_empty()); } +/// #10031: where there are no threads (the web build) a dropped file is placed in slices, a few +/// milliseconds per frame, with `background_jobs` still off. Free Transform starts when the +/// layer has landed, and the next file waits for it. +#[test] +fn a_dropped_file_is_placed_over_several_frames_without_background_jobs() { + let ctx = egui::Context::default(); + let mut app = app_with_canvas(); + assert!(!app.background_jobs); + app.session.set_cooperative_jobs(true); + // One unit of work per frame, so the number of frames does not depend on the machine. + app.session.set_job_step_budget(std::time::Duration::ZERO); + let (layers, steps) = (layer_count(&app), history_steps(&app)); + app.open_dropped(&ctx, vec![dropped("first.png", Ok(png_bytes(40, 40))), dropped("second.png", Ok(png_bytes(8, 8)))], Some(egui::pos2(400.0, 300.0))); + app.place_next_dropped(&ctx); + let place = app.jobs.place.clone().expect("the first file is being placed"); + assert_eq!(place.name, "first.png"); + assert!(app.session.job(place.job).is_some() && app.session.has_jobs()); + assert!(crate::jobs_ui::keep_polling(&app, &ctx), "frames keep coming while it runs"); + assert!(app.ui.transform.is_none(), "Free Transform waits for the layer"); + assert_eq!((layer_count(&app), history_steps(&app)), (layers, steps)); + // The status bar shows it, and it can be cancelled like any job. + assert_eq!(crate::jobs_ui::job_in_view(&app).map(|j| j.id), Some(place.job)); + + let mut frames = 0; + while app.jobs.place.is_some() { + frames += 1; + assert!(frames < 10_000, "the place never landed"); + assert_eq!(layer_count(&app), layers, "nothing lands before the last frame"); + crate::jobs_ui::tick(&mut app, &ctx); + app.place_next_dropped(&ctx); + } + assert!(frames > 10, "placed in {frames} frames"); + assert!(!app.background_jobs); + assert_eq!(layer_count(&app), layers + 1); + assert_eq!(app.ui.transform.as_ref().and_then(|t| t.made), Some(crate::state::MadeLayer::Place)); + let st = app.session.active().unwrap(); + assert_eq!(st.doc.layer(st.active_layer.unwrap()).unwrap().name, "first"); + // The second file waits for the first transform, then is placed the same way. + app.place_next_dropped(&ctx); + assert!(app.jobs.place.is_none() && app.drop_places.len() == 1); + crate::transform_tool::commit(&mut app); + app.place_next_dropped(&ctx); + assert_eq!(app.jobs.place.as_ref().map(|p| p.name.as_str()), Some("second.png")); + tick_until(&mut app, &ctx, |app| app.jobs.place.is_none()); + crate::transform_tool::commit(&mut app); + assert_eq!((layer_count(&app), history_steps(&app)), (layers + 2, steps + 2)); + assert!(app.drop_places.is_empty()); +} + +/// A file dropped from a path, a damaged file and a cancel all end as they do with worker threads. +#[test] +fn stepped_places_from_a_path_fail_and_cancel_like_background_ones() { + let dir = std::env::temp_dir().join(format!("photocraft-drop-place-steps-{}", std::process::id())); + std::fs::create_dir_all(&dir).unwrap(); + let good = dir.join("good.png"); + std::fs::write(&good, png_bytes(30, 30)).unwrap(); + let ctx = egui::Context::default(); + let mut app = app_with_canvas(); + app.session.set_cooperative_jobs(true); + app.session.set_job_step_budget(std::time::Duration::ZERO); + let (layers, steps) = (layer_count(&app), history_steps(&app)); + app.open_dropped( + &ctx, + vec![dropped(&good, Ok(Vec::new())), dropped("bad.png", Ok(b"bad".to_vec())), dropped("last.png", Ok(png_bytes(4, 4)))], + Some(egui::pos2(400.0, 300.0)), + ); + app.place_next_dropped(&ctx); + // The first is a path: the `file.placeEmbedded` job, tracked like the others. + let first = app.jobs.place.clone().expect("being placed"); + assert_eq!(first.name, "good.png"); + assert!(crate::jobs_ui::cancel(&mut app, first.job)); + crate::jobs_ui::tick(&mut app, &ctx); + assert_eq!((layer_count(&app), history_steps(&app)), (layers, steps), "a cancelled place leaves the document alone"); + assert!(!app.ui.status_error); + // The queue went on to the damaged file, which fails by name. + assert_eq!(app.jobs.place.as_ref().map(|p| p.name.as_str()), Some("bad.png")); + tick_until(&mut app, &ctx, |app| app.ui.notices.iter().any(|n| n.error && n.title.contains("bad.png"))); + assert_eq!(app.jobs.place.as_ref().map(|p| p.name.as_str()), Some("last.png")); + tick_until(&mut app, &ctx, |app| app.jobs.place.is_none()); + assert_eq!(layer_count(&app), layers + 1); + assert_eq!(app.ui.transform.as_ref().and_then(|t| t.made), Some(crate::state::MadeLayer::Place)); + let _ = std::fs::remove_dir_all(&dir); +} + +/// A cooperative drop from a path completes in slices (the path read and the placement job, not +/// egui's reader), making its layer once. +#[test] +fn a_cooperative_drop_from_a_path_completes_in_slices() { + let dir = std::env::temp_dir().join(format!("photocraft-drop-path-slices-{}", std::process::id())); + std::fs::create_dir_all(&dir).unwrap(); + let good = dir.join("good.png"); + std::fs::write(&good, png_bytes(30, 30)).unwrap(); + let ctx = egui::Context::default(); + let mut app = app_with_canvas(); + app.session.set_cooperative_jobs(true); + app.session.set_job_step_budget(std::time::Duration::ZERO); + let layers = layer_count(&app); + app.open_dropped(&ctx, vec![dropped(&good, Ok(Vec::new()))], Some(egui::pos2(400.0, 300.0))); + app.place_next_dropped(&ctx); + assert_eq!(app.jobs.place.as_ref().map(|p| p.name.as_str()), Some("good.png")); + tick_until(&mut app, &ctx, |app| app.jobs.place.is_none()); + assert_eq!(layer_count(&app), layers + 1); + assert_eq!(app.ui.transform.as_ref().and_then(|t| t.made), Some(crate::state::MadeLayer::Place)); + let _ = std::fs::remove_dir_all(&dir); +} + /// A file that can't be decoded is reported by name and the files dropped after it go on. #[test] fn a_background_place_that_fails_reports_it_and_the_queue_continues() { @@ -780,6 +886,16 @@ fn many_path_drops_all_queue() { assert_eq!(app.drop_places.len(), n + 1, "path drops don't use up the browser drops' room"); } +/// The shell's place inbox, which the browser's reads fill between two frames, takes no more than +/// the drop queue it is drained into. +#[test] +fn the_place_inbox_has_the_drop_queues_limits() { + use crate::file_open::{MAX_QUEUED_DROP_BYTES, MAX_QUEUED_DROPS, place_inbox_takes}; + assert!(place_inbox_takes(0, MAX_QUEUED_DROP_BYTES - 1, 1)); + assert!(!place_inbox_takes(0, MAX_QUEUED_DROP_BYTES, 1), "a read that would pass the byte cap is refused"); + assert!(!place_inbox_takes(MAX_QUEUED_DROPS, 0, 0), "so is one past the file cap"); +} + /// Closing A while its file is being placed: nothing lands anywhere, and A's next file is dropped. #[test] fn closing_the_document_while_its_file_is_placed_places_nothing_elsewhere() { diff --git a/crates/ui-egui/src/i18n.rs b/crates/ui-egui/src/i18n.rs index ada37cd0cf..8b688c6d4a 100644 --- a/crates/ui-egui/src/i18n.rs +++ b/crates/ui-egui/src/i18n.rs @@ -20,6 +20,7 @@ //! - [`trn`]: plural-aware (`{n}` is filled in). [`fmt`]: fill `{name}` placeholders after [`tr`]; //! translators may reorder placeholders freely. +mod casing; mod catalog; mod system; @@ -104,6 +105,20 @@ fn plural_pt(n: u64) -> usize { usize::from(n > 1) } +/// Romanian (CLDR): 1 → one; 0, or n % 100 in 1–19 → few (these take the bare plural noun, e.g. +/// "2 straturi", "0 straturi", "119 straturi"); everything else (20, 100, 121, ...) → other (these +/// take "de" plus the plural noun, e.g. "20 de straturi", "121 de straturi"), which matches +/// Romanian's grammatical rule for when counted nouns need "de" inserted before them. +fn plural_romanian(n: u64) -> usize { + if n == 1 { + 0 + } else if n == 0 || (1..=19).contains(&(n % 100)) { + 1 + } else { + 2 + } +} + /// Polish: 1 → one; 2–4, except 12–14 → few; everything else → many. fn plural_polish(n: u64) -> usize { let last = n % 10; @@ -201,7 +216,7 @@ fn expand(packed: &str, keys: &[&str]) -> Result { } /// The registry. English first: it is the fallback and the source language. -pub static LANGUAGES: [LangInfo; 28] = [ +pub static LANGUAGES: [LangInfo; 34] = [ LangInfo { code: "en", name: "English", source: b"", plural: plural_one_other, complete_menus: false, catalog: OnceLock::new() }, LangInfo { code: "ja", name: "日本語", source: catalog!("ja"), plural: plural_none, complete_menus: true, catalog: OnceLock::new() }, LangInfo { code: "zh-hans", name: "简体中文", source: catalog!("zh-hans"), plural: plural_none, complete_menus: true, catalog: OnceLock::new() }, @@ -236,8 +251,13 @@ pub static LANGUAGES: [LangInfo; 28] = [ LangInfo { code: "hu", name: "Magyar", source: catalog!("hu"), plural: plural_none, complete_menus: true, catalog: OnceLock::new() }, // Turkish; `tr`, `tr-TR` and `tr_TR` locales resolve here. LangInfo { code: "tr", name: "Türkçe", source: catalog!("tr"), plural: plural_none, complete_menus: true, catalog: OnceLock::new() }, + // Azerbaijani (Latin script); regional and explicit Latin-script tags resolve here. + LangInfo { code: "az", name: "Azərbaycanca", source: catalog!("az"), plural: plural_one_other, complete_menus: true, catalog: OnceLock::new() }, // Vietnamese; `vi-VN` resolves here. LangInfo { code: "vi", name: "Tiếng Việt", source: catalog!("vi"), plural: plural_none, complete_menus: true, catalog: OnceLock::new() }, + // Thai; `th`, `th-TH` and `th_TH.UTF-8` locales resolve here. Thai has no plural inflection, + // so counts use one form. + LangInfo { code: "th", name: "ไทย", source: catalog!("th"), plural: plural_none, complete_menus: true, catalog: OnceLock::new() }, // Hindi; `hi`, `hi-IN` locales resolve here. LangInfo { code: "hi", name: "हिन्दी", source: catalog!("hi"), plural: plural_one_other, complete_menus: false, catalog: OnceLock::new() }, // Arabic (Modern Standard); `ar-SA`, `ar-EG` and the other regional locales resolve here. The @@ -253,6 +273,17 @@ pub static LANGUAGES: [LangInfo; 28] = [ // Norwegian Bokmål; `nb-NO`, and the macrolanguage `no` and Nynorsk `nn` from POSIX locales, // resolve here (see `candidates`). LangInfo { code: "nb", name: "Norsk bokmål", source: catalog!("nb"), plural: plural_one_other, complete_menus: true, catalog: OnceLock::new() }, + // Hebrew; `he-il` and `he_IL` resolve here. The chrome mirrors right to left (`dir_for_code`), + // like Arabic. Modern Hebrew software UI collapses CLDR's one/two/many/other + // into a plain one|other, so this uses `plural_one_other`. + LangInfo { code: "he", name: "עברית", source: catalog!("he"), plural: plural_one_other, complete_menus: true, catalog: OnceLock::new() }, + // Urdu; written right to left like Arabic (`dir_for_code`). CLDR plural: one|other. + LangInfo { code: "ur", name: "اردو", source: catalog!("ur"), plural: plural_one_other, complete_menus: true, catalog: OnceLock::new() }, + // Romanian; `ro-RO` and `ro-MD` resolve here. Standard left-to-right; see `plural_romanian` + // for the one/few/other rule. + LangInfo { code: "ro", name: "Română", source: catalog!("ro"), plural: plural_romanian, complete_menus: true, catalog: OnceLock::new() }, + // Tamil; `ta-IN`, `ta-LK` and `ta_IN.UTF-8` resolve here. CLDR plural: one|other. + LangInfo { code: "ta", name: "தமிழ்", source: catalog!("ta"), plural: plural_one_other, complete_menus: true, catalog: OnceLock::new() }, ]; impl LangInfo { diff --git a/crates/ui-egui/src/i18n/LICENSE-translations.txt b/crates/ui-egui/src/i18n/LICENSE-translations.txt index 18ecbe5f11..a3cf7d99ae 100644 --- a/crates/ui-egui/src/i18n/LICENSE-translations.txt +++ b/crates/ui-egui/src/i18n/LICENSE-translations.txt @@ -1,8 +1,14 @@ PhotoCraft's Korean, German, Spanish, Brazilian Portuguese, Italian, Ukrainian, Dutch, Czech, -Turkish, Hungarian, Serbian, Russian, Swedish, Finnish, Danish, Norwegian Bokmål and Bosnian UI -translation catalogs are licensed under MIT OR Apache-2.0, at your option. +Turkish, Hungarian, Serbian, Russian, Swedish, Finnish, Danish, Norwegian Bokmål, Bosnian, Hebrew, +Urdu, Romanian, Azerbaijani, Thai and Tamil UI translation catalogs are licensed under MIT OR +Apache-2.0, at your option. The full license texts are in ../../../../LICENSE-MIT and ../../../../LICENSE-APACHE. +Azerbaijani (Latin script) translations: machine-assisted drafts of PhotoCraft's +English labels using Google Translate, with core menu/tool terminology, contextual meanings and +plural messages edited by OpenAI Codex. No proprietary application localization resources were +used. Native-speaker review is pending; no human contributor name is inferred or assigned. + Korean translations: PhotoCraft contributors, original translations of PhotoCraft's English labels; no proprietary translation resources were used. @@ -61,3 +67,21 @@ translations of PhotoCraft's English labels, and no proprietary translation reso Bosnian translations: Nine (@nine-codes) with Claude Code (AI-assisted), original translations of PhotoCraft's English labels, shared with storytold/craft-i18n (locales/bs/); no proprietary translation resources were used. Not yet reviewed by a native speaker. +Hebrew translations: machine-translated for @tronicum with Claude (Anthropic) as an AI +contributor and not yet reviewed by a native speaker; original translations of PhotoCraft's +English labels, and no proprietary translation resources were used. +Urdu translations: machine-translated for @tronicum with Claude (Anthropic) as an AI +contributor and not yet reviewed by a native speaker; original translations of PhotoCraft's +English labels, and no proprietary translation resources were used. +Romanian translations: machine-translated for @tronicum with Claude (Anthropic) as an AI +contributor and not yet reviewed by a native speaker; original translations of PhotoCraft's +English labels, and no proprietary translation resources were used. + +Thai translations: PhotoCraft contributors, with opencode (DeepSeek) as an AI contributor; a +machine-assisted first draft from PhotoCraft's English labels, reviewed for UI terminology. The +resulting catalog is licensed under MIT OR Apache-2.0 as stated above, and no proprietary +localisation resource was used. + +Tamil translations: @newsbaba24x7 and PhotoCraft contributors, original translations of +PhotoCraft's English labels written from their plain meaning; no proprietary localisation +resource was used. diff --git a/crates/ui-egui/src/i18n/ar.tsv b/crates/ui-egui/src/i18n/ar.tsv index 80c41fe82b..7246ff506b 100644 --- a/crates/ui-egui/src/i18n/ar.tsv +++ b/crates/ui-egui/src/i18n/ar.tsv @@ -680,7 +680,7 @@ Working Magenta Plate لوح الأرجواني العامل Working Yellow Plate لوح الأصفر العامل Working Black Plate لوح الأسود العامل - Working CMY Plates لوح CMY العامل + Working CMY Plates ألواح CMY العاملة Legacy Macintosh RGB (Gamma 1.8) RGB القديم لنظام Macintosh (Gamma 1.8) Internet Standard RGB (sRGB) RGB القياسي للإنترنت (sRGB) Monitor RGB RGB الشاشة @@ -764,7 +764,7 @@ Consolidate All to Tabs توحيد الكل في علامات تبويب Float in Window تعويم في نافذة Float All in Windows تعويم الكل في نوافذ - New Window نافذة جديدة للمستند + New Window نافذة جديدة Workspace مساحة العمل Essentials الأساسيات Graphic and Web الرسومات والويب @@ -826,6 +826,12 @@ Timeline المخطط الزمني Tool Presets الإعدادات المسبقة للأدوات Tools الأدوات + Contextual Task Bar شريط المهام السياقي + Hide bar إخفاء الشريط + Reset bar position إعادة تعيين موضع الشريط + Pin bar position تثبيت موضع الشريط + Move bar نقل الشريط + More options مزيد من الخيارات About PhotoCraft حول PhotoCraft PhotoCraft Website موقع PhotoCraft PhotoCraft on GitHub PhotoCraft على GitHub @@ -2058,7 +2064,6 @@ Show only crosshair while painting إظهار نقطة التصويب فقط أثناء الرسم Show slice numbers إظهار أرقام الشرائح Show tooltips إظهار تلميحات الأدوات - Enable animations تمكين الحركات Show highlight on rollover إظهار التمييز عند التمرير Show bounding box when dragging layer إظهار مربع الإحاطة عند سحب الطبقة System title bar شريط عنوان النظام @@ -2307,6 +2312,7 @@ Punctuation علامات الترقيم Make Work Path إنشاء مسار عمل Make Selection إنشاء تحديد + Make Shape إنشاء شكل Fill Path تعبئة المسار Stroke Path رسم حدود للمسار Delete Path حذف المسار diff --git a/crates/ui-egui/src/i18n/az.tsv b/crates/ui-egui/src/i18n/az.tsv new file mode 100644 index 0000000000..60b2426a38 --- /dev/null +++ b/crates/ui-egui/src/i18n/az.tsv @@ -0,0 +1,4618 @@ +# Azerbaijani (Latin script) (az) UI catalog. UTF-8, contextsourcetranslation. +# Format: ja.tsv. Original translations of PhotoCraft English source labels; no proprietary +# localization resources were used. Machine-assisted drafts (Google Translate), with core +# menu/tool terminology, contexts and plural messages edited by OpenAI Codex. Native-speaker +# review is pending. Keep command IDs, placeholders, product names and trailing ellipses. +# Licensed under MIT OR Apache-2.0; see LICENSE-translations.txt. +# @plural forms: one|other (integer 1 vs all other counts; counted nouns stay singular). + + Mask Options… Maska Seçimləri… + Layer Mask Display Options… Layer Maska Ekran Seçimləri… + Channel Color Kanal Rəngi + Color Indicates: Rəngi göstərir: + Solidity: Möhkəmlik: + Ink Characteristics Mürəkkəb Xüsusiyyətləri + Paper Width Kağız eni + Paper Height Kağız Hündürlüyü + Rows Sıralar + Number Nömrə + Margin Marja + Top: Yuxarı: + Left: Sol: + Bottom: Aşağı: + Right: Sağ: + Target: Hədəf: + Selected Artboards Seçilmiş İş lövhələri + Center Columns Mərkəzi Sütunlar + Clear Existing Guides Mövcud Bələdçiləri Sil + Invalid guide layout Yanlış bələdçi düzümü + Leave empty for automatic size Avtomatik ölçü üçün boş buraxın + 5 Columns, 3 Rows 5 Sütun, 3 Sıra + 8 Columns 8 sütun + 12 Columns 12 Sütun + File Fayl + Edit Redaktə + Image Şəkil + Layer Qat + Type Mətn + Select Seçim + Selected Seçildi + Scope Əhatə dairəsi + Top Left Yuxarı Sol + Top Right Yuxarı sağ + Bottom Left Aşağı Sol + Bottom Right Aşağı sağ + Filter Filtr + View Görünüş + Window Pəncərə + Help Kömək + New… Yeni… + New from Clipboard Buferdən yeni + New Yeni + Open… Aç… + Open Aç + Open As… Fərqli aç… + Open EXR Parts… EXR hissələrini aç… + Add beauty precomp from the AOVs AOV-lərdən gözəllik prekompunu əlavə edin + Both Hər ikisi + Left Sol + Right Sağ + Open Recent Son faylları aç + Clear Recent Files Son Faylları Sil + Remove from Recent Ən Sondan Sil + Remove {name} from Recent {name} -i Sondan çıxarın + Close Bağla + Minimize minimuma endir + Maximize Maksimallaşdırın + Restore Bərpa et + Close All Hamısını bağla + Close Others Digərlərini bağla + Save Saxla + Save As… Fərqli saxla… + Save a Copy… Nüsxəsini saxla… + {name} can't keep everything in this document {name} bu sənəddə hər şeyi saxlaya bilməz + Choose a format that keeps it, such as Photoshop (PSD), or save a copy. Photoshop (PSD) kimi onu saxlayan format seçin və ya nüsxəsini saxlayın. + Save… Saxla… + Revert Əvvəlki vəziyyətə qaytar + Import İdxal + Import Presets Əvvəlcədən parametrləri idxal edin + Export As… Fərqli ixrac et… + Export İxrac + Export… İxrac… + Quick Export As PNG PNG kimi sürətli ixrac + Quick Export as PNG PNG kimi sürətli ixrac + Place Embedded… Daxilə yerləşdir… + Place Linked… Əlaqəli yerləşdir… + Package… Paket… + Save for Web (Legacy)… Veb üçün saxla (köhnə)… + Generate Yarat + Image Assets Şəkil resursları + Undo Geri al + Redo Yenidən et + Fade… Təsiri zəiflət… + Cut Kəs + Copy Kopyala + Copy Merged Birləşdirilmişi kopyala + Paste Yapışdır + Paste Special Xüsusi yapışdırın + Paste Into Daxilə yapışdır + Paste Outside Xaricə yapışdır + Paste in Place Eyni yerə yapışdır + Clear Təmizlə + Search Axtarış + Search… Axtar… + Check Spelling… Yazılışı yoxla… + Fill… Doldur… + Stroke… Kontur çək… + Content-Aware Fill… Məzmuna uyğun doldur… + Delete and Fill Selection Seçimi Sil və Doldur + Define Brush Preset… Hazır fırça ayarı təyin et… + Define Pattern… Naxış təyin et… + Define Custom Shape… Fərdi fiqur təyin et… + Purge Təmizləmə + Image Size… Şəkil ölçüsü… + Image Size Şəkil ölçüsü + Canvas Size… Kətan ölçüsü… + Image Rotation Şəklin fırlanması + Rotate 90° Clockwise Saat əqrəbi istiqamətində 90° fırladın + Rotate 90° Counter Clockwise Saat əqrəbinin əksinə 90° fırladın + Rotate 180° 180° döndərin + Flip Canvas Horizontal Kətanı üfüqi çevir + Flip Canvas Vertical Kətanı şaquli çevir + Crop Kəsmə + Crop and Straighten Photos Fotoları kəs və düzləndir + Trim… Kənarları kəs… + Reveal All Hamısını göstər + Hide Selection Seçimi gizlədin + Auto Tone Avtomatik Ton + Auto Contrast Avtomatik Kontrast + Auto Color Avtomatik Rəng + Adjustments Tənzimləmələr + 16 Bits/Channel 16 Bit/Kanal + 32 Bits/Channel 32 Bit/Kanal + 8 Bits/Channel 8 Bit/Kanal + 8 bit 8 bit + Integer Tam ədəd + 16 bit 16 bit + 32 bit (float) 32 bit (float) + Floating point Üzən nöqtə + Mode Rejim + Grayscale Boz rəng + RGB Color RGB Rəngi + CMYK Color CMYK Rəngi + Lab Color Lab rəngi + Indexed Color İndeksli Rəng + Multichannel Çoxkanallı + Bitmap… Bitmap… + Bitmap Bitmap + Duotone… İki ton… + Duotone Duoton + Trap… Rəng örtüşməsi… + Layer via Copy Kopya vasitəsilə qat + Layer via Cut Kəsərək qat yarat + Duplicate Layer… Dublikat qat… + Duplicate… Dublikat yarat… + Delete Sil + Delete Layer Qatı silin + Delete Layers Qatları silin + Rename Layer Qatın adını dəyiş + Layer From Background… Fondan Layer… + Layer from Background… Fondan qat… + Background from Layer Qatdan arxa plan yarat + Background From Layer Layerdən Fon + Group Layers Qatları qruplaşdır + Group… Qrup… + Ungroup Layers Qatların qruplaşdırmasını ləğv et + Group from Layers… Qatlardan Qrup… + New Group from Layers… Layers-dən Yeni Qrup… + Hide Layers Qatları gizlət + Arrange Təşkil et + Bring to Front Ən önə gətir + Bring Forward Bir pillə önə gətir + Send Backward Bir pillə arxaya göndər + Send to Back Ən arxaya göndər + Convert to Smart Object Ağıllı Obyektə çevirin + Convert for Smart Filters Ağıllı Filtrlər üçün çevirin + New Smart Object via Copy Kopiya vasitəsilə Yeni Ağıllı Obyekt + Edit Contents Məzmunu redaktə edin + Replace Contents… Məzmunu dəyişdirin… + Export Contents… Məzmunu ixrac edin… + Rasterize Rasterləşdir + Rasterize Type Rasterləşdirmə növü + Rasterize Shape Şəklin rasterləşdirilməsi + Rasterize Layer Layeri Rasterləşdirin + Rasterize Layers Qatları Rasterləşdirin + New Adjustment Layer Yeni Tənzimləmə Layeri + New Fill Layer Yeni Doldurma Layeri + Layer Mask Qat maskası + Add Layer Mask Qat maskası əlavə edin + Delete Layer Mask Qat maskasını silin + Enable Layer Mask Qat maskasını aktivləşdir + Disable Layer Mask Qat maskasını deaktiv edin + Apply Layer Mask Qat maskası tətbiq edin + Add Mask to Selection Seçimə maska əlavə edin + Subtract Mask from Selection Maskanı Seçimdən çıxarın + Intersect Mask with Selection Seçimlə kəsişən maska + Link Layer Mask Qat maskasını əlaqələndir + Unlink Layer Mask Layer Maskasını ayırın + Vector Mask Vektor maskası + Add Vector Mask Vektor maskası əlavə edin + Delete Vector Mask Vektor maskasını sil + Enable Vector Mask Vektor maskasını aktivləşdir + Link Vector Mask Vektor maskasını əlaqələndir + Create Clipping Mask Kəsici maska yarat + Release Clipping Mask Kəsmə maskasını buraxın + New Shape Layer Yeni Forma Layeri + New Type Layer Yeni mətn qatı + New Video Layer from File… Fayldan yeni video qatı… + New Blank Video Layer Yeni boş video qatı + Smart Filters Ağıllı filtrlər + Delete Smart Filters Ağıllı Filtrləri silin + Enable Smart Filters Ağıllı Filtrləri aktivləşdirin + Disable Smart Filters Ağıllı Filtrləri söndürün + Clear Smart Filters Ağıllı Filtrləri təmizləyin + Delete Filter Mask Filtr maskasını silin + Disable Filter Mask Filtr maskasını söndürün + New Layer Based Slice Qata əsaslanan yeni dilim + Layer Style Qat üslubu + Blending Options… Qarışdırma seçimləri… + Blending Options Qarışıq Seçimləri + Drop Shadow… Düşən kölgə… + Inner Shadow… Daxili kölgə… + Outer Glow… Xarici parıltı… + Inner Glow… Daxili parıltı… + Bevel & Emboss… Pah və qabartma… + Use Global Light Qlobal İşıqdan istifadə edin + Overprint Üst çap + Satin… Satin… + Color Overlay… Rəng örtüyü… + Gradient Overlay… Qradient örtüyü… + Pattern Overlay… Naxış örtüyü… + Bevel & Emboss Pah və qabartma + Inner Shadow Daxili kölgə + Inner Glow Daxili parıltı + Satin Satin + Color Overlay Rəng Üstü + Gradient Overlay Qradient örtüyü + Pattern Overlay Nümunə örtüyü + Outer Glow Xarici parıltı + Drop Shadow Düşən kölgə + Copy Layer Style Qat üslubunu kopyala + Paste Layer Style Qat üslubunu yapışdır + Clear Layer Style Qat üslubunu təmizlə + Layer Content Options… Qat məzmunu seçimləri… + Scale Effects… Effektləri miqyasla… + New Layer… Yeni qat… + Delete Layer… Qatı silin… + Font Şrift + Font Preview Size Şrift Ölçüsü + Orientation Orientasiya + Horizontal Üfüqi + Vertical Şaquli + Rasterize Type Layer Mətn qatını rasterləşdir + Create Work Path İş yolu yarat + Convert to Shape Formaya çevirin + Convert to Paragraph Text Paraqraf mətninə çevirin + Convert to Point Text Nöqtə mətninə çevirin + Warp Text… Mətni deformasiya et… + Character Panel Simvol paneli + Paragraph Panel Abzas paneli + Check Spelling Orfoqrafiyanı yoxlayın + Language Options Dil Seçimləri + Find and Replace Text… Mətni tap və əvəz et… + Add to Dictionary Lüğətə əlavə et + No Spelling Suggestions Orfoqrafiya təklifləri yoxdur + Paste Lorem Ipsum Lorem Ipsum mətni yapışdır + Glyphs Panel Qliflər Paneli + Type Styles Növ üslubları + Character Styles Xarakter Üslubları + Paragraph Styles Paraqraf üslubları + Load Default Type Styles İlkin mətn üslublarını yüklə + Save Default Type Styles İlkin mətn üslublarını saxla + Type… Mətn… + All Hamısı + Deselect Seçimi ləğv edin + Reselect Yenidən seçin + Inverse Selection Tərs seçim + Inverse Tərs + Color Range… Rəng diapazonu… + Select and Mask… Seç və maskala… + Smart Radius Ağıllı radius + Shift Edge Kənarı sürüşdür + Decontaminate Zərərsizləşdirin + Output Çıxış + Refine Edge Kənarı dəqiqləşdirin + Select Subject Mövzu seçin + Sky Göy + Focus Area… Fokus sahəsi… + Subject Obyekt + Color Range Rəng diapazonu + Similar Oxşar + Grow Seçimi böyüt + Select Similar Colors Oxşar Rəngləri seçin + Load Selection… Seçimi Yüklə… + Save Selection… Seçimi yadda saxla… + New Selection Yeni seçim + Select All Hamısını seçin + Deselect All Hamısının seçimini ləğv edin + Deselect Layers Qatların seçimini ləğv edin + Find Layers Qatları tapın + Isolate Layers Qatları təcrid et + Select Linked Layers Əlaqəli qatları seç + All Layers Bütün qatlar + Current & Below Cari və Aşağı + Current Layer Cari qat + Refine Strokes Fırça izlərini dəqiqləşdir + Edits Düzəlişlər + Last Filter Son Filtr + Filter Gallery… Qalereya filtri… + Liquify… Likvidləşdirin… + Camera Raw Filter… Camera Raw filtri… + Adaptive Wide Angle… Uyğunlaşan Geniş Bucaq… + Lens Correction… Lens korreksiyası… + Vanishing Point… Ufuq Nöqtəsi… + Oil Paint… Yağlı Boya… + Blur Gallery Bulanıq Qalereya + Field Blur… Sahə bulanıqlığı… + No pin selected PIN seçilməyib + Click the image to add a pin; drag a pin to move it, or its ring to change its blur. Delete removes the selected pin. Sancaq əlavə etmək üçün şəkilə klikləyin; hərəkət etdirmək üçün sancağı və ya bulanıqlığını dəyişmək üçün halqasını dartın. Sil seçilmiş pin silinir. + Drag the handles on the outline to resize and turn it, the square to round its corners, and the dots inside to set where the blur starts. Konturun ölçüsünü dəyişmək və çevirmək üçün tutacaqları, künclərini yuvarlaqlaşdırmaq üçün kvadratı və bulanıqlığın başladığı yeri təyin etmək üçün içindəki nöqtələri dartın. + Drag the pin to move the band, or its ring to change its blur. Drag the solid lines to widen the sharp band, the dashed lines to set the transition, and the dots to turn it. Qrupu hərəkət etdirmək üçün sancağı və ya bulanıqlığını dəyişmək üçün halqasını dartın. Kəskin zolağı genişləndirmək üçün bərk xətləri, keçidi təyin etmək üçün kəsikli xətləri və çevirmək üçün nöqtələri dartın. + Drag the handles on the outline to resize and turn it; the ring sets the blur angle. Ölçüsünü dəyişmək və çevirmək üçün konturdakı tutacaqları dartın; üzük bulanıqlıq bucağını təyin edir. + Blur Angle Bulanıq bucaq + Iris Blur… İris bulanıqlığı… + Tilt-Shift… Meyil-sürüşmə… + Path Blur… Yol Bulanıqlığı… + Spin Blur… Fırlanma bulanıqlığı… + Auto-Align Layers… Qatları avtomatik hizala… + Auto-Blend Layers… Qatları avtomatik qarışdır… + Photomerge… Foto birləşdirin… + Content-Aware Scale Məzmuna uyğun miqyaslama + Adaptive Wide Angle Uyğunlaşan Geniş Bucaq + Apply Image… Şəkil tətbiq edin… + Calculations… Hesablamalar… + Crystallize… Kristallaşma… + Facet Faset + Fragment Fraqment + Mosaic… Mozaika… + Pointillize… Pointilize… + Chalk & Charcoal Təbaşir və kömür + Charcoal Kömür + Chrome Chrome + Conté Crayon Conté Crayon + Graphic Pen Qrafik Qələm + Halftone Pattern Yarım ton nümunəsi + Note Paper Qeyd kağızı + Photocopy Fotosurət + Plaster Gips + Reticulation Retikulyasiya + Stamp Möhür + Torn Edges Cırıq kənarlar + Water Paper Su kağızı + Clouds Buludlar + Difference Clouds Fərq Buludları + Fibers… Liflər… + Lens Flare… Obyektiv parıltısı… + Picture Frame… Şəkil çərçivəsi… + Tree… Ağac… + Flame… Alov… + Sharpen Edges Kənarları kəskinləşdirin + Dust & Scratches… Toz və cızıqlar… + Noise Səs-küy + Add Noise… Səs-küy əlavə edin… + Reduce Noise… Səs-küyü azaldın… + Despeckle Xalları təmizlə + Median… Orta… + Median Median + Maximum… Maksimum… + Maximum Maksimum + Minimum… Minimum… + Minimum Minimum + Custom… Fərdi… + High Pass… Yüksək tezlik filtri… + Emboss… Qabartma… + Extrude… Extrude… + Find Edges Kənarları tapın + Solarize Solarizasiya + Tiles… Kafel… + Trace Contour… Kontur İzi… + Wind… Külək… + Offset… Ofset… + Pinch… Çimdik… + Polar Coordinates… Qütb koordinatları… + Ripple… Dalğalanma… + Shear… Kəsmək… + Spherize… Kürələşdir… + Twirl… Burulma… + Wave… Dalğa… + ZigZag… ZiqZaq… + Average Orta + Blur More Daha çox bulanıqlaşdır + Box Blur… Qutu Bulanıqlığı… + Gaussian Blur… Qauss bulanıqlığı… + Motion Blur… Hərəkət bulanıqlığı… + Radial Blur… Radial Bulanıqlıq… + Shape Blur… Fiqur bulanıqlığı… + Smart Blur… Ağıllı Bulanıqlıq… + Surface Blur… Səth bulanıqlığı… + Sharpen Kəskinləşdir + Sharpen More Daha çox itiləyin + Unsharp Mask… Kəskin olmayan maska… + Smart Sharpen… Ağıllı kəskinləşdirmə… + Diffuse… Diffuz… + Mezzotint… Metsotinto… + Color Halftone… Rəngli Yarımton… + Layer… Qat… + Proof Setup Sübut Quraşdırma + Proof Colors Sınaq rəngləri + Pixel Aspect Ratio Piksel Aspekt Nisbəti + Pixel Aspect Ratio Correction Piksel Aspekt Nisbətinin Korreksiyası + Zoom In Böyüt + Zoom Out Uzaqlaşdır + Fit on Screen Ekrana uyğun + 100% 100% + 105% 105% + 110% 110% + 115% 115% + 120% 120% + 200% 200% + 75% 75% + 80% 80% + 85% 85% + 90% 90% + 95% 95% + 125% 125% + 150% 150% + 175% 175% + 250% 250% + 300% 300% + Print Size Çap Ölçüsü + Screen Mode Ekran rejimi + Standard Screen Mode Standart Ekran rejimi + Full Screen Mode With Menu Bar Menyu paneli ilə tam ekran rejimi + Full Screen Mode Tam ekran rejimi + Extras Əlavələr + Show Göstər + Rulers Xətkeşlər + Grid Tor + Guides İstiqamətləndiricilər + Slices Dilimlər + Snap Snap + Snap To Snap To + Lock Guides Kilid Bələdçiləri + Clear Guides Aydın bələdçilər + New Guide… Yeni Bələdçi… + Lock Slices Dilimləri kilidləyin + Clear Slices Dilimləri təmizlə + New Guide Layout… Yeni Bələdçi Düzeni… + New Guides From Shape Formadan Yeni Bələdçilər + Canvas rotation Kətan fırlanması + Zoom in Böyüt + Zoom out Uzaqlaşdırın + Cascade Kaskad + Tile Kafel + 2-up Horizontal 2-yuxarı Horizontal + 3-up Horizontal 3-yuxarı Horizontal + 2-up Vertical 2 şaquli görünüş + 3-up Vertical 3 şaquli görünüş + 3-up Stacked 3-yuxarı Yığılmış + 4-up 4-dən yuxarı + 6-up 6-dan yuxarı + Consolidate All to Tabs Hamısını Nişanlara birləşdirin + Match Zoom Uyğun Böyütmə + Match Location Uyğun Yer + Match Rotation Qarşılaşmanın fırlanması + Match All Hamısını Uyğunlaşdırın + New Window for Document Sənəd üçün yeni pəncərə + Workspace İş sahəsi + Extensions Genişləndirmələr + Panels Panellər + Actions Əməliyyatlar + Brush Settings Fırça parametrləri + Brushes Fırçalar + Channels Kanallar + Character Simvol + Clone Source Klon Mənbə + Color Mixer Rəng qarışdırıcı + Glyphs Qliflər + Gradients Qradientlər + Histogram Histoqram + History Tarixçə + Info Məlumat + Layer Comps Qat kompozisiyaları + Layers Qatlar + Measurement Log Ölçmə jurnalı + Notes Qeydlər + Navigator Naviqator + Paragraph Abzas + Paths Yollar + Patterns Naxışlar + Properties Xüsusiyyətlər + Styles Üslublar + Swatches Rəng nümunələri + Timeline Zaman xətti + Tool Presets Alətin Əvvəlcədən Tənzimləmələri + Tools Alətlər + Libraries Kitabxanalar + 3D 3D + Toolbars Alət panelləri + Hide All Hamısını gizlət + About PhotoCraft PhotoCraft haqqında + PhotoCraft Website PhotoCraft Veb saytı + PhotoCraft on GitHub GitHub-da PhotoCraft + Report an Issue… Problemi bildirin… + ArtCraft Website ArtCraft Veb saytı + Join the ArtCraft Discord… ArtCraft Discord-a qoşulun… + System Info… Sistem məlumatları… + Move Köçür + Marquee Marquee + Lasso Kəmənd + Wand Çubuq + Eyedropper Damcılıq + Brush Fırça + Block Blok + Pencil Karandaş + Eraser Silgi + Clone Stamp Klonlama möhürü + Healing Şəfa + Blur Bulanıqlaşdırma + Dodge İşıqlandırma + Burn Tündləşdirmə + Gradient Qradient + Shape Forma + Pen Qələm + Hand Əl + Zoom Böyüt + Sampler Nümunə götürən + Ruler Tool Xətkeş Aləti + Count Tool Say aləti + Note tool Qeyd aləti + Quick Selection Tez seçim + Magnetic Lasso Maqnit Kəməndi + Mixer Brush Mikser fırçası + Mixer Brush Tool Qarışdırıcı fırça aləti + Color Replacement Tool Rəng əvəzləmə aləti + History Brush Tarixçə fırçası + Art History Brush Bədii tarixçə fırçası + Pattern Stamp Nümunə möhürü + Spot Healing Ləkə Müalicəsi + Red Eye Qırmızı Göz + Patch Yamaq + Content-Aware Move Məzmundan xəbərdar Hərəkət + Rotate View Görünüşü fırladın + Perspective Crop Perspektiv kəsmə + Color Replacement Rəngin dəyişdirilməsi + Dodge/Burn İşıqlandırma/tündləşdirmə + Foreground Ön plan + Background Arxa plan + Set foreground color Ön plan rəngini təyin edin + Set background color Fon rəngini təyin edin + Swap colours (X) Rəngləri dəyişdirin (X) + Default colours (D) Defolt rənglər (D) + Brush Tool Options Fırça Alət Seçimləri + Opacity Qeyri-şəffaflıq + Flow Axın + Smoothing Hamarlama + Size Ölçü + Hardness Sərtlik + Angle: Bucaq: + Roundness: Dairəvilik: + Spacing Aralıq + Dynamics Dinamikalar + Pressure Təzyiq + Tilt əyilmək + Rotation Fırlanma + Align Hizalayın + Aligned Hizalanmış + OK Oldu + Cancel Ləğv et + Cancel (Esc) Ləğv et (Esc) + Manage submitted jobs in the system print queue Sistem çap növbəsində təqdim edilmiş işləri idarə edin + Done Hazırdır + Apply Tətbiq et + Reset Sıfırla + Reset Section Bölməni Sıfırlayın + Reset All to Defaults Hamısını Standartlara Sıfırlayın + Import Shortcuts… İdxal Qısayolları… + Load a keyboard shortcut set saved as .kys .kys kimi saxlanmış klaviatura qısayol dəstini yükləyin + Imported {n} shortcuts from {file}. Click OK to keep them. {file} -dən idxal edilmiş {n} qısa yolları. Onları saxlamaq üçün OK düyməsini klikləyin. + {n} commands are not in PhotoCraft. {n} əmrləri PhotoCraft -də deyil. + Keyboard shortcuts imported Klaviatura qısa yolları idxal edildi + Your keyboard shortcut set {set} is in use here: {n} shortcuts differ from the defaults. Edit › Keyboard Shortcuts shows them; Reset All to Defaults undoes this. Sizin klaviatura qısayol dəstiniz {set} burada istifadə olunur: {n} qısayolları defoltlardan fərqlidir. Redaktə › Klaviatura Qısayolları onları göstərir; Hamısını Defoltlara Sıfırla bunu ləğv edir. + Import keyboard shortcuts? Klaviatura qısa yolları idxal edilsin? + PhotoCraft found your keyboard shortcut set {set} from another image editor on this computer: {n} of its shortcuts differ from PhotoCraft's. Import it? PhotoCraft bu kompüterdəki başqa şəkil redaktorundan {set} klaviatura qısayol dəstinizi tapdı: {n} onun qısa yolları PhotoCraft -dən fərqlidir. Import edilsin? + Edit › Keyboard Shortcuts › Reset All to Defaults undoes an import. Redaktə et › Klaviatura Qısayolları › Hamısını Defoltlara Sıfırla idxalı ləğv edir. + Don't Import İdxal etməyin + The keyboard shortcut set was not imported: {error} Klaviatura qısa yol dəsti idxal edilmədi: {error} + Defaults restored. Defoltlar bərpa edildi. + Restore Defaults Defoltları bərpa edin + Restore original size Orijinal ölçüsü bərpa edin + Use Default Defoltdan istifadə edin + Dismiss İşdən çıxarın + Preview Önizləmə + Options Seçimlər + Settings… Parametrlər… + Rename… Adını dəyiş… + Load… Yüklə… + Define… Müəyyən et… + Custom Fərdi + Default İlkin + None Yoxdur + Add Əlavə et + Remove Sil + Remove Background Fonu silin + Rename Adını dəyiş + Ignore Məhəl qoymayın + Ignore All Hamısına məhəl qoyma + Change Dəyişiklik + Change All Hamısını dəyişdirin + Next frame Növbəti çərçivə + Previous frame Əvvəlki çərçivə + Play Oynayın + Pause Fasilə + Stop Dayan + Begin recording Yazmağa başlayın + Stop playing/recording Oynatmağı/yazmağı dayandırın + Record ● a sequence of edits, then play ▶ it on any document. ● redaktə ardıcıllığını yazın, sonra ▶ onu istənilən sənəddə oynatın. + Create new action Yeni fəaliyyət yaradın + Play selection Seçim çalın + Create new set Yeni dəst yaradın + Export selected measurements (CSV) Seçilmiş ölçmələri ixrac edin (CSV) + Record Measurements Ölçmələri qeyd edin + Delete selected measurements Seçilmiş ölçmələri silin + Select Data Points… Məlumat nöqtələrini seçin… + Set Measurement Scale… Ölçmə Şkalasını təyin edin… + Use Measurement Scale Ölçmə Şkalasından istifadə edin + Preferences Tərcihlər + General… Ümumi… + Interface… İnterfeys… + File Handling… Faylla işləmə… + Performance… Performans… + Cursors… Kursorlar… + Transparency & Gamut… Şəffaflıq və rəng əhatəsi… + Units & Rulers… Vahidlər və xətkeşlər… + Guides, Grid & Slices… İstiqamətləndiricilər, tor və dilimlər… + Plug-ins… Pluginlər… + Technology Previews Texnologiyaya baxış + Scratch Disks… Müvəqqəti saxlama diskləri… + Export Preferences… İxrac tərcihləri… + Keyboard Shortcuts… Klaviatura qısayolları… + Menus… Menyular… + Export/Import Presets… Hazır ayarları ixrac/idxal et… + Additional plugins folder Əlavə plaginlər qovluğu + Install Plug-in… Plug-in quraşdırın… + Export Presets İxrac üçün hazır ayarlar + Import brushes (.abr) Fırçaları idxal edin (.abr) + Migrate Presets Hazır ayarları köçür + Thumbnail size (smallest: list) Miniatür ölçüsü (ən kiçik: siyahı) + Reset GPU Backend GPU arxa ucunu sıfırlayın + Applies at next launch. Növbəti buraxılışda tətbiq edilir. + Untitled Başlıqsız + Untitled-1 Başlıqsız-1 + Doc: {flat}/{layered} Sənəd: {flat} / {layered} + Scratch: {size} cızıq: {size} + Efficiency: 100% Səmərəlilik: 100% + Dimensions: Ölçülər: + Width En + Slant Maili + Height Hündürlük + Width: En: + Height: Hündürlük: + Resolution Ayırdetmə + Resolution: Ayırdetmə: + Resolution: {dpi} pixels/inch Qətnamə: {dpi} piksel/düym + {w} px x {h} px ({ppi} ppi) {w} px x {h} px ( {ppi} ppi) + {w} {unit} x {h} {unit} ({ppi} ppi) {w} {unit} x {h} {unit} ( {ppi} ppi) + Pixels: Piksel: + Pixel Length: Piksel Uzunluğu: + Logical Length: Məntiqi Uzunluq: + Logical Units: Məntiqi vahidlər: + Length: Length: + Interpolation: İnterpolyasiya: + Resample Resample + Constrain proportions Məhdud nisbətləri + Link width and height Bağlantı eni və hündürlüyü + Maintain aspect ratio Aspekt nisbətini qoruyun + Current Size Cari ölçü + New Size Yeni Ölçü + Fit Fit + Percent Percent + Pixels/Inch Piksel/düym + Pixels/Centimeter Piksel/Santimetr + Relative qohum + Canvas extension color: Kətan uzadılması rəngi: + Anchor: Anchor: + Both Axes Hər iki ox + Horizontally Üfüqi + Vertically Şaquli + Layers to Files… Qatları fayllara ixrac et… + Duplicate Layers… Dublikat Qatları… + Group name Qrupun adı + New Group Yeni Qrup + Layer Comp Qat kompozisiyası + Create new layer Yeni qat yaradın + Create new group Yeni qrup yarat + Create new channel Yeni kanal yaradın + Create new path Yeni yol yarat + Toggle visibility Görünməni dəyiş + Clipped Kəsilmiş + Group · {n} layer Qrup · {n} qatsi + Lock: keep these settings when picking another preset Kilidləyin: başqa əvvəlcədən təyini seçərkən bu parametrləri saxlayın + Unlock: picking a preset replaces these settings Kilidi aç: əvvəlcədən təyin edilmiş parametrlərin seçilməsi bu parametrləri əvəz edir + Show the layer's effects ({key}-click: all layers) Qatın effektlərini göstərin ( {key} -klik: bütün qatlar) + Hide the layer's effects ({key}-click: all layers) Qatın effektlərini gizlədin ( {key} -klik: bütün qatlar) + Expand group ({key}-click: all groups) Qrupu genişləndirin ( {key} -klik: bütün qruplar) + Collapse group ({key}-click: all groups) Qrupu yığcamlaşdırın ( {key} -klikləyin: bütün qruplar) + Effects Effects + Blending Qarışdırma + Blend If Qarışdırın + General Blend Ümumi qarışıq + Advanced Blending Təkmil qarışdırma + Opacity: Qeyri-şəffaflıq: + Fill: Doldurma: + Lock: Kilid: + Smart Filter Ağıllı Filtr + Fill Content Məzmunu doldurun + Adjustment Preview Tənzimləmə Ön Baxışı + Channel: Kanal: + Channel Mixer… Kanal qarışdırıcısı… + Output Channel: Çıxış Kanalı: + RGB RGB + Red Qırmızı + Green Yaşıl + Blue Mavi + Alpha Alfa + Load channel as selection Kanalı seçim kimi yükləyin + Save selection as channel Seçimi kanal olaraq yadda saxlayın + Delete current channel Cari kanalı silin + Spot Channel Spot Kanal + Mask All Hamısını maska + Mask All Objects Bütün obyektləri maskala + Color Rəng + Color: Rəng: + Colors Rənglər + HSB/HSL HSB/HSL + No Color Rəng yoxdur + Set shape fill type Forma doldurma növünü təyin edin + Set shape stroke type Fiqurun kontur növünü təyin et + Set the text color Mətnin rəngini təyin edin + Create warped text əyri mətn yaradın + Only Web Colors Yalnız Veb Rəngləri + Overlay Color Üstün Rəng + Overlay Opacity Örtük qeyri-şəffaflığı + Glow Color Parıltı Rəngi + Web Snap Veb Snap + Brightness Parlaqlıq + Contrast Kontrast + Brightness/Contrast… Parlaqlıq/Kontrast… + Levels… Səviyyələr… + Curves… Əyrilər… + Curve Əyri + Exposure… Ekspozisiya… + Exposure Ekspozisiya + Vibrance… Rəng canlılığı… + Vibrance Vibrance + Hue/Saturation… Rəng tonu/doyma… + Hue Rəng tonu + Saturation Doyma + Lightness Yüngüllük + Color Balance… Rəng balansı… + Black & White… Qara və Ağ… + Photo Filter… Foto Filtr… + Color Lookup… Rəng Axtarışı… + Color Lookup Tables… Rəng axtarış cədvəlləri… + 3D LUT File 3D LUT Faylı + Load 3D LUT… 3D LUT yükləyin… + Invert… Tərsinə çevir… + Invert Tərsinə çevir + Invert has no settings. İnvertdə heç bir parametr yoxdur. + Threshold… Hədd… + Threshold Level Həddi Səviyyə + Posterize… Posterləşdirin… + Gradient Map… Qradient xəritəsi… + Selective Color… Seçilmiş Rəng… + Match Color… Uyğun Rəng… + Replace Color… Rəngi dəyişdirin… + Equalize Bərabərləşdirin + HDR Toning… HDR tonlama… + Shadows/Highlights… Kölgələr/işıqlı sahələr… + Amount Məbləğ + Radius Radius + Radius: Radius: + Tolerance: Tolerantlıq: + Density Sıxlıq + Density: Sıxlıq: + Feather Kənar yumşaltma + Feather… Kənarları yumşalt… + Anti-alias Kənar hamarlama + Anti-Alias Kənar hamarlama + Contiguous Bitişik + Sample All Layers Bütün qatlari nümunə götürün + Protect Foreground Color Ön plan rəngini qoruyun + Matte tutqun + Matting Matlama + Color Decontaminate… Rəngi zərərsizləşdirin… + Remove Black Matte Qara fon qalığını sil + Remove White Matte Ağ fon qalığını sil + Defringe… Kənar rəng saçağını təmizlə… + Source Mənbə + Working CMYK CMYK işləyir + Working Cyan Plate İşləyən Cyan Plate + Working Magenta Plate İşləyən Magenta Plate + Working Yellow Plate İşləyən Sarı Lövhə + Working Black Plate İşləyən Qara Boşqab + Working Gray Plate İşləyən Boz Boşqab + Basic Əsas + Detail Təfərrüat + HSL/Grayscale HSL/Boz rəng + Tone Curve Ton əyrisi + Split Toning Ayrı tonlama + Lens Corrections Lens düzəlişləri + Camera Calibration Kameranın kalibrlənməsi + Presets Əvvəlcədən təyinlər + Snapshots Ani görüntülər + Temperature Temperatur + Tint Çalar + Exposure: Ekspozisiya: + Recovery Bərpa + Fill Light İşığı doldurun + Blacks Qara sahələr + Clarity Aydınlıq + Convert to Grayscale Boz rəngə çevirin + Auto Avtomatik + Auto collapse icon panels Avtomatik yığcam ikona panelləri + Auto show hidden panels Gizli panelləri avtomatik göstərin + Auto show home screen Əsas ekranı avtomatik göstərin + Sharpness Kəskinlik + Noise Reduction Səs-küyün azaldılması + Color Noise Reduction Rəng səsinin azaldılması + Luminance Detail Parlaqlıq Təfərrüatı + Color Detail Rəng detalı + Luminance Smoothness Parlaqlıq Hamarlığı + Vignetting Vinyetləmə + White Balance: As Shot Ağ Balans: Çəkiliş kimi + Camera Raw… Kamera Raw… + Camera Raw isn't open Camera Raw açıq deyil + Dehaze Dehaze + Texture Tekstura + Focal Length Fokus Uzunluğu + Make et + Model Model + Lens Lens + F F + ISO ISO + Focal Length35mm Fokus Uzunluğu35 mm + Aspect Ratio Aspekt nisbəti + Time Vaxt + Artist Rəssam + Copyright Müəllif hüququ + Enter description… Təsviri daxil edin… + Adobe RGB (1998) compatible Adobe RGB (1998) uyğun + Gray Gamma 2.2 Boz qamma 2.2 + ColorSync ColorSync + ProPhoto ProPhoto + sRGB sRGB + ACES ACES + Industry Standard Sənaye Standartı + Web Veb + Internet Standard RGB İnternet standart RGB + Legacy Macintosh RGB Köhnə Macintosh RGB + Monitor RGB Monitor RGB + Windows LCD Windows LCD + Coated CMYK Örtülü CMYK + Uncoated CMYK Örtülməmiş CMYK + Newspaper Qəzet + Working Spaces İş yerləri + Color Management Policies Rəng İdarəetmə Siyasətləri + Assign working space İş yerini təyin edin + Leave as is (don't color manage) olduğu kimi buraxın (rəngi idarə etməyin) + Discard the embedded profile (don't color manage) Daxil edilmiş profili atın (rəngi idarə etməyin) + Embed Color Profile Rəng Profilini Yerləşdirin + Assign Profile… Profil təyin et… + Convert to Profile… Profilə çevir… + PhotoCraft Manages Colors PhotoCraft Rəngləri idarə edir + Printer Manages Colors Printer Rəngləri İdarə edir + (print to the printer) (printerdə çap edin) + Absolute Colorimetric Mütləq Kolorimetrik + Relative Colorimetric Nisbi Kolorimetrik + Perceptual Qavrayışa uyğun + Black Point Compensation Qara nöqtə kompensasiyası + Use Legacy Legacy istifadə edin + Dither Dither + No Dither Dither yoxdur + Diffusion Diffuziya + Pattern Naxış + Fuzziness: Qeyri-səlislik: + Range: Aralığı: + Select: Seçim: + Detect Faces Üzləri aşkar edin + Localize Color Clusters Rəng Klasterlərini Lokallaşdırın + Sample: Nümunə: + Add to Sample Nümunəyə əlavə edin + Subtract from Sample Nümunədən çıxarın + Selections Seçimlər + Duplicated selection name Təkrarlanan seçim adı + Operation Əməliyyat + New channel only Yalnız yeni kanal + Masked Areas Maskalı ərazilər + Selected Areas Seçilmiş ərazilər + Spot Color Ləkə Rəngi + Color indicates Rəngi göstərir + Curves Əyrilər + Levels Səviyyələr + Color Balance Rəng balansı + Black & White Qara və Ağ + Photo Filter Foto filtri + Color Lookup Rəng Axtarışı + Threshold eşik + Posterize Posterləşdirin + Brightness/Contrast Parlaqlıq/Kontrast + Channel Mixer Kanal Mikser + Gradient Map Qradient xəritəsi + Selective Color Seçilmiş Rəng + History Log… Tarixçə jurnalı… + Create Snapshot Snapshot yaradın + Delete Snapshot Anlık şəkli silin + New Snapshot Yeni Snapshot + Snapshot 1 Ani görüntü 1 + Step Forward İrəli addımlayın + Step Backward Geri addım + Histories Tarixçələr + Nonlinear History Qeyri-xətti tarix + Set New Snapshot as Default Yeni Snapshot-ı Defolt olaraq təyin edin + Automatically Create First Snapshot Avtomatik İlk Snapshot Yaradın + Automatically Create New Snapshot When Saving Saxlayan zaman avtomatik olaraq yeni şəkil yaradın + Show New Snapshot Dialog by Default Defolt olaraq Yeni Snapshot Dialoqunu göstərin + Clear History Tarixi təmizləyin + Panel Options… Panel Seçimləri… + View menu Menyuya baxın + Keep view in sync Görünüşü sinxronlaşdırın + {zoom}% {zoom} % + Brush name Fırça adı + Brush Preview Fırçanın Önizləməsi + Brush Tip Shape Fırça ucu forması + Shape Dynamics Forma dinamikası + Scattering Səpələnmə + Dual Brush İkili Fırça + Color Dynamics Rəng dinamikası + Transfer Transfer + Brush Pose Fırça pozası + Mouse Controls Siçan idarələri + Wet Edges Yaş kənarlar + Build-up Quraşdırma + Protect Texture Teksturanı qoruyun + Blend Mode Qarışdırma rejimi + Size Jitter Ölçü titrəməsi + Minimum Diameter Minimum Diametr + Tilt Scale Tilt Ölçüsü + Angle Jitter Bucaq titrəməsi + Roundness Jitter Yuvarlaqlıq titrəməsi + Minimum Roundness Minimum Yuvarlaqlıq + Flip X Jitter X çevirmə dəyişkənliyi + Flip Y Jitter Y çevirmə dəyişkənliyi + Brush Projection Fırçanın proyeksiyası + Control: Nəzarət: + Off: the speed of the pointer sets the spacing Off: göstəricinin sürəti məsafəni təyin edir + Fade steps Zəifləmə addımları + Pen Pressure Qələm təzyiqi + Pen Tilt Qələm Tilt + Stylus Wheel Stylus Təkəri + Initial Direction of Stroke Fırça izinin ilkin istiqaməti + Direction of Stroke Fırça izinin istiqaməti + Opacity Jitter qeyri-şəffaflıq titrəməsi + Flow Jitter Axın titrəməsi + Humidity Rütubət + Load Yüklə + Mix Qarışdırın + Auto Clean Brush Avtomatik təmizləmə fırçası + Wet Yaş + Current Brush Load Cari Fırça Yükü + Load Brush Fırça yükləyin + Clean Brush Təmiz Fırça + Load the brush after each stroke Hər vuruşdan sonra fırçanı yükləyin + Clean the brush after each stroke Hər vuruşdan sonra fırçanı təmizləyin + Rate Qiymətləndirmə + Airbrush: keeps depositing paint while the pointer rests. Airbrush: göstərici dayanarkən boya qoymağa davam edir. + Pulled String Mode Çəkilmiş sim rejimi + Catch-up on Stroke End Fırça izinin sonunda çatdırma + Adjust for Zoom Böyütmə üçün tənzimləyin + Apply Per Tip Məsləhət üçün müraciət edin + Hardness: Sərtlik: + Spacing: Aralıq: + Size: Ölçü: + Flip X Flip X + Flip Y Flip Y + Brush Tip Fırça ucu + Diameter: Çap: + New Layer from Brush Fırçadan yeni qat + Rename Brush… Fırçanın adını dəyişin… + Delete Brush Fırçanı silin + Import Brushes… Fırçaları idxal edin… + Import Brushes… (.abr or image) Fırçaları idxal edin... (.abr və ya şəkil) + Import Brush from Image… Fırçanı Şəkildən idxal edin… + Gradient Preset Options Gradient Əvvəlcədən Seçimlər + Import .GRD .GRD idxal et + Choose a gradient file (.grd). Qradiyent faylı (.grd) seçin. + Brush Name Fırça adı + Brush Stroke Fırça izi + New Brush Preset… Yeni Fırça Əvvəlcədən Ayar… + Capture Brush Size in Preset Əvvəlcədən təyin edilmiş Fırça Ölçüsünü çəkin + Include Tool Settings Alət Parametrlərini daxil edin + Include Color Rəngi daxil et + Enter a name for the brush preset Fırça əvvəlcədən təyini üçün ad daxil edin + A brush preset with this name already exists Bu adda bir fırça əvvəlcədən qurulmuşdur + Brush Preset Options Fırçanın Əvvəlcədən Seçimləri + New Brush Yeni Fırça + Create new brush from these settings Bu parametrlərdən yeni fırça yaradın + Update the current brush with these settings Cari fırçanı bu parametrlərlə yeniləyin + Reset the brush to the defaults Fırçanı standart parametrlərə sıfırlayın + No brush presets Fırçanın əvvəlcədən təyini yoxdur + Override Pressure Ləğv etmə təzyiqi + Override Tilt Eğimi ləğv edin + Override Tilt X Tilt X-i ləğv edin + Override Tilt Y Y meylini əvəz et + Override Rotation Rotasiyanı ləğv edin + Apply the pen's tilt and rotation to the tip shape Qələmin əyilməsini və fırlanmasını uc şəklinə tətbiq edin + Preset Type Əvvəlcədən təyin edilmiş Növ + Preset Manager… Hazır ayarlar meneceri… + Rename Tool Preset… Alətin Əvvəlcədən Adını dəyişdirin… + Delete Tool Preset Hazır alət ayarını sil + New Tool Preset Yeni Alətin Əvvəlcədən qurulması + Create new tool preset Yeni alət ilkin təyinatı yaradın + Current Tool Only Yalnız Cari Alət + No tool presets. Alətin əvvəlcədən təyini yoxdur. + No presets for the current tool. Cari alət üçün əvvəlcədən təyin yoxdur. + No presets of this type. Bu tip əvvəlcədən təyin yoxdur. + Preset: Hazır ayar: + Preset Hazır ayar + Presets: Əvvəlcədən təyinatlar: + Font Size: Şrift Ölçüsü: + Font size Şrift ölçüsü + Type: Mətn: + Style Üslub + Style: Normal Üslub: Normal + Tracking İzləmə + Kerning Kerning + Leading Aparıcı + Auto-Leading Avtomatik aparıcı + Scale Horizontally Üfüqi olaraq miqyaslayın + Scale Vertically Şaquli olaraq ölçün + Baseline Shift Əsas xəttin dəyişməsi + Language Dil + Anti-aliasing method Anti-aliasing üsulu + Sharp Kəskin + Crisp Dəqiq + Strong Güclü + Smooth Hamar + Mac LCD Mac LCD + Mac Sharp Mac Sharp + Mac Crisp Mac Crisp + Mac Strong Mac Güclü + Mac Smooth Mac Smooth + Faux Bold Süni qalın + Faux Italic Saxta kursiv + All Caps Bütün böyük hərflər + Small Caps Kiçik başlıqlar + Superscript Üst indeks + Subscript Alt indeks + Underline Altını çəkin + Strikethrough cızıq + Oldstyle Köhnə üslub + Ligature Bağlama + Alternative Alternativ + Hyphenate tire + Roman Roman + Italic Kursiv + Bold Qalın + Bold Italic Qalın kursiv + Light İşıq + Medium Orta + Black Qara + Thin İncə + Ultra Light Ən incə + Extra Light Həddindən artıq incə + Semi Bold Yarı Qalın + Extra Bold Çox qalın + Ultra Bold Ən qalın + Condensed Qatılaşdırılmış + Left align text Mətni sola hizalayın + Center text Mərkəz mətn + Right align text Mətni sağa hizalayın + Justify last left Sonuncu sola haqq qazandırın + Justify last centered Sonuncu mərkəzdə əsaslandırın + Justify last right Sonuncu hüququ əsaslandırın + Justify all Hamısına haqq qazandırın + Indent Left Sola girinti + Indent Right Sağa girinti + First Line Indent Birinci sətir abzası + Space Before Əvvəlki boşluq + Space After Sonrakı boşluq + Hanging Punctuation Durğu işarələri asılır + Roman Hanging Punctuation Roman asılı durğu işarələri + Avoid Widows/Orphans Dul / Yetimlərdən çəkinin + Compose Yarat + Adobe Single-line Composer Adobe təksətirli tərtibatçısı + Adobe Every-line Composer Adobe çoxsətirli tərtibatçısı + Justification Əsaslandırma + Word Spacing Söz aralığı + Letter Spacing Hərf Aralığı + Glyph Scaling Qlif miqyası + Auto-leading % Avtomatik aparıcı % + Single Word Justification Tək sözlə əsaslandırma + Alignment Düzləşdirmə + Indent First Əvvəlcə girinti + Center Mərkəz + Justify Əsaslandır + Glyph Qlif + Select a type layer or click into text to insert glyphs Qliflər daxil etmək üçün bir növ qat seçin və ya mətnə klikləyin + Entire Font Bütün Şrift + Alternates for Current Selection Cari seçim üçün alternativlər + Recently Used Son istifadə olunub + Digits Rəqəmlər + Symbols Simvollar + Punctuation Durğu işarələri + OpenType OpenType + Standard Ligatures Standart liqaturalar + Discretionary Ligatures İxtiyari liqaturalar + Contextual Alternates Kontekstual Alternativlər + Swash Bəzəkli uzantı + Titling Alternates Başlıq alternativləri + Ornaments Ornamentlər + Fractions Kəsrlər + Ordinals Ordinallar + East Asian Features Şərqi Asiya Xüsusiyyətləri + Middle Eastern Features Yaxın Şərq Xüsusiyyətləri + Path Yol + Path: Yol: + Work Path İş Yolu + Path to Illustrator… Illustrator-a gedən yol… + Make Work Path İş yolunu düzəldin + Make Selection Seçim edin + Fill Path Doldurma Yolu + Stroke Path Yol boyunca kontur çək + Clipping Path Kəsmə Yolu + New Path Yeni yol + Duplicate Path Dublikat yolu + Rename Path… Yolun adını dəyişdirin… + Delete Path Yolu silin + Current Path Cari yol + Vector Mask from Current Path Cari yoldan vektor maskası + Create new shape from the current path Cari yoldan yeni forma yaradın + Drag to move the active shape's path or the Work Path Aktiv formanın yolunu və ya İş yolunu hərəkət etdirmək üçün dartın + Click: select anchor · Drag: move anchor, handle or segment · {shift}-click: add · {alt}-click: whole subpath Klikləyin: lövbər seçin · Çəkin: lövbəri, sapı və ya seqmenti köçürün · {shift} -klikləyin: əlavə edin · {alt} -klikləyin: bütün alt yol + Draw with the Pen tool (P) or make a work path from a selection. Qələm aləti (P) ilə çəkin və ya seçimdən iş yolu yaradın. + Source: not set ({key}-click with Clone Stamp) Mənbə: təyin edilməyib ( {key} -klon möhürü ilə klikləyin) + Clone source {n} ({key}-click with Clone Stamp to set) Klon mənbəyi {n} ( {key} -quraşdırmaq üçün Klon möhürü ilə klikləyin) + {key}-click to set the source {key} -mənbəni təyin etmək üçün klikləyin + Option-click to define a source point to clone from Klonlamaq üçün mənbə nöqtəsini təyin etmək üçün seçim düyməsini sıxın + Show Overlay Üst örtüyü göstərin + Auto-Hide Avtomatik Gizlət + W W + H H + Angle Bucaq + Scale Miqyas + X X + Y Y + Offset Ofset + Reset Transform Transformanı sıfırlayın + Rotate Döndür + Set horizontal skew Üfüqi əyriliyi təyin edin + Set vertical skew Şaquli əyriliyi təyin edin + Flip Horizontal Üfüqi çevir + Flip Vertical Şaquli çevir + Frame Sync Çərçivə Sinxronizasiyası + Quick Sync Tez sinxronizasiya + Enabled Aktivdir + Create Video Timeline Video Taymlayn yaradın + Open a document to use the timeline. Zaman qrafikindən istifadə etmək üçün sənəd açın. + Video Layers Video qatlari + Video Video + Audio Audio + Frame Duration Çərçivə müddəti + 30 frames @ 30 fps 30 kadr @ 30 kadr + Loop Döngə + Render Video… Videonu render et… + Split at Playhead Oynatma başlığında böl + Delete Timeline Zaman qrafikini silin + Reload Frame Çərçivəni yenidən yükləyin + Restore Frame Çərçivəni bərpa edin + Insert Blank Frame Boş Çərçivə daxil edin + Duplicate Frame Dublikat çərçivə + Delete Frame Çərçivəni silin + Restore All Frames Bütün çərçivələri bərpa edin + Flatten Frames Into Clips Çərçivələri kliplərə düzəldin + Flatten Frames Into Layers Çərçivələri qatlara düzəldin + Convert Frames > Video Layers Çərçivələri Çevir > Video Qatlarını + New Video Layer Yeni Video Layer + New Video Group Yeni Video Qrupu + Interpret Footage… Görüntüləri şərh edin… + Replace Footage… Görüntüləri dəyişdirin… + Show Altered Video Dəyişdirilmiş Videonu göstərin + Limit Playback Oxumanı məhdudlaşdırın + Enable Timeline Quick Config Timeline Tez Konfiqurasiyasını aktivləşdirin + Set Start Timecode… Başlama vaxtı kodunu təyin edin… + Timecode Zaman kodu + 30 fps 30 fps + 25 fps 25 fps + 24 fps 24 fps + 15 fps 15 fps + 10 fps 10 kadr/s + Current Time Cari vaxt + Out Çıxdı + In In + Duration Müddət + Repeat Təkrar edin + Play Once Bir dəfə oynayın + Video Cache Video keşi + Info Options… Məlumat Seçimləri… + First Color Readout İlk Rəng Oxunması + Second Color Readout İkinci Rəng Oxunması + Actual Color Həqiqi Rəng + Grayscale Slider Boz rəngli sürüşdürmə + Web Color Veb rəngi + HSB Color HSB Rəngi + Total Ink Ümumi Mürəkkəb + Opacity Mask Opaklıq maskası + Ruler Xətkeş + Current Tool Cari Alət + Document Size Sənədin ölçüsü + Document Profile Sənəd Profili + Document Dimensions Sənəd Ölçüləri + Scratch Sizes Çizilmə Ölçüləri + Efficiency Səmərəlilik + Timing Zamanlama + Status Information Status Məlumatı + Saved Multichannel Saxlanmış Çoxkanal + Mouse Coordinates Siçan koordinatları + Ruler Units Xətkeş vahidləri + Hide Gizlət + Layer Comps to Files… Qat kompozisiyalarını fayllara ixrac et… + Apply next selected layer comp Növbəti seçilmiş qat kompozisiyasını tətbiq edin + Apply previous selected layer comp Əvvəlki seçilmiş qat kompozisiyasını tətbiq edin + Update layer comp (visibility, position and appearance) Qat kompozisiyasını yeniləyin (görünmə, mövqe və görünüş) + New Layer Comp Yeni qat kompozisiyası + Duplicate Layer Comp Dublikat Layer Comp + Delete layer comp Qat kompozisiyasını silin + Rename Layer Comp Layer Comp. Adını dəyişdirin + Create new layer comp Yeni qat kompozisiyasını yaradın + Capture the visibility, position and style of every layer with + below, then switch between versions. Aşağıdakı + işarəsi ilə hər qatnin görünürlüğünü, mövqeyini və üslubunu çəkin, sonra versiyalar arasında keçid edin. + Apply Layer Comp Tətbiq Layer Comp + Update Layer Comp Layer Comp. Yeniləyin + Restore last viewed comp Son baxılmış kompozisiyanı bərpa edin + Last Document State Son Sənəd Vəziyyəti + Visibility Görünüş + Position Vəzifə + Appearance (Layer Style) Görünüş (Layer Style) + Analysis Təhlil + Variables Dəyişənlər + Variable Data Sets… Dəyişən Məlumat Dəstləri… + Data Sets… Məlumat dəstləri… + Data Sets Məlumat dəstləri + Data Sets as Files… Verilənlər dəstlərini fayl kimi ixrac et… + Apply Data Set… Məlumat dəstini tətbiq edin… + Define Müəyyən edin + + Add variable + Dəyişən əlavə edin + Remove variable dəyişəni silin + Define at least one variable first. Əvvəlcə ən azı bir dəyişəni təyin edin. + Open a document to define variables. Dəyişənləri müəyyən etmək üçün sənəd açın. + Variables bind a layer's visibility, text or pixels to a named data slot. Dəyişənlər qatnin görünməsini, mətnini və ya piksellərini adlandırılmış məlumat yuvasına bağlayır. + Pixel Replacement Pikselin dəyişdirilməsi + Text Replacement Mətnin dəyişdirilməsi + Name Adı + Method Metod + Select All Layers Bütün qatlari seçin + Fill Doldurma + Keep proportions Proporsiyaları saxlayın + Interpolation İnterpolyasiya + Author: Müəllif: + Author Müəllif + Name: Adı: + Caption Başlıq + Caption Credits Başlıq Kreditləri + Description Təsvir + Keywords Açar sözlər + Copyright Info URL Müəllif Hüququ Məlumatı URL + Copyright Status Müəlliflik hüququ statusu + Copyright Notice Müəllif Hüququ Bildirişi + Document Title Sənədin Başlığı + Copyrighted Müəllif hüquqları qorunur + Public Domain İctimai Sahə + Unknown Naməlum + Copyright and Contact Info Müəllif Hüququ və Əlaqə Məlumatı + Credit Kredit + Transmission Reference Transmissiya arayışı + Urgency Təcili + High Yüksək + Normal Normal + Lossless İtkisiz + Low Aşağı + Category Kateqoriya + Supplemental Categories Əlavə Kateqoriyalar + Object Name / Title Obyekt Adı / Başlığı + Date Created Yaradılma tarixi + City Şəhər + Location Yer + Province / State Əyalət / Ştat + Country Ölkə + Byline Müəllif + Byline Title Müəllif adı + Phone Telefon + Email E-poçt + URLs URL-lər + Last Modified Son Dəyişiklik + EXIF EXIF + GPS GPS + Camera Data Kamera məlumatları + Camera Model Kamera modeli + Camera Make Kamera istehsalı + EXIF Version EXIF versiyası + Exposure Program Ekspozisiya proqramı + Aperture Diyafram + Shutter Speed Çekim sürəti + Metering Mode Ölçmə rejimi + Light Source İşıq mənbəyi + Flash Flaş + Lens Info Lens məlumatı + ISO Speed ISO sürəti + Subject Distance Mövzu məsafəsi + DateTime Original İlkin tarix və vaxt + Create Date Tarix yarat + Modify Date Tarixi dəyişdirin + Software Proqram təminatı + Raw Data Xam məlumat + Version {version} Versiya {version} + Advanced Qabaqcıl + Import… İdxal… + Automate Avtomatlaşdırma + Batch… Toplu emal… + Create Droplet… Avtomatik emal tətbiqi yarat… + Create Droplet Damcı yaradın + PDF Presentation… PDF təqdimatı… + Create Multiple Picture Packages Birdən çox şəkil paketi yaradın + Contact Sheet II Əlaqə vərəqi II + Contact Sheet II… Kontakt vərəqi II… + Conditional Mode Change… Şərti rejim dəyişikliyi… + Fit Image… Şəkli ölçüyə uyğunlaşdır… + Picture Package… Şəkil Paketi… + Web Photo Gallery… Veb Foto Qalereya… + Merge to HDR Pro… HDR Pro-da birləşdir… + Load Files into Stack… Faylları yığına yüklə… + Scripts Ssenarilər + Script Events Manager… Skript Hadisələri Meneceri… + Image Processor… Şəkil prosessoru… + Destination Təyinat + Choose… Seçin… + Select Folder… Qovluğu seçin… + Override Action "Save" Commands "Saxla" əmrlərini ləğv edin + Compatibility Uyğunluq + Windows Windows + Mac OS Mac OS + Unix Unix + Include ICC Profile ICC Profilini daxil edin + Error File Səhv faylı + Stop For Errors Səhvləri dayandırın + Log Errors To File Fayl üçün xətaları qeyd edin + Errors Səhvlər + Color Settings… Rəng parametrləri… + Settings Parametrlər + Settings: Parametrlər: + Working Space İş sahəsi + RGB: RGB: + CMYK: CMYK: + Gray: Boz: + Spot: Spot: + Advanced Controls Qabaqcıl İdarəetmələr + Desaturate Monitor Colors By Monitor Rənglərini Desaturate By + Blend RGB Colors Using Gamma 1.0 Gamma 1.0 istifadə edərək RGB rənglərini qarışdırın + Profile Mismatches: Ask When Opening Profil uyğunsuzluqları: Açarkən soruşun + Ask When Pasting Yapışdırarkən soruşun + Missing Profiles: Ask When Opening Çatışmayan Profillər: Açarkən soruşun + Embed profiles Profilləri yerləşdirin + Ask Before Saving Saved Embedded Daxil edilmiş Saxlanılmış Saxlamadan əvvəl soruşun + Coerce to sRGB sRGB-yə məcbur edin + sRGB IEC61966-2.1 sRGB IEC61966-2.1 + Adobe RGB (1998) Adobe RGB (1998) + ProPhoto RGB ProPhoto RGB + ColorMatch RGB ColorMatch RGB + Wide Gamut RGB Geniş Gamut RGB + Apple RGB Apple RGB + NTSC (1953) NTSC (1953) + PAL/SECAM PAL/SECAM + SMPTE C SMPTE C + HDTV (Rec. 709) HDTV (Rec. 709) + CIE RGB CIE RGB + Theme Mövzu + Switch theme Mövzunu dəyişdirin + Next Theme Növbəti Mövzu + Classic Theme Klassik Mövzu + Solarized dark Günəşli qaranlıq + Solarized Dark Theme Solarized Qaranlıq Mövzu + Breeze dark Qaranlıq meh + Breeze Dark Theme Breeze Qaranlıq Mövzu + Breeze light Külək işığı + Breeze Light Theme Breeze açıq mövzusu + Soft dark Yumşaq qaranlıq + Soft light Yumşaq işıq + Soft Dark Theme Soft Dark Theme + Soft Light Theme Soft açıq mövzusu + Studio Theme Studiya mövzusu + Studio Light Theme Studio açıq mövzusu + Adwaita Light Theme Adwaita açıq mövzusu + Adwaita Dark Theme Adwaita Qaranlıq Mövzu + Pro Theme Pro Mövzu + Pro Medium Gray Theme Pro Orta Boz Mövzu + Pro Light Gray Theme Pro Açıq Boz Mövzu + Pro Light Theme Pro açıq mövzusu + Workspace… İş sahəsi… + Essentials Əsaslar + New Workspace… Yeni İş Sahəsi… + Delete Workspace… İş yerini silin… + Reset Workspace İş yerini sıfırlayın + Reset Tool Aləti sıfırlayın + Reset All Tools Bütün Alətləri Sıfırlayın + Reset all tools to their default settings? Bütün alətlər standart parametrlərinə qaytarılsın? + Lock Workspace İş yerini kilidləyin + Photography Fotoqrafiya + Graphic and web Qrafik və veb + Painting Rəsm + Motion Hərəkət + Minimalistic Minimalist + Panel locations are saved in the workspace. Keyboard shortcuts, menus and toolbar are optional. Panel yerləri iş yerində saxlanılır. Klaviatura qısa yolları, menyular və alətlər paneli isteğe bağlıdır. + Keyboard Shortcuts Klaviatura qısa yolları + Keyboard Shortcuts and Menus Klaviatura Qısayolları və Menyular + Menus Menyular + More panels Daha çox panellər + More documents Daha çox sənədlər + Collapse All Groups Bütün Qrupları yığışdırın + Expand All Groups Bütün Qrupları genişləndirin + Collapse Dağılma + Expand Genişləndirin + Collapse Panel Group Panel Qrupunu yığışdırın + Expand Panel Group Panel qrupunu genişləndir + Close Tab Group Tab Qrupunu bağlayın + PRESET DETAILS ƏVVƏLDƏN AYARLANMIŞ TƏFƏRRÜATLAR + BLANK DOCUMENT PRESETS ({n}) BOŞ SƏNƏD HAZIRLANIŞLARI ( {n} ) + Create a new document or open an existing file. Yeni sənəd yaradın və ya mövcud faylı açın. + Drop an image or PSD anywhere to open it. Şəkil və ya PSD-ni açmaq üçün istənilən yerə buraxın. + Use File › Open, or paste a copied image with {paste}. Fayldan istifadə edin › Açın və ya kopyalanmış şəkli {paste} ilə yapışdırın. + Native file drag-and-drop is unavailable Doğma faylı sürükləmə və buraxma funksiyası mövcud deyil + Native file drag-and-drop is not supported on Wayland yet. Use File › Open, or copy the image in your file manager and paste it with {paste}. Doğma faylı sürükləyib buraxma hələ Wayland-da dəstəklənmir. Fayldan istifadə edin › Açın və ya şəkli fayl menecerinizdə kopyalayın və {paste} ilə yapışdırın. + To drop files, start PhotoCraft under XWayland: `{command}` Faylları atmaq üçün XWayland altında PhotoCraft işə salın: ` {command} ` + Or set Preferences › Performance › Linux display server to X11: PhotoCraft then always starts under XWayland. Və ya Üstünlüklər › Performans › Linux displey serverini X11: PhotoCraft olaraq təyin edin, sonra həmişə XWayland altında başlayır. + Edit › Paste Redaktə et › Yapışdır + Photo Şəkil + Print Çap et + Art & Illustration İncəsənət və İllüstrasiya + Mobile Mobil + Film & Video Film və Video + Default PhotoCraft Size Defolt PhotoCraft Ölçüsü + Clipboard Mübadilə buferi + Photo (2 × 3 in) Foto (2 × 3 düym) + Photo (4 × 6 in) Foto (4 × 6 düym) + Photo (5 × 7 in) Foto (5 × 7 düym) + Photo (8 × 10 in) Foto (8 × 10 düym) + Landscape Mənzərə + Portrait Portret + Recent Items Son maddələr + Save Preset… Əvvəlcədən ayarı yadda saxla… + Delete Preset… Əvvəlcədən təyinatı silin… + Preset Name: Əvvəlcədən təyin olunmuş ad: + Width and Height En və Hündürlük + Background Contents Fon məzmunu + Custom background color Fərdi fon rəngi + White Ağ + Background Color Arxa plan rəngi + Transparent Şəffaf + Color Mode Rəng rejimi + Depth Dərinlik + Color Profile Rəng Profili + Create Yaradın + Document Sənəd + Units Vahidlər + Pixels Piksel + Inches düym + Centimeters Santimetr + Millimeters Millimetr + Points Xallar + Picas Pikas + Columns Sütunlar + {name} options {name} seçimləri + Align {what} {what} -ni hizalayın + Untagged {mode} Etiketsiz {mode} + Invalid {mode} profile Yanlış {mode} profili + Unnamed {mode} profile Adsız {mode} profili + Constraints ({n}) Məhdudiyyətlər ( {n} ) + Count: {n} Sayı: {n} + Click to add a point · drag off or {key}-click or Delete to remove Nöqtə əlavə etmək üçün klikləyin · kənara çəkin və ya silmək üçün {key} -klikləyin və ya Sil seçin + Click to apply, {key}-click to clear overrides, double-click for Style Options Tətbiq etmək üçün klikləyin, {key} - ləğv edilmişləri silmək üçün klikləyin, Stil Seçimləri üçün iki dəfə klikləyin + Click: corner · Drag: smooth · Click first point: close · {key} finish · Esc cancel Klikləyin: künc · Çək: hamar · Birinci nöqtəyə klikləyin: bağlayın · {key} bitir · Esc ləğv + Click: corner · Drag: smooth · {alt}-drag: break handle · Click or drag first point: close · {key} finish · Esc cancel Klikləyin: künc · Çək: hamar · {alt} -dartın: qolu qırın · Birinci nöqtəni klikləyin və ya sürükləyin: bağlayın · {key} bitir · Esc ləğv + Commit Perspective Warp ({key}) Perspektiv Çarpma ( {key} ) + Commit Puppet Warp ({key}) Kukla Çarpması ( {key} ) + Commit any current edits ({key}) İstənilən cari redaktə edin ( {key} ) + Commit transform ({key}) Transformasiyaya əməl edin ( {key} ) + Commit warp ({key}) Dəyişmə ( {key} ) + Cancel any current edits (Esc) İstənilən cari redaktələri ləğv edin (Esc) + Cancel transform (Esc) Transformasiyanı ləğv edin (Esc) + Cancel warp (Esc) Çürüməyi ləğv edin (Esc) + Do you want to save the changes you made to “{name}” before closing? Bağlamadan əvvəl “ {name} ” üçün etdiyiniz dəyişiklikləri saxlamaq istəyirsiniz? + Revert “{name}” to the last saved version? Your changes will be lost. “ {name} ” son saxlanmış versiyaya qaytarılsın? Dəyişiklikləriniz itiriləcək. + {key} to subtract çıxmaq üçün {key} + ↑↓ navigate {key} run esc close ↑↓ naviqasiya {key} run esc yaxın + Click to restore the current colour Cari rəngi bərpa etmək üçün klikləyin + Click with the Note tool to add a note. Qeyd əlavə etmək üçün Qeyd aləti ilə klikləyin. + Drag a rectangle around the object Obyektin ətrafında düzbucaqlı çəkin + Drag on the image to add a constraint; Shift for horizontal/vertical; right-click a constraint to change or delete it. Məhdudiyyət əlavə etmək üçün şəklin üzərinə çəkin; Üfüqi/şaquli üçün keçid; məhdudiyyəti dəyişdirmək və ya silmək üçün üzərinə sağ klikləyin. + Drag the arrow to set the angle, the dots to set the roundness Bucağı təyin etmək üçün oxu, yuvarlaqlığı təyin etmək üçün nöqtələri dartın + Create new pattern from the selection Seçimdən yeni naxış yaradın + Create new gradient Yeni gradient yaradın + Create new count group Yeni hesab qrupu yaradın + Search commands, tools and panels… Axtarış əmrləri, alətlər və panellər… + Search Brushes Axtarış fırçaları + Search fonts Şriftləri axtarın + No matching commands Uyğun əmrlər yoxdur + No document Sənəd yoxdur + Pixel Layer Piksel qatı + Type Layer Mətn qatı + Shape Layer Forma qatı + Group Layer Qrup qatı + Fill Layer Doldurma Layeri + Smart Object Layer Ağıllı Obyekt Layeri + Adjustment Layer Tənzimləmə qatı + {name} Properties {name} Xüsusiyyətləri + Move Tool Köçürmə aləti + Could not use the move tool because the layer is locked. Qat kilidləndiyi üçün köçürmə alətindən istifadə etmək mümkün olmadı. + Could not complete the Free Transform command because the layer is locked. Sərbəst Transformasiya əmrini tamamlamaq mümkün olmadı, çünki qat kilidlidir. + Rectangular Marquee Tool Düzbucaqlı seçim aləti + Elliptical Marquee Tool Elliptik seçim aləti + Single Row Marquee Tool Təksətirli seçim aləti + Single Column Marquee Tool Təksütunlu seçim aləti + Brush Tool Fırça aləti + Pencil Tool Karandaş aləti + Eraser Tool Pozan aləti + Background Eraser Tool Arxa plan pozanı aləti + Magic Eraser Tool Sehrli pozan aləti + Eyedropper Tool Damcıtökən aləti + Note Tool Qeyd aləti + Lasso Tool Kəmənd aləti + Polygonal Lasso Tool Çoxbucaqlı kəmənd aləti + Magic Wand Tool Sehrli çubuq aləti + Crop Tool Kəsmə aləti + Slice Tool Dilim aləti + Slice Select Tool Dilim seçimi aləti + Gradient Tool Qradient aləti + Paint Bucket Tool Boya vedrəsi aləti + Horizontal Type Tool Üfüqi mətn aləti + Horizontal Type Mask Tool Üfüqi mətn maskası aləti + Vertical Type Mask Tool Şaquli mətn maskası aləti + Hand Tool Əl aləti + Zoom Tool Miqyas aləti + Spot Healing Brush Tool Nöqtəvi bərpa fırçası aləti + Healing Brush Tool Bərpa fırçası aləti + Clone Stamp Tool Klonlama möhürü aləti + History Brush Tool Tarixçə fırçası aləti + Blur Tool Bulanıqlaşdırma aləti + Sharpen Tool Kəskinləşdirmə aləti + Smudge Tool Yayma aləti + Dodge Tool İşıqlandırma aləti + Burn Tool Tündləşdirmə aləti + Sponge Tool Süngər aləti + Quick Selection Tool Sürətli seçim aləti + Object Selection Tool Obyekt seçimi aləti + Pen Tool Qələm aləti + Convert Point Tool Nöqtə çevirmə aləti + Path Selection Tool Yol seçimi aləti + Direct Selection Tool Birbaşa seçim aləti + Add Anchor Point Tool Dayaq nöqtəsi əlavə etmə aləti + Delete Anchor Point Tool Dayaq nöqtəsi silmə aləti + Click a segment to add an anchor point · {alt}-click an anchor to delete it Anker nöqtəsi əlavə etmək üçün seqmentə klikləyin · {alt} - silmək üçün lövbərə klikləyin + Click an anchor point to delete it · {alt}-click a segment to add one Silmək üçün lövbər nöqtəsinə klikləyin · {alt} -seqment əlavə etmək üçün üzərinə klikləyin + Rectangle Tool Düzbucaqlı aləti + Ellipse Tool Ellips aləti + Triangle Tool Üçbucaq aləti + Polygon Tool Çoxbucaqlı aləti + Line Tool Xətt aləti + Custom Shape Tool Fərdi fiqur aləti + Pixel Piksel + Group Qrup + Adjustment Tənzimləmə + Smart Object Ağıllı obyekt + Drag to move the active layer Aktiv qatni köçürmək üçün dartın + Drag to pan · hold Space with any tool Panorama üçün sürükləyin · istənilən alətlə Space düyməsini basıb saxlayın + Drag to draw a gradient Qradiyent çəkmək üçün dartın + Click to fill similar colours Oxşar rəngləri doldurmaq üçün klikləyin + Click to add text Mətn əlavə etmək üçün klikləyin + Drag (lasso) or click points (polygonal) · {add} add · {sub} subtract Çəkin (kəmənd) və ya klikləyin (poliqonal) · {add} əlavə edin · {sub} çıxarın + Drag a crop box · drag inside to move · edges resize ({ratio} ratio, {centre} centre) · Space moves while drawing · arrows nudge · X swaps orientation · {commit} commits · Esc cancels Kəsmə qutusunu dartın · köçürmək üçün içəriyə sürükləyin · kənarların ölçüsünü dəyişdirin ( {ratio} nisbəti, {centre} mərkəz) · Rəsm zamanı boşluq hərəkət edir · oxlar sürüşdürür · X oriyentasiyanı dəyişdirir · {commit} yerinə yetirir · Esc ləğv edir + {mode} Color · {bits} bit {mode} Rəng · {bits} bit + Drag to move the layer Qatı köçürmək üçün dartın + Fit Screen Ekrana sığdır + Fill Screen Ekranı doldurun + Scrubby Zoom Sürükləyərək miqyasla + Auto Erase Avtomatik silmə + Color Adaptation Rəng Uyğunlaşması + Preserve Transparency Şəffaflığı qoruyun + Reverse tərs + Align with layer Qatla hizalayın + Join us on Discord Discord-da bizə qoşulun + PhotoCraft website PhotoCraft veb saytı + ArtCraft ArtCraft + GitHub GitHub + No character style Xarakter tərzi yoxdur + No author Müəllif yoxdur + Not in Dictionary: Lüğətdə yoxdur: + Suggestions: Təkliflər: + Spell check complete. Orfoqrafiya yoxlanışı tamamlandı. + Check All Layers Bütün qatlari yoxlayın + Select a type layer to edit its character and paragraph settings. Simvol və paraqraf parametrlərini redaktə etmək üçün tip qatsi seçin. + Select text to apply a character style Simvol üslubunu tətbiq etmək üçün mətn seçin + Redefine style by current selection Cari seçimlə üslubu yenidən müəyyənləşdirin + Duplicate style Dublikat üslub + Delete style Üslubu silin + Style Options Üslub Seçimləri + Style Options… Üslub Seçimləri… + Close Style Options Stil Seçimlərini bağlayın + Appearance Görünüş + Text Position: Mətn yeri: + Text color Mətn rəngi + Uses the foreground and background colours. Ön və arxa fon rənglərindən istifadə edir. + Answer the unsaved-changes prompt first Əvvəlcə yadda saxlanmamış dəyişikliklər sorğusuna cavab verin + Unsaved changes Saxlanmamış dəyişikliklər + Don't Save Saxlamayın + No Xeyr + Yes Bəli + These settings aren't available in PhotoCraft yet. Bu parametrlər hələ PhotoCraft -də mövcud deyil. + Shortcut removed. Qısayol silindi. + All shortcuts reset to PhotoCraft defaults. Bütün qısa yollar PhotoCraft defoltlarına sıfırlanır. + Add Shortcut Qısayol əlavə edin + Delete Shortcut Qısayolu silin + Press keys… düymələri basın… + shortcut qısa yol + command or shortcut əmr və ya qısa yol + current cari + image file path şəkil faylı yolu + modified dəyişdirilmiş + name adı + new yeni + Go to Layer Layerə keçin + Open a document to select a colour range. Rəng diapazonunu seçmək üçün sənədi açın. + Saved Saxlanıldı + Reveal in Finder Finder-da göstər + Show in Explorer Explorer-də göstərin + Show in Folder Qovluqda göstərin + Before (Y) Əvvəl (Y) + Save Settings… Parametrləri yadda saxla… + Load Settings… Parametrləri yükləyin… + Save these settings as a Camera Raw .xmp file Bu parametrləri Camera Raw .xmp faylı kimi yadda saxlayın + Load settings from a Camera Raw .xmp file Camera Raw .xmp faylından parametrləri yükləyin + Loaded Camera Raw settings from {file} {file} -dən Camera Raw parametrləri yükləndi + Loaded Camera Raw settings from {file} ({n} not supported) {file} -dən yüklənmiş Camera Raw parametrləri ( {n} dəstəklənmir) + After (X) Sonra (X) + Original Orijinal + Current Cari + {added}, {removed} subtracted {added} , {removed} çıxılır + Filter: Filtr: + Free Transform Sərbəst transformasiya + Free Transform a Copy Surəti Sərbəst çevirin + Transform Transformasiya + Transform Selection Seçimi dəyişdirin + Switch between free transform and warp modes Sərbəst çevirmə və əyilmə rejimləri arasında keçid + Perspective Perspektiv + Skew Maililəşdir + Distort Təhrif et + Rotate: Döndür: + Flip Flip + Warp: Deformasiya: + Warp Deformasiya + Bend: əyilmək: + Reference point location İstinad nöqtəsinin yeri + Toggle reference point İstinad nöqtəsini dəyişdirin + Free Pulsuz + Arc Qövs + Arch Arch + Bulge qabarıqlıq + Shell Lower Alt qabıq + Shell Upper Üst qabıq + Flag Bayraq + Fish Balıq + Wave Dalğa + Rise qalx + Fisheye Balıqgözü + Inflate Şişirin + Twist Twist + Squeeze sıxın + Corner radius Künc radiusu + Split Warp Crosswise Deformasiyanı çarpaz böl + Split Warp Horizontally Deformasiyanı üfüqi böl + Split Warp Vertically Deformasiyanı şaquli böl + Remove Warp Split Deformasiya bölgüsünü sil + Puppet Warp Kukla deformasiyası + Puppet Warp is not active Kukla Çarpması aktiv deyil + Perspective Warp Perspektiv deformasiyası + Perspective Warp is not active Perspective Warp aktiv deyil + Perspective Warp: draw planes along the image's perspective, then switch to Warp Perspektiv Çarpma: təsvirin perspektivi boyunca təyyarələr çəkin, sonra Çarpma rejiminə keçin + Remove Planes Təyyarələri çıxarın + Edit Pins Pinləri redaktə edin + Add Pins Sancaqlar əlavə edin + Delete Pins Sancaqları silin + Remove All Pins Bütün sancaqları silin + Remove Tool Silmə aləti + Pin Depth: Pin Dərinliyi: + Bring the selected pin forward Seçilmiş sancağı irəli gətirin + Send the selected pin backward Seçilmiş sancağı geri göndərin + Rotate Auto Avtomatik fırladın + Rotate Fixed Döndürmə Sabitdir + Adaptive Wide Angle isn't open Adaptiv Geniş Bucaq açıq deyil + Liquify is not open Liquify açıq deyil + Create Plane Təyyarə yaradın + Edit Plane Təyyarəni redaktə edin + Select Plane Təyyarə seçin + Measure Ölçü + Heal Sağal + Off Söndür + Symmetry Off Simmetriya bağlıdır + Heal Off Sağal + Heal On Heal On + Heal Auto Avtomatik bərpa + Blend Qarışdırın + Brush Size Fırça ölçüsü + Heal Color Sağalma Rəngi + Mask Maska + Channel Kanal + Rectangle Düzbucaqlı + Subtract Çıxar + Multiply Vurma + Divide Bölün + Result Nəticə + New Document Yeni Sənəd + New Document With Mask Maskalı Yeni Sənəd + New Layer With Mask Maskalı Yeni Qat + New Layer Yeni qat + Preset Name Əvvəlcədən təyin olunmuş ad + No saved presets yet. Hələ saxlanmış ön ayar yoxdur. + New Channel Yeni Kanal + Selection Seçim + Save Selection Seçimi yadda saxla + Load Selection Yük seçimi + Duplicate Dublikat yarat + Fast Tez + Accurate Dəqiq + Add to Əlavə et + Subtract from -dən çıxın + Intersect with ilə kəsişir + Pass Through Keçid + Dissolve həll edin + Darken Tündləşdir + Color Burn Rəngi tündləşdir + Linear Burn Xətti tündləşdirmə + Darker Color Tünd Rəng + Lighten Açıqlaşdır + Screen Ekran + Color Dodge Rəngi işıqlandır + Linear Dodge (Add) Xətti işıqlandırma (toplama) + Lighter Color Açıq Rəng + Overlay Üst-üstə qoyma + Soft Light Yumşaq işıq + Hard Light Sərt işıq + Vivid Light Canlı İşıq + Linear Light Xətti İşıq + Pin Light Nöqtəvi işıq + Hard Mix Sərt Qarışıq + Difference Fərq + Exclusion İstisna + Luminosity İşıqlılıq + Capture Comp Kompozisiyanı qeydə al + No Layer Comps Layer Comps yoxdur +@plural {n} item|{n} items {n} element|{n} element +@plural {n} Layer|{n} Layers {n} qat|{n} qat +@plural {n} layer|{n} layers {n} qat|{n} qat +@plural Group · {n} layer|Group · {n} layers Qrup · {n} qat|Qrup · {n} qat +@plural {n} sample|{n} samples {n} nümunə|{n} nümunə + 180° 180° + 32-bit Preview Options… 32-bit Önizləmə Seçimləri… + 90° Clockwise 90° Saat əqrəbi istiqamətində + 90° Counter Clockwise 90° Saat əqrəbinin əksinə + AI Integrations… AI İnteqrasiyaları… + Again Yenə + Transform Again on a Copy Bir nüsxədə yenidən çevirin + Anamorphic 2:1 (2) Anamorfik 2:1 (2) + Arbitrary… Özbaşına… + Artboard Guides Artboard Bələdçiləri + Artboard from Group… Qrupdan iş lövhəsi… + Artboard from Layers… Qatlardan iş lövhəsi… + Artboards to Files… İş lövhələrini fayllara ixrac et… + Artboards to PDF… İş lövhələrini PDF-ə ixrac et… + Artboard… İş lövhəsi… + Border… Sərhəd… + Bottom Edges Aşağı kənarlar + Browse… Gözdən keçir… + Source Files Mənbə Fayllar + Use: İstifadə edin: + Files Fayllar + Folder Qovluq + Add Open Files Açıq faylları əlavə edin + Sort By Name Ada görə çeşidləyin + Attempt to Automatically Align Source Images Mənbə şəkillərini avtomatik uyğunlaşdırmağa çalışın + Create Smart Object after Loading Layers Qatları Yüklədikdən sonra Ağıllı Obyekt yaradın + Canvas Guides Kətan Bələdçiləri + Character Styles Panel Simvol üslubları paneli + Clear Canvas Guides Təmiz Kətan Bələdçiləri + Clear Selected Artboard Guides Seçilmiş Artboard Bələdçilərini Sil + Color Blindness — Deuteranopia-type Rəng korluğu - Deuteranopiya növü + Color Blindness — Protanopia-type Rəng korluğu — Protanopiya növü + Color Table… Rəng Cədvəli… + Combine Shapes Formaları birləşdirin + Contract… Daralt… + Convert to Embedded Daxil edilmişə çevirin + Convert to Layers Qatlara çevirin + Convert to Linked… Bağlıya çevirin… + Count sayın + Create Layer Qat yaradın + Custom Pixel Aspect Ratio… Fərdi Piksel Aspekt Nisbəti… + Cycle Screen Mode Ekran rejimini dəyiş + D1/DV NTSC (0.91) D1/DV NTSC (0.91) + D1/DV NTSC Widescreen (1.21) D1/DV NTSC Geniş Ekran (1.21) + D1/DV PAL (1.09) D1/DV PAL (1.09) + D1/DV PAL Widescreen (1.46) D1/DV PAL Geniş Ekran (1.46) + DVCPRO HD 1080/HDV 1080 (1.5) DVCPRO HD 1080/HDV 1080 (1.5) + De-Interlace… Sətirarası hörülməni aradan qaldır… + Default Features Defolt Xüsusiyyətlər + Delete All Empty Layers Bütün boş qatları sil + Desaturate Desaturasiya + Displace… yerdəyişmə… + Distribute Yaymaq + Document Bounds Sənəd Sərhədləri + Edit in Quick Mask Mode Tez Maska rejimində redaktə edin + Enhanced Controls… Təkmilləşdirilmiş İdarəetmələr… + Entropy Entropiya + Exclude Overlapping Shapes Üst-üstə düşən formaları istisna edin + Exit Çıxış + Expand… Genişləndir… + Extra Large Çox böyük + File Info… Fayl məlumatları… + Fit Artboard on Screen İş lövhəsini ekrana yerləşdirin + Fit Layer(s) on Screen Layer(ləri) ekrana uyğunlaşdırın + Flatten All Layer Effects Bütün qat effektlərini rasterləşdir + Flatten All Masks Bütün maskaları tətbiq et + Flatten Image Şəkli tək qatda birləşdir + Float All in Windows Hamısını Windows-da Float + Float in Window Pəncərədə üzmək + Frame from Layers Qatlardan Çərçivə + From Transparency Şəffaflıqdan + Gamut Warning Rəng əhatəsi xəbərdarlığı + Global Light… Qlobal İşıq… + Gradient… Qradient… + Graphic and Web Qrafik və Veb + HDV 1080/DVCPRO HD 720 (1.33) HDV 1080/DVCPRO HD 720 (1.33) + Hidden Layers Gizli qatlar + Hide All Effects Bütün effektləri gizlədin + Horizontal Centers Üfüqi Mərkəzlər + Huge Böyük + Indexed Color… İndekslənmiş Rəng… + Integrations… İnteqrasiya… + Intersect Shape Areas kəsişən forma sahələri + Kurtosis Kurtosis + Large Böyük + Layer Edges Qat kənarları + Left Edges Sol kənarlar + Lens Blur… Obyektiv bulanıqlığı… + Lighting Effects… İşıq effektləri… + Link Layers Qatları əlaqələndir + Lock Layers… Qatları kilidləyin… + Mean Orta + Merge Down Aşağıdakı ilə birləşdir + Merge Group Qrupu birləşdir + Merge Layers Qatları birləşdir + Merge Shape Components Forma komponentlərini birləşdirin + Merge Visible Görünənləri birləşdir + Stamp Visible Marka görünür + Select Layer Above Yuxarıdakı Layer seçin + Select Layer Below Aşağıdakı Layer seçin + Select Top Layer Üst qat seçin + Select Bottom Layer Alt qat seçin + Add Layer Above to Selection Seçimə yuxarı qat əlavə edin + Add Layer Below to Selection Seçimə Aşağı Layer əlavə edin + Stamp Down Aşağı qata möhürlə + Mesh Mesh + Middle Eastern & South Asian Composer Yaxın Şərq və Cənubi Asiya mətn tərtibatçısı + Modifier Keys Dəyişdirici açarlar + Modify Dəyişdirin + NTSC Colors NTSC Rəngləri + Notes… Qeydlər… + Other Digər + Other… Digər… + Paragraph Styles Panel Abzas üslubları paneli + Paths to Illustrator… Yolları Illustrator-a ixrac et… + Pattern Preview Nümunə Ön Baxış + Pattern… Naxış… + Pixel Art Piksel Art + Pixel Art Preview Piksel sənəti önbaxışı + Pixel Grid Piksel şəbəkəsi + Pixelate Pixelate + Place Scale Marker… Miqyas nişanı yerləşdir… + Plug-ins Pluginlər + Print One Copy Bir nüsxə çap et + Print… Çap et… + Range Aralıq + Raw Defaults… RAW üçün ilkin parametrlər… + Relink to File… Fayla yenidən keçid… + Relight… Yenidən işıqlandırma… + Render Render + Replace All Missing Fonts Bütün çatışmayan şriftləri dəyişdirin + Resolve Missing Fonts… Çatışmayan Şriftləri Həll Edin… + Reveal Selection Seçimi aşkar et + Right Edges Sağ kənarlar + Selection Edges Seçim kənarları + Shapes Formalar + Show Extras Options… Əlavə seçimləri göstərin… + Skewness Çarpıqlıq + Small Kiçik + Smart Guides Ağıllı Bələdçilər + Smart Objects Ağıllı obyektlər + Smooth… Hamarla… + Solid Color… Solid Rəng… + Square Kvadrat + Stack Mode Yığın rejimi + Choose Stack Mode: Yığın rejimini seçin: + Standard Deviation Standart sapma + Statistics… Statistika… + Stylistic Alternates Stilistik Alternativlər + Stylize Stilizasiya + Subtract Front Shape Ön formanı çıxarın + Summation Toplama + Target Path Hədəf Yol + Tile All Horizontally Hamısını üfüqi şəkildə döşəyin + Tile All Vertically Hamısını şaquli olaraq döşəyin + Toggle Last State Son vəziyyəti dəyişin + Toolbar… Alətlər paneli… + Tools… Alətlər… + Top Edges Üst kənarlar + Unite Shapes Fiqurları birləşdir + Update All Modified Content Bütün dəyişdirilmiş məzmunu yeniləyin + Update All Text Layers Bütün mətn qatlarını yeniləyin + Update Modified Content Dəyişdirilmiş Məzmunu Yeniləyin + Variance Variasiya + Vertical Centers Şaquli Mərkəzlər + Video Frames to Layers… Video kadrlarını qatlara çevir… + WIA Support… WIA dəstəyi… + Working CMY Plate İşləyən CMY Plitəsi + Absolute Mütləq + Action Fəaliyyət + Adaptive Uyğunlaşan + Add Stop Stop əlavə edin + Add disk Disk əlavə edin + Align and Distribute Hizalayın və Yayınlayın + All Slices Bütün Dilimlər + All User Slices Bütün İstifadəçi Dilimləri + Alt Alt + Artboard İş lövhəsi + Artboard Background Color Artboard Fon Rəngi + Auto Hide Avtomatik Gizlət + Automatically level near-horizontal line segments Yaxın üfüqi xətt seqmentlərini avtomatik düzəldin + Automatically straighten and level Avtomatik olaraq düzəldin və səviyyəni düzəldin + Automatically straighten near-vertical line segments Şaquli xətt seqmentlərini avtomatik düzəldin + Balance Balans + Baseline Baza + Bicubic Bikubik + Bicubic (smooth gradients) Bikubik (hamar gradientlər) + Automatic Avtomatik + Bicubic Smoother (enlargement) Bicubic Smoother (böyütmə) + Bicubic Sharper (reduction) Bicubic Sharper (azaltma) + Bilinear Billinear + Black, White Qara, Ağ + Blue, Red, Yellow Mavi, Qırmızı, Sarı + Bottom Aşağı + Brightness Jitter Parlaqlıq titrəməsi + Brush Reconstruct Options Fırça ilə Yenidənqurma Seçimləri + Cache Level: Keş Səviyyəsi: + Canvas Kətan + Capture Tutmaq + Center Crop Marks Mərkəzi Kəsmə İşarələri + Centre the gradient (offset 0, 0) Qradienti mərkəzləşdirin (ofset 0, 0) + Change Screen Mode (F) Ekran rejimini dəyişdirin (F) + Change To: Dəyişdirin: + Clear All Hamısını Sil + Clear Override Ləğv etməni silin + Clear Samples Təmiz nümunələr + Cmd Cmd + Color Grading Rəng tonlaması + Color Management Rəng İdarəetmə + Color Priority Rəng prioriteti + Color Range preview Rəng diapazonuna baxış + Colorize Rəngləndirin + Constant Daimi + Content-Aware Məzmundan xəbərdar + Convert to sRGB sRGB-ə çevirin + Copies Nüsxələr + Copper Mis + Corner Crop Marks Künc kəsmə işarələri + Correction Düzəliş + Count Jitter Say dəyişkənliyi + Create Texture Tekstura yaradın + Create a new count group Yeni hesab qrupu yaradın + Crop Factor Kəsmə faktoru + Ctrl Ctrl + Custom Shapes Fərdi Formalar + Cyan Mavi + Cyan · Red Mavi · Qırmızı + Darks Qaranlıqlar + Default printer Defolt printer + Default restored. Defolt bərpa edildi. + Delete Group Qrupu Sil + Delete count group Hesab qrupunu silin + Delete effect layer Effekt qatını silin + Delete note Qeydi silin + Delete tool preset Alətin əvvəlcədən təyinini silin + Depth Jitter Dərinlik dəyişkənliyi + Discontiguous Bitişik + Discord Mübahisə + Display P3 Ekran P3 + Display Text Mətni göstərin + Divide… Bölün… + Do you want to save the changes you made to “{name}” before quitting? Çıxmazdan əvvəl “ {name} ” üçün etdiyiniz dəyişiklikləri yadda saxlamaq istəyirsiniz? + Edit Toolbar… Alətlər panelini redaktə et… + Edit in Quick Mask Mode (Q) Sürətli Maska rejimində redaktə edin (Q) + Edit in Standard Mode (Q) Standart rejimdə redaktə edin (Q) + Embedded Profile Mismatch Daxili Profil Uyğunsuzluğu + Enhance Edge Kənarı təkmilləşdirin + Exact Dəqiq + Expansion: Genişləndirmə: + Exposure and Gamma Ekspozisiya və Qamma + Factor: Amil: + Fewer Points Daha az xal + File Settings Fayl Parametrləri + Finger Painting Barmaqlarla rəsm + Fit in View Görünüşə sığdır + Fixed Düzəltildi + Foreground to Background Ön plandan arxa plana + Foreground/Background Jitter Ön plan/Arxa plan titrəməsi + Format Format + Frame from Layers… Qatlardan Çərçivə… + Full Spherical Tam Sferik + Gamma Correction Qamma korreksiyası + Gamma: Qamma: + Global Qlobal + Grain Taxıl + Graphics Qrafika + Gray Boz + Heart Ürək + Hide Auto Slices Avtomatik dilimləri gizlədin + Highlight Compression Vurğulanmış sıxılma + Highlight Priority Prioriteti vurğulayın + Highlights İşıqlı sahələr + Home Ev + Hue Jitter Rəng tonu dəyişkənliyi + Image Size: Şəkil ölçüsü: + Imported İdxal edilib + Input: Giriş: + Interlaced Keçmiş + Invert All Hamısını çevir + Label Size Etiket Ölçüsü + Labels Etiketlər + Lanczos (sharp) Lanczos (kəskin) + Level Səviyyə + Lights İşıqlar + Limits: Limitlər: + Link the mask to the layer Maskanı qat ilə əlaqələndirin + Localized Color Clusters Lokallaşdırılmış Rəng Klasterləri + Luminance Parlaqlıq + Magenta Magenta + Magenta · Green Magenta · Yaşıl + Marker Size Marker Ölçüsü + Mask Options Maska Seçimləri + Masking Maskalama + Master Ustad + Mean: Orta: + Median: Median: + Mesh Size Mesh ölçüsü + Metadata Metadata + Midpoint Orta nöqtə + Midtones Orta tonlar + Midtones from: Orta tonlar: + Midtones to: Orta tonlar: + Minimum Depth Minimum Dərinlik + Mix Jitter Qarışıq dəyişkənliyi + Mode: Rejim: + Monochrome Monoxrom + More Points Daha çox xal + Move Group Down Qrupu Aşağı köçürün + Move Group Up Qrupu yuxarı köçürün + Move effect layer down Effekt qatını aşağı köçürün + Move effect layer up Effekt qatını yuxarı köçürün + Move to keçin + Nearest Neighbor Ən yaxın qonşu + Nearest Neighbor (hard edges) Ən yaxın qonşu (sərt kənarlar) + New effect layer Yeni effekt qatsi + Next note Növbəti qeyd + No Color Management Rəng İdarəetmə Yoxdur + Optimized Optimallaşdırılmışdır + Output Levels: Çıxış Səviyyələri: + Output: Çıxış: + Paint Overlay Rəngli örtük + Pattern Size Naxış Ölçüsü + PhotoCraft PhotoCraft + PhotoCraft — an open-source, native image editor written in Rust. PhotoCraft — Rust dilində yazılmış açıq mənbəli, yerli şəkil redaktoru. + Position and Size Mövqe və Ölçü + Preserve Details Təfərrüatları qoruyun + Preserve Luminosity Parlaqlığı qoruyun + Previous note Əvvəlki qeyd + Printer Printer + Printer Setup Printer Quraşdırma + Printing Marks Çap markaları + Progressive Proqressiv + Promote Təşviq et + Protect Detail Təfərrüatı qoruyun + Protect Tones Tonları qoruyun + Proximity Match Yaxınlıq uyğunluğu + Purity Saflıq + Quality Keyfiyyət + Recent Son + Reconstruct Yenidənqurma + Refine Təmizləyin + Registration Marks Qeydiyyat nişanları + Regular Daimi + Remove stop Dayanmağı çıxarın + Rename Group… Qrupun adını dəyişin… + Rename Layer… Qatın adını dəyiş… + Restore All Hamısını bərpa edin + Restrictive (Web) Məhdudiyyətli (Veb) + Rigid Sərt + Roughness Kobudluq + Roundness Dairəvilik + Rulers & Grids Xətkeşlər və Şəbəkələr + Sample: foreground colour Nümunə: ön plan rəngi + Sampling: Background Swatch Nümunə götürmə: Fon nümunəsi + Sampling: Continuous Nümunə götürmə: Davamlı + Sampling: Once Nümunə götürmə: bir dəfə + Saturate Doymaq + Saturation Jitter Doyma dəyişkənliyi + Save HTML and Images HTML və Şəkilləri yadda saxlayın + Save as PDF PDF olaraq saxla + Scale to Fit Media Kağıza sığdır + Scatter Dağılma + Scratch disks cızma diskləri + Selective Seçici + Shadows Kölgələr + Shape: Forma: + Sharpening İtiləşdirmə + Shift shift + Show All Menu Items Bütün menyu elementlərini göstərin + Show Backdrop Fonu göstərin + Show Mask Maskanı göstərin + Show Mesh Toru göstər + Show or hide the Notes panel Qeydlər panelini göstərin və ya gizləyin + Show the layer mask as an overlay Qat maskasını üst-üstə düşmə kimi göstərin + Show: Göstər: + Sides Tərəflər + Sides: Tərəflər: + Slice Options… Dilim Seçimləri… + Slices From Guides Bələdçilərdən Dilimlər + Slices are locked (View › Lock Slices) Dilimlər kilidlənib (Bax › Dilimləri Kilidləyin) + Split: Ayrılma: + Star ratio Ulduz nisbəti + Std Dev: Std Dev: + Straighten Düzləşdirin + Straighten Layer Qatı düzəldin + Strength: Güc: + Stroke Kontur + Stroke Catch-up Vuruşun tutulması + Stroke: Kontur: + Location: Yer: + Inside İçəridə + Outside Çöldə + Tetrahedral Tetraedral + Texture Each Tip Hər İpucu Tekstur + Gradient Editor Gradient Redaktoru + Gradient picker Qradient seçici + Save As Preset Əvvəlcədən təyin edilmiş kimi saxla + The gradient the Gradient tool paints with Gradient alətinin rənglədiyi gradient + Adds the current gradient to the Gradients panel Qradientlər panelinə cari qradiyenti əlavə edir + Gradient stops Gradient dayanır + Click to edit the gradient Qradienti redaktə etmək üçün klikləyin + Tilt X X əymək + Tilt Y Y əymək + Toggle count group visibility Qrupların sayının görünməsini dəyişdirin + Toggle text orientation Mətn oriyentasiyasını dəyişdirin + Tone: Ton: + Toolbar Alətlər paneli + Top Yuxarı + Total: Cəmi: + Transparency Şəffaflıq + Trilinear Üçxətli + Unlink the mask from the layer Maskanı qatdən ayırın + View Options Seçimlərə baxın + Violet, Orange Bənövşə, Narıncı + Visible Görünən + Weight Çəki + Weight: Çəki: + Wetness Jitter Nəmlik dəyişkənliyi + Whites Ağ sahələr + Yellow Sarı + Yellow · Blue Sarı · Mavi + Adobe Adobe + Adobe rgb Adobe rgb + Allow agent control Agent nəzarətinə icazə verin + Allow scripts to connect Skriptlərin qoşulmasına icazə verin + Always Həmişə + Always create smart objects when placing Yerləşdirərkən həmişə ağıllı obyektlər yaradın + Animated zoom Animasiyalı böyütmə + Apply auto tone Avtomatik ton tətbiq edin + Ask Soruşun + Ask before saving layered tiff Laylı tiff yadda saxlamazdan əvvəl soruşun + Autosave Avtomatik saxla + Autosave minutes Dəqiqələri avtomatik saxla + Beep when done Bitirdikdə səs siqnalı + Bicubic automatic Avtomatik bikubik + Bicubic sharper Bikub daha kəskin + Bicubic smoother Bikubik hamar + Bit depth Bit dərinliyi + Brush picker Fırça seçici + Brush preview color Fırçanın önizləmə rəngi + CPU (no GPU acceleration) CPU (GPU sürətləndirilməsi yoxdur) + Cache levels Keş səviyyələri + Cache tile size Keş kafel ölçüsü + Camera Raw Defaults Camera Raw ilkin ayarları + Canvas border Kətan haşiyəsi + Show canvas dots Kətan nöqtələrini göstərin + Clip thumbnails to layer bounds Miniatürləri qat sərhədlərinə kəsin + Clip Thumbnails to Layer Bounds Miniatürləri Layer Sərhədlərinə Klip + Canvas color Kətan rəngi + Canvas custom color Kətan xüsusi rəng + Classic Klassik + Color picker Rəng seçici + Color space Rəng məkanı + Column width Sütun eni + Concise Qısa + Control port İdarəetmə portu + Convert to srgb srgb-ə çevirin + Cursors Kursorlar + Custom dark Fərdi qaranlıq + Custom light Fərdi işıq + Dark Tünd + Dark gray Tünd boz + Dashed lines kəsik xətlər + Detailed Ətraflı + DirectX 12 DirectX 12 + Disks Disklər + Display p3 Ekran p3 + Dots Nöqtələr + Double click layer mask launches select and mask İki dəfə kliklənən qat maskası seçin və maskanı işə salır + Drop shadow Düşən kölgə + Dynamic color sliders Dinamik rəng sürgüləri + East asian Şərqi Asiya + Effect cache mb Effekt önbelleği mb + Enable flick panning Flick panning funksiyasını aktivləşdirin + Enable floating document window docking Üzən sənəd pəncərəsinin yerləşdirilməsini aktivləşdirin + Enable narrow options bar Dar seçimlər panelini aktivləşdirin + Enhanced Controls Təkmilləşdirilmiş İdarəetmələr + Erase Silin + Export clipboard Buferi ixrac edin + Extra large Çox böyük + File Handling Faylların idarə edilməsi + File path Fayl yolu + Fill new type layers with placeholder Yeni tipli qatlari yer tutucu ilə doldurun + Font preview Şriftin önizləməsi + Full size tip Tam ölçülü tip + GPU backend GPU arxa ucu + Linux display server Linux displey serveri + X11 X11 + Gamut warning color Gamut xəbərdarlıq rəngi + Gamut warning opacity Gamut xəbərdarlıq qeyri-şəffaflığı + General Ümumi + Enable Generator Generatoru aktivləşdirin + Gif Gif + Glossy Parlaq + Grid color Tor rəngi + Grid colors Grid rəngləri + Grid size Şəbəkə ölçüsü + Grid style Şəbəkə üslubu + Grid unit Şəbəkə vahidi + Gridline every Gridline hər + Guide color Bələdçi rəngi + Guide style Bələdçi üslubu + Guides, Grid & Slices Bələdçilər, tor və dilimlər + Gutter Oluk + History Log Tarixçə jurnalı + History states Tarix dövlətləri + Ignore exif profile tag Exif profil etiketinə məhəl qoymayın + Image interpolation Şəkil interpolasiyası + Image previews Şəkil önizləmələri + Integrations İnteqrasiya + Interface İnterfeys + Jpeg quality Jpeg keyfiyyəti + Jpg Jpg + Large tabs Böyük nişanlar + Legacy compositing Köhnə kompozisiya + Light gray Açıq boz + Line Xətt + Lines Xətlər + Lowercase extension Kiçik hərf uzantısı + Maximize psd compatibility PSD uyğunluğunu maksimuma çatdırın + Medium gray Orta boz + Memory usage mb Yaddaş istifadəsi mb + Low resolution previews Aşağı ayırdetmə önizləmələri + Metal Metal + Missing glyph protection Qlif qoruması çatışmır + Modern Müasir + Nearest neighbor Ən yaxın qonşu + Never Heç vaxt + Normal tip Adi uc + Open as smart object Ağıllı obyekt kimi açın + Open in camera raw Raw kamerada açın + Open documents as tabs Sənədləri nişanlar kimi açın + OpenGL OpenGL + Orange Narıncı + Overscroll Kətandan kənara sürüşdürmə + Performance Performans + Png png + Point size Nöqtə ölçüsü + PostScript (72 points/inch) PostScript (72 xal/düym) + Precise Dəqiq + Preserve details Detalları qoruyun + Print resolution Çap qətnaməsi + Pro Pro + Pro light Pro işıq + Pro light gray Pro açıq boz + Pro medium Pro orta + Pro photo Pro şəkil + Purple Bənövşəyi + Quick export format Sürətli ixrac formatı + Quick export location Sürətli ixrac yeri + Recent file count Son faylların sayı + LUT folder LUT qovluğu + Recent files Son fayllar + Recent fonts Son şriftlər + Recover on launch Başladıqda bərpa edin + Remember workspace changes İş yerindəki dəyişiklikləri xatırlayın + Resize image during place Yer zamanı şəklin ölçüsünü dəyişdirin + Right click with painting tools Rəsm alətləri ilə sağ klikləyin + Rotate view with trackpad Trackpad ilə görünüşü fırladın + Same folder Eyni qovluq + Save in background Fonda saxla + Scratch Disks Müvəqqəti saxlama diskləri + Screen resolution Ekran həlli + Scrubby slider acceleration Scrubby sürüşmə sürətlənməsi + Sessions only Yalnız seanslar + Sharpen for üçün itiləyin + Show channels in color Kanalları rəngli göstərin + Show crosshair in brush tip Fırça ucunda çarpaz işarəni göstərin + Show extension panels Uzatma panellərini göstərin + Show font names in english Şrift adlarını ingilis dilində göstərin + Show menu colors Menyu rənglərini göstərin + Show only crosshair while painting Rəsm edərkən yalnız çarpaz işarəni göstərin + Show slice numbers Dilim nömrələrini göstərin + Show tooltips Alət ipuclarını göstər + Enable animations Animasiyaları aktivləşdirin + Show highlight on rollover Köçürmə zamanı vurğunu göstərin + Show bounding box when dragging layer Qatı sürükləyərkən məhdudlaşdırıcı qutunu göstərin + System title bar Sistem başlıq çubuğu + Show transformation values Transformasiya dəyərlərini göstərin + Slice color Dilim rəngi + Smart guide color Ağıllı bələdçi rəngi + Smart quotes Ağıllı sitatlar + Snap vector tools and transforms to pixel grid Snap vektor alətləri və piksel şəbəkəsinə çevrilir + Srgb Srgb + Standard Standart + Studio Studiya + Studio light Studiya işığı + Adwaita Adwaita + Adwaita dark Adwaita qaranlıq + Subdivisions Bölmələr + System Sistem + Text engine Mətn mühərriki + Text file Mətn faylı + Tiny Kiçik + Touch gestures Toxunma jestləri + Traditional (72.27 points/inch) Ənənəvi (72,27 bal/düym) + Transparency & Gamut Şəffaflıq və rəng əhatəsi + Type units Növ vahidləri + UI font size UI şriftinin ölçüsü + UI scale UI miqyası + Units & Rulers Vahidlər və xətkeşlər + Use additional plugins folder Əlavə plaginlər qovluğundan istifadə edin + Use esc to commit Təhvil vermək üçün esc istifadə edin + Use gpu Gpu istifadə edin + Use legacy free transform Köhnə sərbəst transformasiyadan istifadə edin + Use shift key for tool switch Alət keçidi üçün shift düyməsini istifadə edin + Use tablet pressure Tablet təzyiqindən istifadə edin + Vary round brush hardness on hud Hud üzərində yuvarlaq fırça sərtliyini dəyişin + Vulkan Vulkan + Webp Webp + World ready Dünya hazırdır + Zoom clicked point to center Kliklənmiş nöqtəni mərkəzə yaxınlaşdırın + Zoom resizes windows Böyütmə pəncərələrin ölçüsünü dəyişir + Zoom with scroll wheel Sürüşdürmə çarxı ilə böyüt + Zoom with trackpad pinch Trackpad çimdiklə böyüt + Alt-click to define a source point to clone from Klonlamaq üçün mənbə nöqtəsini təyin etmək üçün Alt düyməsini sıxın + No path to make a selection from: draw one with the Pen tool or select one in the Paths panel. Seçim etmək üçün yol yoxdur: Qələm aləti ilə birini çəkin və ya Yollar panelində birini seçin. + Cancel opening Açılışı ləğv edin + Cancelled opening {name} {name} açılışı ləğv edildi + Damaged Photoshop document Zədələnmiş Photoshop sənədi + The document “{name}” may be damaged. “ {name} ” sənədi zədələnə bilər. + Some layers, pixels or masks could not be read. Do you want to continue opening it? Bəzi qatlari, pikselləri və ya maskaları oxumaq mümkün olmadı. Onu açmağa davam etmək istəyirsiniz? + If you continue, saving over the original may permanently discard unreadable data. Save a copy to keep the original. Davam etsəniz, orijinal üzərində yadda saxlamaq oxunmayan məlumatları həmişəlik ləğv edə bilər. Orijinalı saxlamaq üçün surətini saxlayın. + Continue Davam et + The document “{name}” does not have an embedded {mode} profile. “ {name} ” sənədində daxil edilmiş {mode} profili yoxdur. + The document “{name}” has an embedded color profile that does not match the current {mode} working space. “ {name} ” sənədində mövcud {mode} iş sahəsinə uyğun gəlməyən daxili rəng profili var. + Working: {working} İşləyir: {working} + Developing {name} {name} hazırlanır + Cancelled {label} Ləğv edildi {label} + Esc to cancel Ləğv etmək üçün Esc + Opened {name} {name} açıldı + Opening {name} {name} açılır + Saved {name} Saxlanmış {name} + Saving {name} {name} qənaət edilir + Saving {percent} {percent} qənaət edilir + A save to {name} is still running; try again when it finishes {name} -də saxlama hələ də işləyir; bitdikdə yenidən cəhd edin + {label} is writing the file and can no longer be cancelled {label} faylı yazır və artıq ləğv edilə bilməz + Opening {name}… {name} açılır… + Opening… Açılış… + Reading… Oxuyur… + Working… İşləyir… + 3 x 3 3 x 3 + 4 x 4 4 x 4 + 5 x 5 5 x 5 + Grid: Tor: + Rendering Mode Göstərmə rejimi + Automatic (recommended) Avtomatik (tövsiyə olunur) + CPU / Compatibility CPU / Uyğunluq + Automatic uses GPU acceleration when available and falls back to CPU rendering on errors. Avtomatik mövcud olduqda GPU sürətləndirməsindən istifadə edir və səhvlər zamanı CPU renderinə qayıdır. + Switched to CPU rendering CPU renderinə keçdi + GPU acceleration could not continue. Your documents are unchanged. GPU sürətləndirilməsi davam edə bilmədi. Sənədləriniz dəyişməzdir. + PhotoCraft is using the CPU image compositor. The window may still use your graphics adapter. PhotoCraft CPU şəkil tərtibatçısından istifadə edir. Pəncərə hələ də qrafik adapterinizdən istifadə edə bilər. + Retry GPU requires a restart. Save your work first. Yenidən cəhd edin GPU yenidən başladılmağı tələb edir. Əvvəlcə işinizi qeyd edin. + Retry GPU tries the graphics processor again now. Yenidən cəhd edin GPU indi qrafik prosessorunu yenidən sınayır. + GPU acceleration resumed. GPU sürətləndirilməsi bərpa edildi. + Keep Using CPU CPU istifadə etməyə davam edin + Retry GPU GPU-nu yenidən cəhd edin + GPU Backend GPU arxa ucu + Details Təfərrüatlar + GPU GPU + Rendering mode Göstərmə rejimi + Freeze Lasso: drag to freeze an area, Alt-drag to thaw it (L) Kəməndi dondurun: ərazini dondurmaq üçün sürükləyin, əritmək üçün Alt düyməsi ilə sürükləyin (L) + Shadow Clipping Warning (U) Kölgə Kəsmə Xəbərdarlığı (U) + Highlight Clipping Warning (O) Vurğulanan Kəsmə Xəbərdarlığı (O) + Show Lab Color Readouts Laboratoriya Rəng Oxunuşlarını göstərin + Show Vectorscope Vektorskopunu göstərin + Show Red at 3 o'clock Saat 3-də Qırmızı göstər + Show Skin Tone Indicator Dəri Tonu Göstəricisini göstərin + Tone Histogram Ton histoqramı + Show Selected Region Seçilmiş Bölgəni göstərin +cameraRaw Light İşıq + Camera Raw Filter ({layer}) Kamera Raw Filtri ( {layer} ) + Camera Raw ({name}) Kamera Raw ( {name} ) + Aqua Su +cameraRaw Amount Miqdar +cameraRaw Blacks Qara sahələr +cameraRaw Vibrance Rəng canlılığı +cameraRaw Color Grading Rəng tonlaması +cameraRaw Lights Açıq tonlar +cameraRaw Darks Tünd tonlar +cameraRaw Global Qlobal +cameraRaw Red Qırmızı +cameraRaw Orange Narıncı +cameraRaw Yellow Sarı +cameraRaw Green Yaşıl +cameraRaw Aqua Su +cameraRaw Blue Mavi +cameraRaw Purple Bənövşəyi +cameraRaw Magenta Magenta +cameraRaw Hue Rəng tonu +cameraRaw Blending Qarışdırma +cameraRaw Luminance Detail Parlaqlıq təfərrüatı +cameraRaw Color Detail Rəng təfərrüatı +cameraRaw Roughness Kələ-kötürlük + Patch Tool Yamaq aləti + Patch: Yamaq: + Lasso around an area, then drag the selection Sahənin ətrafında kəmənd çəkin, sonra seçimi dartın + Transform On Drop Dropda Transform + Scale or rotate the moved area, then press {key} Köçürülən ərazini miqyaslandırın və ya fırladın, sonra {key} düyməsini basın + Now drag the selection onto another area İndi seçimi başqa sahəyə sürükləyin + Edit Type Növü redaktə edin + New Style… Yeni Stil… + Style {name} saved {name} üslubu saxlanıldı + Create new style (from the selected type) Yeni üslub yaradın (seçilmiş növdən) + Create new style from the selected layer Seçilmiş qatdən yeni üslub yaradın + Make Default Defolt et + Reset to Default Sıfırla Defolt + Full-resolution preview unavailable Tam rezolyusiyaya baxış mövcud deyil + No patterns Naxış yoxdur + Enable {name} {name} -ni aktivləşdirin + Hold Alt while drawing for straight segments Düz seqmentlər üçün çəkərkən Alt düyməsini basıb saxlayın + Drag or click polygon points · hold Alt during lasso for straight segments · {add} add · {sub} before drawing subtracts Çoxbucaqlı nöqtələrini dartın və ya klikləyin · düz seqmentlər üçün kəmənd zamanı Alt düyməsini basıb saxlayın · {add} əlavə edin · {sub} çıxarışları çəkməzdən əvvəl + Extend uzadın + Structure: Struktur: + Content-Aware Move Tool Məzmuna uyğun köçürmə aləti + TIFF Options TIFF Seçimləri + Targa Options Tarqa Seçimləri + JPEG Options JPEG Seçimləri + Image Options Şəkil Seçimləri + Format Options Format Seçimləri + Baseline ("Standard") Baza ("Standart") + Baseline Optimized Əsas optimallaşdırılıb + 24 bits/pixel 24 bit/piksel + 32 bits/pixel 32 bit/piksel + Including layers will increase file size. Qatların daxil edilməsi faylın ölçüsünü artıracaq. + Discard Layers and Save a Copy Qatları ləğv et və nüsxə saxla + Don't show again Bir daha göstərmə + Save failed: {error} Saxlama alınmadı: {error} + Save cancelled Saxlama ləğv edildi + Couldn't place {name}: {error} {name} yerləşdirmək mümkün olmadı: {error} + Magnetic Lasso Tool Maqnitli kəmənd aləti + Frequency Tezlik + Use tablet pressure to change pen width Qələm enini dəyişmək üçün planşet təzyiqindən istifadə edin + About Haqqında + Contributors Töhfə verənlər + Models Modellər + Sort Sırala + Username İstifadəçi adı + Display name Ekran adı + Real name Əsl adı + Reverse the order Sifarişi geri qaytarın + Grab bag Çantanı götür + Table Cədvəl + Name (A–Z) Ad (A–Z) + Merged PRs Birləşdirilmiş PR + Commits Kommitlər + Lines added Sətirlər əlavə edildi + Lines deleted Sətirlər silindi + Line delta Xətt deltası + Binary assets added İkili aktivlər əlavə edildi + Binary assets removed İkili aktivlər silindi + First commit İlk öhdəlik + First Birinci + Last commit Son öhdəlik + Last Son + Contributors: {contributors} · Commits: {commits} Əmanətçilər: {contributors} · Öhdəliklər: {commits} + No contributor data was built into this copy. Bu nüsxəyə heç bir töhfə verən məlumat daxil edilməyib. + No model credits were built into this copy. Bu nüsxəyə heç bir model krediti daxil edilməyib. + Company Şirkət + Version Versiya + % of all commits bütün öhdəliklərin %-i + Lines +/− Xətlər +/− + @{login}: {prs} PRs, {commits} commits, +{added} / −{deleted} lines (Δ {delta}), +{binAdded} / −{binDeleted} binary assets, {first} – {last} @{login}: {prs} PR, {commits} kommit, +{added} / −{deleted} sətir (Δ {delta}), +{binAdded} / −{binDeleted} ikili resurs, {first} – {last} + Create new swatch Yeni nümunə yaradın + New Swatch… Yeni Swatch… + New Swatch Group… Yeni Swatch Qrupu… + Import Swatches… Nümunələri idxal edin… + Replace Swatches… Rəng nümunələrini əvəz et… + Export Swatches… Rəng nümunələrini ixrac et… + Export Swatches for Exchange… Mübadilə üçün rəng nümunələrini ixrac et… + Reset Swatches Rəng nümunələrini sıfırla + Add to Swatches Rəng nümunələrinə əlavə et + Blend If: Bu şərtlə qarışdır: + Channels: Kanallar: + Knockout Alt qatları deşmə + Apply At Canvas Bounds Kətan sərhədlərində tətbiq et + Color Picker (Text Color) Rəng seçici (mətn rəngi) + Color Picker ({name}) Rəng seçici ({name}) + Color Picker (Fill Color) Rəng seçici (doldurma rəngi) + Fill color Doldurma rəngi + Color Picker (Stroke Color) Rəng seçici (kontur rəngi) + Stroke color Kontur rəngi + Pick screen color Ekrandan rəng seç + Sample a pixel anywhere on the screen Ekranın istənilən yerindən piksel nümunəsi götür + Click to pick · Esc to cancel Seçmək üçün klikləyin · Ləğv etmək üçün Esc + Pick a screen pixel or press Esc to cancel Ekran pikselini seçin və ya ləğv etmək üçün Esc düyməsini basın + Scroll to zoom Böyütmək üçün sürüşdürün + Drag to pan · Scroll to zoom · Double-click to fit Panorama üçün dartın · Böyütmək üçün sürüşdürün · Uyğunlaşdırmaq üçün iki dəfə klikləyin + Show/Hide All Panels Bütün Panelləri Göstər/Gizlət + Show/Hide Panels Panelləri Göstər/Gizlət + Could not open açmaq mümkün olmadı + {path}: the path is not valid Unicode; rename the file and open it again. {path} : yol etibarlı Unicode deyil; faylın adını dəyişdirin və yenidən açın. + Contents: Məzmun: + Custom Pattern: Fərdi Nümunə: + Foreground Color Ön plan rəngi + Color… Rəng… + 50% Gray 50% Boz + {size} (was {old}) {size} ( {old} idi) + Cone Konus + Cone (Inverted) Konus (Ters çevrilmiş) + Domed Qübbəli + Domed (Inverted) Qübbəli (Ters çevrilmiş) + Diagonal (Descending) Diaqonal (Azalan) + Contour Editor Kontur redaktoru + Anti-aliased Kənarları hamarlanmış + Corner Künc + Gloss Contour Parıldadıcı Kontur + Contour Kontur + Cone - Inverted Konus - Tərs + Cove - Deep Koy - Dərin + Cove - Shallow Koy - Dayaz + Gaussian Qauss + Half Round Yarım Dəyirmi + Ring Üzük + Ring - Double Üzük - İkiqat + Rolling Slope - Descending Rolling Slope - Azalan + Rounded Steps Dairəvi addımlar + Sawtooth 1 mişar dişi 1 + Linear Xətti + Red Eye Tool Qırmızı göz aləti + Pupil Size Şagird ölçüsü + Darken Amount Qaranlıq məbləğ + Click a red pupil to neutralize it Qırmızı göz bəbəyini zərərsizləşdirmək üçün üzərinə klikləyin + open source açıq mənbə + …and {n} more …və daha çox {n} + Eyedroppers: Damlalar: + Set Black Point Qara nöqtəni təyin edin + Set Neutral Gray Point Neytral Boz Nöqtə təyin edin + Set White Point Ağ nöqtəni təyin edin + Unavailable in this color mode Bu rəng rejimində mövcud deyil + Selection Preview: Seçimə baxış: + Black Matte Qara Tutqun + White Matte Ağ Tutqun + Quick Mask Sürətli maska + Seafoam Dəniz köpüyü + Indigo İndiqo + Fuchsia Fuşya + Violet Bənövşəyi + Large document: redrawing on the CPU Böyük sənəd: CPU-da yenidən çəkiliş + Redrawing Yenidən çəkmək + This redraw took {seconds} s on the CPU. Bu yenidən çəkiliş CPU-da {seconds} s çəkdi. + Edits that change the whole document, such as a layer's blend mode, opacity or visibility, redraw all of it. Qatın qarışıq rejimi, qeyri-şəffaflıq və ya görünürlük kimi bütün sənədi dəyişdirən redaktələr hamısını yenidən çəkir. + The GPU compositor wasn't used: {reason} GPU kompozitoru istifadə edilmədi: {reason} +fontWeight Thin Çox incə +fontWeight ExtraLight Həddindən artıq incə +fontWeight Light İncə +fontWeight Regular Adi +fontWeight Medium Orta +fontWeight SemiBold Yarımqalın +fontWeight Bold Qalın +fontWeight ExtraBold Çox qalın +fontWeight Black Ən qalın +fontWeight Italic Kursiv + Pattern Stamp Tool Naxış möhürü aləti + Impressionist İmpressionist + Rotate View Tool Görünüşü döndərmə aləti + Reset View Görünüşü Sıfırlayın + Drag around the centre to rotate the view · Shift constrains to 15° Görünüşü fırlatmaq üçün mərkəz ətrafında dartın · Məhdudiyyətləri 15°-ə köçürün + Dual Axis İkili ox + Diagonal Diaqonal + Transform Symmetry Transform Simmetriya + Set painting symmetry options Rəsm simmetriya seçimlərini təyin edin + Point Sample Nöqtə nümunəsi + 3 by 3 Average 3-ə 3 Orta + 5 by 5 Average 5-ə 5-ə Orta + 11 by 11 Average 11-ə 11 Orta + 31 by 31 Average 31-ə 31 Orta + 51 by 51 Average 51-ə 51 Orta + 101 by 101 Average 101 ilə 101 Orta + Sample Size: Nümunə ölçüsü: + All Layers No Adjustments Bütün qatlardə düzəliş yoxdur + Current & Below No Adjustments Cari və Aşağıda Düzəlişlər Yoxdur + Show Sampling Ring Nümunə götürmə halqasını göstərin + Click to sample the foreground colour · {key}-click for background Ön plan rəngini seçmək üçün klikləyin · {key} -fon üçün klikləyin + Out of gamut for printing: click for the nearest printable colour Çap üçün gamut yoxdur: ən yaxın çap edilə bilən rəng üçün klikləyin + Not a web colour: click for the nearest web colour Veb rəngi deyil: ən yaxın veb rəngi üçün klikləyin + Color to Alpha… Rəngdən Alfaya… + Transparency Threshold Şəffaflıq həddi + Opacity Threshold Qeyri-şəffaflıq həddi + PhotoCraft — Screen Color Picker PhotoCraft — Ekran Rəngi Seçici + Rasterize svg groups deeper than svg qruplarını daha dərindən rasterləşdirin + 0 turns this threshold off; SVG groups nested deeper than 100 levels are always rasterized. 0 bu həddi söndürür; 100 səviyyədən daha dərin yerləşdirilmiş SVG qrupları həmişə rasterləşdirilir. + Rule of Thirds Üçüncülərin qaydası + Triangle Üçbucaq + Golden Ratio Qızıl nisbət + Golden Spiral Qızıl spiral + Auto Show Overlay Örtüyü avtomatik göstər + Always Show Overlay Həmişə Overlay göstərin + Never Show Overlay Heç vaxt üst-üstə düşməyi göstərməyin + Cycle Overlay Örtüyü dəyiş + Cycle Orientation İstiqaməti dəyiş + Set the overlay options for the Crop tool Kəsmə aləti üçün üst-üstə düşmə seçimlərini təyin edin + Alt-click went to the desktop, which moves windows with Alt-drag. Set its window-move key to Super, or latch Alt in Window › Modifier Keys. Alt-klik, Alt-sürükləmə ilə pəncərələri hərəkət etdirən masaüstünə keçdi. Pəncərənin hərəkət düyməsini Super olaraq təyin edin və ya Pəncərə › Dəyişdirici Açarlarda Alt düyməsini sıxın. + Color Picker (Layer Style Color) Rəng Seçici (Layer Style Rəngi) + Auto Hide Notifications Bildirişləri avtomatik gizlət + Notification Duration (seconds) Bildiriş müddəti (saniyələr) + Bundle Arrow-Key Nudges Ox düyməsi köçürmələrini qruplaşdır + Nudge Bundle Pause (ms) Köçürmə qruplaşdırma fasiləsi (ms) + Appearance Mode Görünüş rejimi + Dark Theme Tünd mövzu + Light Theme Açıq mövzu + Pro Medium Pro Orta + Studio Light Studiya işığı + Next Appearance Mode Növbəti Görünüş Rejimi + Sync with system Sistemlə sinxronizasiya + Active Aktivdir + Color Picker (Solid Color) Rəng Seçici (Tək Rəng) + Straighten the image by drawing a line on it Şəklin üzərinə xətt çəkərək onu düzəldin + Set additional Crop options Əlavə Kəsmə seçimlərini təyin edin + Show Cropped Area Kəsilmiş ərazini göstərin + Enable Crop Shield Bitki Qalxanını aktivləşdirin + Match Canvas Kətana uyğunlaşdır + Auto Adjust Opacity Opaklığı avtomatik tənzimləyin + Crop Shield color Bitki Qalxanı rəngi + Color Picker (Crop Shield Color) Rəng Seçici (Kəsmə Qalxan Rəngi) + From Center Mərkəzdən + Link radii Bağlantı radiusu + Star Ratio: Ulduz nisbəti: + Create Rectangle Düzbucaqlı yaradın + Create Ellipse Ellips yaradın + Create Triangle Üçbucaq yaradın + Create Polygon Poliqon yaradın + Pressure curve Təzyiq əyrisi + Click to add a point, right-click to remove Nöqtə əlavə etmək üçün klikləyin, silmək üçün sağ klikləyin + Soft Yumşaq + Hard Çətin + Some brush presets could not be loaded Bəzi fırça hafızası yüklənə bilmədi + Retry saving presets Əvvəlcədən parametrləri yadda saxlamağa yenidən cəhd edin + Brush preset changes are not saved: {error} Fırçanın əvvəlcədən təyin edilmiş dəyişiklikləri yadda saxlanmayıb: {error} + Keep this tab open to retain your brushes. Fırçalarınızı saxlamaq üçün bu nişanı açıq saxlayın. + Browser storage is unavailable; brushes are session-only. Keep this tab open to retain them. Brauzer yaddaşı əlçatan deyil; fırçalar yalnız seans üçündür. Onları saxlamaq üçün bu tabı açıq saxlayın. + Saving brush presets… Keep this tab open until saving finishes. Fırçanın ilkin parametrləri yadda saxlanılır... Yadda saxlama tamamlanana qədər bu nişanı açıq saxlayın. + Reflect əks etdirin + Glow Parıltı + Negation İnkar + XOR XOR + Color Burn (Paint.NET) Rəngi tündləşdir (Paint.NET) + Color Dodge (Paint.NET) Rəngi işıqlandır (Paint.NET) + Stroke Options Vuruş Seçimləri + Solid Möhkəm + Dashed Kəsik + Dotted Nöqtəli + Caps Qapaqlar + Butt / Flat Butt / Yastı + Corners Künclər + Miter Gönye + Round Dəyirmi + Bevel əyilmə + Miter limit Mitre limiti + Dashed line kəsik xətt + Dash tire + Gap Boşluq + Dash / gap lengths × stroke width Tire / boşluq uzunluqları × vuruş eni + Add pair Cüt əlavə edin + Remove pair cütü çıxarın + Dash offset Dash ofset + Open paths use centered strokes Açıq yollar mərkəzləşdirilmiş vuruşlardan istifadə edir + Use finite lengths and a positive pattern total Sonlu uzunluqlardan və müsbət nümunə cəmindən istifadə edin + No subject found — try Object Selection or the Lasso Mövzu tapılmadı — Obyekt Seçimi və ya Kəməndi cəhd edin + Quick Selection found nothing there Tez Seçim orada heç nə tapmadı + Object Selection found nothing there — try a tighter rectangle Obyekt seçimi orada heç nə tapmadı — daha sıx düzbucaqlı sınayın + No subject found — try a rectangle around the object Mövzu tapılmadı — obyektin ətrafında düzbucaqlı sınayın + Delete layer ‘{name}’? ' {name} ' qatı silinsin? + Delete {count} layers? {names} {count} qatlari silinsin? {names} + Delete layer? Qat silinsin? + The document is closed Sənəd bağlanıb + The document or selected layers changed. Please request deletion again. Sənəd və ya seçilmiş qatlar dəyişdirildi. Lütfən, yenidən silinməyi tələb edin. + Missing delete command Sil əmri çatışmır + Invalid delete command Yanlış silmə əmri + Layer deleted, but confirmation preference could not be saved: {error} Qat silindi, lakin təsdiqləmə seçimini saxlamaq mümkün olmadı: {error} + Add a layer style Qat üslubu əlavə edin + Add a mask (from the selection; {key} inverts) Maska əlavə edin (seçimdən; {key} çevrilir) + Add an adjustment Düzəliş əlavə edin + Add to selection ({key}) Seçimə əlavə edin ( {key} ) + Adjustment visible Tənzimləmə görünür + Align and distribute Hizalayın və paylayın + Align horizontal centers Üfüqi mərkəzləri hizalayın + Align left edges Sol kənarları hizalayın + Align right edges Sağ kənarları hizalayın + Always use pressure for opacity Həmişə qeyri-şəffaflıq üçün təzyiqdən istifadə edin + Always use pressure for size Həmişə ölçü üçün təzyiqdən istifadə edin + Angle Gradient Bucaq Gradienti + Auto-Select: Avtomatik Seçim: + Brush Preset picker Əvvəlcədən təyin edilmiş fırça seçicisi + Cancel current crop operation (Esc) Cari kəsmə əməliyyatını ləğv edin (Esc) + Click the first point or press {key} to close · Esc cancels Birinci nöqtəyə klikləyin və ya bağlamaq üçün {key} düyməsini basın · Esc ləğv edir + Click the first point or press {key} to close · {del} removes a point · Esc cancels Birinci nöqtəyə klikləyin və ya bağlamaq üçün {key} düyməsini basın · {del} nöqtəni silir · Esc ləğv edir + Click, then move along an edge · click to fasten a point · {alt}-click for a straight segment · double-click to close Klikləyin, sonra kənar boyunca hərəkət edin · nöqtəni bərkitmək üçün klikləyin · {alt} -düz seqment üçün klikləyin · bağlamaq üçün iki dəfə klikləyin + Clip to layer below Aşağıdakı qatyə yapışdırın + Color & Swatches Rəng və nümunələr + Commit current crop operation ({key}) Cari kəsmə əməliyyatını yerinə yetirin ( {key} ) + Create a new group Yeni qrup yaradın + Create a new layer Yeni qat yaradın + Create new document from current state Cari vəziyyətdən yeni sənəd yaradın + Create new fill or adjustment layer Yeni doldurma və ya tənzimləmə qatı yaradın + Create new snapshot Yeni şəkil yaradın + From: Kimdən: + Full Document Tam sənəd + Merged Layers Birləşdirilmiş qatlar + Delete Cropped Pixels Kəsilmiş pikselləri silin + Delete current state Cari vəziyyəti silin + Delete layer Qatı silin + Diamond Gradient Almaz Gradient + Doc: {w} × {h} px Sənəd: {w} × {h} px + Enable airbrush-style build-up effects Airbrush üslubunda qurma effektlərini aktivləşdirin + Filter for adjustment layers Tənzimləmə qatlari üçün filtr + Filter for pixel layers Piksel qatlari üçün filtr + Filter for shape layers Forma qatlari üçün filtr + Filter for smart objects Ağıllı obyektlər üçün filtr + Filter for type layers Tip qatlari üçün filtr + Fixed Ratio Sabit nisbət + Fixed Size Sabit Ölçü + Follows only edges this close to the pointer ([ and ] change it) Yalnız göstəriciyə bu qədər yaxın olan kənarları izləyir ([ və ] onu dəyişdirin) + Hide Properties Xüsusiyyətləri gizlədin + Higher values follow only edges that contrast sharply with their surroundings Daha yüksək dəyərlər yalnız ətrafı ilə kəskin ziddiyyət təşkil edən kənarları izləyir + How often fastening points are placed by themselves Bərkitmə nöqtələri özləri tərəfindən nə qədər tez-tez yerləşdirilir + Hue/Saturation Rəng/Doyma + Intersect with selection ({key}) Seçimlə kəsişir ( {key} ) + Kind Növ + Linear Gradient Xətti Gradient + Link layers Bağlantı qatları + Lock Kilid + Lock all Hamısını kilidləyin + Lock image pixels Şəkil piksellərini kilidləyin + Lock layer Qatı kilidləyin + Lock position Kilid mövqeyi + Lock transparent pixels Şəffaf pikselləri kilidləyin + New selection Yeni seçim + No properties Əmlak yoxdur + Pressure for Opacity Opaklıq üçün təzyiq + Pressure for Size Ölçü üçün təzyiq + Prevent auto-nesting in and out of Artboards and Frames İş Lövhəsi və Çərçivələrin içərisinə və xaricinə avtomatik yerləşdirmənin qarşısını alın + Radial Gradient Radial qradient + Reflected Gradient Əks olunan qradient + Reset to defaults Defoltlara sıfırlayın + Set additional smoothing options Əlavə hamarlama seçimlərini təyin edin + Show Transform Controls Transform nəzarətlərini göstərin + Subtract from selection ({key}) Seçimdən çıxarın ( {key} ) + Swaps height and width Hündürlüyü və eni dəyişdirir + Tolerance Tolerantlıq + Add vector mask Vektor maskası əlavə edin + Click to zoom in · {key}-click to zoom out · drag right/left to zoom in/out Böyütmək üçün klikləyin · {key} -kiçiltmək üçün klikləyin · böyütmək/kiçiltmək üçün sağa/sola dartın + Appearance Settings… Görünüş Parametrləri… + Add to favorites Sevimlilərə əlavə edin + Remove from favorites Sevimlilərdən silin +cameraData Make İstehsalçı +cameraData Model Model +cameraData Date Taken Çəkilmə tarixi +cameraData Exposure Ekspozisiya müddəti +cameraData F-Stop Diafraqma +cameraData ISO Speed ISO həssaslığı +cameraData Focal Length Fokus məsafəsi +cameraData Focal Length (35 mm) Fokus məsafəsi (35 mm) +cameraData Lens Obyektiv + Activate Panel Paneli aktivləşdirin + Change Panel Group Panel Qrupunu dəyişdirin + Change Panel Layout Panel Düzenini dəyişdirin + Close Panel Paneli bağlayın + Dock Panel Dok Paneli + Float Panel Paneli ayır + Move Panel Paneli köçürün + Group with ilə qrup + Panel menu Panel menyusu + Resize panel window Panel pəncərəsinin ölçüsünü dəyişdirin + Resize panels Panellərin ölçüsünü dəyişdirin + Use Classic Mode Klassik rejimi istifadə edin + Auto Center Preview Önbaxışı avtomatik mərkəzləşdir + Next Document Növbəti Sənəd + Previous Document Əvvəlki Sənəd + W x H x Resolution G x Y x Çözünürlük + Front Image Ön şəkil + Frame Tool Çərçivə aləti + Create a new rectangular frame Yeni düzbucaqlı çərçivə yaradın + Create a new elliptical frame Yeni elliptik çərçivə yaradın + Include in playback Oxumağa daxil edin + Perspective Crop Tool Perspektiv kəsmə aləti + Show Grid Şəbəkəni göstərin + Drag a box or click four corners · drag the corners onto the edges of a skewed shape · {commit} commits · Esc cancels Qutunu dartın və ya dörd küncə klikləyin · küncləri əyri formanın kənarlarına dartın · {commit} yerinə yetirir · Esc ləğv edir + Artboard Tool İş lövhəsi aləti + Make Portrait Portret çəkin + Make Landscape Landşaft yaradın + Add New Artboard Yeni İş lövhəsi əlavə edin + Freeform Pen Tool Sərbəst qələm aləti + Curvature Pen Tool Əyrilik qələmi aləti + Curve Fit: Əyri Uyğun: + Drag: draw freehand · {alt}-click: straight segment · Release on the start point: close Çək: əllə çəkin · {alt} -klik edin: düz seqment · Başlanğıc nöqtəsində buraxın: bağlayın + Click: smooth point · Double-click: corner · Drag a point: move · Click first point: close · {key} finish Klikləyin: hamar nöqtə · İki dəfə klikləyin: künc · Nöqtəni sürüşdürün: köçürün · Birinci nöqtəni basın: bağlayın · {key} bitir + Scale: Miqyas: + Snap to Origin Başlanğıca yapışdır + Link with Layer Layer ilə əlaqə + Rasterize Layer Style Layer Üslubunu Rasterləşdirin + Search settings… Axtarış parametrləri… + No matching settings Uyğun parametrlər yoxdur + Sampling Brush Tool Nümunə Fırçası Aləti + Sampling Area Overlay Nümunə alma sahəsinin üst-üstə düşməsi + Show Sampling Area Nümunə götürmə sahəsini göstərin + Indicates Göstərir + Sampling Area Nümunə götürmə sahəsi + Excluded Area İstisna Sahə + Sampling Area Options Nümunə Alma Sahəsi Seçimləri + Rectangular Düzbucaqlı + Fill Settings Doldurma Parametrləri + Rotation Adaptation Rotasiya Uyğunlaşması + Very High Çox yüksək + Full Tam + Mirror Güzgü + Output Settings Çıxış Parametrləri + Output To Çıxış üçün + Duplicate Layer Dublikat qat + Contract Müqavilə + Animation Options Animasiya Seçimləri + Entire Document Bütün sənəd + Filter Options Filtr Seçimləri + Layer Bounds Qat sərhədləri + Layers Panel Options Laylar Panel Seçimləri + Lock Layers Qatları Kilidləyin + New Artboard… Yeni iş lövhəsi… + New Group… Yeni Qrup… + Prevent Auto-Nesting Avtomatik Yerləşdirmənin qarşısını alın + Show Layers Qatları göstərin + Thumbnail Contents Miniatür məzmunu + Thumbnail Size Miniatür ölçüsü + Use Default Masks on Fill Layers Doldurma Qatlarında Defolt Maskalardan istifadə edin + Expand New Effects Yeni Effektləri genişləndirin + Add “copy” to Copied Layers and Groups Kopyalanan Layers və Qruplara "kopya" əlavə edin + Preview on canvas when reordering layers Qatları yenidən sıralayarkən kətan üzərində önizləmə + Show layer mask badges Qat maskası nişanlarını göstərin + Blending Options ({filter}) Qarışıq Seçimləri ( {filter} ) + Hide the layer's effects and Smart Filters ({key}-click: all layers) Qatın effektlərini və Ağıllı Filtrləri gizlədin ( {key} -klik: bütün qatlar) + Show the layer's effects and Smart Filters ({key}-click: all layers) Qatın effektlərini və Ağıllı Filtrləri göstərin ( {key} -klik: bütün qatlar) + Wait for the current job to finish. Cari işin bitməsini gözləyin. + The document or Smart Filter changed. Reopen its dialog. Sənəd və ya Ağıllı Filtr dəyişdirildi. Onun dialoqunu yenidən açın. + Opacity must be between 0% and 100%. Şəffaflıq 0% ilə 100% arasında olmalıdır. + Dissolve is approximated: it blends without Photoshop's dither. Dissolve təqribəndir: o, Photoshop-un titrəməsi olmadan qarışır. + Loading fonts… Şriftlər yüklənir… + Response curve Cavab əyrisi + Tool Alət + Simulate Pressure Təzyiq simulyasiyası + Stroke Path… Yol boyunca kontur çək… + Background Eraser Fon Silgisi + Healing Brush Bərpa fırçası + Spot Healing Brush Nöqtəvi bərpa fırçası + Smudge Yayma + Sponge Süngər + Amount: Məbləğ: + Protect: Qorun: + Protect skin tones Dəri tonlarını qoruyun + Edit points to modify the curve Əyri dəyişdirmək üçün nöqtələri redaktə edin + Draw to modify the curve Əyri dəyişdirmək üçün çəkin +curves Smooth Hamarlama + Smooth the curve values Əyri dəyərləri hamarlayın + Drag to draw the curve · {key}-click draws a straight line Əyri çəkmək üçün dartın · {key} -klik edərək düz xətt çəkir + Grid Size: Şəbəkə ölçüsü: + Vanishing Point: click four corners to create a plane Ufuq nöqtəsi: təyyarə yaratmaq üçün dörd küncə klikləyin + Vanishing Point is not active Vanishing Point aktiv deyil + Apply Vanishing Point ({key}) Vanishing Point tətbiq edin ( {key} ) + Fix the red plane first: its corners must form a convex quad Əvvəlcə qırmızı müstəvini düzəldin: onun küncləri qabarıq dördlük təşkil etməlidir + Alt-click a plane to set the clone source Klon mənbəyini təyin etmək üçün Alt-klikləyin + Too many clone strokes: apply Vanishing Point first Həddindən artıq klon vuruşları: əvvəlcə Vanishing Point tətbiq edin + Onion Skin Soğan qabığı + Marching Ants Yürüyən Qarışqalar + On Black Qara + On White Ağ üzərində + On Layers Qatlarda + Show Edge Kənarı göstər + Show Original Orijinalı göstərin + F cycles the views; hold X to see the image F baxışları dövrələyir; şəkli görmək üçün X düyməsini basıb saxlayın + Refine Edge Brush (R) İncə Kənar Fırçası (R) + Expand Detection Area Aşkarlama sahəsini genişləndirin + Restore Original Edge Original Edge bərpa edin + Paint over hair or fur on the image; Alt paints the other mode Şəkil üzərində saç və ya xəz üzərində boya; Alt digər rejimi rəngləyir + Clear Brush Strokes Fırça vuruşlarını təmizləyin + Show rulers Xətkeşlərı göstərin + New Crop Preset… Yeni Kəsmə Əvvəlcədən Ayar… + Delete Crop Preset… Əvvəlcədən Kəsməni Sil… + Select the crop presets to delete: Silmək üçün kəsmə hafızası seçin: + Select the crop presets to delete Silmək üçün kəsmə hafızası seçin + Enter a name for the crop preset Əvvəlcədən kəsmə üçün ad daxil edin + There is no crop size or ratio to save Saxlamaq üçün kəsmə ölçüsü və ya nisbəti yoxdur + Presentation Təqdimat + Click to place · Alt-click or drag off-canvas to remove Yerləşdirmək üçün klikləyin · Alt-klikləyin və ya silmək üçün kətandan kənara dartın + No document open Açıq sənəd yoxdur + {n} of {max} sample points {max} nümunə nöqtələrinin {n} + New Snapshot… Yeni Snapshot… + History Options… Tarixçə Seçimləri… + Allow Non-Linear History Qeyri-xətti tarixçəyə icazə verin + Make Layer Visibility Changes Undoable Layer Görünüşü Dəyişikliklərini Geri Alınmaz edin + Emulsion Down Emulsiya Aşağı + Functions Funksiyalar + Print Resolution: Çap Çözünürlüğü: + Use Previous Layer to Create Clipping Mask Kəsmə maskası yaratmaq üçün əvvəlki qatdən istifadə edin + Fill with {mode}-neutral color (white) {mode} neytral rənglə doldurun (ağ) + Fill with {mode}-neutral color (black) {mode} neytral rənglə doldurun (qara) + Fill with {mode}-neutral color (50% gray) {mode} neytral rənglə doldurun (50% boz) + (No neutral color exists for {mode} mode.) ( {mode} rejimi üçün neytral rəng yoxdur.) + Apply mask to layer before removing? Maskanı çıxarmazdan əvvəl qatyə tətbiq edin? + The layer or its mask changed. Drag the mask onto the Trash again. Qat və ya onun maskası dəyişdi. Maskanı yenidən Zibil qutusuna çəkin. + Delete the vector mask? Vektor maskası silinsin? +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} {file} faylına {n} rəng nümunəsi ixrac edildi|{file} faylına {n} rəng nümunəsi ixrac edildi +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} {group} qrupundan {n} fırça idxal edildi|{group} qrupundan {n} fırça idxal edildi +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} {file} faylından {n} rəng nümunəsi idxal edildi|{file} faylından {n} rəng nümunəsi idxal edildi +@plural Played {n} step|Played {n} steps {n} addım icra edildi|{n} addım icra edildi +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk Diskdə dəyişdirilmiş {n} əlaqəli ağıllı obyekt yeniləndi|Diskdə dəyişdirilmiş {n} əlaqəli ağıllı obyekt yeniləndi +@plural Saved for Web: {n} file|Saved for Web: {n} files Veb üçün saxlanıldı: {n} fayl|Veb üçün saxlanıldı: {n} fayl +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. Bu kompozisiyada qeydə alınmış {n} qat silinib. Kompozisiyanı yeniləyin və ya xəbərdarlığı təmizləyin.|Bu kompozisiyada qeydə alınmış {n} qat silinib. Kompozisiyanı yeniləyin və ya xəbərdarlığı təmizləyin. +@plural {n} plane|{n} planes {n} müstəvi|{n} müstəvi +@plural {n} preset|{n} presets {n} hazır ayar|{n} hazır ayar +@plural {n} sample point removed|{n} sample points removed {n} nümunə nöqtəsi silindi|{n} nümunə nöqtəsi silindi +@plural {n} slice|{n} slices {n} dilim|{n} dilim +@plural {n} step|{n} steps {n} addım|{n} addım +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (hazır fırça ayarları barədə daha {n} xəbərdarlıq)|{warning} (hazır fırça ayarları barədə daha {n} xəbərdarlıq) +@plural {what} with {n} warning|{what} with {n} warnings {what}: {n} xəbərdarlıq|{what}: {n} xəbərdarlıq + Light Blue Açıq Mavi + Light Red Açıq Qırmızı + Medium Blue Orta Göy + Light Gray Açıq boz + Object Finder Obyekt Tapıcı + No object found there — drag a rectangle around it Orada heç bir obyekt tapılmadı — onun ətrafında düzbucaqlı çəkin + The active layer has no pixels here — turn on Sample All Layers or select a layer with pixels Aktiv qatnin burada pikseli yoxdur — Nümunə Bütün Qatları yandırın və ya pikselli qat seçin + Remove after each stroke Hər vuruşdan sonra çıxarın + Apply the removal ({key}) Silinməni tətbiq edin ( {key} ) + Strokes to remove: {n} (Enter applies, Esc cancels) Silinəcək vuruşlar: {n} (Daxil edin, Esc ləğv edir) + Load Contours… Konturları yükləyin… + Replace Contours… Konturları dəyişdirin… + Save Contours… Konturları Saxla… + Delete Contour Konturu silin + Loaded contours from {file} {file} -dən yüklənmiş konturlar + Saved contours to {file} Saxlanılan konturlar {file} + Show home recent files Ana səhifədə son faylları göstər + Clear Brush Controls Fırça nəzarətlərini təmizləyin + Reset All Locked Settings Bütün Kilidli Parametrləri Sıfırlayın + Copy Texture to Other Tools Teksturanı Digər Alətlərə Kopyalayın + Load Actions… Əməliyyatları Yüklə… + Save Actions… Əməliyyatları yadda saxla… + New Action… Yeni Fəaliyyət… + Start Recording Yazmağa başlayın + Stop Recording Qeydi dayandırın + {name} (Photoshop) {name} (Photoshop) + {message} ({note}) {message} ( {note} ) +@plural Loaded {n} action from {file}|Loaded {n} actions from {file} {file} faylından {n} əməliyyat yükləndi|{file} faylından {n} əməliyyat yükləndi +@plural {n} step has no PhotoCraft equivalent yet|{n} steps have no PhotoCraft equivalent yet {n} addımın hələ PhotoCraft qarşılığı yoxdur|{n} addımın hələ PhotoCraft qarşılığı yoxdur +@plural Saved {n} action to {file}|Saved {n} actions to {file} {file} faylına {n} əməliyyat saxlanıldı|{file} faylına {n} əməliyyat saxlanıldı +@plural {n} step with no Photoshop equivalent left out|{n} steps with no Photoshop equivalent left out Photoshop qarşılığı olmayan {n} addım buraxıldı|Photoshop qarşılığı olmayan {n} addım buraxıldı + File Naming Faylın Adlandırılması + Starting serial Serialın başlanğıcı + Insert Stop… Dayandırın… + Save Set… Dəsti saxla… + Message: Mesaj: + Allow Continue Davam etməyə icazə verin + Show dialog during playback Oynatma zamanı dialoqu göstərin + Select an action first Əvvəlcə hərəkət seçin + Action playback stopped Fəaliyyətin səsləndirilməsi dayandırıldı + Step {step} is waiting for its dialog Step {step} dialoqunu gözləyir +@plural {n} action|{n} actions {n} əməliyyat|{n} əməliyyat + Background (Default) Fon (Defolt) + Content-Aware Fill Məzmundan xəbərdar Doldurma + Include All Subfolders Bütün alt qovluqları daxil edin + Auto Add/Delete Avtomatik Əlavə et/Sil + Don't also tick Mirror Image in Print Settings…: the two flips cancel out. Çap Parametrlərində Güzgü Şəklini də işarələməyin…: iki çevirmə ləğv edilir. + Print Settings… Çap Parametrləri… + Remember to turn off the printer's own colour management in Print Settings… Çap Parametrlərində printerin öz rəng idarəçiliyini söndürməyi unutmayın… + Sent to {printer} {printer} -ə göndərildi + set in Print Settings… Çap Parametrlərində təyin edin… + ICO is limited to 256 × 256 pixels ICO 256 × 256 piksellə məhduddur + Calibration Kalibrləmə + Red Primary Qırmızı İbtidai + Green Primary Yaşıl İbtidai + Blue Primary Mavi İlkin + Write xmp sidecars xmp yan arabalarını yazın + Set the tone sliders from the image Şəkildən ton sürgülərini təyin edin + Settings from {name} {name} -dən parametrlər + Settings from {name}; {count} not supported: {names} {name} -dən parametrlər; {count} dəstəklənmir: {names} + Could not write {name}: {error} {name} yazmaq mümkün olmadı: {error} + Kept {name}: written by another application Saxlanıldı {name} : başqa proqram tərəfindən yazılmışdır + Shadow Tint Kölgə Rəngi + Paints from the History panel's source state Tarix panelinin mənbə vəziyyətindən olan boyalar + Sets the source for the history brush Tarix fırçası üçün mənbə təyin edir + Select Inverse Tərs seçin + Pro (Light) Pro (İşıq) + Pro (Light Gray) Pro (Açıq Boz) + Label Etiket + Date and Time Tarix və vaxt + Scale Units Ölçək vahidləri + Scale Factor Ölçək Faktoru + Area Sahə + Perimeter Perimetr + Circularity Dairəvilik + Gray Value (Minimum) Boz Dəyər (Minimum) + Gray Value (Maximum) Boz Dəyər (Maksimum) + Gray Value (Mean) Boz Dəyər (Orta) + Gray Value (Median) Boz Dəyər (Media) + Integrated Density İnteqrasiya edilmiş sıxlıq + Length Uzunluq + Show Favorite Fonts Sevimli şriftləri göstərin + No favorite fonts yet: click the star beside a font to add it. Hələ sevimli şrift yoxdur: onu əlavə etmək üçün şriftin yanındakı ulduza klikləyin. + Favorite fonts Sevimli şriftlər + Add to Favorites Sevimlilərə əlavə edin + Remove from Favorites Sevimlilərdən silin + Show All Fonts Bütün şriftləri göstərin + All Classes Bütün siniflər + Blackletter Qara məktub + Decorative Dekorativ + Font preview: Şrift önizləməsi: + Handwritten Əl yazısı + Hide Font Classes Şrift siniflərini gizlədin + Hide Styles Üslubları gizlədin + Monospace Bərabərenli + No fonts match these filters. Bu filtrlərə uyğun şrift yoxdur. + No similar fonts: the current font doesn't say what it looks like. Oxşar şrift yoxdur: cari şrift onun necə göründüyünü demir. + OpenType font OpenType şrifti + Sans Serif Sans Serif + Script Ssenari + Serif Serif + Show Font Classes Şrift Siniflərini göstərin + Show Similar Fonts Oxşar şriftləri göstərin + Show Styles Üslubları göstərin + Show Variable Fonts Dəyişən şriftləri göstərin + Slab Serif Slab Serif + TrueType font TrueType şrifti + Variable font Dəyişən şrift + Highlight Mode Vurğulama rejimi + Highlight Color Vurğu Rəngi + Highlight Opacity Şəffaflığı vurğulayın + Shadow Mode Kölgə rejimi + Shadow Color Kölgə Rəngi + Shadow Opacity Kölgə qeyri-şəffaflığı + Check for Updates… Yeniləmələri yoxlayın… + Open the release page to choose an installer for your system. Sisteminiz üçün quraşdırıcı seçmək üçün buraxılış səhifəsini açın. + Automatically Check for Updates Yeniləmələri avtomatik yoxlayın + Use the embedded profile ({profile}) Daxili profildən istifadə edin ( {profile} ) + Convert to the working space ({profile}) İş sahəsinə çevirin ( {profile} ) + Remember this choice for future images Gələcək şəkillər üçün bu seçimi yadda saxlayın + Turn the prompt back on with Ask On Mismatch in Edit › Color Settings. Redaktə ›Rəng Parametrlərində Uyğunsuzluğu Sorğu ilə əmri yenidən yandırın. + Button Mode Düymə rejimi + Button Mode On Düymə Rejimi Aktivdir + Darken Interface Qaranlıq interfeys + Lighten Interface İşıqlandırma interfeysi + Technique Texnika + Chisel Hard Sərt kəsik + Chisel Soft Yumşaq çisel + Open color-less EXR as ACEScg Rəngsiz EXR-ni ACEScg kimi açın + Do not append "copy" to filename when saving a copy Surəti saxlayarkən fayl adına "kopya" əlavə etməyin + Edit Selected Guides Seçilmiş bələdçiləri redaktə edin + Clear Selected Guides Seçilmiş Bələdçiləri Sil + Bicubic Automatic Avtomatik bikubik + Bicubic Smoother Daha hamar bikubik + Bicubic Sharper Daha kəskin bikubik + Pasting from other apps is unavailable Digər proqramlardan yapışdırmaq mümkün deyil + PhotoCraft can't reach the system clipboard in this session. On Wayland, a Flatpak sandbox hides the protocol that images from other apps are read through. PhotoCraft bu sessiyada sistem buferinə daxil ola bilmir. Wayland-da Flatpak qum qutusu digər proqramlardakı şəkillərin oxunduğu protokolu gizlədir. + To paste from other apps, start PhotoCraft under XWayland: `{command}` Digər proqramlardan yapışdırmaq üçün XWayland altında PhotoCraft işə salın: ` {command} ` + Nothing to paste: PhotoCraft can't read the system clipboard here Yapışdırmaq üçün heç nə yoxdur: PhotoCraft burada sistem buferini oxuya bilmir + Delete this set Bu dəsti silin + New Set… Yeni Dəst… + PhotoCraft Defaults PhotoCraft Defoltlar + Save a list of these shortcuts as a web page Bu qısayolların siyahısını veb səhifə kimi yadda saxlayın + Save the changes to this set Dəyişiklikləri bu dəstdə yadda saxlayın + Save these shortcuts as a .kys file Bu qısa yolları .kys faylı kimi yadda saxlayın + Save these shortcuts as a new set Bu qısayolları yeni dəst kimi yadda saxlayın + Set deleted. Set silindi. + Set saved. Set saxlandı. + Set: Set: + Summarize… Ümumiləşdirin… + There are too many sets: delete one first. Çox çox dəst var: əvvəlcə birini silin. + set name adı təyin edin + {set} (modified) {set} (dəyişdirilmiş) + Random Təsadüfi + Show file name in title Başlıqda fayl adını göstərin + 50% Threshold 50% eşik + Pattern Dither Naxışlı titrəmə + Diffusion Dither Diffuziya Dither + Halftone Screen Yarım ton ekranı + Custom Pattern Fərdi Nümunə + Frequency: Tezlik: + Lines/Inch Xətlər/düym + Lines/Centimeter Xətlər/Santimetr + Ellipse Ellips + Diamond Almaz + Cross Xaç + Accept and Go to Conflict Qəbul edin və Münaqişəyə gedin + Changes undone. Dəyişikliklər geri alındı. + Choose a new shortcut for this command, or leave it without one. Bu əmr üçün yeni qısayol seçin və ya onu olmadan buraxın. + Put this command's shortcuts back as they were Bu əmrin qısa yollarını olduğu kimi geri qoyun + Take the shortcut from the other command and select it Digər komandadan qısa yolu götürün və onu seçin + Undo Changes Dəyişiklikləri geri qaytarın + {shortcut} is reserved by the system and can't be assigned. {shortcut} sistem tərəfindən qorunur və təyin edilə bilməz. + Low-Latency Drawing (vsync off, applies at next launch) Aşağı Gecikmə Rəsmi (vsync söndürülür, növbəti işə salındıqda tətbiq olunur) + Free Transform is still being applied; try again when it has finished. Sərbəst Transformasiya hələ də tətbiq edilir; bitdikdə yenidən cəhd edin. + The transform couldn't be applied. Çevrilmə tətbiq oluna bilmədi. + Its layers need {needed} of GPU memory; the budget leaves them {budget}. Onun qatlari GPU yaddaşının {needed} tələb edir; büdcə onları tərk edir {budget} . + Set GPU Memory in Preferences › Performance to what your graphics card can hold, at most 3/8 of its memory. Automatic follows Memory Usage, within a quarter of this computer's memory and 3/8 of the card's, and doesn't count the document against a card whose memory is known. The status bar shows GPU Memory Full while they don't fit. Üstünlüklərdə GPU Yaddaşını təyin edin › Qrafik kartınızın yaddaşının ən çoxu 3/8-i tuta biləcəyi performans. Avtomatik bu kompüterin yaddaşının dörddə biri və kartın 3/8-i daxilində Yaddaş İstifadəsini izləyir və yaddaşı məlum olan kartla sənədi saymır. Vəziyyət paneli uyğun gəlmədiyi halda GPU Yaddaşının Dolu olduğunu göstərir. + GPU Memory Full GPU yaddaşı doludur + The layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. Qatlara GPU yaddaşının {needed} ehtiyacı var və {budget} tuta bilər, ona görə də bütün sənədi yenidən çəkən redaktələr bunu CPU-da edir. GPU Yaddaşını qurmaq üçün klikləyin. + GPU memory budget: {budget} GPU yaddaş büdcəsi: {budget} + Graphics memory: {size} Qrafik yaddaş: {size} + This document's layers: {needed} of {budget} for layers Bu sənədin qatlari: qatlar üçün {needed} və {budget} + This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Bu sənədin qatlari {needed} tələb edir, lakin {budget} saxlaya bilər: bütün sənədin yenidən çəkilişləri CPU-dan istifadə edir + GPU Memory (MB, 0 = Automatic) GPU yaddaşı (MB, 0 = Avtomatik) + {path}: the path is not valid Unicode; save under another name. {path} : yol etibarlı Unicode deyil; başqa ad altında qeyd edin. + Replace dəyişdirin + {name} was changed by another app after it was opened or saved here. {name} burada açıldıqdan və ya saxlandıqdan sonra başqa proqram tərəfindən dəyişdirildi. + Replace it with this document, or cancel and use File › Save As to keep both. Onu bu sənədlə əvəz edin və ya ləğv edin və hər ikisini saxlamaq üçün Fayl › Fərqli Saxla seçin. + (coming soon) (tezliklə) + (none) (heç biri) + 32-bit Preview Options 32-bit Önizləmə Seçimləri + 3D… 3D… + A: A: + AI Integrations AI inteqrasiyaları + About {app} {app} haqqında + Accented Edges Vurğulanmış kənarlar + Action playback failed: {error} Fəaliyyət oxutma uğursuz oldu: {error} + Actual Pixels Həqiqi piksellər + Add Mask Maska əlavə edin + Add Noise Səs-küy əlavə edin + Add a mask (from the selection; ⌥ inverts) Maska əlavə edin (seçimdən; ⌥ çevirir) + Add space after paragraph Paraqrafdan sonra boşluq əlavə edin + Add space before paragraph Abzasdan əvvəl boşluq əlavə edin + Add to selection (⇧) Seçimə əlavə edin (⇧) + Added swatch {name} {name} nümunəsi əlavə edildi + Adds grain to the soft edges of the brush tip. Fırça ucunun yumşaq kənarlarına taxıl əlavə edir. + Adjust Interval For Loops Döngələr üçün intervalı tənzimləyin + Adjustment Layers Tənzimləmə Layları + Adjustment Properties Tənzimləmə xassələri + Adjustment layers have nothing to transform Tənzimləmə qatlarinin çevriləcək heç nəsi yoxdur + Adobe PDF Presets… Hazır Adobe PDF ayarları… + Adobe-rgb-compat Adobe-rgb-uyğundur + Adwaita (Dark) Adwaita (Qaranlıq) + Adwaita (Light) Adwaita (İşıq) + After Sonra + Airbrush: keeps painting while the pointer rests. Airbrush: göstərici dayanarkən rəngləməyə davam edir. + All shortcuts reset to Photoshop defaults. Bütün qısayollar Photoshop defoltlarına sıfırlanır. + Altitude Hündürlük + Ambience Mühit + Ambient Ətraf mühit + Amplitude Max Amplituda Maks + Amplitude Min Amplituda Min + Android 1080p Android 1080p + Angled Strokes Bucaqlı vuruşlar + Anisotropic Anizotrop + Any İstənilən + Apple Watch 45mm Apple Watch 45 mm + Apply Data Set Məlumat dəstini tətbiq edin + Apply Image Şəkil tətbiq edin + Apply Mask Maska tətbiq edin + Apply to All Hamıya müraciət edin + Apply {option}: {state} {option} tətbiq edin: {state} + Arbitrary Özbaşına + Arc Lower Aşağı Qövs + Arc Upper Üst qövs + Are you sure you want to quit? İşdən çıxmaq istədiyinizə əminsiniz? + Are you sure? Əminsinizmi? + Around Center Mərkəzin ətrafında + Arrangement Aranjıman + Arrows Oxlar + Artboard from Group Qrupdan iş lövhəsi + Artboard from Layers Qatlardan iş lövhəsi + Artboards İş lövhələri + Artboards to Files İş lövhələrindən Fayllara + Artboards to PDF İş lövhələrini PDF-ə ixrac et + Artistic Bədii + Ask On Mismatch Uyğunsuzluğu soruşun + Ask On Missing İtkin haqqında soruşun + Ask On Paste Yapışdırarkən soruş + Assign Profile Profil təyin edin + At At + Author Title Müəllif adı + Auto Scale Avtomatik Ölçək + Auto-Align Layers Qatları Avtomatik Hizalayın + Auto-Blend Layers Qatların avtomatik qarışdırılması + Autosave failed: {error} Avtomatik saxlama uğursuz oldu: {error} + Back Geri + Backend: {backend} ({type}) Arxa tərəf: {backend} ( {type} ) + Background Level Fon Səviyyəsi + Bamboo Bambuk + Bas Relief Bas Relyef + Base Tree Type Əsas ağac növü + Based On əsasında + Baseline shift Baza dəyişikliyi + Basic Latin Əsas Latın + Batch Dəstə + Before Əvvəl + Bend əyilmək + Berries Giləmeyvə + Best Ən yaxşısı + Black Clip Qara Klip + Black Intensity Qara intensivliyi + Blade Curvature Bıçağın əyriliyi + Blast Partlayış + Bleach Bypass Ağardıcı bypass + Blend Clipped Layers as Group Qrup şəklində kəsilmiş qatlari qarışdırın + Blend Interior Effects as Group Daxili Effektləri Qrup olaraq qarışdırın + Blend Text Gamma Mətn qarışdırma qamması + Blending Mode Qarışdırma rejimi + Bloat Şişkinlik + Blocks Bloklar + Blue Yellow Mavi Sarı + Blues Blues + Border Sərhəd + Border Thickness Sərhəd qalınlığı + Box Blur Qutu Bulanıqlığı + Bpc Bpc + Branches Color Budaqların Rəngi + Branches Height Filialların hündürlüyü + Branches Thickness Budaqların qalınlığı + Breeze Dark Qaranlıq meh + Breeze Light Breeze İşıq + Brick Kərpic + Bristle Detail Kıl detalı + Browse Gözdən keçirin + Brush Detail Fırça detalı + Brush Settings… (F5): every option of this brush Fırça Parametrləri... (F5): bu fırçanın hər bir seçimi + Brush Strokes Fırça vuruşları + Brush Type Fırça növü + Burlap Çuval bezi + Calculations Hesablamalar + Camera Raw Kamera Raw + Camera Raw Filter Camera Raw filtri + Cancel transform Çevrilməni ləğv edin + Candle Light Şam işığı + Canvas Size Kətan Ölçüsü + Case Sensitive Hərflərə Həssas + Ccw Ccw + Cell Size Hüceyrə ölçüsü + Center X Mərkəz X + Center Y Mərkəz Y + Chalk Area Təbaşir sahəsi + Change Find Tapmağı dəyişdirin + Changes Saved Dəyişikliklər Saxlandı + Changes have not been saved. Dəyişikliklər yadda saxlanmayıb. + Change… Dəyiş… + Channel1 Kanal 1 + Channel2 Kanal 2 + Channel3 Kanal 3 + Channel4 Kanal 4 + Charcoal Area Kömür sahəsi + Charcoal Thickness Kömür qalınlığı + Check for Updates Yeniləmələri yoxlayın + Checkerboard Dama taxtası + Choke Boğulma + Choose Folder Qovluq seçin + Circle Dairə + Cleanliness Təmizlik + Clear Amount Təmiz məbləğ + Clear Selection Seçimi təmizləyin + Click sets foreground · right-click sets background Ön plana klikləyin · arxa plana sağ klikləyin + Click the first point or press ↵ to close · Esc cancels Birinci nöqtəyə klikləyin və ya bağlamaq üçün ↵ basın · Esc ləğv edir + Click to add a point · drag off or ⌘/Ctrl-click or Delete to remove Nöqtə əlavə etmək üçün klikləyin · kənara çəkin və ya silmək üçün ⌘/Ctrl düyməsini sıxın və ya Sil + Click to apply, ⌥-click to clear overrides, double-click for Style Options Tətbiq etmək üçün klikləyin, ləğvetmələri silmək üçün ⌥-klikləyin, Stil Seçimləri üçün iki dəfə klikləyin + Click to zoom in · ⌥-click to zoom out Böyütmək üçün klikləyin · ⌥-kiçiltmək üçün klikləyin + Click: corner · Drag: smooth · Click first point: close · ↩ finish · Esc cancel Klikləyin: künc · Çək: hamar · Birinci nöqtəyə klikləyin: bağla · ↩ bitir · Esc ləğv + Clipping Mask Kəsmə maskası + Clipping Path… Kəsmə yolu… + Clone Klon + Clone source set at {x}, {y} {x} , {y} -də klon mənbəyi təyin edildi + Close Window Pəncərəni Bağlayın + Clumped Yığılmış + Cmyk Cmyk + Coarse Dots Kobud nöqtələr + Coated-cmyk örtüklü-cmyk + Collapse group (⌥-click: all groups) Qrupu yığcamlaşdırın (⌥ klikləyin: bütün qruplar) + Color Decontaminate Rəngi zərərsizləşdirin + Color Halftone Rəngli Yarımton + Color Indicates Masked Areas Rəng maskalı əraziləri göstərir + Color Indicates Selected Areas Rəng Seçilmiş Sahələri Göstərir + Color Lookup Tables Rəng Axtarış Cədvəlləri + Color Picker Rəng Seçici + Color Picker (Background Color) Rəng Seçici (Arxa Fon Rəngi) + Color Picker (Custom Canvas Color) Rəng Seçici (Fərdi Kətan Rəngi) + Color Picker (Foreground Color) Rəng Seçici (Ön Plan Rəngi) + Color Sampler Tool Rəng nümunəsi aləti + Color Settings Rəng Parametrləri + Color Swatches Rəng nümunələri + Color Table Rəng Cədvəli + Color management: {error} Rəngin idarə edilməsi: {error} + Colored Pencil Rəngli Qələm + Comic Book Komiks + Commit Perspective Warp (↩) Perspektiv deformasiyasını tətbiq et (↩) + Commit Puppet Warp (↩) Kukla deformasiyasını tətbiq et (↩) + Commit any current edits (⌘↩) İstənilən cari redaktə edin (⌘↩) + Commit current crop operation (↵) Cari kəsmə əməliyyatını yerinə yetirin (↵) + Commit transform Transformasiyanı həyata keçirin + Commit transform (↩) Transformasiyaya əməl edin (↩) + Commit warp (↩) Deformasiyanı tətbiq et (↩) + Compare Müqayisə edin + Conditional Mode Change Şərti rejimin dəyişdirilməsi + Confirm Təsdiq edin + Conform Uyğundur + Constraints Məhdudiyyətlər + Content-Aware Fill needs a selection on a pixel layer Məzmundan xəbərdar Doldurma piksel qatında seçim tələb edir + Contrasty Kontrast + Convert Çevir + Convert to Alpha Channel Alfa Kanalına çevirin + Convert to Linked Bağlıya çevirin + Convert to Profile Profilə çevirin + Cool Sərin + Cooling L B B Soyutma L B B + Cooling80 Soyutma80 + Cooling82 Soyutma82 + Copy Complete Stroke Tam Vuruşu Kopyala + Copy Fill Dolduru Kopyala + Copyright Url Müəllif hüququ URL-i + Correct C A Düzgün C A + Correct Distortion Düzgün təhrif + Correct Vignette Düzgün vinyet + Could not rename the action: {error} Fəaliyyətin adını dəyişmək mümkün olmadı: {error} + Could not transform: the layer is empty Transformasiya edilə bilmədi: qat boşdur + Could not use Perspective Warp: the layer is empty Perspektiv Çarpma istifadə edilə bilmədi: qat boşdur + Could not use Puppet Warp: no opaque pixels Kukla Çarpması istifadə edilə bilmədi: qeyri-şəffaf piksel yoxdur + Could not use Puppet Warp: the layer is empty Kukla Çözgü istifadə edilə bilmədi: qat boşdur + Couldn't open {name}: {error} {name} aça bilmədi: {error} + Couldn't save preferences: {error}. Retrying… Tərcihləri saxlamaq mümkün olmadı: {error} . Yenidən cəhd edilir… + Crack Brightness Çat parlaqlığı + Crack Depth Çatların Dərinliyi + Crack Spacing Çatlaq Aralığı + Craquelure Çat effekti + Create By Yarat + Create Vector Mask Vektor maskası yaradın + Create Warped Text Çarpıq mətn yaradın + Create a new layer (⇧⌘N) Yeni qat yaradın (⇧⌘N) + Create new brush from the current settings Cari parametrlərdən yeni fırça yaradın + Create new brush preset from the current settings Cari parametrlərdən yeni fırça ilkin təyinatı yaradın + Create… Yarat… + Cross Process Çarpaz Proses + Crosshatch Qarşılaşma + Crosswise Çarpaz + Crystallize Kristallaşmaq + Currency Valyuta + Curve Darks Əyri Qaranlıqlar + Curve Highlights Əyrinin işıqlı sahələri + Curve Lights Əyri İşıqlar + Curve Shadows Əyri kölgələr + Curve Splits Əyrilərin bölünməsi + Custom Branch Color Xüsusi Filial Rəngi + Custom Pixel Aspect Ratio Fərdi Piksel Aspekt Nisbəti + Custom pattern Fərdi naxış + Cutout Kəsmə + Cw Cw + Cyans Cyans + Cyrillic Kiril əlifbası + Daisies Papatyalar + Dark Gray Tünd Boz + Dark Intensity Qaranlıq İntensivlik + Dark Rough Tünd və nahamar + Dark Strokes Tünd fırça izləri + Darken Only Yalnız Qaranlıq + Darkness Qaranlıq + Data Məlumat + Data Set: {name} ({index}/{total}) Məlumat dəsti: {name} ( {index} / {total} ) + Data Sets as Files Fayllar kimi məlumat dəstləri + Date Tarix + Day For Night Gündüz Gecə + De-Interlace Sətirarası hörülməni aradan qaldır + Decrease Brush Hardness Fırçanın sərtliyini azaldın + Decrease Brush Size Fırçanın ölçüsünü azaldın + Decrease Type Size Növ ölçüsünü azaldın + Decrease Type Size by 10 Tip ölçüsünü 10 azaldın + Deep Dərin + Deep Blue Tünd mavi + Deep Emerald Dərin Zümrüd + Deep Red Tünd Qırmızı + Deep Yellow Tünd Sarı + Default Foreground and Background Colors Defolt Ön və Fon Rəngləri + Default Leaves Defolt yarpaqlar + Default Photoshop Size Defolt Photoshop Ölçüsü + Defaults Standartlar + Define Brush Preset Fırçanın Əvvəlcədən təyinini təyin edin + Define Custom Shape Fərdi Formanı müəyyənləşdirin + Define Pattern Nümunəni müəyyənləşdirin + Definition Tərif + Defringe Məhdudlaşdırma + Degrees Dərəcələr + Delete Channel Kanalı silin + Delete Mask Maskanı silin + Delete Workspace İş yerini silin + Delete brush Fırçanı silin + Delete path Yolu silin + Delete vector mask Vektor maskasını silin + Delete… Sil… + Depth Map Dərinlik xəritəsi + Depth Mode Dərinlik rejimi + Diameter Çap + Diffuse Diffuz + Diffuse Glow Diffuz parıltı + Direction İstiqamət + Direction Balance İstiqamət balansı + Disable Deaktiv edin + Disable Mask Maskanı söndürün + Disable Symmetry Path Simmetriya yolunu deaktiv edin + Disabled Deaktivdir + Discard Changes Dəyişiklikləri ləğv edin + Displace yerdəyişmə + Display Ekran + Display profile not used Ekran profili istifadə edilmir + Display profiles: {reason} Profilləri göstərin: {reason} + Display-p3 Ekran-p3 + Distance Məsafə + Distortion Təhrif + Distribution Paylanma + Do you want to save you made to “{name}” before quitting? İşdən çıxmazdan əvvəl " {name} " üçün etdiyinizi saxlamaq istəyirsiniz? + Document Sizes Sənəd Ölçüləri + Documentation Sənədləşdirmə + Documents Sənədlər + Dont Enlarge Böyütməyin + Dot Nöqtə + Double Line İkiqat xətt + Down Aşağı + Draft Qaralama + Drag a crop box · drag inside to move · edges resize ({ratio} ratio, {centre} centre) · Space moves while drawing · {commit} commits · Esc cancels Kəsmə qutusunu dartın · köçürmək üçün içəri sürükləyin · kənarların ölçüsünü dəyişdirin ( {ratio} nisbəti, {centre} mərkəzi) · Rəsm zamanı boşluq hərəkət edir · {commit} yerinə yetirilir · Esc ləğv edilir + Drag: draw freehand · Release on the start point: close Çək: əllə çəkin · Başlanğıc nöqtəsində buraxın: bağlayın + Driver: {driver} Sürücü: {driver} + Dry Brush Quru Fırça + Duplicate Channel Dublikat Kanal + Duplicate Layers Dublikat qatlar + Duplication Dublikasiya + Dust & Scratches Toz və cızıqlar + Edge Kənar + Edge Brightness Kənar Parlaqlığı + Edge Extension Kənar Uzatma + Edge Fidelity Kənar dəqiqliyi + Edge Intensity Kənarın intensivliyi + Edge Only Yalnız kənar + Edge Simplicity Kənar sadəliyi + Edge Thickness Kənar qalınlığı + Edge Width Kenar eni + Edit Toolbar Alətlər panelini redaktə edin + Edit… Redaktə… + Elevation Yüksəklik + Eliminate aradan qaldırın + Emboss Qabartma + Enable Aktivləşdirin + Enable Mask Maskanı aktivləşdirin + End X X sonu + End Y Son Y + Enlarged Genişləndirilmiş + Erase with Brush or Pencil (hold) Fırça və ya Qələmlə silin (basılı tutun) + Error Xəta + Even Fields Hətta sahələr + Exit Quick Mask Tez Maskadan çıxın + Expand group (⌥-click: all groups) Qrupu genişləndirin (⌥ klikləyin: bütün qruplar) + Export As Fərqli ixrac et + Export As: {name} İxrac: {name} + Export Contents Məzmunu ixrac edin + Export Image Şəkili ixrac edin + Export Options İxrac Seçimləri + Export Preferences İxrac üstünlükləri + Export Settings İxrac Parametrləri + Export to İxrac et + Export/Import Presets Hazır ayarları ixrac/idxal et + Exported contents to {path} {path} -ə məzmun ixrac edildi + Exported presets to {path} Əvvəlcədən təyinlər {path} -ə ixrac edildi + Exported {path} İxrac edilmiş {path} + Exported {path} ({size}) İxrac edilmiş {path} ( {size} ) + Exporting… İxrac olunur… + ExtraBold Çox qalın + ExtraLight Həddindən artıq incə + Extrude Extrude + Fade Solğun + Faded Film Solğun Film + Failed Uğursuz oldu + Failed to open file Faylı açmaq alınmadı + Failed to save file Faylı saxlamaq alınmadı + Fallback: {reason} Geri qayıtma: {reason} + Feather Radius Lələk radiusu + Fiber Length Fiber Uzunluğu + Fibers Liflər + Field Blur Sahə bulanıqlığı + File Format Fayl formatı + File Info Fayl məlumatı + File Name Fayl adı + File Size Fayl ölçüsü + File not found Fayl tapılmadı + Filename Fayl adı + Fill Color Doldurma rəngi + Fill Opacity Şəffaflığı doldurun + Fill Path… Yol doldurun… + Fill path with foreground color Ön plan rəngi ilə yolu doldurun + Fill with Background Color Fon Rəngi ilə Doldurun + Fill with Background Color, Preserve Transparency Fon rəngi ilə doldurun, şəffaflığı qoruyun + Fill with Foreground Color Ön Plan Rəngi ilə Doldurun + Fill with Foreground Color, Preserve Transparency Ön plan rəngi ilə doldurun, şəffaflığı qoruyun + Film Grain Film Taxıl + Filter Gallery Filtr Qalereyası + Find Tap + Find and Replace Text Mətni tapın və dəyişdirin + Fine Yaxşı + Fine Dots İncə nöqtələr + Finish Bitir + Fit Image Şəkli ölçüyə uyğunlaşdır + Fit to Window Pəncərəyə sığdır + Flame Alov + Flame Bottom Alignment Alovun alt hizalanması + Flame Lines Alov xətləri + Flame Shape Alov forması + Flame Style Alov üslubu + Flame Type Alov növü + Flat Düz + Flat Shading Düz kölgələmə + Flower Color Çiçək Rəngi + Focal Distance Fokus məsafəsi + Focus Fokus + Focus Area Fokus sahəsi + Foreground Level Ön plan səviyyəsi + Forward İrəli + Forward Warp İrəli əyilmə + Frame Çərçivə + Frame {current} / {total} Çərçivə {current} / {total} + Free Transform Path Sərbəst Çevrilmə Yolu + Freeze Lasso Kəməndi dondurun + Freeze Mask Dondurma maskası + Fresco Fresk + From Kimdən + From Left Soldan + From Right Sağdan + Frosted Şaxtalı + Full Screen Tam ekran + Fullscreen Tam ekran + Fuzziness Qeyri-səlislik + GPU backend preference: {backend} GPU backend üstünlükləri: {backend} + GPU device was lost; using the CPU renderer. GPU cihazı itirildi; CPU renderindən istifadə etməklə. + GPU error; using the CPU renderer. GPU xətası; CPU renderindən istifadə etməklə. + GPU retry scheduled GPU yenidən cəhdi planlaşdırılıb + Gamma Qamma + Gaussian Blur Qauss bulanıqlığı + General Blending Ümumi qarışdırma + General Brushes Ümumi Fırçalar + Generators Generatorlar + Generic Ümumi + Glass Şüşə + Global Light Qlobal İşıq + Gloss Parıldadıcı + Glow Amount Parıltı miqdarı + Glow Brightness Parlaq Parlaqlıq + Glow Size Parıltı Ölçüsü + Glowing Edges Parıldayan kənarlar + Good Yaxşı + Grade Balance Qiymət balansı + Grade Blending Dərəcə qarışdırma + Grade Global Qlobal dərəcə + Grade Highlights Qiymətləndiricilər + Grade Midtones Orta tonlar + Grade Shadows Dərəcəli Kölgələr + Gradient Options Gradient Seçimləri + Grain Amount Taxıl miqdarı + Grain Roughness Taxıl kobudluğu + Grain Size Taxıl ölçüsü + Grain Type Taxıl növü + Graininess Dənəlik + Grainy Dots Dəli Nöqtələr + Graphics adapter Qrafik adapter + Graphics adapter: {adapter} Qrafik adapter: {adapter} + Gray-gamma-2.2 Boz-qamma-2.2 + Greek Yunan + Greens Yaşıllar + Grid (⌘') Şəbəkə (⌘') + Grid view Şəbəkə görünüşü + Group from Layers Qatlardan qrup + Groups Qruplar + Grout Width Məhlulun eni + Guide Layout… Bələdçi Düzeni… + HDR Toning HDR Tonlama + Hand Tool (hold) Əl aləti (tutma) + Hearts Ürəklər + Heptagon Heptaqon + Hexagon Altıbucaqlı + Hidden Gizli + Hide Grid Şəbəkəni gizlət + Hide Others Başqalarını gizlət + Hide the layer's effects (⌥-click: all layers) Qatın effektlərini gizlədin (⌥ klikləyin: bütün qatlar) + Hide {app} {app} gizlədin + High Pass Yüksək tezlik filtri + Highlight Vurğulayın + Highlight Amount Məbləği vurğulayın + Highlight Area Vurğulama sahəsi + Highlight Radius Vurğulama radiusu + Highlight Strength Gücü vurğulamaq + Highlight Tone Vurğulama Tonu + Highlights from: Əsas məqamlar: + Horizontal Distortion Üfüqi təhrif + Horizontal Only Yalnız Horizontal + Horizontal scale Üfüqi miqyas + Horizontal type Üfüqi tip + Hotspot Qaynar nöqtə + Hsb Hsb + Hsl Hsl + Hsl Hue Hsl Hue + Hsl Lum Hsl Lum + Hsl Sat Hsl Şənbə + Image Balance Şəkil balansı + Image Processor Şəkil prosessoru + Image compositor: {processor} Şəkil tərtibatı: {processor} + Import Brushes Fırçaları idxal edin + Import Brushes… (.abr) Fırçaları idxal edin... (.abr) + Import Image Şəkil idxal edin + Import Options İdxal Seçimləri + Import Photoshop brushes (.abr) Photoshop fırçalarını idxal edin (.abr) + Import Settings İdxal Parametrləri + Importing {what} from {file}… {file} -dən {what} idxal edilir… + Importing… İdxal olunur… + In Black Qara + In White Ağ rəngdə + Increase Brush Hardness Fırçanın sərtliyini artırın + Demosaic Demozaik + 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. Kameranın rəng filtri mozaikası necə doldurulur. Fayl açıldığında tətbiq edilir; önizləmə onun açıldığı metodu göstərir. + AHD (adaptive homogeneity) AHD (adaptiv homojenlik) + Malvar–He–Cutler Malvar – He – Katler + Hirakawa–Parks: the cleanest edges and the least colour fringing, the slowest. Hirakava-Parklar: ən təmiz kənarlar və ən az rəng saçaqlığı, ən yavaşı. + Gradient-corrected interpolation: sharp and fast, with some colour fringing on fine detail. Qradiyentlə düzəldilmiş interpolyasiya: kəskin və sürətli, incə detallarda bəzi rəng saçaqları ilə. + The fastest and the softest, with colour fringing on fine detail. Ən sürətli və ən yumşaq, incə detallarda rəngli saçaqlı. + “{name}” already exists. Replace it? “ {name} ” artıq mövcuddur. Əvəz edilsin? + The name in the save dialog was “{name}”. Saxlama dialoqunda ad “ {name} ” idi. + Move Up Yuxarı hərəkət edin + Move Down Aşağı hərəkət edin + Previous Brush Əvvəlki Fırça + Next Brush Növbəti fırça + First Brush İlk Fırça + Last Brush Son Fırça + Preview size Önizləmə ölçüsü + Memory Usage Yaddaş İstifadəsi + Per-document RAM limit (MB) Sənəd başına RAM limiti (MB) + Installed RAM: {ram} MB; this limit: {percent}% Quraşdırılmış RAM: {ram} MB; bu limit: {percent} % + Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. Hər açıq sənədin piksellərini və Tarixçəni məhdudlaşdırır. Həddini aşdıqda köhnə geri qaytarma halları ləğv edilir. + Applies immediately when saved. Memory is not reserved in advance. Yadda saxlandıqda dərhal tətbiq edilir. Yaddaş əvvəlcədən qorunmur. + With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. GPU Yaddaşının Avtomatik olaraq təyin edilməsi ilə bu, həm də GPU qatsinin büdcəsini məhdudlaşdırır. Bu büdcə quraşdırılmış RAM-ın dörddə biri və məlum olduqda, minimum 512 MB olan qrafik kartının yaddaşının səkkizdə üçü ilə məhdudlaşır. Bu həddi həmin hədlərdən kənara qaldırmaq GPU büdcəsini artırmır. + Command Əmr + Use İstifadə edin + In Front Öndə + Behind Arxada + DDS Options DDS Seçimləri + Compression Sıxılma + Generate Mipmaps Mipmaps yaradın + There is no color table to save. Saxlamaq üçün rəng cədvəli yoxdur. +@plural Saved {n} color to {file}|Saved {n} colors to {file} {file} faylına {n} rəng saxlanıldı|{file} faylına {n} rəng saxlanıldı + GPU adapter GPU adapteri + Import Styles… Üslubları idxal edin… + Export Selected Styles… Seçilmiş Üslubları Eksport edin… + Export Styles… Üslubları ixrac et… + {file} is not a style library (.asl) {file} üslub kitabxanası deyil (.asl) +@plural Imported {n} style from {file}|Imported {n} styles from {file} {file} faylından {n} üslub idxal edildi|{file} faylından {n} üslub idxal edildi +@plural Exported {n} style to {file}|Exported {n} styles to {file} {file} faylına {n} üslub ixrac edildi|{file} faylına {n} üslub ixrac edildi + Confirm or cancel the open action step dialog first Əvvəlcə açıq fəaliyyət addımı dialoqunu təsdiq edin və ya ləğv edin + Pro Medium Gray Pro Orta Boz + Solarized Solarizasiya + Breeze meh + Pro Light Gray Pro Açıq Boz + Pro Light Pro İşıq + Resize Windows to Fit Uyğunlaşdırmaq üçün Windows ölçüsünü dəyişdirin + EXR EXR + Increase Brush Size Fırçanın ölçüsünü artırın + Increase Type Size Növ ölçüsünü artırın + Increase Type Size by 10 Tip ölçüsünü 10 artırın + Indent first line Birinci sətirdən girinti + Indent left margin Sol kənar boşluğu daxil edin + Indent right margin Sağ kənardan girinti + Indexed İndekslənmiş + Infinite Sonsuz + Information Məlumat + Initial Direction İlkin istiqamət + Ink Outlines Mürəkkəb konturları + Inner Bevel Daxili əyilmə + Input Giriş + Input Levels Giriş səviyyələri + Input Mode Giriş rejimi + Install Plug-in Plug-in quraşdırın + Intensity İntensivlik + Intent Niyyət + Interpret Footage Görüntüləri şərh edin + Intersect with selection (⇧⌥) Seçimlə kəsişir (⇧⌥) + Interval Interval + Invalid panel layout; restored the default dock Yanlış panel düzümü; standart dok bərpa etdi + Invert Mask Ters maska + Invert Selection Seçimi ters çevir + Iris Blur İris bulanıqlığı + Ivy Sarmaşıq + Jag Jag + Join the ArtCraft Discord ArtCraft Discord-a qoşulun + Join the ArtCraft Discord ({url}) ArtCraft Discord-a qoşulun ( {url} ) + Keeps the current texture when switching presets. Əvvəlcədən parametrləri dəyişdirərkən cari fakturanı saxlayır. + Kernel Kernel + Kerning: Metrics, Optical or a value in 1/1000 em (Alt+←/→ at the caret) Kerning: Metriklər, Optik və ya 1/1000 em dəyər (Alt+←/→ karetdə) + Keyboard Klaviatura + Lab Laboratoriya + Landscape, 10 x 8 Landşaft, 10 x 8 + Landscape, 6 x 4 Landşaft, 6 x 4 + Landscape, 7 x 5 Landşaft, 7 x 5 + Latin 1 Latın 1 + Latin Extended-A Latın Genişləndirilmiş-A + Latin Extended-B Latın Genişləndirilmiş-B + Layer Comps to Files Qat kompozisiyalarını fayllara ixrac et + Layer Content Options Layer Məzmun Seçimləri + Layer Count Qat sayı + Layer From Background Fondan Layer + Layer Knocks Out Drop Shadow Layer Düşən Kölgədən Çıxarır + Layer Mask Hides Effects Qat maskası effektləri gizlədir + Layer Properties Layer Xüsusiyyətləri + Layer Styles Qat Üslubları + Layer from Background Fondan qat + Layers to Files Qatlardan Fayllara + Layout Düzəldici + Leading (set to the font size × auto-leading when Auto) Aparıcı (Avtomatik olduqda şrift ölçüsünə təyin × avtomatik aparıcı) + Leaf Color Yarpaq Rəngi + Learn More Ətraflı məlumat əldə edin + Leaves Amount Vərəqlərin məbləği + Leaves Color Yarpaqların Rəngi + Leaves Size Yarpaqların ölçüsü + Left Diagonal Sol diaqonal + Legacy Miras + Legal Hüquqi + Lens Blur Obyektiv bulanıqlığı + Lens Correction Lens korreksiyası + Lens Flare Obyektiv parıltısı + Less Daha az + Letter Məktub + Level Based Səviyyəyə əsaslanan + Library Kitabxana + Light Dark Balance Açıq-tünd balansı + Light Direction İşıq istiqaməti + Light Intensity İşıq intensivliyi + Light Rough Yüngül kobud + Light Type İşıq növü + Light X İşıq X + Light Y İşıq Y + Light Z İşıq Z + Lighten Grout Qarışığı yüngülləşdirin + Lighten Only Yalnız işıqlandırın + Lighting İşıqlandırma + Lighting Effects İşıq effektləri + Linear Dodge Xətti işıqlandırma + Linear Height Xətti Hündürlük + Linear-srgb Xətti-srgb + Link Link + Liquify Likvidləşdirin + List Siyahı + List view Siyahı görünüşü + Live Preview Canlı Önizləmə + Load 3D LUT 3D LUT yükləyin + Load Files into Stack Faylları yığına yükləyin + Load path as a selection Seçim kimi yolu yükləyin + Loading… Yüklənir… + Lock All Hamısını Kilidləyin + Lock Image Pixels Şəkil piksellərini kilidləyin + Lock Position Kilid mövqeyi + Lock Transparent Pixels Şəffaf pikselləri kilidləyin + Locked Bağlanıb + Long Lines Uzun xətlər + Long Strokes Uzun vuruşlar + Lorem Ipsum Lorem Ipsum + Lower Aşağı + Lum Lum + Lut Lut + Magentas Macenta + Make Selection from Path Yoldan seçim edin + Make Selection… Seçim edin… + Make Symmetry Path Simmetriya yolunu düzəldin + Make Work Path… İş Yolunu Yarat… + Make work path from selection Seçimdən iş yolunu düzəldin + Manual Təlimat + Map Document Xəritə sənədi + Map Layer Xəritə Layeri + Map Path Xəritə yolu + Mask Channel Maska kanalı + Mask Incomplete Blocks Natamam blokları maska + Mask None Maska Yoxdur + Masks Maskalar + Match Color Uyğun Rəng + Math Symbols Riyaziyyat simvolları + Max Offset Maks ofset + Max Radius Maks Radius + Measurement Scale Ölçmə Şkalası + Measurement Scale Marker Ölçmə Şkalasının Markeri + Medium Dots Orta Nöqtələr + Medium Gray Orta Boz + Medium Lines Orta xətlər + Medium Strokes Orta Vuruşlar + Merge Channels… Kanalları birləşdirin… + Merge Spot Channel Xüsusi rəng kanalını birləşdir + Merge to HDR Pro HDR Pro ilə birləşdirin + Metallic Metalik + Metrics Metriklər + Mezzotint Metsotinto + Middle Orta + Midtone Orta ton + Monitor Profile Monitor Profili + Monitor profile in use on {display}: {profile} {display} -də istifadə olunan monitor profili: {profile} + Monitor profile in use: {profile} İstifadə olunan monitor profili: {profile} + Monitor profile on {display} (main window): {profile} {display} -də monitor profili (əsas pəncərə): {profile} + Monitor profile on {display}: {profile} {display} -də monitor profili: {profile} + Monitor profile: {profile} Monitor profili: {profile} + Mono Contrast Mono Kontrast + Monochromatic Monoxromatik + More Daha çox + Mosaic Mozaika + Mosaic Tiles Mozaika plitələr + Motion Blur Hərəkət bulanıqlığı + Mouse Siçan + Move Layer Layeri köçürün + Movie Prime Baş film + Multiple Flames Along Path Yol boyu birdən çox alov + Multiple Flames One Direction Bir İstiqamətdə Çoxlu Alov + Multiple Flames Path Directions Çoxlu Alov Yol İstiqamətləri + Multiple Flames Various Length Çoxlu Alov Müxtəlif Uzunluqda + My Brushes Fırçalarım + Native file drag-and-drop is not supported on Wayland yet. Use File › Open, or run PhotoCraft under XWayland with `WAYLAND_DISPLAY= photocraft`. Doğma faylı sürükləyib buraxma hələ Wayland-da dəstəklənmir. Fayldan istifadə edin › Açın və ya PhotoCraft -ni XWayland altında `WAYLAND_DISPLAY= photocraft` ilə işlədin. + Nearest Ən yaxın + Neon Glow Neon parıltısı + Neutralize Zərərsizləşdirin + Neutrals neytrallar + New Brush Preset Yeni Fırça Əvvəlcədən + New Channel… Yeni Kanal… + New Guide Yeni Bələdçi + New Guide Layout Yeni Bələdçi Layout + New Spot Channel… Yeni Spot Kanal… + New Video Layer from File Fayldan Yeni Video Layer + New Window Yeni Pəncərə + New Workspace Yeni İş sahəsi + New document Yeni sənəd + New document… Yeni sənəd… + New document… ⌘N Yeni sənəd... ⌘N + Next Sonrakı + No Document Sənəd yoxdur + No Image Şəkil yoxdur + No Layers Laylar yoxdur + No Results Nəticə yoxdur + No Results Found Nəticə tapılmadı + No Selection Seçim yoxdur + No custom shape "{name}": pick one in the options bar or Window › Shapes " {name} " fərdi forması yoxdur: seçimlər panelindən və ya Pəncərədən birini seçin › Formalar + No layers Qat yoxdur + No recent files Son fayllar yoxdur + No selection Seçim yoxdur + Noise Color Səs Rəngi + Noise Color Detail Rəng küyünün təfərrüatı + Noise Luminance Səs-küy parlaqlığı + Noise Luminance Detail Səs-küy Parlaqlığı Təfərrüatı + Nothing to Redo Yenidən etmək üçün heç nə yoxdur + Nothing to Undo Geri qaytarılası heç nə yoxdur + Nothing to paste: the clipboard holds no image Yapışdırılacaq heç nə yoxdur: mübadilə buferində heç bir şəkil yoxdur + Number Of Levels Səviyyələrin sayı + Numbers Nömrələr + Ocean Ripple Okean dalğalanması + Octagon səkkizbucaqlı + Odd Fields Qəribə sahələr + Oil Paint Yağlı boya + On Aktivdir + One Flame Along Path Yol boyu bir alov + Open As Açın + Open File Faylı açın + Open Folder Qovluğu açın + Open Image Şəkili açın + Open Recent is unavailable on the web Açıq Sonlar internetdə mövcud deyil + Opened {url} {url} açıldı + Opening Açılış + Open… ⌘O Açıq… ⌘O + Operation canceled Əməliyyat ləğv edildi + Operation cancelled Əməliyyat ləğv edildi + Operation completed Əməliyyat tamamlandı + Operation failed Əməliyyat uğursuz oldu + Optical Optik + Original Ratio Orijinal nisbət + Out Black Çıxış qarası + Out From Center Mərkəzdən kənarda + Out Of Gamut Rəng əhatəsindən kənar + Out White Ağdan çıxdı + Out of memory Yaddaş tükəndi + Outer Bevel Xarici əyilmə + Output Levels Çıxış Səviyyələri + Oval Oval + Overlay Edge Üst-üstə düşmə kənarı + Overlay: Rule of Thirds Üst-üstə düşmə: Üçüncülərin Qaydası + PSD PSD + Package Paket + Page Setup… Səhifə Quraşdırma… + Paint Daubs Boya yaxmaları + Paints from the document's opening state Sənədin açılış vəziyyətindən olan boyalar + Palette Knife Palitra Bıçağı + Panel Panel + Paper Kağız + Paper Brightness Kağız Parlaqlığı + Parallel Paralel + Paste Complete Stroke Tam fırça izini yapışdır + Paste Fill Doldurmağı Yapışdırın + Patchwork Yamaq işi + Path Blur Yol Bulanıqlığı + Paths to Illustrator Illustrator-a gedən yollar + Pattern Fill… Nümunə Doldur… + Pattern Type Nümunə Növü + Pencil Width Qələm eni + Pentagon Pentaqon + Percentage Faiz + Permission denied İcazə rədd edildi + PhotoCraft keeps retrying; until a save succeeds, preference changes are lost when it closes. PhotoCraft yenidən cəhd etməyə davam edir; saxlama müvəffəqiyyətli olana qədər, bağlandıqda üstünlük dəyişiklikləri itirilir. + Photomerge Foto birləşdirin + Pick Color From Image Şəkildən Rəng Seçin + Picture Frame Şəkil çərçivəsi + Pillow Emboss Yastıq Qabartma + Pinch Çimdik + Pins Sancaqlar + Place Embedded Daxil edilmiş yer + Place Linked Əlaqələndirilmiş yer + Place Scale Marker Yer Ölçüsü Markeri + Plane Təyyarə + Planes Təyyarələr + Plastic Wrap Plastik Qapaq + Platform: {os} {arch} Platforma: {os} {arch} + Please wait… Zəhmət olmasa gözləyin… + Point Nöqtə + Point Curve Nöqtə əyrisi + Point Curve Blue Mavi nöqtə əyrisi + Point Curve Green Nöqtə Əyri Yaşıl + Point Curve Red Nöqtə əyrisi Qırmızı + Pointed İşarələnmiş + Pointillize Pointilizasiya + Polar Coordinates Qütb koordinatları + Polar To Rectangular Qütbdən Düzbucaqlıya + Policy Cmyk Siyasət Cmyk + Policy Gray Siyasət Boz + Policy Rgb Siyasət Rgb + Pond Ripples Gölməçə dalğaları + Portrait, 4 x 6 Portret, 4 x 6 + Portrait, 5 x 7 Portret, 5 x 7 + Postcard Açıqca + Poster Poster + Poster Edges Afişanın kənarları + Posterization Posterləşdirmə + Preferences can't be saved Tərcihləri yadda saxlamaq mümkün deyil + Preferences saved Tercihlər yadda saxlanıldı + Preferences were reset: {error} Tercihlər sıfırlandı: {error} + Preferences… Tərcihlər… + Preserve Qoruyucu + Preset Manager Əvvəlcədən təyin edilmiş menecer + Press keys Düymələr basın + Preview Image Şəklin önizləməsi + Previous Əvvəlki + Prime105 Prime105 + Prime35 Prime35 + Printed to {path} {path} -ə çap edilib + Pro (Dark) Pro (Qaranlıq) + Pro (Medium Gray) Pro (Orta Boz) + Processing… Emal edilir… + Profile Profil + Proof Setup… Sübut Quraşdırma… + Prophoto-compat Profoto uyğunluğu + Pucker Pucker + Push Left Sola basın + Pyramids Piramidalar + Quick Actions Sürətli hərəkətlər + Quit Çıxın + Quit PhotoCraft PhotoCraft -dən çıxın + Quit {app} {app} -dən çıxın + R G B RGB + R g b R g b + Radial Radial + Radial Blur Radial Bulanıqlıq + Radius X Radius X + Radius Y Radius Y + Ran script {name} İşlənmiş skript {name} + Randomize Length Uzunluğu təsadüfiləşdir + Randomize Shapes Formaları təsadüfiləşdirin + Rasterize Fill Content Doldurma Məzmunu Rasterləşdirin + Rasterize Smart Object Ağıllı obyekti rasterləşdirin + Ratio Nisbət + Raw Defaults Xam defoltlar + Reading Oxumaq + Ready Hazırdır + Rec2020 Rec2020 + Recent Files Son Fayllar + Reconstruct All Hamısını yenidən qurun + Recovered {name} {name} bərpa edildi + Rectangular Selection Düzbucaqlı Seçim + Rectangular To Polar Düzbucaqlıdan Qütbə + Red Cyan Qırmızı Cyan + Reds Qırmızılar + Reduce Color Noise Rəng səsini azaldın + Reduce Noise Səs-küyü azaldın + Reflected əks olundu + Relief Relyef + Relink to File Fayla yenidən keçid + Remove All Hamısını Sil + Remove Jpeg Artifact Jpeg artefaktını silin + Rename Brush Fırçanın adını dəyişdirin + Rename Channel… Kanalın adını dəyişin… + Rename Group Qrupun adını dəyişin + Rename Tool Preset Alətin Əvvəlcədən Adını dəyişdirin + Render Video Videonu göstərin + Rendering… Render edilir… + Reorder Layer Layeri yenidən sıralayın + Replace Color Rəngi dəyişdirin + Replace Contents Məzmunu dəyişdirin + Replace Footage Görüntüləri dəyişdirin + Report a Bug Səhv haqqında məlumat verin + Report an Issue Problemi bildirin + Reset Alignment Hizalanmanı Sıfırlayın + Reset All Hamısını sıfırlayın + Reset Preferences Tercihləri sıfırlayın + Resolve Missing Fonts Çatışmayan şriftləri həll edin + Restart Yenidən başladın + Restart Required Yenidən başlatma tələb olunur + Resume CV + Retry Yenidən cəhd edin + Rgb Rgb + Ridges Silsilələr + Right Diagonal Sağ diaqonal + Ripple Dalğalanma + Ripple Magnitude Dalğalanma miqyası + Ripple Size Dalğalanma Ölçüsü + Rope İp + Roses Güllər + Rough Pastels Kobud pastellər + Row Order Sıra sırası + Rulers (⌘R) Xətkeşlər (⌘R) + Sample Size Nümunə ölçüsü + Sampled Colors Nümunələnmiş Rənglər + Sandstone Qumdaşı + Sat Şənbə + Save As Saxla + Save Changes Dəyişiklikləri Saxla + Save File Faylı Saxla + Save Image Şəkli Saxla + Save Path Yolu Saxla + Save Pixel Aspect Ratio Piksel Aspekt Nisbətini Saxla + Save a Copy Surəti saxla + Save before closing? Bağlamadan əvvəl yadda saxla? + Save for Web (Legacy) Veb üçün Saxla (Legacy) + Save your work and restart PhotoCraft to retry GPU acceleration. CPU rendering remains active for this session. GPU sürətləndirilməsini yenidən sınamaq üçün işinizi yadda saxlayın və PhotoCraft -i yenidən başladın. CPU göstərilməsi bu sessiya üçün aktiv olaraq qalır. + Saved a copy as {path} Bir nüsxə {path} olaraq yadda saxlanıldı + Saved {path}; image assets: {n} in {dir} Saxlanmış {path} ; şəkil aktivləri: {dir} -də {n} + Saving… Yadda saxlanılır… + Scale Effects Ölçək effektləri + Scaling Ölçəkləmə + Scallops Tarak + Script Events Manager Skript Hadisələri Meneceri + Scroll menu down Menyunu aşağı sürüşdürün + Scroll menu up Menyu yuxarı sürüşdürün + Search commands Axtarış əmrləri + Search commands (⌘K) Axtarış əmrləri (⌘K) + Search commands, tools and panels Axtarış əmrləri, alətlər və panellər + Search menus Menyuları axtarın + Seed Toxum + Select Custom Color… Fərdi Rəng seçin… + Select Data Points Məlumat nöqtələrini seçin + Select Layer Layer seçin + Select and Mask Seç və Maska + Color Aware Rəngdən xəbərdar + Decontaminate Colors Rəngləri zərərsizləşdirin + Edge Detection Kənarın aşkarlanması + Global Refinements Qlobal Təkmilləşdirmələr + High Quality Preview Yüksək Keyfiyyətli Baxış + Object Aware Obyektdən xəbərdardır + Object Aware needs a segmentation model, which isn't available yet Object Aware üçün hələ mövcud olmayan seqmentləşdirmə modelinə ehtiyac var + Real-Time Refinement Real Zamanda Təkmilləşdirmə + Refine Edge Brush Tool Kənar Fırça Alətini Təkmilləşdirin + Refine Hair Saçları zərifləşdirin + Refine Hair needs hair detection, which isn't available yet Refine Hair üçün saç aşkarlanması lazımdır, bu hələ mövcud deyil + Refine Mode Dəqiqləşdirmə rejimi + Select and Mask was closed: another layer was selected Seçin və Maska bağlandı: başqa qat seçildi + Select and Mask was closed: its document is no longer the active one Seçin və Maska bağlandı: onun sənədi artıq aktiv deyil + View Mode Baxış rejimi + Selected at launch: {backend} Başlanğıcda seçildi: {backend} + SemiBold Yarı Qalın + Sensitivity Həssaslıq + Sent to the printer ({spooler}) Printerə göndərildi ( {spooler} ) + Sepia Sepiya + Services Xidmətlər + Set Colors Rəngləri təyin edin + Set Measurement Scale Ölçmə Şkalasını təyin edin + Sgray Boz + Shadow Kölgə + Shadow Amount Kölgə məbləği + Shadow Intensity Kölgə intensivliyi + Shadow Radius Kölgə radiusu + Shadow Tone Kölgə Tonu + Shadows up to: Kölgələr: + Shadows/Highlights Kölgələr/Vurğular + Shallow Dayaz + Shape Blur Fiqur bulanıqlığı + Sharpen Amount Məbləği kəskinləşdirin + Sharpen Detail Təfərrüatı kəskinləşdirin + Sharpen Details Təfərrüatları kəskinləşdirin + Sharpen Masking Maskanı kəskinləşdirin + Sharpen Radius Radiusu kəskinləşdirin + Shear Kəsmə + Shine Parıldamaq + Short Lines Qısa xətlər + Short Strokes Qısa vuruşlar + Shortcut Qısa yol + Shortcuts Qısa yollar + Show All Hamısını göstər + Show Extras Options Əlavə seçimləri göstərin + Show Guides Bələdçiləri göstərin + Show Guides (⌘;) Bələdçiləri göstər (⌘;) + Show Rulers Xətkeşlərı göstərin + Show the layer's effects (⌥-click: all layers) Qatın effektlərini göstərin (⌥-klikləyin: bütün qatlar) + Simple Sadə + Simulate Paper Kağızı simulyasiya edin + Sine Sinus + Sketch Eskiz + Skip Keçin + Slice Options Dilim Seçimləri + Smart Blur Ağıllı Bulanıqlıq + Smart Sharpen Ağıllı kəskinləşdirmə + Smoothness Hamarlıq + Smudge Stick Yayma çubuğu + Snap to Grid Tora yapışdır + Snowflakes Qar dənəcikləri + Soften Yumşaldın + Softness Yumşaqlıq + Software adapter Proqram təminatı adapteri + Solarized Dark Günəşləşdirilmiş Qaranlıq + Solid Color Bərk Rəng + Solid Front Faces Bərk Ön Üzlər + Source Channel Mənbə Kanalı + Source Invert Mənbə Çevir + Source Layer Mənbə qatı + Source1 Channel Mənbə 1 Kanalı + Source1 Invert Mənbə1 Tərs + Source2 Channel Mənbə 2 Kanalı + Source2 Invert Mənbə2 Çevir + Source: set Mənbə: set + Space Kosmos + Sparkle Parıldamaq + Spatter Sıçrayış + Speckle Ləkə + Speed Sürət + Spherize Kürələşdir + Spin Spin + Spin Blur Fırlanma bulanıqlığı + Split Channels Bölünmüş Kanallar + Spot Spot + Spray Radius Sprey radiusu + Sprayed Strokes Püskürən fırça izləri + Spread Yayılma + Sprinkles səpilir + Square Size Kvadrat ölçüsü + Square, 12 x 12 Kvadrat, 12 x 12 + Square, 5 x 5 Kvadrat, 5 x 5 + Squareness Kvadratlıq + Stagger səndələmək + Stained Glass Vitraj + Star Ulduz + Stars Ulduzlar + Start X X-ə başlayın + Start Y Y ilə başlayın + Statistics Statistika + Step {step} ({id}) failed: {error} {step} ({id}) addımı alınmadı: {error} + Stippled Kəsik + Stops Dayanır + Strength Güc + Stretch Uzatma + Stroke Color Kontur rəngi + Stroke Detail Vuruş detalı + Stroke Direction Fırça izinin istiqaməti + Stroke Length Vuruş Uzunluğu + Stroke Pressure vuruş təzyiqi + Stroke Size Vuruş Ölçüsü + Stroke Width Kontur qalınlığı + Stroke path with brush Fırça ilə vuruş yolu + Strokes Fırça izləri + Studio (Dark) Studiya (Qaranlıq) + Studio (Light) Studiya (İşıq) + Stylization Stilizasiya + Subtract Shapes at Overlap Üst-üstə düşən formaları çıxarın + Subtract from selection (⌥) Seçimdən çıxın (⌥) + Sumi-e Sumi-e + Surface Blur Səth bulanıqlığı + Switch Foreground and Background Colors Ön və arxa plan rənglərini dəyiş + System Info Sistem məlumatları + Tablet Tablet + Tabloid Tabloid + Taper Konik + Target Hədəf + Target Channel 3 Hədəf Kanal 3 + Target Channel 4 Hədəf Kanal 4 + Target Channel 5 Hədəf Kanal 5 + Target Channel 6 Hədəf Kanal 6 + Target Channel 7 Hədəf Kanal 7 + Target Channel 8 Hədəf Kanal 8 + Target Channel 9 Hədəf kanal 9 + Target Composite Channel Hədəf kompozit kanal + Target X Hədəf X + Target Y Hədəf Y + Teal Orange Mavi-yaşıl və narıncı + Technology Previews… Texnologiya önbaxışları… + Temporary Müvəqqəti + Text Layer Mətn qatı + Texture Coverage Tekstura örtüyü + Texturizer Teksturalaşdırma + Thaw Mask Maskanı ərit + The canvas is shown as sRGB. Choose a monitor profile in Edit › Color Settings. Kətan sRGB kimi göstərilir. Redaktə › Rəng parametrləri bölməsində monitor profili seçin. + The canvas on {display} is shown as sRGB. Choose a monitor profile in Edit › Color Settings. {display} üzərindəki kətan sRGB olaraq göstərilir. Redaktə ›Rəng Parametrlərində monitor profili seçin. + The current gradient (pick one in Window › Gradients) Cari qradiyent (Pəncərə › Qradientlərdən birini seçin) + The document does not have an embedded colour profile. Working space: {working}. Sənədin daxili rəng profili yoxdur. İş sahəsi: {working}. + The document has an embedded colour profile that does not match the working space.\nEmbedded: {embedded}\nWorking: {working} Sənədin daxili rəng profili iş rəng məkanına uyğun gəlmir.\nDaxili: {embedded}\nİş rəng məkanı: {working} + The file could not be opened. Faylı açmaq mümkün olmadı. + The file could not be saved. Faylı saxlamaq mümkün olmadı. + Thickness Qalınlıq + This Layer: Bu qat: + This Smart Object must be rasterized before proceeding. Its contents will no longer be editable. Rasterize the Smart Object? Bu Ağıllı Obyekt davam etməzdən əvvəl rasterləşdirilməlidir. Onun məzmunu artıq redaktə edilə bilməyəcək. Ağıllı Obyekt rasterləşdirilsin? + This adjustment ({key}) is kept as imported and can't be edited yet. Bu tənzimləmə ({key}) idxal edilmiş kimi saxlanılır və hələ redaktə edilə bilməz. + This fill layer must be rasterized before proceeding. Its fill content will no longer be editable. Rasterize the layer? Davam etməzdən əvvəl bu doldurma qatsi rasterləşdirilməlidir. Onun doldurma məzmunu artıq redaktə edilə bilməyəcək. Qat rasterləşdirilsin? + This layer must be rasterized before proceeding. Davam etməzdən əvvəl bu qat rasterləşdirilməlidir. + This session: {reason} Bu sessiya: {reason} + This shape layer must be rasterized before proceeding. It will no longer be editable as a shape. Rasterize the shape? Davam etməzdən əvvəl bu forma qatsi rasterləşdirilməlidir. O, artıq forma kimi redaktə edilə bilməyəcək. Forma rasterləşdirilsin? + This type layer must be rasterized before proceeding. Its text will no longer be editable. Rasterize the type? Bu tip qat davam etməzdən əvvəl rasterləşdirilməlidir. Onun mətni artıq redaktə edilə bilməyəcək. Növü rasterləşdirin? + Tile Size Kafel ölçüsü + Tiles Kafel + Tilt-Shift Meyil-sürüşmə + Tint Color Rəng Rəngi + Tiny Lens Kiçik obyektiv + Title Başlıq + To Kimə + To Center Mərkəzə + Toggle Layer Mask Overlay Qat maskası örtüyünü dəyişdirin + Toggle the Brush Settings panel Fırça Parametrləri panelini dəyişin + Toggle the Brush Settings panel (F5) Fırça Parametrləri panelini dəyişin (F5) + Tool Options Alət Seçimləri + Trace Contour Kontur İzi + Tracking (1/1000 em) İzləmə (1/1000 em) + Transformation Transformasiya + Transition Keçid + Transparency Shapes Layer Şəffaflıq Formaları Layeri + Trap Tələ + Tree Ağac + Trim Kəsmə + Turbulent Burulğanlı + Twirl Burulma + Twirl Clockwise Saat əqrəbinə çevirin + Twirl Counterclockwise Saat əqrəbinin əksinə çevirin + Type Options Növ Seçimləri + Unaltered Dəyişməmiş + Undefined Areas Müəyyən edilməmiş ərazilər + Underlying Layer: Əsas qat: + Underpainting Alt rəngləmə + Underwater Sualtı + Ungroup Qrupu ayırın + Uniform Uniforma + Unite Shapes at Overlap Üst-üstə düşən formaları birləşdirin + Unlink Bağlantını kəsin + Unlock Kilidi açın + Unlocked Kilidi açılıb + Unsaved Changes Saxlanmamış Dəyişikliklər + Unsharp Mask Kəskin olmayan maska + Unsupported file format Dəstəklənməyən fayl formatı + Unsupported format Dəstəklənməyən format + Up Yuxarı + Update Yeniləmə + Updates Yeniləmələr + Upper Yuxarı + Use Custom Color Xüsusi Rəngdən istifadə edin + Use File › Open to open an image. Şəkli açmaq üçün Fayl ›Aç seçimindən istifadə edin. + Use Selection In Source Mənbədə Seçimdən istifadə edin + Use Selection In Target Hədəfdə Seçimdən istifadə edin + Uses the foreground and background colors. Ön və arxa fon rənglərindən istifadə edir. + Vanishing Point Ufuq nöqtəsi + Variable Data Sets Dəyişən məlumat dəstləri + Vector Mask Hides Effects Vektor maskası effektləri gizlədir + Vertical Distortion Şaquli Təhrif + Vertical Only Yalnız Şaquli + Vertical Type Tool Şaquli mətn aləti + Vertical scale Şaquli miqyas + Vertical type Şaquli tip + Video Frames to Layers Video Çərçivələrdən Laylara + Vignette Amount Vignette məbləği + Vignette Feather Vignette Lələk + Vignette Highlights Vinyetin işıqlı sahələri + Vignette Midpoint Vinyetin orta nöqtəsi + Vignette Roundness Vignette yuvarlaqlığı + Vignette Style Vignette Stili + Vine Color Üzüm tənəyi rəngi + Vine With Flowers Çiçəkli Üzüm + Vine With Leaves Yarpaqlı üzüm + Violent Zorakılıq + W: W: + WIA Support WIA dəstəyi + Warm İsti + Warming Filter (85) İstiləşmə filtri (85) + Warming L B A İstiləşmə L B A + Warming81 İstiləşmə81 + Warming85 İstiləşmə85 + Warmth İstilik + Warning Xəbərdarlıq + Warp Text Çarpma mətni + Watercolor Akvarel + Watercolour look: lighter interior, darker rims. Akvarel görünüşü: daha yüngül salon, daha tünd təkərlər. + Wavelength Max Dalğa Uzunluğu Maks + Wavelength Min Dalğa Uzunluğu Min + Waves Dalğalar + Web Large Veb üçün böyük + Web Minimum Veb üçün minimum + Web Most Common Ən çox yayılmış İnternet + WebP (lossless) WebP (itkisiz) + Wetness Nəmlik + White Clip Ağ Klip + White Intensity Ağ intensivliyi + White Is High Ağ yüksəkdir + Whole Word Bütün söz + Wide Blurry Geniş Bulanıqlıq + Wide Sharp Geniş və kəskin + Wind Külək + Window renderer: {renderer} Pəncərə rendereri: {renderer} + Working İşləyir + Working Cmyk İşləyən Cmyk + Working Gray İşləyən Boz + Working Rgb İşləyən Rgb + Working-cmyk İşləyən-cmyk + Workspaces İş yerləri + Wrap Sarın + Yellows Sarılar + ZigZag ZiqZaq + Zigzag Ziqzaq + Zoom In (hold, drag to scrub) Böyüt (baxıb saxlayın, ovuşdurmaq üçün dartın) + Zoom Out (hold) Uzaqlaşdırın (basılı tutun) + auto avtomatik + blue mavi + brushes fırçalar + fallback geri dönüş + gradients gradientlər + gray boz + green yaşıl + layer mask qat maskası + manual təlimat + none yoxdur + off söndürülür + on açıq + orange narıncı + previous reading kept; the last re-read failed: {reason} əvvəlki oxu saxlanılır; sonuncu təkrar oxumaq alınmadı: {reason} + red qırmızı + unknown naməlum + unknown type naməlum növ + vector mask vektor maskası + violet bənövşəyi + yellow sarı + {index} of {total} {index} və {total} + {label} is not available: {reason} {label} mövcud deyil: {reason} + {message} (notes: {n}; {warning}) {message} (qeydlər: {n}; {warning}) + {shortcut} assigned. {shortcut} təyin edildi. + {shortcut} is already in use by {commands} and will be removed from it when you click OK. {shortcut} artıq {commands} tərəfindən istifadə olunur və OK düyməsini kliklədiyiniz zaman ondan silinəcək. + {verb} {mask} {layer} {verb} {mask} {layer} + ↑↓ navigate ↵ run esc close ↑↓ naviqasiya ↵ esc-i yaxından işə salın + ✓ Color Indicates Masked Areas ✓ Rəng Maskalı Sahələri Göstərir + ✓ Color Indicates Selected Areas ✓ Rəng Seçilmiş Sahələri Göstərir +@id edit.clear Təmizlə +@id edit.purge.undo Geri al +@id edit.stroke Kontur çək… +@id edit.transform.scale Miqyas +@id file.close Bağla +@id filter.sharpen.sharpen Kəskinləşdir +@id layer.layerMask.apply Tətbiq et +@id select.all Hamısı +@plural Imported {n} brush from {file}|Imported {n} brushes from {file} {file} faylından {n} fırça idxal edildi|{file} faylından {n} fırça idxal edildi +@plural Imported {n} gradient from {file}|Imported {n} gradients from {file} {file} faylından {n} qradient idxal edildi|{file} faylından {n} qradient idxal edildi +@plural Imported {n} pattern from {file}|Imported {n} patterns from {file} {file} faylından {n} naxış idxal edildi|{file} faylından {n} naxış idxal edildi +cameraRaw Balance Balans +cameraRaw Clarity Aydınlıq +cameraRaw Color Rəng +cameraRaw Color Mixer Rəng qarışdırıcı +cameraRaw Contrast Kontrast +cameraRaw Curve Əyri +cameraRaw Dehaze Dumanı aradan qaldırma +cameraRaw Detail Təfərrüat +cameraRaw Effects Effects +cameraRaw Exposure Ekspozisiya +cameraRaw Feather Kənar yumşaltma +cameraRaw Highlights İşıqlı sahələr +cameraRaw Luminance Parlaqlıq +cameraRaw Masking Maskalama +cameraRaw Midpoint Orta nöqtə +cameraRaw Midtones Orta tonlar +cameraRaw Radius Radius +cameraRaw Roundness Dairəvilik +cameraRaw Saturation Doyma +cameraRaw Shadows Kölgələr +cameraRaw Size Ölçü +cameraRaw Temperature Temperatur +cameraRaw Texture Tekstura +cameraRaw Tint Çalar +cameraRaw Whites Ağ sahələr +colorRange Invert Seçimi tərsinə çevir +document Orientation İstiqamət +layerLabel Magenta Macenta +layerLabel No Color Rəngsiz +layerLabel Red Qırmızı +layers Fill Doldurma +layers Fill: Doldurma: +navigator Zoom Miqyas +shape Appearance Görünüş + Automatic paragraph direction Avtomatik paraqraf istiqaməti + Left-to-right paragraph direction Soldan sağa paraqraf istiqaməti + Right-to-left paragraph direction Sağdan sola paraqraf istiqaməti + Not rendered: this adjustment ({key}) is kept as imported. Göstərilmədi: bu düzəliş ({key}) idxal edilmiş kimi saxlanılır. + Print preview image Önizləmə şəklini çap edin + Hue Cube Hue Cube + Brightness Cube Parlaqlıq kubu + Color Wheel Rəng çarxı + RGB Sliders RGB Sürgüləri + HSB Sliders HSB Sürgüləri + CMYK Sliders CMYK Sürgüləri + Lab Sliders Laboratoriya Sürgüləri + Web Color Sliders Veb Rəng Sürgüləri + Copy Color as HTML Rəngi HTML olaraq kopyalayın + Copy Color's Hex Code Rəngin Hex Kodunu kopyalayın + RGB Spectrum RGB Spektr + CMYK Spectrum CMYK Spektr + Grayscale Ramp Boz rəng enişi + Current Colors Cari Rənglər + Make Ramp Web Safe Ramp Web Təhlükəsiz olun + Art History Brush Tool Bədii tarixçə fırçası aləti + Tight Short Sıx və qısa + Tight Medium Sıx Orta + Tight Long Sıx uzun + Loose Medium Boş orta + Loose Long Seyrək və uzun + Dab Dab + Tight Curl Sıx buruq + Loose Curl Boş Qıvrım + Stylized dabs from a history state Tarixi vəziyyətdən stilizə edilmiş dablar + Font size presets Şrift ölçüsünün əvvəlcədən təyin edilməsi + Leading presets Aparıcı əvvəlcədən təyinlər + Tracking presets İlkin parametrləri izləmək + CPU Rendering CPU göstərilməsi + Calculating… Hesablanır… + Click to refresh histogram with uncached data Keşlənməmiş verilənlərlə histoqramı yeniləmək üçün klikləyin + Convert to Shape… Formaya çevir… + Cooling Filter (80) Soyutma filtri (80) + Cooling Filter (82) Soyuducu filtr (82) + Cooling Filter (LBB) Soyuducu Filtr (LBB) + Count: Sayı: + Delete Hidden Layers Gizli qatlari silin + Drag on the image to add a constraint; Shift for horizontal/vertical; right-click to delete. Məhdudiyyət əlavə etmək üçün şəklin üzərinə çəkin; Üfüqi/şaquli üçün keçid; silmək üçün sağ klikləyin. + Drawn on the CPU: {reason}. Click for System Info. CPU üzərində çəkilmişdir: {reason}. Sistem Məlumatı üçün klikləyin. + Exported {n} files İxrac edilmiş {n} faylları + Fit Layer on Screen Layeri ekrana uyğunlaşdırın + Flow: Axın: + Level: Səviyyə: + Percentile: Faiz: + Refine Edge… Kənarı dəqiqləşdirin… + Remember Settings Parametrləri yadda saxla + Reset Essentials Əsasları sıfırlayın + Rounded Rectangle Tool Dairəvi Düzbucaqlı Aləti + Show Channels in Color Kanalları Rəngli Göstərin + Show Statistics Statistikanı göstərin + Source: Mənbə: + Status Bar Vəziyyət paneli + Tile Horizontally Üfüqi olaraq kafel + Tile Vertically Şaquli olaraq kafel + Uncached Refresh Keşlənməmiş Yeniləmə + Warming Filter (81) İstiləşmə filtri (81) + Warming Filter (LBA) İstiləşmə Filtri (LBA) +@plural {n} document|{n} documents {n} sənəd|{n} sənəd +@plural {n} pixel|{n} pixels {n} piksel|{n} piksel +cameraRaw Before (Y) Əvvəl (Y) +cameraRaw Camera Raw ({name}) Kamera Raw ( {name} ) +cameraRaw Camera Raw Filter ({layer}) Kamera Raw Filtri ( {layer} ) +cameraRaw Camera Raw isn't open Camera Raw açıq deyil +cameraRaw Cancel Ləğv et +cameraRaw Cancelled opening {name} {name} açılışı ləğv edildi +cameraRaw Cancelled {label} Ləğv edildi {label} +cameraRaw Color Priority Rəng prioriteti +cameraRaw Developing {name} {name} hazırlanır +cameraRaw Full-resolution preview unavailable Tam rezolyusiyaya baxış mövcud deyil +cameraRaw Grain Taxıl +cameraRaw Highlight Clipping Warning (O) Vurğulanan Kəsmə Xəbərdarlığı (O) +cameraRaw Highlight Priority Prioriteti vurğulayın +cameraRaw Load Settings… Parametrləri yükləyin… +cameraRaw Load settings from a Camera Raw .xmp file Camera Raw .xmp faylından parametrləri yükləyin +cameraRaw Loaded Camera Raw settings from {file} {file} -dən Camera Raw parametrləri yükləndi +cameraRaw Noise Reduction Səs-küyün azaldılması +cameraRaw OK Oldu +cameraRaw Open Aç +cameraRaw Opened {name} {name} açıldı +cameraRaw Paint Overlay Rəngli örtük +cameraRaw Save Settings… Parametrləri yadda saxla… +cameraRaw Save these settings as a Camera Raw .xmp file Bu parametrləri Camera Raw .xmp faylı kimi yadda saxlayın +cameraRaw Shadow Clipping Warning (U) Kölgə Kəsmə Xəbərdarlığı (U) +cameraRaw Sharpening İtiləşdirmə +cameraRaw Show Lab Color Readouts Laboratoriya Rəng Oxunuşlarını göstərin +cameraRaw Show Red at 3 o'clock Saat 3-də Qırmızı göstər +cameraRaw Show Selected Region Seçilmiş Bölgəni göstərin +cameraRaw Show Skin Tone Indicator Dəri Tonu Göstəricisini göstərin +cameraRaw Show Vectorscope Vektorskopunu göstərin +cameraRaw Tone Histogram Ton histoqramı +cameraRaw Vignetting Vinyetləmə +cameraRaw White Balance: As Shot Ağ Balans: Çəkiliş kimi + Current Layer: Cari qat: + Delete effect Effekti silin + Move effect down Effekti aşağı köçürün + Move effect up Effekti yuxarı köçürün + Path operations Yol əməliyyatları + The path was discarded Yol ləğv edildi + The path was kept as the Work Path Yol İş Yolu kimi saxlanıldı + Edit Brush… Fırçanı redaktə et… +smartSvg AI/PDF/EPS contents will be edited as SVG. Saving replaces the embedded source; format-specific features may change. AI/PDF/EPS məzmunu SVG kimi redaktə ediləcək. Saxlama daxil edilmiş mənbəni əvəz edir; formata xas xüsusiyyətlər dəyişə bilər. + Invalid numeric entry. An integer between {min}% and {max}% is required. Previous value was inserted. Yanlış rəqəmsal giriş. {min}% və {max}% arasında tam ədəd tələb olunur. Əvvəlki dəyər daxil edildi. + Drag to move the selected path Seçilmiş yolu hərəkət etdirmək üçün dartın + Recently Used Colors Son İstifadə olunan Rənglər + Stop Color Rəngi dayandırın + Shapes can't use patterns yet Formalar hələ naxışlardan istifadə edə bilməz +smartSvg Edit SVG Smart Object SVG Ağıllı Obyektini redaktə edin +smartSvg Choose the application used to edit this SVG: Bu SVG-ni redaktə etmək üçün istifadə olunan proqramı seçin: +smartSvg Other application Digər proqram +smartSvg PhotoCraft (internal editor) PhotoCraft (daxili redaktor) +smartSvg Choose executable… İcra olunanı seçin… +smartSvg Save to the opened SVG file. Each saved change becomes one undo step in PhotoCraft. Açılmış SVG faylında yadda saxlayın. Saxlanmış hər bir dəyişiklik PhotoCraft-də bir geri qaytarma addımına çevrilir. +smartSvg Updates wait while another document or an editing dialog is active. Yeniləmələr başqa sənəd və ya redaktə dialoqu aktiv olduqda gözləyir. +smartSvg Stop syncing this Smart Object Bu Ağıllı Obyektin sinxronizasiyasını dayandırın +smartSvg SVG editor opened. Save the SVG to update this Smart Object. SVG redaktoru açıldı. Bu Ağıllı Obyekti yeniləmək üçün SVG-ni yadda saxlayın. + Select Layer Under Cursor Kursorun altından Layer seçin + No matching fonts Uyğun şrift tapılmadı + Numerals Rəqəmlər + Lining Eyni hündürlüklü + Proportional Mütənasib + Tabular Sabit enli + Proportional Lining Mütənasib, eyni hündürlüklü + Tabular Lining Sabit enli, eyni hündürlüklü + Proportional Oldstyle Mütənasib, köhnə üslublu + Tabular Oldstyle Sabit enli, köhnə üslublu + Stylistic Sets Üslub dəstləri + Set 1 Dəst 1 + Set 2 Dəst 2 + Set 3 Dəst 3 + Set 4 Dəst 4 + Set 5 Dəst 5 + Set 6 Dəst 6 + Set 7 Dəst 7 + Set 8 Dəst 8 + Set 9 Dəst 9 + Set 10 Dəst 10 + Set 11 Dəst 11 + Set 12 Dəst 12 + Set 13 Dəst 13 + Set 14 Dəst 14 + Set 15 Dəst 15 + Set 16 Dəst 16 + Set 17 Dəst 17 + Set 18 Dəst 18 + Set 19 Dəst 19 + Set 20 Dəst 20 + Convert to Frame… Çərçivəyə çevir… + Replace Image… Şəkli əvəz edin… + Import Image… Şəkil idxal edin… + Fit Content to Frame Məzmunu çərçivəyə uyğunlaşdır + Fit Frame to Content Çərçivəni məzmuna uyğunlaşdır + Plugins… Plaginlər… + Embed Linked Əlaqəli obyekti daxil et + Embed All Linked Bütün əlaqəli obyektləri daxil et + Working CMY Plates İşçi CMY kanalları + Legacy Macintosh RGB (Gamma 1.8) Köhnə Macintosh RGB (Qamma 1.8) + Internet Standard RGB (sRGB) İnternet standartı RGB (sRGB) + +# Strings main added after this catalog was written (integration batch 20). + Background (default) Fon (defolt) + Transparent (default) Şəffaf (defolt) diff --git a/crates/ui-egui/src/i18n/bs.tsv b/crates/ui-egui/src/i18n/bs.tsv index 6fc8c62e6a..bc0b90d6e2 100644 --- a/crates/ui-egui/src/i18n/bs.tsv +++ b/crates/ui-egui/src/i18n/bs.tsv @@ -623,7 +623,7 @@ Working Magenta Plate Radna magenta ploča Working Yellow Plate Radna žuta ploča Working Black Plate Radna crna ploča - Working CMY Plates Radna CMY ploča + Working CMY Plates Radne CMY ploče Legacy Macintosh RGB (Gamma 1.8) Naslijeđeni Macintosh RGB (Gamma 1.8) Internet Standard RGB (sRGB) Internet standardni RGB (sRGB) Monitor RGB RGB monitora @@ -778,6 +778,12 @@ Timeline Vremenska linija Tool Presets Predlošci alata Tools Alati + Contextual Task Bar Kontekstualna traka zadataka + Hide bar Sakrij traku + Reset bar position Vrati položaj trake + Pin bar position Zakači položaj trake + Move bar Pomjeri traku + More options Više opcija About PhotoCraft O PhotoCraftu PhotoCraft Website Web stranica PhotoCrafta PhotoCraft on GitHub PhotoCraft na GitHubu diff --git a/crates/ui-egui/src/i18n/casing.rs b/crates/ui-egui/src/i18n/casing.rs new file mode 100644 index 0000000000..a8b10258ad --- /dev/null +++ b/crates/ui-egui/src/i18n/casing.rs @@ -0,0 +1,60 @@ +//! Case conversion of translated UI text; command IDs and English aliases use `Lang::EN`. + +use icu_casemap::CaseMapper; +use icu_locale_core::{LanguageIdentifier, langid}; + +use super::Lang; + +impl Lang { + /// Locales that tailor Unicode's dotted/dotless I mappings in this UI. + fn case_locale(self) -> Option { + match self.code() { + "az" => Some(langid!("az")), + "tr" => Some(langid!("tr")), + _ => None, + } + } + + /// Lowercase UI text in its language, including Turkic I and combining-dot contexts. + pub fn lowercase(self, text: &str) -> String { + match self.case_locale() { + Some(locale) => CaseMapper::new().lowercase_to_string(text, &locale).into_owned(), + None => text.to_lowercase(), + } + } + + /// Uppercase UI text in its language (`i` → `İ`, `ı` → `I` in Azerbaijani and Turkish). + pub fn uppercase(self, text: &str) -> String { + match self.case_locale() { + Some(locale) => CaseMapper::new().uppercase_to_string(text, &locale).into_owned(), + None => text.to_uppercase(), + } + } + + /// Match visible text without case distinctions in this language. + pub fn contains_ignore_case(self, text: &str, query: &str) -> bool { + self.lowercase(text).contains(&self.lowercase(query)) + } +} + +#[cfg(test)] +mod tests { + use super::*; + + /// Unicode Turkic mappings keep the two I pairs distinct, including decomposed input. + #[test] + fn azerbaijani_and_turkish_case_mapping_handles_combining_dots() { + for code in ["az", "tr"] { + let lang = Lang::from_code(code).unwrap(); + assert_eq!(lang.lowercase("Iİıi"), "ıiıi"); + assert_eq!(lang.uppercase("Iİıi"), "IİIİ"); + assert_eq!(lang.lowercase("I\u{307} I\u{323}\u{307} I\u{301}"), "i i\u{323} ı\u{301}"); + assert!(lang.contains_ignore_case("İşıq", "İŞIQ")); + assert!(!lang.contains_ignore_case("İşıq", "IŞIQ")); + assert!(!lang.contains_ignore_case("ı", "i")); + } + assert_eq!(Lang::EN.lowercase("Iİıi"), "ii\u{307}ıi"); + assert_eq!(Lang::EN.uppercase("iı"), "II"); + assert_eq!(Lang::EN.lowercase("ΟΣ"), "ος", "keep contextual final sigma"); + } +} diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsv index a23681f867..7872d856d9 100644 --- a/crates/ui-egui/src/i18n/cs.tsv +++ b/crates/ui-egui/src/i18n/cs.tsv @@ -876,7 +876,7 @@ Consolidate All to Tabs Sloučit vše do záložek Float in Window Uvolnit do plovoucího okna Float All in Windows Uvolnit vše do plovoucích oken - New Window Nové okno dokumentu + New Window Nové okno Workspace Pracovní prostor Essentials Základy Graphic and Web Grafika a web @@ -938,6 +938,12 @@ Timeline Časová osa Tool Presets Přednastavení nástrojů Tools Nástroje + Contextual Task Bar Kontextový panel úloh + Hide bar Skrýt panel + Reset bar position Obnovit polohu panelu + Pin bar position Připnout polohu panelu + Move bar Přesunout panel + More options Další možnosti About PhotoCraft O aplikaci PhotoCraft PhotoCraft Website Web PhotoCraft PhotoCraft on GitHub PhotoCraft na GitHubu @@ -2173,7 +2179,6 @@ Show only crosshair while painting Při malování zobrazit jen nitkový kříž Show slice numbers Zobrazit čísla řezů Show tooltips Zobrazit popisky nástrojů - Enable animations Povolit animace Show highlight on rollover Zobrazit zvýraznění při přejetí Show bounding box when dragging layer Při přetahování vrstvy zobrazit ohraničovací rámeček System title bar Systémové záhlaví okna @@ -3240,6 +3245,7 @@ cameraData Lens Objektiv Magnetic Lasso Magnetické laso Make Výrobce Make Selection Vytvořit výběr + Make Shape Vytvořit tvar Make Work Path Vytvořit pracovní cestu Manual Ručně Map Document Dokument mapy diff --git a/crates/ui-egui/src/i18n/da.tsv b/crates/ui-egui/src/i18n/da.tsv index 89deab4287..5db9fd216e 100644 --- a/crates/ui-egui/src/i18n/da.tsv +++ b/crates/ui-egui/src/i18n/da.tsv @@ -542,6 +542,12 @@ Timeline Tidslinje Tool Presets Værktøjsforudindstillinger Tools Værktøjer + Contextual Task Bar Kontekstafhængig opgavelinje + Hide bar Skjul linjen + Reset bar position Nulstil linjens placering + Pin bar position Fastgør linjens placering + Move bar Flyt linjen + More options Flere indstillinger Libraries Biblioteker 3D 3D Toolbars Værktøjslinjer @@ -1214,6 +1220,7 @@ Path to Illustrator… Sti til Illustrator… Make Work Path Opret arbejdssti Make Selection Opret markering + Make Shape Opret form Fill Path Udfyld sti Stroke Path Lav kontur på sti Clipping Path Udklipningssti @@ -2061,7 +2068,7 @@ Vertical Centers Lodrette midtpunkter Video Frames to Layers… Videobilleder til lag… WIA Support… WIA-support… - Working CMY Plates Arbejds-CMY-plade + Working CMY Plates Arbejds-CMY-plader # tl! literals (third pass) Absolute Absolut @@ -2478,7 +2485,6 @@ Show only crosshair while painting Vis kun trådkors under maling Show slice numbers Vis udsnitsnumre Show tooltips Vis værktøjstips - Enable animations Aktivér animationer Show highlight on rollover Fremhæv ved pegning Show bounding box when dragging layer Vis afgrænsningsramme, når et lag trækkes System title bar Systemtitellinje diff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsv index 39147f17c9..ea5a9e360c 100644 --- a/crates/ui-egui/src/i18n/de.tsv +++ b/crates/ui-egui/src/i18n/de.tsv @@ -755,7 +755,7 @@ Working Magenta Plate Arbeits-Magenta-Druckplatte Working Yellow Plate Arbeits-Gelb-Druckplatte Working Black Plate Arbeits-Schwarz-Druckplatte - Working CMY Plates Arbeits-CMY-Druckplatte + Working CMY Plates Arbeits-CMY-Druckplatten Legacy Macintosh RGB (Gamma 1.8) Legacy-Macintosh-RGB (Gamma 1.8) Internet Standard RGB (sRGB) Internet-Standard-RGB (sRGB) Monitor RGB Monitor-RGB @@ -839,7 +839,7 @@ Consolidate All to Tabs Alle in Registerkarten zusammenfassen Float in Window In Fenster schweben lassen Float All in Windows Alle in Fenstern schweben lassen - New Window Neues Fenster für Dokument + New Window Neues Fenster Workspace Arbeitsbereich Essentials Essentials Graphic and Web Grafik und Web @@ -901,6 +901,12 @@ Timeline Zeitleiste Tool Presets Werkzeugvorgaben Tools Werkzeuge + Contextual Task Bar Kontextbezogene Taskleiste + Hide bar Leiste ausblenden + Reset bar position Leistenposition zurücksetzen + Pin bar position Leistenposition fixieren + Move bar Leiste verschieben + More options Weitere Optionen About PhotoCraft Über PhotoCraft PhotoCraft Website PhotoCraft-Website PhotoCraft on GitHub PhotoCraft auf GitHub @@ -2134,7 +2140,6 @@ Show only crosshair while painting Beim Malen nur Fadenkreuz zeigen Show slice numbers Slice-Nummern anzeigen Show tooltips Tooltips anzeigen - Enable animations Animationen aktivieren Show highlight on rollover Hervorhebung bei Rollover anzeigen Show bounding box when dragging layer Begrenzungsrahmen beim Ziehen einer Ebene anzeigen System title bar System-Titelleiste @@ -2382,6 +2387,7 @@ Punctuation Zeichensetzung Make Work Path Arbeitspfad erzeugen Make Selection Auswahl erzeugen + Make Shape Form erzeugen Fill Path Pfad füllen Stroke Path Pfad nachziehen Delete Path Pfad löschen diff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsv index d2f684e3ae..a01f9fbb73 100644 --- a/crates/ui-egui/src/i18n/el.tsv +++ b/crates/ui-egui/src/i18n/el.tsv @@ -266,6 +266,12 @@ Info Πληροφορίες Actions Ενέργειες Tools Εργαλεία + Contextual Task Bar Γραμμή εργασιών περιβάλλοντος + Hide bar Απόκρυψη γραμμής + Reset bar position Επαναφορά θέσης γραμμής + Pin bar position Καρφίτσωμα θέσης γραμμής + Move bar Μετακίνηση γραμμής + More options Περισσότερες επιλογές Zoom In Μεγέθυνση Zoom Out Σμίκρυνση Fit on Screen Προσαρμογή στην οθόνη @@ -1612,7 +1618,6 @@ Show only crosshair while painting Εμφάνιση μόνο σταυρονήματος κατά τη ζωγραφική Show slice numbers Εμφάνιση αριθμών τομών Show tooltips Εμφάνιση επεξηγήσεων - Enable animations Ενεργοποίηση κινούμενων εφέ Show highlight on rollover Εμφάνιση επισήμανσης κατά την κατάδειξη Show bounding box when dragging layer Εμφάνιση πλαισίου οριοθέτησης κατά τη μετακίνηση επιπέδου Show transformation values Εμφάνιση τιμών μετασχηματισμού @@ -2798,6 +2803,7 @@ Make Κατασκευαστής Make Default Ορισμός ως προεπιλογής Make Selection Δημιουργία επιλογής + Make Shape Δημιουργία σχήματος Make Work Path Δημιουργία διαδρομής εργασίας Marker Size Μέγεθος δείκτη Master Κύριο diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsv index 8f5c57e3bd..96d1b45639 100644 --- a/crates/ui-egui/src/i18n/es.tsv +++ b/crates/ui-egui/src/i18n/es.tsv @@ -720,7 +720,7 @@ Working Magenta Plate Placa magenta de trabajo Working Yellow Plate Placa amarilla de trabajo Working Black Plate Placa negra de trabajo - Working CMY Plates Placa CMY de trabajo + Working CMY Plates Placas CMY de trabajo Legacy Macintosh RGB (Gamma 1.8) RGB heredado de Macintosh (Gamma 1.8) Internet Standard RGB (sRGB) RGB estándar de Internet (sRGB) Monitor RGB RGB del monitor @@ -875,6 +875,12 @@ Timeline Línea de tiempo Tool Presets Ajustes preestablecidos de herramienta Tools Herramientas + Contextual Task Bar Barra de tareas contextual + Hide bar Ocultar barra + Reset bar position Restablecer posición de la barra + Pin bar position Fijar posición de la barra + Move bar Mover barra + More options Más opciones About PhotoCraft Acerca de PhotoCraft PhotoCraft Website Sitio web de PhotoCraft PhotoCraft on GitHub PhotoCraft en GitHub @@ -2104,7 +2110,6 @@ Show only crosshair while painting Mostrar solo la retícula al pintar Show slice numbers Mostrar los números de sector Show tooltips Mostrar las descripciones emergentes - Enable animations Activar las animaciones Show highlight on rollover Mostrar resaltado al pasar el cursor Show bounding box when dragging layer Mostrar el cuadro delimitador al arrastrar la capa System title bar Barra de título del sistema @@ -2354,6 +2359,7 @@ Punctuation Puntuación Make Work Path Crear trazado de trabajo Make Selection Crear selección + Make Shape Crear forma Fill Path Rellenar trazado Stroke Path Contornear trazado Delete Path Eliminar trazado diff --git a/crates/ui-egui/src/i18n/fi.tsv b/crates/ui-egui/src/i18n/fi.tsv index d89ea90673..6f114d1fea 100644 --- a/crates/ui-egui/src/i18n/fi.tsv +++ b/crates/ui-egui/src/i18n/fi.tsv @@ -543,6 +543,12 @@ Timeline Aikajana Tool Presets Työkalujen esiasetukset Tools Työkalut + Contextual Task Bar Kontekstuaalinen tehtäväpalkki + Hide bar Piilota palkki + Reset bar position Palauta palkin sijainti + Pin bar position Kiinnitä palkin sijainti + Move bar Siirrä palkkia + More options Lisää vaihtoehtoja Libraries Kirjastot 3D 3D Toolbars Työkalurivit @@ -1215,6 +1221,7 @@ Path to Illustrator… Polku Illustratoriin… Make Work Path Luo työpolku Make Selection Luo valinta + Make Shape Luo muoto Fill Path Täytä polku Stroke Path Piirrä polun reunaviiva Clipping Path Leikkauspolku @@ -2062,7 +2069,7 @@ Vertical Centers Pystykeskikohdat Video Frames to Layers… Videoruudut tasoiksi… WIA Support… WIA-tuki… - Working CMY Plates Työ-CMY-levy + Working CMY Plates Työ-CMY-levyt # tl! literals (third pass) Absolute Absoluuttinen @@ -2479,7 +2486,6 @@ Show only crosshair while painting Näytä vain hiusristikko maalattaessa Show slice numbers Näytä viipaleiden numerot Show tooltips Näytä työkaluvihjeet - Enable animations Ota animaatiot käyttöön Show highlight on rollover Korosta kohde osoittimen alla Show bounding box when dragging layer Näytä rajauslaatikko tasoa vedettäessä System title bar Järjestelmän otsikkorivi diff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsv index 050f58d308..e42893ac09 100644 --- a/crates/ui-egui/src/i18n/fr.tsv +++ b/crates/ui-egui/src/i18n/fr.tsv @@ -736,7 +736,7 @@ Working Magenta Plate Plaque magenta de travail Working Yellow Plate Plaque jaune de travail Working Black Plate Plaque noire de travail - Working CMY Plates Plaque CMJ de travail + Working CMY Plates Plaques CMJ de travail Legacy Macintosh RGB (Gamma 1.8) RVB Macintosh (ancien) (Gamma 1.8) Internet Standard RGB (sRGB) RVB standard d'Internet (sRGB) Monitor RGB RVB du moniteur @@ -891,6 +891,12 @@ Timeline Montage Tool Presets Préréglages d'outils Tools Outils + Contextual Task Bar Barre des tâches contextuelle + Hide bar Masquer la barre + Reset bar position Réinitialiser la position de la barre + Pin bar position Épingler la position de la barre + Move bar Déplacer la barre + More options Plus d'options About PhotoCraft À propos de PhotoCraft PhotoCraft Website Site web de PhotoCraft PhotoCraft on GitHub PhotoCraft sur GitHub @@ -2110,7 +2116,6 @@ Show only crosshair while painting N'afficher que le réticule pendant la peinture Show slice numbers Afficher les numéros de tranche Show tooltips Afficher les info-bulles - Enable animations Activer les animations Show highlight on rollover Afficher la mise en surbrillance au survol Show transformation values Afficher les valeurs de transformation Slice color Couleur des tranches @@ -2494,6 +2499,7 @@ Path to Illustrator… Tracé vers Illustrator… Make Work Path Créer un tracé de travail Make Selection Créer une sélection + Make Shape Créer une forme Fill Path Remplir le tracé Stroke Path Contourner le tracé Clipping Path Tracé de détourage diff --git a/crates/ui-egui/src/i18n/he.tsv b/crates/ui-egui/src/i18n/he.tsv new file mode 100644 index 0000000000..d38b62ed3a --- /dev/null +++ b/crates/ui-egui/src/i18n/he.tsv @@ -0,0 +1,4574 @@ +# Hebrew (he) catalog. Columns, separated by a TAB: context source translation +# +# context empty a plain UI string; `source` is the English text in the code +# @id a command id (e.g. file.saveAs): wins over the English text for +# that menu item, so one id can read differently from its twin +# @plural `source` is "one|other" (English forms); the translation lists the +# language's forms separated by "|" (see `plural` in i18n/mod.rs) +# anything else a disambiguating context passed to `tr_ctx` +# escapes \n \t \\ inside a column. `{name}` placeholders must appear in both columns. +# lines starting with # and blank lines are ignored. +# +# Clean-room: every entry was written from the plain meaning of the English label using ordinary +# modern Hebrew computing and photo-editing vocabulary (שכבה, מברשת, בחירה, קנבס, מסכה, ערוץ …). No +# proprietary localisation resource, string table or product UI was consulted or copied. Product and +# technology names (PhotoCraft, ArtCraft, OpenType, CMYK, Lab, GPU …) and key names stay in Latin +# letters; the trailing "…" of dialog commands is kept. Plural rule: Hebrew distinguishes one/two/ +# many/other in formal grammar, but everyday Hebrew software UI collapses this to a simple +# singular/plural (one|other, `plural_one_other`), the same simplification Farsi and English use +# here. Reviewed for consistency by an AI model; native-speaker review of the specialist terms is +# welcome. +# Machine-translated with Claude (Anthropic) for @tronicum; not yet reviewed by a native speaker. + Mask Options… אפשרויות מסכה… + Layer Mask Display Options… אפשרויות תצוגת מסכת שכבה… + Channel Color צבע ערוץ + Color Indicates: הצבע מציין: + Solidity: אטימות: + Masked Areas אזורים ממוסכים + Selected Areas אזורים נבחרים + Ink Characteristics מאפייני דיו + Paper Width רוחב נייר + Paper Height גובה נייר + Columns עמודות + Rows שורות + Number מספר + Margin שוליים + Top: עליון: + Left: שמאל: + Bottom: תחתון: + Right: ימין: + Target: יעד: + Selected Artboards לוחות ציור נבחרים + Center Columns מרכוז עמודות + Clear Existing Guides נקה קווים מנחים קיימים + Invalid guide layout פריסת קווים מנחים לא תקינה + Leave empty for automatic size השאר ריק לגודל אוטומטי + 5 Columns, 3 Rows 5 עמודות, 3 שורות + 8 Columns 8 עמודות + 12 Columns 12 עמודות + File קובץ + Edit עריכה + Image תמונה + Layer שכבה + Type טקסט + Select בחירה + Selected נבחר + Scope היקף + Top Left שמאל עליון + Top Right ימין עליון + Bottom Left שמאל תחתון + Bottom Right ימין תחתון + Filter סינון + View תצוגה + Window חלון + Help עזרה + (coming soon) (בקרוב) + New… חדש… + New from Clipboard חדש מלוח הגזירים + Open… פתח… + Open As… פתח בתור… + Open EXR Parts… פתח חלקי EXR… + Add beauty precomp from the AOVs הוסף הרכבה (beauty) מראש מתוך AOVs + Both שניהם + Left שמאל + Right ימין + Open Recent פתח אחרונים + Clear Recent Files נקה קבצים אחרונים + Remove from Recent הסר מהרשימה האחרונה + Remove {name} from Recent הסר את {name} מהרשימה האחרונה + Close סגור + Minimize מזער + Maximize הגדל למסך מלא + Restore שחזר + Close All סגור הכול + Close Others סגור את האחרים + Save שמור + Save As… שמור בשם… + Save a Copy… שמור עותק… + {name} can't keep everything in this document {name} אינו יכול לשמר את כל התוכן במסמך זה + Choose a format that keeps it, such as Photoshop (PSD), or save a copy. בחר תבנית ששומרת זאת, כגון Photoshop ‏(PSD), או שמור עותק. + Revert חזור למצב השמור + Export ייצוא + Quick Export as PNG ייצוא מהיר כ-PNG + Export As… ייצוא בשם… + Export Preferences… העדפות ייצוא… + Save for Web (Legacy)… שמור לאינטרנט (ישן)… + Artboards to Files… לוחות ציור לקבצים… + Artboards to PDF… לוחות ציור ל-PDF… + Layers to Files… שכבות לקבצים… + Layer Comps to Files… קומפים של שכבות לקבצים… + Color Lookup Tables… טבלאות חיפוש צבע… + Data Sets as Files… ערכות נתונים כקבצים… + Paths to Illustrator… נתיבים ל-Illustrator… + Render Video… עיבוד וידאו… + Generate יצירה + Image Assets נכסי תמונה + Place Embedded… הצבה מוטבעת… + Place Linked… הצבה מקושרת… + Package… אריזה… + Automate אוטומציה + Batch… אצווה… + Create Droplet… יצירת Droplet… + Crop and Straighten Photos חיתוך ויישור תמונות + Contact Sheet II… גיליון מגע II… + Conditional Mode Change… שינוי מצב מותנה… + Fit Image… התאמת תמונה… + Lens Correction… תיקון עדשה… + Merge to HDR Pro… מיזוג ל-HDR Pro… + Photomerge… מיזוג תמונות (Photomerge)… + Scripts סקריפטים + Image Processor… מעבד תמונות… + Delete All Empty Layers מחק את כל השכבות הריקות + Flatten All Layer Effects שטח את כל אפקטי השכבה + Flatten All Masks שטח את כל המסכות + Script Events Manager… מנהל אירועי סקריפט… + Import ייבוא + Browse… עיון… + Source Files קובצי מקור + Use: השתמש ב: + Files קבצים + Folder תיקייה + Add Open Files הוסף קבצים פתוחים + Sort By Name מיין לפי שם + Attempt to Automatically Align Source Images נסה ליישר אוטומטית את תמונות המקור + Create Smart Object after Loading Layers צור אובייקט חכם לאחר טעינת השכבות + Reveal in Finder הצג ב-Finder + Show in Explorer הצג ב-Explorer + Show in Folder הצג בתיקייה + File Info… פרטי קובץ… + Print… הדפסה… + Print One Copy הדפס עותק אחד + Exit יציאה + Undo בטל + Redo בצע שוב + Toggle Last State החלף למצב האחרון + Fade… דהייה… + Cut גזור + Copy העתק + Copy Merged העתק ממוזג + Paste הדבק + Paste Special הדבקה מיוחדת + Paste in Place הדבק במקום + Paste Into הדבק לתוך + Paste Outside הדבק בחוץ + Paste Lorem Ipsum הדבק Lorem Ipsum + Clear נקה + Search… חיפוש… + Check Spelling… בדיקת איות… + Find and Replace Text… חיפוש והחלפת טקסט… + Add to Dictionary הוסף למילון + No Spelling Suggestions אין הצעות איות + Fill… מילוי… + Stroke… קו מתאר… + Content-Aware Fill… מילוי מודע לתוכן… + Delete and Fill Selection מחק ומלא בחירה + Content-Aware Scale שינוי קנה מידה מודע לתוכן + Puppet Warp עיוות בובה (Puppet Warp) + Perspective Warp עיוות פרספקטיבה + Free Transform שינוי צורה חופשי + Free Transform a Copy שינוי צורה חופשי לעותק + Transform שינוי צורה + Again שוב + Transform Again on a Copy חזור על שינוי הצורה על עותק + Scale קנה מידה + Rotate סיבוב + Set horizontal skew הגדר הטיה אופקית + Set vertical skew הגדר הטיה אנכית + Skew הטיה + Distort עיוות + Perspective פרספקטיבה + Warp עיוות (Warp) + Flip Horizontal היפוך אופקי + Flip Vertical היפוך אנכי + Rotate 180° סובב 180° + Rotate 90° Clockwise סובב 90° עם כיוון השעון + Rotate 90° Counter Clockwise סובב 90° נגד כיוון השעון + 180° 180° + 90° Clockwise 90° עם כיוון השעון + 90° Counter Clockwise 90° נגד כיוון השעון + Arbitrary… שרירותי… + Auto-Align Layers… יישור שכבות אוטומטי… + Auto-Blend Layers… מיזוג שכבות אוטומטי… + Define Brush Preset… הגדר ערכת מברשת… + Define Pattern… הגדר תבנית… + Define Custom Shape… הגדר צורה מותאמת אישית… + Purge ניקוי זיכרון + Clipboard לוח גזירים + Histories היסטוריות + Video Cache מטמון וידאו + All הכול + Presets ערכות קבועות מראש + Preset Manager… מנהל ערכות קבועות מראש… + Migrate Presets העבר ערכות קבועות מראש + Export/Import Presets… ייצוא/ייבוא ערכות קבועות מראש… + Color Settings… הגדרות צבע… + Assign Profile… הקצה פרופיל… + Convert to Profile… המר לפרופיל… + Keyboard Shortcuts… קיצורי מקלדת… + Menus… תפריטים… + Toolbar… סרגל כלים… + Preferences העדפות + General… כללי… + Interface… ממשק… + Workspace… סביבת עבודה… + Tools… כלים… + History Log… יומן היסטוריה… + File Handling… טיפול בקבצים… + Export… ייצוא… + Performance… ביצועים… + Scratch Disks… כונני עבודה (Scratch Disks)… + Cursors… סמנים… + Transparency & Gamut… שקיפות וטווח צבעים… + Units & Rulers… יחידות וסרגלים… + Guides, Grid & Slices… קווים מנחים, רשת ופרוסות… + Plug-ins… תוספים… + Type… טקסט… + Enhanced Controls… פקדים משופרים… + Camera Raw… Camera Raw… + Raw Defaults… ברירות מחדל ל-Raw… + Integrations… שילובים… + AI Integrations… שילובי בינה מלאכותית… + Install Plug-in… התקן תוסף… + Language Options אפשרויות שפה + Settings… הגדרות… + Mode מצב + Bitmap מפת סיביות (Bitmap) + Grayscale גווני אפור + Duotone דו-גוון (Duotone) + Indexed Color צבע מאונדקס + RGB Color צבע RGB + CMYK Color צבע CMYK + Lab Color צבע Lab + Multichannel רב-ערוצי + 8 Bits/Channel 8 סיביות/ערוץ + 8 bit 8 סיביות + Integer מספר שלם + 16 Bits/Channel 16 סיביות/ערוץ + 16 bit 16 סיביות + 32 Bits/Channel 32 סיביות/ערוץ + 32 bit (float) 32 סיביות (נקודה צפה) + Floating point נקודה צפה + Color Table… טבלת צבעים… + Bitmap… מפת סיביות… + Duotone… דו-גוון… + Indexed Color… צבע מאונדקס… + Adjustments התאמות + Brightness/Contrast… בהירות/ניגודיות… + Levels… רמות… + Curves… עקומות… + Exposure… חשיפה… + Vibrance… תוססות… + Hue/Saturation… גוון/רוויה… + Color Balance… איזון צבע… + Black & White… שחור ולבן… + Photo Filter… מסנן תמונה… + Channel Mixer… מערבל ערוצים… + Color Lookup… חיפוש צבע… + Invert היפוך + Posterize… פוסטריזציה… + Threshold… סף… + Gradient Map… מפת מעברי צבע… + Selective Color… צבע סלקטיבי… + Shadows/Highlights… צללים/הדגשות… + HDR Toning… גוון HDR… + Desaturate הפחת רוויה + Match Color… התאמת צבע… + Replace Color… החלפת צבע… + Equalize איזון היסטוגרמה + Auto Tone גוון אוטומטי + Auto Contrast ניגודיות אוטומטית + Auto Color צבע אוטומטי + Image Size… גודל תמונה… + Canvas Size… גודל קנבס… + Image Rotation סיבוב תמונה + Flip Canvas Horizontal היפוך קנבס אופקי + Flip Canvas Vertical היפוך קנבס אנכי + Crop חיתוך + Trim… גיזום… + Reveal All חשוף הכול + Duplicate… שכפל… + Apply Image… החל תמונה… + Calculations… חישובים… + Variables משתנים + Define… הגדר… + Data Sets… ערכות נתונים… + Apply Data Set… החל ערכת נתונים… + Variable Data Sets… ערכות נתונים משתנות… + Trap… לכידה (Trap)… + Analysis ניתוח + Set Measurement Scale… הגדר קנה מידה למדידה… + Select Data Points… בחר נקודות נתונים… + Record Measurements תעד מדידות + Ruler Tool כלי סרגל + Count Tool כלי ספירה + Place Scale Marker… הצב סמן קנה מידה… + Custom… מותאם אישית… + New חדש + Layer… שכבה… + Group… קבוצה… + Group from Layers… קבוצה משכבות… + New Group from Layers… קבוצה חדשה משכבות… + Artboard… לוח ציור… + Artboard from Group… לוח ציור מקבוצה… + Artboard from Layers… לוח ציור משכבות… + Layer via Copy שכבה דרך העתקה + Layer via Cut שכבה דרך גזירה + Layer From Background… שכבה מרקע… + Layer from Background… שכבה מרקע… + Background from Layer רקע משכבה + Background From Layer רקע משכבה + New Shape Layer שכבת צורה חדשה + New Type Layer שכבת טקסט חדשה + New Fill Layer שכבת מילוי חדשה + New Adjustment Layer שכבת התאמה חדשה + New Layer Based Slice פרוסה מבוססת שכבה חדשה + New Smart Object via Copy אובייקט חכם חדש דרך העתקה + New Blank Video Layer שכבת וידאו ריקה חדשה + New Video Layer from File… שכבת וידאו חדשה מקובץ… + Duplicate Layer… שכפל שכבה… + Delete Layer מחק שכבה + Delete מחק + Rename Layer שנה שם שכבה + Create Layer צור שכבה + Layer Style סגנון שכבה + Blending Options… אפשרויות מיזוג… + Bevel & Emboss… הטבעה ותבליט… + Use Global Light השתמש באור גלובלי + Overprint הדפסת יתר (Overprint) + Inner Shadow… צל פנימי… + Inner Glow… זוהר פנימי… + Satin… סאטן… + Color Overlay… שכבת-על צבע… + Gradient Overlay… שכבת-על מעבר צבעים… + Pattern Overlay… שכבת-על תבנית… + Outer Glow… זוהר חיצוני… + Drop Shadow… צל נפל… + Copy Layer Style העתק סגנון שכבה + Paste Layer Style הדבק סגנון שכבה + Clear Layer Style נקה סגנון שכבה + Global Light… אור גלובלי… + Hide All Effects הסתר את כל האפקטים + Scale Effects… שנה קנה מידה של אפקטים… + Smart Filter מסנן חכם + Convert for Smart Filters המר למסננים חכמים + Clear Smart Filters נקה מסננים חכמים + Disable Smart Filters השבת מסננים חכמים + Delete Filter Mask מחק מסכת מסנן + Disable Filter Mask השבת מסכת מסנן + Solid Color… צבע אחיד… + Gradient… מעבר צבעים… + Pattern… תבנית… + Layer Mask מסכת שכבה + Vector Mask מסכת וקטור + Reveal Selection חשוף בחירה + Hide Selection הסתר בחירה + Hide All הסתר הכול + From Transparency משקיפות + Delete Vector Mask מחק מסכת וקטור + Enable Layer Mask אפשר מסכת שכבה + Disable Layer Mask השבת מסכת שכבה + Enable Vector Mask אפשר מסכת וקטור + Link Layer Mask קשר מסכת שכבה + Unlink Layer Mask בטל קישור מסכת שכבה + Link Vector Mask קשר מסכת וקטור + Add Vector Mask הוסף מסכת וקטור + Vector Mask from Current Path מסכת וקטור מהנתיב הנוכחי + Create Clipping Mask צור מסכת גזירה + Release Clipping Mask שחרר מסכת גזירה + Smart Objects אובייקטים חכמים + Smart Object אובייקט חכם + Convert to Smart Object המר לאובייקט חכם + Convert to Embedded המר למוטבע + Convert to Layers המר לשכבות + Convert to Linked… המר למקושר… + Edit Contents ערוך תוכן + Replace Contents… החלף תוכן… + Relink to File… קשר מחדש לקובץ… + Export Contents… ייצוא תוכן… + Update Modified Content עדכן תוכן ששונה + Update All Modified Content עדכן את כל התוכן ששונה + Stack Mode מצב ערימה + Choose Stack Mode: בחר מצב ערימה: + Entropy אנטרופיה + Kurtosis קורטוזיס + Maximum מקסימום + Mean ממוצע + Median חציון + Minimum מינימום + Range טווח + Skewness אלכסוניות + Standard Deviation סטיית תקן + Summation סכימה + Variance שונות + Video Layers שכבות וידאו + Interpret Footage… פרש חומר גלם… + Replace Footage… החלף חומר גלם… + Reload Frame טען מחדש פריים + Show Altered Video הצג וידאו ששונה + Restore Frame שחזר פריים + Restore All Frames שחזר את כל הפריימים + Insert Blank Frame הוסף פריים ריק + Delete Frame מחק פריים + Duplicate Frame שכפל פריים + Frame from Layers פריים משכבות + Video Frames to Layers… פריימי וידאו לשכבות… + Rasterize רסטור + Rasterize Type רסטור טקסט + Rasterize Type Layer רסטור שכבת טקסט + Rasterize Shape רסטור צורה + New Guide Layout… פריסת קווים מנחים חדשה… + New Guides From Shape קווים מנחים חדשים מצורה + Lock Layers… נעל שכבות… + Link Layers קשר שכבות + Select Linked Layers בחר שכבות מקושרות + Merge Layers מזג שכבות + Merge Down מזג למטה + Merge Group מזג קבוצה + Merge Visible מזג גלויות + Stamp Visible חותמת שכבות גלויות + Select Layer Above בחר שכבה מעל + Select Layer Below בחר שכבה מתחת + Select Top Layer בחר שכבה עליונה + Select Bottom Layer בחר שכבה תחתונה + Add Layer Above to Selection הוסף שכבה מעל לבחירה + Add Layer Below to Selection הוסף שכבה מתחת לבחירה + Stamp Down חותמת למטה + Flatten Image שטח תמונה + Matting מיסוך קצוות + Color Decontaminate… ניקוי זיהום צבע… + Remove Black Matte הסר מסגרת שחורה + Remove White Matte הסר מסגרת לבנה + Defringe… הסרת שוליים… + Group Layers קבץ שכבות + Ungroup Layers פרק קיבוץ שכבות + Hide Layers הסתר שכבות + Arrange סדר + Bring to Front הבא לחזית + Bring Forward הבא קדימה + Send Backward שלח אחורה + Send to Back שלח לרקע + Reverse הפוך סדר + Combine Shapes שלב צורות + Unite Shapes אחד צורות + Subtract Front Shape חסר צורה קדמית + Intersect Shape Areas חתוך אזורי צורה + Exclude Overlapping Shapes הוצא צורות חופפות + Merge Shape Components מזג רכיבי צורה + Path operations פעולות נתיב + Align יישור + Top Edges קצוות עליונים + Vertical Centers מרכזים אנכיים + Bottom Edges קצוות תחתונים + Left Edges קצוות שמאליים + Horizontal Centers מרכזים אופקיים + Right Edges קצוות ימניים + Distribute חלוקה + Vertically אנכית + Horizontally אופקית + Layer Edges קצוות שכבה + Isolate Layers בודד שכבות + Layer Content Options… אפשרויות תוכן שכבה… + Fill Content תוכן מילוי + Deselect Layers בטל בחירת שכבות + Find Layers חפש שכבות + Layer Comps קומפים של שכבות + Layers שכבות + All Layers כל השכבות + Hidden Layers שכבות מוסתרות + Mask All Objects מסך את כל האובייקטים + Subject נושא + Sky שמיים + Panels פאנלים + Character Panel פאנל תווים + Paragraph Panel פאנל פסקה + Character Styles Panel פאנל סגנונות תווים + Paragraph Styles Panel פאנל סגנונות פסקה + Glyphs Panel פאנל גליפים + Anti-Alias החלקת קצוות + Sharp חד + Crisp קריספי + Strong חזק + Smooth חלק + Windows LCD Windows LCD + Windows Windows + Orientation כיוון + Horizontal אופקי + Vertical אנכי + OpenType OpenType + Standard Ligatures ליגטורות תקניות + Contextual Alternates חלופות הקשריות + Discretionary Ligatures ליגטורות רשותיות + Swash סוופ + Oldstyle ספרות עתיקות + Stylistic Alternates חלופות סגנוניות + Titling Alternates חלופות כותרת + Ornaments קישוטים + Ordinals סודרים + Fractions שברים + Create Work Path צור נתיב עבודה + Convert to Shape המר לצורה + Warp Text… עיוות טקסט… + Convert to Point Text המר לטקסט נקודתי + Convert to Paragraph Text המר לטקסט פסקה + Default Features תכונות ברירת מחדל + East Asian Features תכונות מזרח אסייתיות + Middle Eastern Features תכונות מזרח תיכוניות + Middle Eastern & South Asian Composer מרכיב מזרח תיכון ודרום אסיה + Update All Text Layers עדכן את כל שכבות הטקסט + Replace All Missing Fonts החלף את כל הגופנים החסרים + Resolve Missing Fonts… פתור גופנים חסרים… + Font Preview Size גודל תצוגה מקדימה של גופן + None ללא + Small קטן + Medium בינוני + Large גדול + Extra Large גדול מאוד + Huge ענקי + Load Default Type Styles טען סגנונות טקסט ברירת מחדל + Save Default Type Styles שמור סגנונות טקסט ברירת מחדל + Deselect בטל בחירה + Reselect בחר מחדש + Inverse היפוך בחירה + Inverse Selection היפוך בחירה + Similar דומה + Color Range… טווח צבעים… + Focus Area… אזור מיקוד… + Select and Mask… בחירה ומיסוך… + Smart Radius רדיוס חכם + Shift Edge הזז קצה + Decontaminate נקה זיהום צבע + Output פלט + Refine Edge חידוד קצה + Modify שינוי + Border… גבול… + Smooth… החלקה… + Expand… הרחבה… + Contract… כיווץ… + Feather… הכהיה (Feather)… + Grow הגדל + Transform Selection שנה צורת בחירה + Edit in Quick Mask Mode ערוך במצב מסכה מהירה + Load Selection… טען בחירה… + Save Selection… שמור בחירה… + Match All התאם הכול + Last Filter המסנן האחרון + Filter Gallery… גלריית מסננים… + Adaptive Wide Angle… זווית רחבה אדפטיבית… + Camera Raw Filter… מסנן Camera Raw… + Liquify… נזילות… + Vanishing Point… נקודת היעלמות… + Blur טשטוש + Blur Gallery גלריית טשטוש + Field Blur… טשטוש שדה… + No pin selected לא נבחרה סיכה + Click the image to add a pin; drag a pin to move it, or its ring to change its blur. Delete removes the selected pin. לחץ על התמונה כדי להוסיף סיכה; גרור סיכה כדי להזיז אותה, או את הטבעת שלה כדי לשנות את הטשטוש. Delete מסיר את הסיכה הנבחרת. + Drag the handles on the outline to resize and turn it, the square to round its corners, and the dots inside to set where the blur starts. גרור את הידיות שעל קו המתאר כדי לשנות את גודלו ולסובב אותו, את הריבוע כדי לעגל את פינותיו, ואת הנקודות שבפנים כדי לקבוע היכן הטשטוש מתחיל. + Drag the pin to move the band, or its ring to change its blur. Drag the solid lines to widen the sharp band, the dashed lines to set the transition, and the dots to turn it. גרור את הסיכה כדי להזיז את הרצועה, או את הטבעת שלה כדי לשנות את הטשטוש. גרור את הקווים הרציפים כדי להרחיב את הרצועה החדה, את הקווים המקווקווים כדי לקבוע את המעבר, ואת הנקודות כדי לסובב אותה. + Drag the handles on the outline to resize and turn it; the ring sets the blur angle. גרור את הידיות שעל קו המתאר כדי לשנות את גודלו ולסובב אותו; הטבעת קובעת את זווית הטשטוש. + Blur Angle זווית טשטוש + Iris Blur… טשטוש קשתית… + Tilt-Shift… הטיה-הזזה (Tilt-Shift)… + Path Blur… טשטוש נתיב… + Spin Blur… טשטוש סיבוב… + Blur More טשטש עוד + Box Blur… טשטוש קופסה… + Gaussian Blur… טשטוש גאוסי… + Lens Blur… טשטוש עדשה… + Motion Blur… טשטוש תנועה… + Radial Blur… טשטוש רדיאלי… + Shape Blur… טשטוש צורה… + Smart Blur… טשטוש חכם… + Surface Blur… טשטוש משטח… + Average ממוצע + Displace… הזזה (Displace)… + Pinch… צביטה… + Polar Coordinates… קואורדינטות קוטביות… + Ripple… אדווה… + Shear… גזירה (Shear)… + Spherize… כדוריות… + Twirl… סחרור… + Wave… גל… + ZigZag… זיגזג… + Noise רעש + Add Noise… הוסף רעש… + Despeckle הסר נקודות + Dust & Scratches… אבק ושריטות… + Median… חציון… + Reduce Noise… הפחת רעש… + Pixelate פיקסול + Color Halftone… חצי-טון צבעוני… + Crystallize… גיבוש (Crystallize)… + Facet קטעים + Fragment פיצול + Mezzotint… מצו-טינטו (Mezzotint)… + Mosaic… פסיפס… + Pointillize… פואנטיליזם… + Render עיבוד (Render) + Clouds עננים + Difference Clouds עננים דיפרנציאליים + Fibers… סיבים… + Flame… להבה… + Lens Flare… זוהר עדשה… + Lighting Effects… אפקטי תאורה… + Relight… תאורה מחדש… + Picture Frame… מסגרת תמונה… + Tree… עץ… + Sharpen חידוד + Sharpen Edges חדד קצוות + Sharpen More חדד יותר + Smart Sharpen… חידוד חכם… + Unsharp Mask… מסכת חידוד (Unsharp Mask)… + High Pass… מעבר עליון (High Pass)… + Stylize סגנון (Stylize) + Diffuse… פיזור… + Emboss… תבליט… + Extrude… הבלטה תלת-ממדית (Extrude)… + Find Edges מצא קצוות + Oil Paint… צבעי שמן… + Solarize סולריזציה + Tiles… אריחים… + Trace Contour… עקוב אחר קווי מתאר… + Wind… רוח… + Video וידאו + De-Interlace… ביטול שזירה (De-Interlace)… + NTSC Colors צבעי NTSC + Other אחר + Maximum… מקסימום… + Minimum… מינימום… + Offset… היסט… + Plug-ins תוספים + Proof Setup הגדרת הדמיית הדפסה + Proof Colors הדמיית צבעי הדפסה + Gamut Warning אזהרת טווח צבעים + Working CMYK CMYK עבודה + Working Cyan Plate לוח Cyan עבודה + Working Magenta Plate לוח Magenta עבודה + Working Yellow Plate לוח Yellow עבודה + Working Black Plate לוח Black עבודה + Working CMY Plate לוח CMY עבודה + Legacy Macintosh RGB RGB ישן של Macintosh + Internet Standard RGB RGB תקני לאינטרנט + Monitor RGB RGB של הצג + Color Blindness — Protanopia-type עיוורון צבעים — מסוג פרוטנופיה + Color Blindness — Deuteranopia-type עיוורון צבעים — מסוג דאוטרנופיה + Zoom In הגדל תצוגה + Zoom Out הקטן תצוגה + Fit on Screen התאם למסך + Fit Layer(s) on Screen התאם שכבה/ות למסך + Fit Artboard on Screen התאם לוח ציור למסך + 100% 100% + 105% 105% + 110% 110% + 115% 115% + 120% 120% + 200% 200% + 75% 75% + 80% 80% + 85% 85% + 90% 90% + 95% 95% + 125% 125% + 150% 150% + 175% 175% + 250% 250% + 300% 300% + Print Size גודל הדפסה + Pixel Aspect Ratio יחס גובה-רוחב של פיקסל + Pixel Aspect Ratio Correction תיקון יחס גובה-רוחב של פיקסל + Custom Pixel Aspect Ratio… יחס גובה-רוחב מותאם אישית… + Square ריבוע + D1/DV NTSC (0.91) D1/DV NTSC (0.91) + D1/DV NTSC Widescreen (1.21) D1/DV NTSC מסך רחב (1.21) + D1/DV PAL (1.09) D1/DV PAL (1.09) + D1/DV PAL Widescreen (1.46) D1/DV PAL מסך רחב (1.46) + Anamorphic 2:1 (2) אנמורפי 2:1 (2) + HDV 1080/DVCPRO HD 720 (1.33) HDV 1080/DVCPRO HD 720 (1.33) + DVCPRO HD 1080/HDV 1080 (1.5) DVCPRO HD 1080/HDV 1080 (1.5) + 32-bit Preview Options… אפשרויות תצוגה מקדימה של 32 סיביות… + Screen Mode מצב מסך + Standard Screen Mode מצב מסך תקני + Full Screen Mode With Menu Bar מצב מסך מלא עם סרגל תפריטים + Full Screen Mode מצב מסך מלא + Cycle Screen Mode החלף מצב מסך + Show הצג + Extras תוספות + Selection Edges קצוות בחירה + Target Path נתיב יעד + Current Path נתיב נוכחי + Grid רשת + Guides קווים מנחים + Canvas Guides קווים מנחים של קנבס + Artboard Guides קווים מנחים של לוח ציור + Count ספירה + Smart Guides קווים מנחים חכמים + Slices פרוסות + Notes הערות + Pixel Grid רשת פיקסלים + Pixel Art פיקסל ארט + Pixel Art Preview תצוגה מקדימה של פיקסל ארט + Pattern Preview תצוגה מקדימה של תבנית + Brush Preview תצוגה מקדימה של מברשת + Mesh רשת (Mesh) + Edit Pins ערוך סיכות + Document Bounds גבולות המסמך + Show Extras Options… הצג אפשרויות תוספות… + Rulers סרגלים + Snap הצמדה + Snap To הצמד אל + Lock Guides נעל קווים מנחים + Clear Guides נקה קווים מנחים + Clear Selected Artboard Guides נקה קווים מנחים של לוח הציור הנבחר + Clear Canvas Guides נקה קווים מנחים של הקנבס + New Guide… קו מנחה חדש… + Lock Slices נעל פרוסות + Clear Slices נקה פרוסות + Match Zoom התאם מידת תקריב + Match Location התאם מיקום + Match Rotation התאם סיבוב + Cascade מדורג + Tile פריסה באריחים + Tile All Horizontally פרוס הכול אופקית + Tile All Vertically פרוס הכול אנכית + 2-up Horizontal שתי תמונות אופקית + 2-up Vertical שתי תמונות אנכית + 3-up Horizontal שלוש תמונות אופקית + 3-up Stacked שלוש תמונות בערימה + 3-up Vertical שלוש תמונות אנכית + 4-up ארבע תמונות + 6-up שש תמונות + Consolidate All to Tabs אחד הכול לכרטיסיות + Float in Window צף בחלון + Float All in Windows צף הכול בחלונות + New Window for Document חלון חדש למסמך + Workspace סביבת עבודה + Essentials בסיסי + Graphic and Web גרפיקה ואינטרנט + Painting ציור + Photography צילום + New Workspace… סביבת עבודה חדשה… + Delete Workspace… מחק סביבת עבודה… + Reset Workspace אפס סביבת עבודה + Reset Tool אפס כלי + Reset All Tools אפס את כל הכלים + Reset all tools to their default settings? לאפס את כל הכלים להגדרות ברירת המחדל שלהם? + Lock Workspace נעל סביבת עבודה + Theme עיצוב + Pro Theme עיצוב Pro + Pro Medium Gray Theme עיצוב Pro אפור בינוני + Pro Light Gray Theme עיצוב Pro אפור בהיר + Pro Light Theme עיצוב Pro בהיר + Studio Theme עיצוב Studio + Studio Light Theme עיצוב Studio בהיר + Adwaita Light Theme עיצוב Adwaita בהיר + Adwaita Dark Theme עיצוב Adwaita כהה + Classic Theme עיצוב קלאסי + Solarized dark Solarized כהה + Solarized Dark Theme עיצוב Solarized כהה + Breeze dark Breeze כהה + Breeze Dark Theme עיצוב Breeze כהה + Breeze light Breeze בהיר + Breeze Light Theme עיצוב Breeze בהיר + Soft dark רך כהה + Soft light רך בהיר + Soft Dark Theme עיצוב רך כהה + Soft Light Theme עיצוב רך בהיר + Next Theme העיצוב הבא + Actions פעולות + Brush Settings הגדרות מברשת + Brushes מברשות + Channels ערוצים + Character תו + Character Styles סגנונות תווים + Clone Source מקור שכפול + Color צבע + Glyphs גליפים + Gradients מעברי צבעים + Histogram היסטוגרמה + History היסטוריה + Info מידע + Measurement Log יומן מדידה + Modifier Keys מקשי עריכה + Navigator נווט + Options אפשרויות + Paragraph פסקה + Paragraph Styles סגנונות פסקה + Paths נתיבים + Patterns תבניות + Properties מאפיינים + Shapes צורות + Styles סגנונות + Swatches דוגמיות צבע + Timeline ציר זמן + Tool Presets ערכות כלים קבועות מראש + Tools כלים + About PhotoCraft אודות PhotoCraft + PhotoCraft Website אתר PhotoCraft + PhotoCraft on GitHub PhotoCraft ב-GitHub + ArtCraft Website אתר ArtCraft + Join the ArtCraft Discord… הצטרף לדיסקורד של ArtCraft… + Report an Issue… דווח על תקלה… + WIA Support… תמיכת WIA… + Apply החל + HSB/HSL HSB/HSL + Invert… היפוך… + Load Files into Stack… טען קבצים לערימה… + Motion תנועה + Notes… הערות… + Other… אחר… + Remove Warp Split הסר פיצול עיוות + Shape צורה + Split Warp Crosswise פצל עיוות לרוחב + Split Warp Horizontally פצל עיוות אופקית + Split Warp Vertically פצל עיוות אנכית + Statistics… סטטיסטיקה… + Refine Strokes חידוד משיכות + Edits עריכות +@plural {n} item|{n} items {n} פריט|{n} פריטים + Auto אוטומטי + (print to the printer) (הדפסה למדפסת) + + Add variable + הוסף משתנה + 30 frames @ 30 fps 30 פריימים ב-30 fps + 3D LUT File קובץ LUT תלת-ממדי + Absolute מוחלט + Absolute Colorimetric קולורימטרי מוחלט + Action פעולה + Adaptive אדפטיבי + Adaptive Wide Angle isn't open זווית רחבה אדפטיבית אינה פתוחה + Add הוסף + Add Layer Mask הוסף מסכת שכבה + Add Stop הוסף נקודת עצירה + Add a layer style הוסף סגנון שכבה + Move effect up הזז אפקט מעלה + Move effect down הזז אפקט מטה + Delete effect מחק אפקט + Add a mask (from the selection; {key} inverts) הוסף מסכה (מהבחירה; {key} הופך) + Add an adjustment הוסף התאמה + Add disk הוסף דיסק + Add space after paragraph הוסף רווח אחרי פסקה + Add space before paragraph הוסף רווח לפני פסקה + Add to Sample הוסף לדוגמה + Add to selection ({key}) הוסף לבחירה ({key}) + Adjust for Zoom התאם לתקריב + Adjustment visible התאמה גלויה + Adobe RGB (1998) compatible תואם Adobe RGB (1998) + Align and Distribute יישור וחלוקה + Align and distribute יישור וחלוקה + Align horizontal centers יישר מרכזים אופקיים + Align left edges יישר קצוות שמאליים + Align right edges יישר קצוות ימניים + Aligned מיושר + All Caps אותיות רישיות + All Slices כל הפרוסות + All User Slices כל פרוסות המשתמש + All shortcuts reset to PhotoCraft defaults. כל הקיצורים אופסו לברירת המחדל של PhotoCraft. + Alt Alt + Always use pressure for opacity השתמש בלחיצה לקביעת אטימות בכל פעם + Always use pressure for size השתמש בלחיצה לקביעת גודל בכל פעם + Amount כמות + Anchor: עוגן: + Angle זווית + Angle Gradient מעבר צבעים זוויתי + Angle Jitter ריצוד זווית + Answer the unsaved-changes prompt first ענה קודם על הודעת השינויים שלא נשמרו + Anti-alias החלקת קצוות + Appearance מראה + Appearance (Layer Style) מראה (סגנון שכבה) + Apply Layer Mask החל מסכת שכבה + Add Mask to Selection הוסף מסכה לבחירה + Subtract Mask from Selection חסר מסכה מהבחירה + Intersect Mask with Selection חתוך מסכה עם הבחירה + Apply Per Tip החל על כל קצה + Apply next selected layer comp החל את קומפ השכבות הנבחר הבא + Apply previous selected layer comp החל את קומפ השכבות הנבחר הקודם + Artboard לוח ציור + Artboard Background Color צבע רקע של לוח הציור + Assign working space הקצה מרחב עבודה + Author: מחבר: + Auto Hide הסתרה אוטומטית + Auto-Select: בחירה אוטומטית: + Automatically level near-horizontal line segments ישר אוטומטית קטעי קו קרובים לאופקי + Automatically straighten and level ישר ויישר אוטומטית + Automatically straighten near-vertical line segments ישר אוטומטית קטעי קו קרובים לאנכי + Background רקע + Background Color צבע רקע + Background Contents תוכן רקע + Custom background color צבע רקע מותאם אישית + Balance איזון + Baseline קו בסיס + Baseline shift הזזת קו בסיס + Basic בסיסי + Before (Y) לפני (Y) + Save Settings… שמור הגדרות… + Load Settings… טען הגדרות… + Save these settings as a Camera Raw .xmp file שמור הגדרות אלה כקובץ ‎.xmp של Camera Raw + Load settings from a Camera Raw .xmp file טען הגדרות מקובץ ‎.xmp של Camera Raw + Loaded Camera Raw settings from {file} נטענו הגדרות Camera Raw מתוך {file} + Loaded Camera Raw settings from {file} ({n} not supported) נטענו הגדרות Camera Raw מתוך {file} ({n} לא נתמכות) + Begin recording התחל הקלטה + Bend: כיפוף: + Bicubic דו-מעוקב (Bicubic) + Bicubic (smooth gradients) דו-מעוקב (מעברים חלקים) + Automatic אוטומטי + Bicubic Smoother (enlargement) דו-מעוקב חלק יותר (הגדלה) + Bicubic Sharper (reduction) דו-מעוקב חד יותר (הקטנה) + Bilinear דו-ליניארי (Bilinear) + Black שחור + Black & White שחור ולבן + Black Point Compensation פיצוי נקודה שחורה + Black, White שחור, לבן + Blacks שחורים + Blending מיזוג + Blending Options אפשרויות מיזוג + Blue כחול + Blue, Red, Yellow כחול, אדום, צהוב + Both Axes שני הצירים + Bottom תחתון + Brightness בהירות + Brightness Jitter ריצוד בהירות + Brightness/Contrast בהירות/ניגודיות + Bring the selected pin forward הבא את הסיכה הנבחרת קדימה + Brush Preset picker בוחר ערכת מברשת + Brush Reconstruct Options אפשרויות שחזור מברשת + Brush Tool Options אפשרויות כלי מברשת + Cache Level: רמת מטמון: + Camera Raw isn't open Camera Raw אינו פתוח + Cancel ביטול + Cancel (Esc) ביטול (Esc) + Manage submitted jobs in the system print queue נהל עבודות שנשלחו בתור ההדפסה של המערכת + Cancel any current edits (Esc) בטל עריכות נוכחיות (Esc) + Cancel current crop operation (Esc) בטל פעולת חיתוך נוכחית (Esc) + Cancel transform (Esc) בטל שינוי צורה (Esc) + Cancel warp (Esc) בטל עיוות (Esc) + Canvas קנבס + Canvas extension color: צבע הרחבת קנבס: + Capture לכוד + Capture the visibility, position and style of every layer with + below, then switch between versions. לכוד את מצב התצוגה, המיקום והסגנון של כל שכבה עם + שלהלן, ולאחר מכן החלף בין גרסאות. + Catch-up on Stroke End השלמה בסוף המשיכה + Center מרכז + Center Crop Marks סימוני חיתוך מרכזיים + Center text מרכז את הטקסט + Change שנה + Change All שנה הכול + Change Screen Mode (F) שנה מצב מסך (F) + Change To: שנה ל: + Channel Mixer מערבל ערוצים + Channel: ערוץ: + Check All Layers בדוק את כל השכבות + Check Spelling בדיקת איות + Clarity בהירות-על (Clarity) + Clear All נקה הכול + Clear Override נקה דריסה + Clear Samples נקה דגימות + Click sets foreground · right-click sets background לחיצה קובעת חזית · לחיצה ימנית קובעת רקע + Click the first point or press {key} to close · Esc cancels לחץ על הנקודה הראשונה או הקש {key} לסגירה · Esc מבטל + Click to add a point · drag off or {key}-click or Delete to remove לחץ להוספת נקודה · גרור הצידה או {key}-לחיצה או Delete להסרה + Click to apply, {key}-click to clear overrides, double-click for Style Options לחץ להחלה, {key}-לחיצה לניקוי דריסות, לחיצה כפולה לאפשרויות סגנון + Click to edit the gradient לחץ לעריכת מעבר הצבעים + Click to restore the current colour לחץ לשחזור הצבע הנוכחי + Click to zoom in · {key}-click to zoom out · drag right/left to zoom in/out לחץ להגדלה · {key}-לחיצה להקטנה · גרור ימינה/שמאלה להגדלה/הקטנה + Click with the Note tool to add a note. לחץ עם כלי ההערות כדי להוסיף הערה. + Click: corner · Drag: smooth · Click first point: close · {key} finish · Esc cancel לחיצה: פינה · גרירה: החלקה · לחיצה על הנקודה הראשונה: סגירה · {key} סיום · Esc ביטול + Click: corner · Drag: smooth · {alt}-drag: break handle · Click or drag first point: close · {key} finish · Esc cancel לחיצה: פינה · גרירה: החלקה · {alt}-גרירה: שבירת ידית · לחיצה או גרירה של הנקודה הראשונה: סגירה · {key} סיום · Esc ביטול + Clip to layer below גזור לשכבה שמתחת + Clipped גזור (Clipped) + Close Style Options סגור אפשרויות סגנון + Cmd Cmd + Coated CMYK CMYK מצופה + Color & Swatches צבע ודוגמיות + Color Balance איזון צבע + Color Detail פרטי צבע + Color Grading דירוג צבע (Color Grading) + Color Lookup חיפוש צבע + Color Management ניהול צבע + Color Mixer מערבל צבעים + Color Mode מצב צבע + Color Priority עדיפות צבע + Color Range preview תצוגה מקדימה של טווח צבעים + Color: צבע: + Colorize צביעה (Colorize) + Colors צבעים + Commit Perspective Warp ({key}) אשר עיוות פרספקטיבה ({key}) + Commit Puppet Warp ({key}) אשר עיוות בובה ({key}) + Commit any current edits ({key}) אשר עריכות נוכחיות ({key}) + Commit current crop operation ({key}) אשר פעולת חיתוך נוכחית ({key}) + Commit transform ({key}) אשר שינוי צורה ({key}) + Commit warp ({key}) אשר עיוות ({key}) + Constant קבוע + Constrain proportions שמור על פרופורציות + Contact Sheet II גיליון מגע II + Content-Aware מודע לתוכן + Contiguous רציף + Contrast ניגודיות + Control: בקרה: + Convert to sRGB המר ל-sRGB + Copies עותקים + Copper נחושת + Copyright זכויות יוצרים + Copyright and Contact Info זכויות יוצרים ופרטי קשר + Corner Crop Marks סימוני חיתוך בפינות + Corner radius רדיוס פינה + Correction תיקון + Count Jitter ריצוד ספירה + Create צור + Create Droplet צור Droplet + Create Texture צור מרקם + Create Video Timeline צור ציר זמן וידאו + Create a new count group צור קבוצת ספירה חדשה + Create a new document or open an existing file. צור מסמך חדש או פתח קובץ קיים. + Create a new group צור קבוצה חדשה + Create a new layer צור שכבה חדשה + Create new action צור פעולה חדשה + Create new channel צור ערוץ חדש + Create new document from current state צור מסמך חדש מהמצב הנוכחי + Create new fill or adjustment layer צור שכבת מילוי או התאמה חדשה + Create new gradient צור מעבר צבעים חדש + Create new group צור קבוצה חדשה + Create new layer comp צור קומפ שכבות חדש + Create new pattern from the selection צור תבנית חדשה מהבחירה + Create new shape from the current path צור צורה חדשה מהנתיב הנוכחי + Create new snapshot צור תצלום מצב חדש + From: מ: + Full Document מסמך מלא + Merged Layers שכבות ממוזגות + Create new tool preset צור ערכת כלי חדשה + Crop Factor מקדם חיתוך + Ctrl Ctrl + Current & Below נוכחי ומתחת + Current Layer שכבה נוכחית + Current Size גודל נוכחי + Current Tool Only הכלי הנוכחי בלבד + Curve עקומה + Curves עקומות + Custom מותאם אישית + Custom Shapes צורות מותאמות אישית + Cyan ציאן + Cyan · Red ציאן · אדום + Darken הכהה + Darks כהים + Data Sets ערכות נתונים + Default ברירת מחדל + Default colours (D) צבעי ברירת מחדל (D) + Default printer מדפסת ברירת מחדל + Default restored. ברירת המחדל שוחזרה. + Define הגדר + Define at least one variable first. הגדר לפחות משתנה אחד קודם. + Dehaze הסרת אובך (Dehaze) + Delete Cropped Pixels מחק פיקסלים חתוכים + Delete Group מחק קבוצה + Delete Layer Mask מחק מסכת שכבה + Delete Layers מחק שכבות + Add Shortcut הוסף קיצור + Delete Shortcut מחק קיצור + Delete Timeline מחק ציר זמן + Delete Tool Preset מחק ערכת כלי + Delete count group מחק קבוצת ספירה + Delete current channel מחק ערוץ נוכחי + Delete current state מחק מצב נוכחי + Delete effect layer מחק שכבת אפקט + Delete layer ‘{name}’? למחוק את השכבה '{name}'? + Delete {count} layers? {names} למחוק {count} שכבות? {names} + Delete layer? למחוק שכבה? + The document is closed המסמך סגור + The document or selected layers changed. Please request deletion again. המסמך או השכבות הנבחרות השתנו. בקש את המחיקה מחדש. + Missing delete command פקודת מחיקה חסרה + Invalid delete command פקודת מחיקה לא תקינה + Layer deleted, but confirmation preference could not be saved: {error} השכבה נמחקה, אך לא ניתן היה לשמור את העדפת האישור: {error} + Delete layer מחק שכבה + Delete layer comp מחק קומפ שכבות + Delete note מחק הערה + Delete selected measurements מחק מדידות נבחרות + Delete style מחק סגנון + Delete tool preset מחק ערכת כלי + Density צפיפות + Density: צפיפות: + Depth עומק + Depth Jitter ריצוד עומק + Description תיאור + Deselect All בטל בחירת הכול + Detail פרט + Diamond Gradient מעבר צבעים יהלומי + Difference הבדל (Difference) + Diffusion פיזור + Discard the embedded profile (don't color manage) התעלם מהפרופיל המוטבע (אל תנהל צבע) + Discontiguous לא רציף + Discord Discord + Dismiss סגור + Display P3 Display P3 + Display Text הצג טקסט + Dither דיתור (Dither) + Divide… חלוקה… + Document מסמך + Don't Save אל תשמור + No לא + Yes כן + Done בוצע + Dots נקודות + Drag a rectangle around the object גרור מלבן מסביב לאובייקט + Drag on the image to add a constraint; Shift for horizontal/vertical; right-click a constraint to change or delete it. גרור על התמונה כדי להוסיף אילוץ; Shift לאופקי/אנכי; לחיצה ימנית על אילוץ כדי לשנות או למחוק אותו. + Click: select anchor · Drag: move anchor, handle or segment · {shift}-click: add · {alt}-click: whole subpath לחיצה: בחירת עוגן · גרירה: הזזת עוגן, ידית או קטע · {shift}-לחיצה: הוספה · {alt}-לחיצה: תת-נתיב שלם + Draw with the Pen tool (P) or make a work path from a selection. צייר עם כלי הקולמוס (P) או צור נתיב עבודה מבחירה. + Drop an image or PSD anywhere to open it. שחרר תמונה או PSD בכל מקום כדי לפתוח אותה. + Native file drag-and-drop is unavailable גרירה ושחרור טבעיים של קבצים אינם זמינים + Native file drag-and-drop is not supported on Wayland yet. Use File › Open, or copy the image in your file manager and paste it with {paste}. גרירה ושחרור טבעיים של קבצים עדיין לא נתמכים ב-Wayland. השתמש בקובץ › פתח, או העתק את התמונה במנהל הקבצים שלך והדבק אותה עם {paste}. + To drop files, start PhotoCraft under XWayland: `{command}` כדי לשחרר קבצים, הפעל את PhotoCraft תחת XWayland: `{command}` + Or set Preferences › Performance › Linux display server to X11: PhotoCraft then always starts under XWayland. או הגדר העדפות › ביצועים › שרת תצוגה ב-Linux ל-X11: PhotoCraft יופעל אז תמיד תחת XWayland. + Edit › Paste עריכה › הדבק + Duplicate Layers… שכפל שכבות… + Duplicate style שכפל סגנון + Edit Toolbar… ערוך סרגל כלים… + Use File › Open, or paste a copied image with {paste}. השתמש בקובץ › פתח, או הדבק תמונה שהועתקה עם {paste}. + Edit in Quick Mask Mode (Q) ערוך במצב מסכה מהירה (Q) + Edit in Standard Mode (Q) ערוך במצב תקני (Q) + Effects אפקטים + Embed Color Profile הטבע פרופיל צבע + Embedded Profile Mismatch חוסר התאמה בפרופיל המוטבע + Enable airbrush-style build-up effects אפשר אפקטי הצטברות בסגנון אירוגרף + Enhance Edge שפר קצה + Entire Font כל הגופן + Exact מדויק + Expansion: התפשטות: + Export Presets ייצוא ערכות קבועות מראש + Export selected measurements (CSV) ייצוא מדידות נבחרות (CSV) + Exposure חשיפה + Exposure and Gamma חשיפה וגמא + Exposure: חשיפה: + Eyedropper טפטפת + Factor: מקדם: + Faux Bold מודגש מדומה (Faux Bold) + Faux Italic נטוי מדומה (Faux Italic) + Feather הכהיה (Feather) + Fewer Points פחות נקודות + File Settings הגדרות קובץ + Fill מילוי + Fill: מילוי: + Filter for adjustment layers סנן שכבות התאמה + Filter for pixel layers סנן שכבות פיקסלים + Filter for shape layers סנן שכבות צורה + Filter for smart objects סנן אובייקטים חכמים + Filter for type layers סנן שכבות טקסט + Filter: סינון: + Finger Painting ציור באצבע + Fisheye עין דג (Fisheye) + Fit התאמה + Fit Screen התאם למסך + Fill Screen מלא מסך + Fit in View התאם לתצוגה + Fixed קבוע + Fixed Ratio יחס קבוע + Fixed Size גודל קבוע + Flip היפוך + Flip X היפוך X + Flip X Jitter ריצוד היפוך X + Flip Y היפוך Y + Flip Y Jitter ריצוד היפוך Y + Flow זרימה + Flow Jitter ריצוד זרימה + Focal Length אורך מוקד + Font גופן + Font Size: גודל גופן: + Font size גודל גופן + Foreground חזית + Foreground to Background חזית לרקע + Foreground/Background Jitter ריצוד חזית/רקע + Format תבנית + Frame from Layers… פריים משכבות… + Free חופשי + Full Spherical כדורי מלא + Fuzziness: עמימות: + GPU GPU + Gamma Correction תיקון גמא + Gamma: גמא: + Global גלובלי + Glow Color צבע זוהר + Gradient Map מפת מעברי צבע + Grain גרגיריות + Gray אפור + Gray Gamma 2.2 אפור גמא 2.2 + Green ירוק + Group קבוצה + Hardness קשיחות + Heart לב + Height גובה + Height: גובה: + Hide Auto Slices הסתר פרוסות אוטומטיות + Hide Properties הסתר מאפיינים + Highlight Compression דחיסת הדגשות + Highlight Priority עדיפות הדגשות + Highlights הדגשות + Home בית + Horizontal scale קנה מידה אופקי + Hue גוון + Hue Jitter ריצוד גוון + Hue/Saturation גוון/רוויה + Hyphenate מקף חלוקה + Ignore התעלם + Ignore All התעלם מהכול + Image Size גודל תמונה + Import Brushes… ייבוא מברשות… + Gradient Preset Options אפשרויות ערכת מעבר צבעים + Import .GRD ייבוא .GRD + Choose a gradient file (.grd). בחר קובץ מעבר צבעים (‎.grd). + Import brushes (.abr) ייבוא מברשות (‎.abr) + Import Presets ייבוא ערכות קבועות מראש + Imported יובא + Indent First הזחת שורה ראשונה + Indent Left הזחה שמאלית + Indent Right הזחה ימנית + Indent first line הזח שורה ראשונה + Indent left margin הזח שוליים שמאליים + Indent right margin הזח שוליים ימניים + Input: קלט: + Inside בפנים + Interlaced שזור + Interpolation: אינטרפולציה: + Intersect with selection ({key}) חתוך עם הבחירה ({key}) + Invert All הפוך הכול + Invert has no settings. להיפוך אין הגדרות. + Italic נטוי + Join us on Discord הצטרף אלינו בדיסקורד + Justify all יישור לשני הצדדים (כולל שורה אחרונה) + Justify last centered יישור לשני הצדדים, שורה אחרונה ממורכזת + Justify last left יישור לשני הצדדים, שורה אחרונה לשמאל + Justify last right יישור לשני הצדדים, שורה אחרונה לימין + Kerning ריווח תווים (Kerning) + Keyboard Shortcuts קיצורי מקלדת + Keyboard Shortcuts and Menus קיצורי מקלדת ותפריטים + Kind סוג + Label Size גודל תווית + Labels תוויות + Lanczos (sharp) Lanczos (חד) + Landscape לרוחב + Last Document State המצב האחרון של המסמך + Layout פריסה + Leading ריווח שורות (Leading) + Leading (set to the font size × auto-leading when Auto) ריווח שורות (נקבע לגודל הגופן × ריווח אוטומטי כאשר אוטומטי) + Leave as is (don't color manage) השאר כמו שהוא (אל תנהל צבע) + Left align text יישר טקסט לשמאל + Length: אורך: + Level רמה + Levels רמות + Lighten הבהר + Lightness בהירות גוון (Lightness) + Lights תאורה (Lights) + Limits: גבולות: + Linear Gradient מעבר צבעים לינארי + Link layers קשר שכבות + Link width and height קשר רוחב וגובה + Liquify is not open נזילות אינה פתוחה + Load טען + Load 3D LUT… טען LUT תלת-ממדי… + Load channel as selection טען ערוץ כבחירה + Load… טען… + Localized Color Clusters אשכולות צבע ממוקמים + Lock נעל + Lock all נעל הכול + Lock image pixels נעל פיקסלי תמונה + Lock layer נעל שכבה + Lock position נעל מיקום + Lock transparent pixels נעל פיקסלים שקופים + Lock: נעילה: + Logical Length: אורך לוגי: + Logical Units: יחידות לוגיות: + Luminance בהירות אור (Luminance) + Luminance Detail פרטי בהירות אור + Magenta מגנטה + Magenta · Green מגנטה · ירוק + Maintain aspect ratio שמור על יחס גובה-רוחב + Marker Size גודל סמן + Mask All מסך הכול + Mask Options אפשרויות מסכה + Masking מיסוך + Master ראשי + Matte מסגרת (Matte) + Median: חציון: + Menus תפריטים + Mesh Size גודל רשת + Metadata מטא-נתונים + Metrics מדדים (Metrics) + Midpoint נקודת ביניים + Midtones גוני ביניים + Midtones from: גוני ביניים מ: + Midtones to: גוני ביניים אל: + Minimum Depth עומק מינימלי + Minimum Diameter קוטר מינימלי + Minimum Roundness עגילות מינימלית + Mode: מצב: + Monochrome מונוכרום + More Points נקודות נוספות + Move effect layer down הזז שכבת אפקט מטה + Move effect layer up הזז שכבת אפקט מעלה + Move to הזז אל + Name שם + Name: שם: + Nearest Neighbor שכן קרוב (Nearest Neighbor) + Nearest Neighbor (hard edges) שכן קרוב (קצוות קשים) + New Size גודל חדש + New document… מסמך חדש… + New effect layer שכבת אפקט חדשה + New selection בחירה חדשה + Next frame פריים הבא + Next note הערה הבאה + No Color בלי צבע + No Color Management בלי ניהול צבע + No Dither בלי דיתור + No author בלי מחבר + No character style בלי סגנון תווים + No document אין מסמך + No matching commands אין פקודות תואמות + No presets for the current tool. אין ערכות קבועות מראש לכלי הנוכחי. + No presets of this type. אין ערכות קבועות מראש מהסוג הזה. + No properties אין מאפיינים + No tool presets. אין ערכות כלים קבועות מראש. + Noise Reduction הפחתת רעש + Normal רגיל + Not in Dictionary: לא במילון: + OK אישור + Offset היסט + Only Web Colors רק צבעי אינטרנט + Opacity אטימות + Opacity Jitter ריצוד אטימות + Opacity: אטימות: + Open a document to define variables. פתח מסמך כדי להגדיר משתנים. + Open a document to select a colour range. פתח מסמך כדי לבחור טווח צבעים. + Open a document to use the timeline. פתח מסמך כדי להשתמש בציר הזמן. + Optical אופטי + Optimized מותאם (Optimized) + Option-click to define a source point to clone from לחיצת Option כדי להגדיר נקודת מקור לשכפול + Original מקורי + Output Channel: ערוץ פלט: + Output Levels: רמות פלט: + Output: פלט: + Outside בחוץ + Overlay Color צבע שכבת-על + Overlay Opacity אטימות שכבת-על + Overlay: Rule of Thirds שכבת-על: חלוקה לשלישים + Override Pressure דרוס לחיצה + Override Rotation דרוס סיבוב + Override Tilt דרוס הטיה + Override Tilt X דרוס הטיה X + Override Tilt Y דרוס הטיה Y + PRESET DETAILS פרטי ערכה קבועה מראש + PSD PSD + Paint Overlay שכבת-על צבע + Panel locations are saved in the workspace. Keyboard shortcuts, menus and toolbar are optional. מיקומי הפאנלים נשמרים בסביבת העבודה. קיצורי מקלדת, תפריטים וסרגל כלים הם אופציונליים. + Paper נייר + Path נתיב + Pattern תבנית + Pattern Size גודל תבנית + Pause השהה + Percent אחוז + Perceptual תפיסתי (Perceptual) + Perspective Warp is not active עיוות פרספקטיבה אינו פעיל + Perspective Warp: draw planes along the image's perspective, then switch to Warp עיוות פרספקטיבה: צייר מישורים לאורך הפרספקטיבה של התמונה, ולאחר מכן עבור לעיוות + Photo Filter מסנן תמונה + PhotoCraft PhotoCraft + PhotoCraft Manages Colors PhotoCraft מנהל צבעים + PhotoCraft — an open-source, native image editor written in Rust. PhotoCraft — עורך תמונות קוד-פתוח וטבעי, שנכתב ב-Rust. + Pin Depth: עומק סיכה: + Pixel Length: אורך פיקסלים: + Pixels/Centimeter פיקסלים/סנטימטר + Pixels/Inch פיקסלים/אינץ' + Pixels: פיקסלים: + Play הפעל + Play selection הפעל בחירה + Portrait לאורך + Position מיקום + Position and Size מיקום וגודל + Posterize פוסטריזציה + Preserve Details שמור על פרטים + Preserve Luminosity שמור על בהירות אור + Preset ערכה קבועה מראש + Preset Type סוג ערכה קבועה מראש + Preset: ערכה קבועה מראש: + Presets: ערכות קבועות מראש: + Press keys… הקש מקשים… + Pressure לחיצה + Pressure for Opacity לחיצה לאטימות + Pressure for Size לחיצה לגודל + Prevent auto-nesting in and out of Artboards and Frames מנע קינון אוטומטי אל/מתוך לוחות ציור ומסגרות + Preview תצוגה מקדימה + Previous frame פריים קודם + Previous note הערה קודמת + Print הדפסה + Printer מדפסת + Printer Manages Colors המדפסת מנהלת צבעים + Printer Setup הגדרת מדפסת + Printing Marks סימוני הדפסה + Progressive מתקדם + Promote העלה בדרגה (Promote) + Protect Detail הגן על פרטים + Protect Foreground Color הגן על צבע חזית + Protect Tones הגן על גוונים + Proximity Match התאמת קרבה + Pulled String Mode מצב חוט מתוח + Puppet Warp is not active עיוות בובה אינו פעיל + Purity טוהר + Quality איכות + Quick Actions פעולות מהירות + Quick Export As PNG ייצוא מהיר כ-PNG + Radial Gradient מעבר צבעים רדיאלי + Radius רדיוס + Radius: רדיוס: + Range: טווח: + Rate קצב + Recently Used נעשה בו שימוש לאחרונה + Reconstruct שחזור בנייה (Reconstruct) + Record ● a sequence of edits, then play ▶ it on any document. הקלט ● רצף עריכות, ואז הפעל ▶ אותו על כל מסמך. + Red אדום + Redefine style by current selection הגדר מחדש סגנון לפי הבחירה הנוכחית + Refine חידוד (Refine) + Reflected Gradient מעבר צבעים מוחזר + Registration Marks סימוני רישום + Regular רגיל + Relative יחסי + Relative Colorimetric קולורימטרי יחסי + Remove הסר + Remove All Pins הסר את כל הסיכות + Remove Background הסר רקע + Remove Planes הסר מישורים + Remove Tool הסר כלי + Remove stop הסר נקודת עצירה + Remove variable הסר משתנה + Rename שנה שם + Rename Group… שנה שם קבוצה… + Rename Layer… שנה שם שכבה… + Rename Tool Preset… שנה שם ערכת כלי… + Rename… שנה שם… + Resample שינוי דגימה מחדש (Resample) + Reset All to Defaults אפס הכול לברירת המחדל + Import Shortcuts… ייבוא קיצורים… + Load a keyboard shortcut set saved as .kys טען ערכת קיצורי מקלדת שנשמרה כ-‎.kys + Imported {n} shortcuts from {file}. Click OK to keep them. יובאו {n} קיצורים מתוך {file}. לחץ על אישור כדי לשמור אותם. + {n} commands are not in PhotoCraft. {n} פקודות אינן קיימות ב-PhotoCraft. + Keyboard shortcuts imported קיצורי המקלדת יובאו + Your keyboard shortcut set {set} is in use here: {n} shortcuts differ from the defaults. Edit › Keyboard Shortcuts shows them; Reset All to Defaults undoes this. ערכת קיצורי המקלדת שלך {set} נמצאת בשימוש כאן: {n} קיצורים שונים מברירת המחדל. עריכה › קיצורי מקלדת מציג אותם; אפס הכול לברירת המחדל מבטל זאת. + Import keyboard shortcuts? לייבא קיצורי מקלדת? + PhotoCraft found your keyboard shortcut set {set} from another image editor on this computer: {n} of its shortcuts differ from PhotoCraft's. Import it? PhotoCraft מצא את ערכת קיצורי המקלדת שלך {set} מעורך תמונות אחר במחשב זה: {n} מהקיצורים שלה שונים מאלה של PhotoCraft. לייבא אותה? + Edit › Keyboard Shortcuts › Reset All to Defaults undoes an import. עריכה › קיצורי מקלדת › אפס הכול לברירת המחדל מבטל ייבוא. + Don't Import אל תייבא + The keyboard shortcut set was not imported: {error} ערכת קיצורי המקלדת לא יובאה: {error} + Reset Section אפס מקטע + Reset Transform אפס שינוי צורה + Reset to defaults אפס לברירת המחדל + Resolution רזולוציה + Resolution: רזולוציה: + Restore All שחזר הכול + Restore Defaults שחזר ברירת מחדל + Restrictive (Web) מגביל (אינטרנט) + Right align text יישר טקסט לימין + Rigid קשיח + Rotate: סיבוב: + Rotation סיבוב + Roughness גסות (Roughness) + Roundness עגילות + Roundness Jitter ריצוד עגילות + Rulers & Grids סרגלים ורשתות + Sample All Layers דגום את כל השכבות + Sample: דגימה: + Sampling: Background Swatch דגימה: דוגמית רקע + Sampling: Continuous דגימה: רציפה + Sampling: Once דגימה: חד-פעמית + Saturate הגבר רוויה + Saturation רוויה + Saturation Jitter ריצוד רוויה + Save HTML and Images שמור HTML ותמונות + Save as PDF שמור כ-PDF + Save selection as channel שמור בחירה כערוץ + Save… שמור… + Scale to Fit Media שנה קנה מידה להתאמה למדיה + Scatter פיזור (Scatter) + Scratch disks כונני עבודה + Search חיפוש + Search commands חפש פקודות + Search commands, tools and panels… חפש פקודות, כלים ופאנלים… + Search fonts חפש גופנים + Select All בחר הכול + Select Subject בחר נושא + Select a type layer or click into text to insert glyphs בחר שכבת טקסט או לחץ בתוך הטקסט כדי להוסיף גליפים + Select text to apply a character style בחר טקסט כדי להחיל סגנון תווים + Select: בחירה: + Selections בחירות + Selective סלקטיבי + Selective Color צבע סלקטיבי + Send the selected pin backward שלח את הסיכה הנבחרת אחורה + Set additional smoothing options הגדר אפשרויות החלקה נוספות + Set background color הגדר צבע רקע + Set foreground color הגדר צבע חזית + Set painting symmetry options הגדר אפשרויות סימטריה בציור + Symmetry Off סימטריה כבויה + Set shape fill type הגדר סוג מילוי צורה + Set shape stroke type הגדר סוג קו מתאר צורה + Set the text color הגדר את צבע הטקסט + Create warped text צור טקסט מעוות + Shadows צללים + Shape: צורה: + Sharpening חידוד + Shift Shift + Shortcut removed. הקיצור הוסר. + Show All Menu Items הצג את כל פריטי התפריט + Show Backdrop הצג רקע (Backdrop) + Show Guides הצג קווים מנחים + Show Mask הצג מסכה + Show Mesh הצג רשת + Show Overlay הצג שכבת-על + Show Transform Controls הצג פקדי שינוי צורה + Show or hide the Notes panel הצג או הסתר את פאנל ההערות + Show: הצג: + Sides צלעות + Sides: צלעות: + Size גודל + Size Jitter ריצוד גודל + Size: גודל: + Slice Options… אפשרויות פרוסה… + Slices From Guides פרוסות מקווים מנחים + Slices are locked (View › Lock Slices) הפרוסות נעולות (תצוגה › נעל פרוסות) + Small Caps אותיות רישיות קטנות + Smoothing החלקה + Space After רווח אחרי + Space Before רווח לפני + Spacing ריווח + Spell check complete. בדיקת האיות הושלמה. + Split: פיצול: + Star ratio יחס כוכב + Stop playing/recording עצור הפעלה/הקלטה + Straighten יישור + Straighten Layer ישר שכבה + Strength: עוצמה: + Strikethrough קו חוצה + Stroke קו מתאר + Stroke Catch-up השלמת משיכה + Stroke: קו מתאר: + Location מיקום + Location: מיקום: + Style סגנון + Style Options אפשרויות סגנון + Style Options… אפשרויות סגנון… + Style: Normal סגנון: רגיל + Subtract from Sample החסר מהדוגמה + Subtract from selection ({key}) החסר מהבחירה ({key}) + Suggestions: הצעות: + Swap colours (X) החלף צבעים (X) + Swaps height and width מחליף גובה ורוחב + Switch between free transform and warp modes החלף בין מצבי שינוי צורה חופשי ועיוות + Switch theme החלף עיצוב + Temperature טמפרטורה + Tetrahedral טטרהדרלי + Text Position: מיקום טקסט: + Texture מרקם + Texture Each Tip מרקם לכל קצה + Threshold סף + Threshold Level רמת סף + Thumbnail size (smallest: list) גודל תמונה ממוזערת (הקטן ביותר: רשימה) + Tilt X הטיה X + Tilt Y הטיה Y + Tint טינט + Toggle count group visibility הצג/הסתר קבוצת ספירה + Toggle text orientation החלף כיוון טקסט + Tolerance סבילות (Tolerance) + Tolerance: סבילות: + Tone: גוון: + Toolbar סרגל כלים + Top עליון + Total: סך הכול: + Tracking מעקב תווים (Tracking) + Tracking (1/1000 em) מעקב תווים (1/1000 em) + Transparency שקיפות + Transparent שקוף + Trilinear תלת-ליניארי (Trilinear) + Type Styles סגנונות טקסט + Type: סוג: + Underline קו תחתי + Untitled ללא שם + Untitled-1 ללא שם-1 + Update layer comp (visibility, position and appearance) עדכן קומפ שכבות (מצב תצוגה, מיקום ומראה) + Use Default השתמש בברירת המחדל + Use Legacy השתמש בגרסה הישנה + Use Measurement Scale השתמש בקנה מידה למדידה + Variables bind a layer's visibility, text or pixels to a named data slot. משתנים מקשרים את מצב התצוגה, הטקסט או הפיקסלים של שכבה לחריץ נתונים בעל שם. + Vertical scale קנה מידה אנכי + Vibrance תוססות + View Options אפשרויות תצוגה + Vignetting ויניטה (Vignetting) + Violet, Orange סגול, כתום + Visibility מצב תצוגה + Visible גלוי + Warp: עיוות: + Web Snap הצמדה לאינטרנט + Weight משקל + Weight: משקל: + White לבן + White Balance: As Shot איזון לבן: כבצילום + Whites לבנים + Width רוחב + Slant שיפוע + Width: רוחב: + Work Path נתיב עבודה + Yellow צהוב + Yellow · Blue צהוב · כחול + Zoom תקריב + Zoom in הגדל תצוגה + Zoom out הקטן תצוגה + command or shortcut פקודה או קיצור + current נוכחי + image file path נתיב קובץ תמונה + modified שונה + name שם + new חדש + {name} options אפשרויות {name} + ↑↓ navigate {key} run esc close ↑↓ ניווט {key} הפעלה esc סגירה + Version {version} גרסה {version} + New Document מסמך חדש + New Document With Mask מסמך חדש עם מסכה + New Layer With Mask שכבה חדשה עם מסכה + New Layer שכבה חדשה + Save Preset… שמור ערכה קבועה מראש… + Preset Name שם ערכה קבועה מראש + No saved presets yet. אין עדיין ערכות קבועות מראש שמורות. + Error שגיאה + Command פקודה + Adjustment layers have nothing to transform לשכבות התאמה אין מה לשנות + Altitude גובה (זווית) (Altitude) + Android 1080p Android 1080p + Apple Watch 45mm Apple Watch 45mm + Aqua אקווה (Aqua) + Art & Illustration אמנות ואיורים + ArtCraft ArtCraft + Background Eraser Tool כלי מחק רקע + Bevel & Emboss הטבעה ותבליט + Blend Mode מצב מיזוג + Blues כחולים + Blur Tool כלי טשטוש + Bold מודגש + Brush מברשת + Block בלוק + Brush Pose תנוחת מברשת + Brush Tip Shape צורת קצה מברשת + Brush Tool כלי מברשת + Build-up הצטברות + Burn Tool כלי כהייה (Burn) + Centimeters סנטימטרים + Choke כיווץ (Choke) + Classic קלאסי + Click to add text לחץ כדי להוסיף טקסט + Click to fill similar colours לחץ כדי למלא צבעים דומים + Clone Stamp Tool כלי חותמת שכפול + Color Burn כהיית צבע (Color Burn) + Color Dodge הבהרת צבע (Color Dodge) + Color Dynamics דינמיקת צבע + Color Overlay שכבת-על צבע + Comic Book קומיקס + Conform התאמה (Conform) + Content-Aware Fill needs a selection on a pixel layer מילוי מודע לתוכן דורש בחירה בשכבת פיקסלים + Couldn't place {name}: {error} לא ניתן להציב את {name}: {error} + Could not transform: the layer is empty לא ניתן לשנות צורה: השכבה ריקה + Could not use Perspective Warp: the layer is empty לא ניתן להשתמש בעיוות פרספקטיבה: השכבה ריקה + Could not use Puppet Warp: no opaque pixels לא ניתן להשתמש בעיוות בובה: אין פיקסלים אטומים + Could not use Puppet Warp: the layer is empty לא ניתן להשתמש בעיוות בובה: השכבה ריקה + Crop Tool כלי חיתוך + Crosswise לרוחב (Crosswise) + Current Tool הכלי הנוכחי + Custom Shape Tool כלי צורה מותאמת אישית + Cyans ציאנים + Default PhotoCraft Size גודל ברירת מחדל של PhotoCraft + Delete Workspace מחק סביבת עבודה + Diamond יהלום + Dimensions: מידות: + Direction כיוון + Distance מרחק + Document Dimensions מידות המסמך + Document Profile פרופיל המסמך + Document Sizes גדלי מסמך + Dodge Tool כלי הבהרה (Dodge) + Down מטה + Drag to draw a gradient גרור כדי לצייר מעבר צבעים + Drag to move the active layer גרור כדי להזיז את השכבה הפעילה + Drag to pan · hold Space with any tool גרור כדי לגלול · החזק Space עם כל כלי + Drop Shadow צל נפל + Dual Brush מברשת כפולה + Edge קצה + Efficiency יעילות + Efficiency: 100% יעילות: 100% + Ellipse Tool כלי אליפסה + Elliptical Marquee Tool כלי בחירה אליפטי + Single Row Marquee Tool כלי בחירה שורה בודדת + Single Column Marquee Tool כלי בחירה עמודה בודדת + Emboss תבליט + Eraser מחק + Eraser Tool כלי מחק + ExtraBold מודגש מאוד + ExtraLight קלוש מאוד + Eyedropper Tool כלי טפטפת + Fade דהייה + Fill Opacity אטימות מילוי + Film & Video סרט ווידאו + From מ- + General כללי + GitHub GitHub + Gradient Overlay שכבת-על מעבר צבעים + Gradient Tool כלי מעבר צבעים + Greens ירוקים + Hand Tool כלי יד + Hard קשה + Hard Mix מיקס קשה (Hard Mix) + Healing Brush Tool כלי מברשת ריפוי + Highlights from: הדגשות מ: + History Brush Tool כלי מברשת היסטוריה + Horizontal Type Tool כלי טקסט אופקי + Horizontal Type Mask Tool כלי מסכת טקסט אופקי + Vertical Type Mask Tool כלי מסכת טקסט אנכי + Image Size: גודל תמונה: + Inches אינצ'ים + Indexed מאונדקס + Initial Direction כיוון התחלתי + Inner Bevel הטבעה פנימית + Inner Glow זוהר פנימי + Inner Shadow צל פנימי + Lab Lab + Landscape, 10 x 8 לרוחב, 10 x 8 + Landscape, 6 x 4 לרוחב, 6 x 4 + Landscape, 7 x 5 לרוחב, 7 x 5 + Lasso לאסו + Lasso Tool כלי לאסו + Layer Count מספר שכבות + Layer Knocks Out Drop Shadow השכבה מנקבת את הצל הנפל (Knocks Out) + Legal Legal + Letter Letter + Light קליל (Light) + Line Tool כלי קו + Linear לינארי + Linear Burn כהייה לינארית + Linear Height גובה לינארי + Link with Layer קשר עם שכבה + Lorem Ipsum Lorem Ipsum + Magentas מגנטות + Magic Eraser Tool כלי מחק קסם + Magic Wand Tool כלי שרביט קסם + Marquee בחירה מלבנית (Marquee) + Mean: ממוצע: + Measurement Scale קנה מידה למדידה + Measurement Scale Marker סמן קנה מידה למדידה + Millimeters מילימטרים + Mobile נייד + Move Tool כלי הזזה + Could not use the move tool because the layer is locked. לא ניתן להשתמש בכלי ההזזה כי השכבה נעולה. + Could not complete the Free Transform command because the layer is locked. לא ניתן היה להשלים את פקודת שינוי הצורה החופשי כי השכבה נעולה. + Multiply הכפלה + My Brushes המברשות שלי + Neutrals ניטרליים + New Workspace סביבת עבודה חדשה + Note Tool כלי הערה + Object Selection Tool כלי בחירת אובייקטים + Off כבוי + Open פתח + Orange כתום + Original Ratio יחס מקורי + Out Of Gamut מחוץ לטווח הצבעים + Outer Bevel הטבעה חיצונית + Outer Glow זוהר חיצוני + Overlay שכבת-על (Overlay) + Paint Bucket Tool כלי דלי צבע + Paints from the document's opening state צובע מהמצב הפתיחה של המסמך + Path Selection Tool כלי בחירת נתיב + Direct Selection Tool כלי בחירה ישירה + Add Anchor Point Tool כלי הוספת נקודת עוגן + Delete Anchor Point Tool כלי מחיקת נקודת עוגן + Click a segment to add an anchor point · {alt}-click an anchor to delete it לחץ על קטע כדי להוסיף נקודת עוגן · {alt}-לחיצה על עוגן כדי למחוק אותו + Click an anchor point to delete it · {alt}-click a segment to add one לחץ על נקודת עוגן כדי למחוק אותה · {alt}-לחיצה על קטע כדי להוסיף אחת + Pattern Overlay שכבת-על תבנית + Pen Pressure לחיצת עט + Pen Tilt הטיית עט + Pen Tool כלי קולמוס + Convert Point Tool כלי המרת נקודה + Photo תמונה + PhotoCraft website אתר PhotoCraft + Picas פיקות (Picas) + Pillow Emboss תבליט כרית + Pixel Replacement החלפת פיקסלים + Pixels פיקסלים + Points נקודות + Polygon Tool כלי מצולע + Polygonal Lasso Tool כלי לאסו מצולע + Portrait, 4 x 6 לאורך, 4 x 6 + Portrait, 5 x 7 לאורך, 5 x 7 + PostScript (72 points/inch) PostScript ‏(72 נקודות/אינץ') + Postcard גלויה + Poster פוסטר + Pro (Dark) Pro (כהה) + Pro (Light) Pro (בהיר) + Pro (Light Gray) Pro (אפור בהיר) + Pro (Medium Gray) Pro (אפור בינוני) + Protect Texture הגן על מרקם + Purple סגול + Quick Mask מסכה מהירה + Quick Selection Tool כלי בחירה מהירה + Radial רדיאלי + Rasterize Layer רסטור שכבה + Rasterize Layers רסטור שכבות + Ratio יחס + Recent אחרונים + Rectangle Tool כלי מלבן + Rectangular Marquee Tool כלי בחירה מלבני + Reds אדומים + Reflected מוחזר + Sample: foreground colour דגימה: צבע חזית + Sampled Colors צבעים נדגמים + Satin סאטן + Save Pixel Aspect Ratio שמור יחס גובה-רוחב של פיקסל + Scattering פיזור + Scratch Sizes גדלי זיכרון עבודה + Select Data Points בחר נקודות נתונים + Selection בחירה + SemiBold מודגש-חלקי + Shadows up to: צללים עד: + Shape Dynamics דינמיקת צורה + Sharpen Tool כלי חידוד + Show Extras Options הצג אפשרויות תוספות + Slice Select Tool כלי בחירת פרוסה + Slice Tool כלי פרוסה + Smart Filters מסננים חכמים + Smudge Tool כלי מריחה + Soft רך + Soften החלשה (Soften) + Source מקור + Source: set מקור: הוגדר + Sponge Tool כלי ספוג + Spot Healing Brush Tool כלי מברשת ריפוי נקודתי + Spread התפשטות + Square, 12 x 12 ריבוע, 12 x 12 + Square, 5 x 5 ריבוע, 5 x 5 + Std Dev: סטיית תקן: + Studio (Dark) Studio (כהה) + Studio (Light) Studio (בהיר) + Stylus Wheel גלגל עט (Stylus) + Subtract הפחתה + Tabloid Tabloid + Text Replacement החלפת טקסט + Thin דק + Traditional (72.27 points/inch) מסורתי (72.27 נקודות/אינץ') + Transfer העברה (Transfer) + Triangle Tool כלי משולש + Unsaved changes שינויים שלא נשמרו + Uses the foreground and background colours. משתמש בצבעי החזית והרקע. + Web אינטרנט + Web Large אינטרנט גדול + Web Minimum אינטרנט מינימלי + Web Most Common אינטרנט נפוץ ביותר + WebP (lossless) WebP (ללא אובדן) + Wet Edges קצוות רטובים + Yellows צהובים + Zoom Tool כלי תקריב + {name} Properties מאפייני {name} + Revert “{name}” to the last saved version? Your changes will be lost. לשחזר את "{name}" לגרסה האחרונה שנשמרה? השינויים שלך יאבדו. + Do you want to save the changes you made to “{name}” before quitting? האם לשמור את השינויים שעשית ב"{name}" לפני היציאה? + Do you want to save the changes you made to “{name}” before closing? האם לשמור את השינויים שעשית ב"{name}" לפני הסגירה? + Doc: {flat}/{layered} מסמך: {flat}/{layered} + Scratch: {size} זיכרון עבודה: {size} + Untagged {mode} {mode} ללא תג + Invalid {mode} profile פרופיל {mode} לא תקין + Unnamed {mode} profile פרופיל {mode} ללא שם + {w} px x {h} px ({ppi} ppi) {w} פיקס' x {h} פיקס' ‏({ppi} ppi) + {w} {unit} x {h} {unit} ({ppi} ppi) {w} {unit} x {h} {unit} ‏({ppi} ppi) + Resolution: {dpi} pixels/inch רזולוציה: {dpi} פיקסלים/אינץ' + Doc: {w} × {h} px מסמך: {w} × {h} פיקס' + Frame {current} / {total} פריים {current} / {total} + Count: {n} ספירה: {n} + BLANK DOCUMENT PRESETS ({n}) ערכות מסמך ריק ({n}) + Constraints ({n}) אילוצים ({n}) + Align {what} יישר {what} +@plural {n} Layer|{n} Layers {n} שכבה|{n} שכבות +@plural {n} layer|{n} layers {n} שכבה|{n} שכבות +@plural Group · {n} layer|Group · {n} layers קבוצה · {n} שכבה|קבוצה · {n} שכבות + Additional plugins folder תיקיית תוספים נוספת + Adobe Adobe + Adobe rgb Adobe RGB + Allow agent control אפשר שליטת סוכן + Allow scripts to connect אפשר לסקריפטים להתחבר + Always תמיד + Always create smart objects when placing צור תמיד אובייקטים חכמים בעת הצבה + Animated zoom תקריב מונפש + Apply auto tone החל גוון אוטומטי + Ask שאל + Ask before saving layered tiff שאל לפני שמירת TIFF עם שכבות + Auto collapse icon panels קפל אוטומטית פאנלי סמלים + Auto show hidden panels הצג אוטומטית פאנלים מוסתרים + Auto show home screen הצג אוטומטית מסך הבית + Autosave שמירה אוטומטית + Autosave minutes דקות לשמירה אוטומטית + Beep when done צפצף בסיום + Bicubic automatic דו-מעוקב אוטומטי + Bicubic sharper דו-מעוקב חד יותר + Bicubic smoother דו-מעוקב חלק יותר + Bit depth עומק סיביות + Brush preview color צבע תצוגה מקדימה של מברשת + Cache levels רמות מטמון + Cache tile size גודל אריח מטמון + Camera Raw Defaults ברירות מחדל של Camera Raw + Canvas border גבול קנבס + Show canvas dots הצג נקודות קנבס + Clip thumbnails to layer bounds גזור תמונות ממוזערות לגבולות השכבה + Clip Thumbnails to Layer Bounds גזור תמונות ממוזערות לגבולות השכבה + Canvas color צבע קנבס + Canvas custom color צבע קנבס מותאם אישית + Color picker בוחר צבעים + Color space מרחב צבע + Column width רוחב עמודה + Concise תמציתי + Control port פורט בקרה + Convert to srgb המר ל-sRGB + Cursors סמנים + Custom dark מותאם אישית כהה + Custom light מותאם אישית בהיר + Dark כהה + Dark gray אפור כהה + Dashed lines קווים מקווקווים + Destination יעד + Detailed מפורט + Disks דיסקים + Display p3 Display P3 + Double click layer mask launches select and mask לחיצה כפולה על מסכת שכבה מפעילה בחירה ומיסוך + Drop shadow צל נפל + Dynamic color sliders מחוונים דינמיים לצבע + East asian מזרח אסייתי + Effect cache mb מטמון אפקטים (MB) + Enable flick panning אפשר גלילה בתנועת הברשה + Enable floating document window docking אפשר עגינה של חלון מסמך צף + Enable narrow options bar אפשר סרגל אפשרויות צר + Enabled מאופשר + Enhanced Controls פקדים משופרים + Export clipboard ייצוא לוח גזירים + Extra large גדול מאוד + File Handling טיפול בקבצים + File path נתיב קובץ + Fill new type layers with placeholder מלא שכבות טקסט חדשות בטקסט placeholder + Font preview תצוגה מקדימה של גופן + Full size tip קצה בגודל מלא + Gamut warning color צבע אזהרת טווח צבעים + Gamut warning opacity אטימות אזהרת טווח צבעים + Enable Generator אפשר Generator + Gif GIF + Glossy מבריק + Grid color צבע רשת + Grid colors צבעי רשת + Grid size גודל רשת + Grid style סגנון רשת + Grid unit יחידת רשת + Gridline every קו רשת כל + Guide color צבע קו מנחה + Guide style סגנון קו מנחה + Guides, Grid & Slices קווים מנחים, רשת ופרוסות + Gutter מרווח (Gutter) + History Log יומן היסטוריה + History states מצבי היסטוריה + Ignore exif profile tag התעלם מתג פרופיל EXIF + Image interpolation אינטרפולציית תמונה + Image previews תצוגות מקדימות של תמונה + Integrations שילובים + Interface ממשק + Jpeg quality איכות JPEG + Jpg JPG + Language שפה + Large tabs כרטיסיות גדולות + Legacy compositing הרכבה ישנה (Legacy) + Light gray אפור בהיר + Line שורה + Lines שורות + Lossless ללא אובדן + Lowercase extension סיומת באותיות קטנות + Maximize psd compatibility מקסם תאימות PSD + Medium gray אפור בינוני + Memory usage mb שימוש בזיכרון (MB) + Low resolution previews תצוגות מקדימות ברזולוציה נמוכה + Missing glyph protection הגנה על גליפים חסרים + Modern מודרני + Nearest neighbor שכן קרוב + Never לעולם לא + Normal tip קצה רגיל + Open as smart object פתח כאובייקט חכם + Open in camera raw פתח ב-Camera Raw + Open documents as tabs פתח מסמכים כלשוניות + Overscroll גלילת יתר + Performance ביצועים + Png PNG + Point size גודל נקודה + Precise מדויק + Preserve details שמור על פרטים + Print resolution רזולוציית הדפסה + Pro Pro + Pro light Pro בהיר + Pro light gray Pro אפור בהיר + Pro medium Pro בינוני + Pro photo Pro Photo + Quick export format תבנית ייצוא מהיר + Quick export location מיקום ייצוא מהיר + Recent file count מספר קבצים אחרונים + LUT folder תיקיית LUT + Recent files קבצים אחרונים + Recent fonts גופנים אחרונים + Recover on launch שחזר בעת הפעלה + Remember workspace changes זכור שינויי סביבת עבודה + Resize image during place שנה גודל תמונה בעת הצבה + Rotate view with trackpad סובב תצוגה עם משטח מגע + Same folder אותה תיקייה + Save in background שמור ברקע + Scratch Disks כונני עבודה + Screen מסך + Screen resolution רזולוציית מסך + Scrubby slider acceleration האצת מחוון scrubby + Sessions only הפעלות בלבד (Sessions) + Sharpen for חדד בשביל + Show channels in color הצג ערוצים בצבע + Show crosshair in brush tip הצג כוונת בקצה המברשת + Show extension panels הצג פאנלי הרחבה + Show font names in english הצג שמות גופנים באנגלית + Show menu colors הצג צבעי תפריט + Show only crosshair while painting הצג רק כוונת בעת ציור + Show slice numbers הצג מספרי פרוסות + Show tooltips הצג רמזי מקלדת + Enable animations אפשר הנפשות + Show highlight on rollover הצג הדגשה במעבר עכבר + Show bounding box when dragging layer הצג תיבה תוחמת בעת גרירת שכבה + System title bar סרגל כותרת מערכת + Show transformation values הצג ערכי שינוי צורה + Slice color צבע פרוסה + Smart guide color צבע קו מנחה חכם + Smart quotes מירכאות חכמות + Snap vector tools and transforms to pixel grid הצמד כלי וקטור ושינויי צורה לרשת פיקסלים + Srgb sRGB + Standard תקני + Studio Studio + Studio light Studio בהיר + Adwaita Adwaita + Adwaita dark Adwaita כהה + Subdivisions חלוקות משנה + System מערכת + Text engine מנוע טקסט + Text file קובץ טקסט + Tiny קטן מאוד + Touch gestures תנועות מגע + Transparency & Gamut שקיפות וטווח צבעים + Type units יחידות טקסט + UI font size גודל גופן ממשק + UI scale קנה מידה של ממשק + Units & Rulers יחידות וסרגלים + Use additional plugins folder השתמש בתיקיית תוספים נוספת + Use esc to commit השתמש ב-Esc לאישור + Use gpu השתמש ב-GPU + Use legacy free transform השתמש בשינוי צורה חופשי ישן + Use shift key for tool switch השתמש במקש Shift להחלפת כלי + Vary round brush hardness on hud שנה קשיחות מברשת עגולה ב-HUD + Webp WebP + World ready מוכן גלובלית (World Ready) + Zoom clicked point to center תקרב את הנקודה שנלחצה למרכז + Zoom resizes windows תקריב משנה גודל חלונות + Zoom with scroll wheel תקריב עם גלגל גלילה + Zoom with trackpad pinch תקריב עם צביטה במשטח מגע + Pass Through מעבר (Pass Through) + Dissolve פירוק (Dissolve) + Darker Color צבע כהה יותר + Linear Dodge (Add) הבהרה לינארית (חיבור) + Lighter Color צבע בהיר יותר + Soft Light אור רך + Hard Light אור קשה + Vivid Light אור חזק (Vivid) + Linear Light אור לינארי + Pin Light אור סיכה (Pin Light) + Exclusion החרגה (Exclusion) + Divide חלוקה + Luminosity בהירות אור +@plural {n} sample|{n} samples {n} דוגמה|{n} דוגמאות + {added}, {removed} subtracted {added}, {removed} הוחסרו + Adjustment Preview תצוגה מקדימה של התאמה + Airbrush: keeps depositing paint while the pointer rests. אירוגרף: ממשיך להפקיד צבע כל עוד המצביע נשאר במקום. + Angle: זווית: + Blend If מיזוג אם (Blend If) + Close Tab Group סגור קבוצת כרטיסיות + Collapse כווץ + Collapse All Groups כווץ את כל הקבוצות + Collapse Panel Group כווץ קבוצת פאנלים + Collapse group ({key}-click: all groups) כווץ קבוצה ({key}-לחיצה: כל הקבוצות) + Create new brush from the current settings צור מברשת חדשה מההגדרות הנוכחיות + Create new brush from these settings צור מברשת חדשה מהגדרות אלה + Update the current brush with these settings עדכן את המברשת הנוכחית עם הגדרות אלה + Delete brush מחק מברשת + Drag the arrow to set the angle, the dots to set the roundness גרור את החץ כדי להגדיר את הזווית, את הנקודות כדי להגדיר את העגילות + Expand הרחב + Expand Panel Group הרחב קבוצת פאנלים + Expand group ({key}-click: all groups) הרחב קבוצה ({key}-לחיצה: כל הקבוצות) + Fade steps צעדי דהייה + Hide the layer's effects ({key}-click: all layers) הסתר את אפקטי השכבה ({key}-לחיצה: כל השכבות) + Import Brushes… (.abr or image) ייבוא מברשות… (‎.abr או תמונה) + Import Brush from Image… ייבוא מברשת מתמונה… + Move Group Down הזז קבוצה מטה + Move Group Up הזז קבוצה מעלה + Reset the brush to the defaults אפס את המברשת לברירת המחדל + Restore original size שחזר גודל מקורי + Roundness: עגילות: + Search Brushes חפש מברשות + Show the layer's effects ({key}-click: all layers) הצג את אפקטי השכבה ({key}-לחיצה: כל השכבות) + Brush picker בוחר מברשות + Erase מחק + Right click with painting tools לחיצה ימנית עם כלי ציור + System Info… פרטי מערכת… + System Info פרטי מערכת + More panels פאנלים נוספים + More documents מסמכים נוספים + These settings aren't available in PhotoCraft yet. הגדרות אלה אינן זמינות עדיין ב-PhotoCraft. + Graphics גרפיקה + Reset GPU Backend אפס מנגנון GPU (Backend) + Applies at next launch. חל בהפעלה הבאה. + Click to sample the foreground colour · {key}-click for background לחץ כדי לדגום את צבע החזית · {key}-לחיצה לרקע + {key}-click to set the source {key}-לחיצה כדי להגדיר את המקור + {key} to subtract {key} להפחתה + Clone source {n} ({key}-click with Clone Stamp to set) מקור שכפול {n} ‏({key}-לחיצה עם חותמת השכפול כדי להגדיר) + Source: not set ({key}-click with Clone Stamp) מקור: לא הוגדר ‏({key}-לחיצה עם חותמת השכפול) + Pixel Layer שכבת פיקסלים + Type Layer שכבת טקסט + Shape Layer שכבת צורה + Group Layer שכבת קבוצה + Fill Layer שכבת מילוי + Smart Object Layer שכבת אובייקט חכם + Create Warped Text צור טקסט מעוות + Rasterize Smart Object רסטור אובייקט חכם + Rasterize Fill Content רסטור תוכן מילוי + Rasterize Layer Style רסטור סגנון שכבה + Unlock: picking a preset replaces these settings בטל נעילה: בחירת ערכה קבועה מראש מחליפה הגדרות אלה + Lock: keep these settings when picking another preset נעל: שמור הגדרות אלה בעת בחירת ערכה אחרת + Diameter: קוטר: + Hardness: קשיחות: + No brush presets אין ערכות מברשת קבועות מראש + Toggle the Brush Settings panel (F5) הצג/הסתר את פאנל הגדרות המברשת (F5) + Create new brush preset from the current settings צור ערכת מברשת חדשה מההגדרות הנוכחיות + Brush Settings… (F5): every option of this brush הגדרות מברשת… ‏(F5): כל אפשרות של מברשת זו + Rename Brush… שנה שם מברשת… + Delete Brush מחק מברשת + New Brush Preset… ערכת מברשת חדשה… + Capture Brush Size in Preset לכוד גודל מברשת בערכה + Include Tool Settings הכלל הגדרות כלי + Include Color הכלל צבע + Enter a name for the brush preset הזן שם לערכת המברשת + A brush preset with this name already exists ערכת מברשת בשם זה כבר קיימת + Brush Preset Options אפשרויות ערכת מברשת + Group name שם קבוצה + Brush name שם מברשת + Brush Name שם מברשת + Brush Stroke משיכת מברשת + Brush Tip קצה מברשת + Off: the speed of the pointer sets the spacing כבוי: מהירות המצביע קובעת את הריווח + Tilt Scale קנה מידה של הטיה + Brush Projection הטלת מברשת + Apply the pen's tilt and rotation to the tip shape החל את הטיית העט והסיבוב שלו על צורת הקצה + Mixer Brush מברשת מערבלת + Mixer Brush Tool כלי מברשת מערבלת + Color Replacement Tool כלי החלפת צבע + Wet רטוב + Current Brush Load כמות הצבע הנוכחית במברשת + Load Brush טען מברשת + Clean Brush נקה מברשת + Load the brush after each stroke טען את המברשת לאחר כל משיכה + Clean the brush after each stroke נקה את המברשת לאחר כל משיכה + Mix מיזוג + Wetness Jitter ריצוד לחות + Mix Jitter ריצוד מיזוג + Show the layer mask as an overlay הצג את מסכת השכבה כשכבת-על + Toggle visibility הצג/הסתר + Unlink the mask from the layer בטל קישור בין המסכה לשכבה + Link the mask to the layer קשר את המסכה לשכבה + Gradient מעבר צבעים + Gradient Options אפשרויות מעבר צבעים + Align with layer יישר עם השכבה + Reset Alignment אפס יישור + Centre the gradient (offset 0, 0) מרכז את מעבר הצבעים (היסט 0, 0) + Gradient Editor עורך מעברי צבעים + Gradient picker בוחר מעברי צבעים + Save As Preset שמור כערכה קבועה מראש + The gradient the Gradient tool paints with מעבר הצבעים שבו צובע כלי מעבר הצבעים + Adds the current gradient to the Gradients panel מוסיף את מעבר הצבעים הנוכחי לפאנל מעברי הצבעים + Gradient stops נקודות עצירה של מעבר צבעים + Select a type layer to edit its character and paragraph settings. בחר שכבת טקסט כדי לערוך את הגדרות התווים והפסקה שלה. + Text color צבע טקסט + Type Options אפשרויות טקסט + Anti-aliasing method שיטת החלקת קצוות + Horizontal type טקסט אופקי + Vertical type טקסט אנכי + Fill path with foreground color מלא נתיב בצבע חזית + Stroke path with brush צייר קו מתאר לנתיב עם מברשת + Load path as a selection טען נתיב כבחירה + Make work path from selection צור נתיב עבודה מבחירה + Add vector mask הוסף מסכת וקטור + Create new path צור נתיב חדש + Delete path מחק נתיב + Delete vector mask מחק מסכת וקטור + CPU (no GPU acceleration) CPU ‏(ללא האצת GPU) + DirectX 12 DirectX 12 + GPU backend מנגנון GPU + Linux display server שרת תצוגה ב-Linux + X11 X11 + Metal Metal + OpenGL OpenGL + Use tablet pressure השתמש בלחיצת טאבלט + Vulkan Vulkan + Alt-click to define a source point to clone from Alt-לחיצה כדי להגדיר נקודת מקור לשכפול + No path to make a selection from: draw one with the Pen tool or select one in the Paths panel. אין נתיב ליצירת בחירה ממנו: צייר אחד עם כלי הקולמוס או בחר אחד בפאנל הנתיבים. + Cancel opening בטל פתיחה + Cancelled opening {name} פתיחת {name} בוטלה + Damaged Photoshop document מסמך Photoshop פגום + The document “{name}” may be damaged. המסמך "{name}" עשוי להיות פגום. + Some layers, pixels or masks could not be read. Do you want to continue opening it? לא ניתן לקרוא חלק מהשכבות, הפיקסלים או המסכות. האם להמשיך בפתיחתו? + If you continue, saving over the original may permanently discard unreadable data. Save a copy to keep the original. אם תמשיך, שמירה על גבי הקובץ המקורי עלולה להשליך לצמיתות נתונים שלא ניתנים לקריאה. שמור עותק כדי לשמור על המקור. + The document “{name}” does not have an embedded {mode} profile. למסמך "{name}" אין פרופיל {mode} מוטבע. + The document “{name}” has an embedded color profile that does not match the current {mode} working space. למסמך "{name}" יש פרופיל צבע מוטבע שאינו תואם למרחב העבודה הנוכחי של {mode}. + Working: {working} מרחב עבודה: {working} + Developing {name} מפתח את {name} + Cancelled {label} {label} בוטל + Esc to cancel Esc לביטול + Opened {name} {name} נפתח + Opening {name} פותח את {name} + Saved {name} {name} נשמר + Saving {name} שומר את {name} + Saving {percent} שומר {percent} + A save to {name} is still running; try again when it finishes שמירה ל-{name} עדיין פועלת; נסה שוב כשתסתיים + {label} is writing the file and can no longer be cancelled {label} כותב את הקובץ ולא ניתן יותר לבטל + Opening {name}… פותח את {name}… + Opening… פותח… + Reading… קורא… + Working… עובד… + 3 x 3 3 x 3 + 4 x 4 4 x 4 + 5 x 5 5 x 5 + Grid: רשת: + Color Range טווח צבעים + Adaptive Wide Angle זווית רחבה אדפטיבית + Chalk & Charcoal גיר ופחם + Charcoal פחם + Chrome כרום + Conté Crayon עפרון קונטה + Graphic Pen עט גרפי + Halftone Pattern תבנית חצי-טון + Note Paper נייר הערות + Photocopy העתק צילומי + Plaster טיח (Plaster) + Reticulation רשתור (Reticulation) + Stamp חותמת + Torn Edges קצוות קרועים + Water Paper נייר מים + Move הזזה + Pencil עפרון + Clone Stamp חותמת שכפול + Dodge הבהרה (Dodge) + Burn כהייה (Burn) + Quick Selection בחירה מהירה + History Brush מברשת היסטוריה + Color Replacement החלפת צבע + New Group קבוצה חדשה + Layer Comp קומפ שכבות + Alpha אלפא + Make תוצר (Make) + Model דגם + F F + Artist אמן + Spot Color צבע ספוט (Spot) + Roman רומי (Roman) + Bold Italic מודגש ונטוי + Justification יישור לשני הצדדים + Symbols סמלים + Punctuation סימני פיסוק + Make Work Path צור נתיב עבודה + Make Selection צור בחירה + Fill Path מלא נתיב + Stroke Path צייר קו מתאר לנתיב + Delete Path מחק נתיב + W W + H H + Ruler סרגל + New Layer Comp קומפ שכבות חדש + Duplicate Layer Comp שכפל קומפ שכבות + Rename Layer Comp שנה שם קומפ שכבות + Apply Layer Comp החל קומפ שכבות + Update Layer Comp עדכן קומפ שכבות + Method שיטה + Author מחבר + Software תוכנה + Pencil Tool כלי עיפרון + Pixel פיקסל + Adjustment התאמה + Drag (lasso) or click points (polygonal) · {add} add · {sub} subtract גרור (לאסו) או לחץ על נקודות (מצולע) · {add} הוספה · {sub} הפחתה + Drag a crop box · drag inside to move · edges resize ({ratio} ratio, {centre} centre) · Space moves while drawing · arrows nudge · X swaps orientation · {commit} commits · Esc cancels גרור תיבת חיתוך · גרירה בפנים להזזה · קצוות משנים גודל (יחס {ratio}, מרכז {centre}) · Space מזיז בעת ציור · חצים מזיזים בעדינות · X מחליף כיוון · {commit} מאשר · Esc מבטל + {mode} Color · {bits} bit צבע {mode} · ‏{bits} סיביות + Scrubby Zoom תקריב scrubby + Auto Erase מחיקה אוטומטית + Color Adaptation הסתגלות צבע + Preserve Transparency שמור על שקיפות + shortcut קיצור + Saved נשמר + Arc קשת + Arch כיפה (Arch) + Bulge בליטה + Shell Lower קונכייה תחתית + Shell Upper קונכייה עליונה + Flag דגל + Fish דג + Wave גל + Rise עלייה + Inflate נפיחה + Twist פיתול + Squeeze לחיצה (Squeeze) + Mask מסכה + Channel ערוץ + Rectangle מלבן + New Channel ערוץ חדש + Save Selection שמור בחירה + Load Selection טען בחירה +@id edit.purge.undo בטל (Purge) + Rendering Mode מצב עיבוד + Automatic (recommended) אוטומטי (מומלץ) + CPU / Compatibility CPU / תאימות + Automatic uses GPU acceleration when available and falls back to CPU rendering on errors. אוטומטי משתמש באצת GPU כשהיא זמינה ועובר לעיבוד CPU במקרה של שגיאות. + Switched to CPU rendering הוחלף לעיבוד CPU + GPU acceleration could not continue. Your documents are unchanged. האצת ה-GPU לא יכלה להמשיך. המסמכים שלך לא השתנו. + PhotoCraft is using the CPU image compositor. The window may still use your graphics adapter. PhotoCraft משתמש במרכיב התמונה של ה-CPU. החלון עדיין עשוי להשתמש במאיץ הגרפי שלך. + Retry GPU requires a restart. Save your work first. ניסיון חזרה ל-GPU מחייב הפעלה מחדש. שמור את העבודה שלך קודם. + Retry GPU tries the graphics processor again now. ניסיון חזרה ל-GPU מנסה את המעבד הגרפי מחדש כעת. + GPU acceleration resumed. האצת ה-GPU התחדשה. + Keep Using CPU המשך להשתמש ב-CPU + Retry GPU נסה GPU שוב + Advanced מתקדם + GPU Backend מנגנון GPU + Details פרטים + Rendering mode מצב עיבוד + Freeze Lasso: drag to freeze an area, Alt-drag to thaw it (L) הקפאת לאסו: גרור כדי להקפיא אזור, Alt-גרירה כדי להפשיר אותו (L) + Shadow Clipping Warning (U) אזהרת גזירת צללים (U) + Highlight Clipping Warning (O) אזהרת גזירת הדגשות (O) + Show Lab Color Readouts הצג קריאות צבע Lab + Show Vectorscope הצג וקטורוסקופ + Show Red at 3 o'clock הצג אדום בשעה 3 + Show Skin Tone Indicator הצג מחוון גוון עור + Tone Histogram היסטוגרמת גוון + Show Selected Region הצג אזור נבחר +cameraRaw Light אור + Camera Raw Filter ({layer}) מסנן Camera Raw ‏({layer}) + Camera Raw ({name}) Camera Raw ‏({name}) +cameraRaw Lights בהירים +cameraRaw Darks כהים +cameraRaw Red אדום +cameraRaw Orange כתום +cameraRaw Yellow צהוב +cameraRaw Green ירוק +cameraRaw Aqua אקווה +cameraRaw Blue כחול +cameraRaw Purple סגול +cameraRaw Magenta מגנטה +cameraRaw Blending מיזוג +cameraRaw Tint טינט +cameraRaw Temperature טמפרטורה +cameraRaw Amount מידה + Patch Tool כלי טלאי + Patch: טלאי: + Lasso around an area, then drag the selection צייר לאסו מסביב לאזור, ואז גרור את הבחירה + Transform On Drop שנה צורה בעת שחרור + Scale or rotate the moved area, then press {key} שנה קנה מידה או סובב את האזור שהוזז, ואז הקש {key} + Now drag the selection onto another area כעת גרור את הבחירה לאזור אחר + Edit Type ערוך טקסט + New Style… סגנון חדש… + Style {name} saved הסגנון {name} נשמר + Create new style (from the selected type) צור סגנון חדש (מהטקסט הנבחר) + Create new style from the selected layer צור סגנון חדש מהשכבה הנבחרת + Make Default הגדר כברירת מחדל + Reset to Default אפס לברירת המחדל + Full-resolution preview unavailable תצוגה מקדימה ברזולוציה מלאה אינה זמינה + No patterns אין תבניות + Enable {name} אפשר {name} + Hold Alt while drawing for straight segments החזק Alt בעת ציור לקטעים ישרים + Drag or click polygon points · hold Alt during lasso for straight segments · {add} add · {sub} before drawing subtracts גרור או לחץ על נקודות מצולע · החזק Alt במהלך לאסו לקטעים ישרים · {add} הוספה · {sub} לפני הציור מפחית + Extend הרחבה + Structure: מבנה: + Content-Aware Move Tool כלי הזזה מודע לתוכן + TIFF Options אפשרויות TIFF + Targa Options אפשרויות Targa + JPEG Options אפשרויות JPEG + Image Options אפשרויות תמונה + Format Options אפשרויות תבנית + Baseline ("Standard") בסיס ("תקני") + Baseline Optimized בסיס מותאם + 24 bits/pixel 24 סיביות/פיקסל + 32 bits/pixel 32 סיביות/פיקסל + Including layers will increase file size. הכללת שכבות תגדיל את גודל הקובץ. + Discard Layers and Save a Copy השלך שכבות ושמור עותק + Don't show again אל תציג שוב + Save failed: {error} השמירה נכשלה: {error} + Save cancelled השמירה בוטלה + Magnetic Lasso Tool כלי לאסו מגנטי + Frequency תדירות + Use tablet pressure to change pen width השתמש בלחיצת טאבלט לשינוי רוחב הקו + About אודות + Contributors תורמים + Models דגמים + Sort מיון + Username שם משתמש + Display name שם תצוגה + Real name שם אמיתי + Reverse the order הפוך את הסדר + Grab bag תיבת אוסף (Grab bag) + Table טבלה + Name (A–Z) שם (א-ת) + Merged PRs בקשות מיזוג ממוזגות (PRs) + Commits קומיטים (Commits) + Lines added שורות שהוספו + Lines deleted שורות שנמחקו + Line delta שינוי בשורות + Binary assets added נכסים בינאריים שהוספו + Binary assets removed נכסים בינאריים שהוסרו + First commit קומיט ראשון + First ראשון + Last commit קומיט אחרון + Last אחרון + Contributors: {contributors} · Commits: {commits} תורמים: {contributors} · קומיטים: {commits} + No contributor data was built into this copy. לא נבנו נתוני תורמים בעותק זה. + No model credits were built into this copy. לא נבנו קרדיטים של דגמים בעותק זה. + Company חברה + Version גרסה + % of all commits % מכל הקומיטים + Lines +/− שורות +/− + @{login}: {prs} PRs, {commits} commits, +{added} / −{deleted} lines (Δ {delta}), +{binAdded} / −{binDeleted} binary assets, {first} – {last} @{login}: ‏{prs} PRs, ‏{commits} קומיטים, ‏+{added} / −{deleted} שורות (Δ {delta}), ‏+{binAdded} / −{binDeleted} נכסים בינאריים, ‏{first} – {last} + Create new swatch צור דוגמית צבע חדשה + New Swatch… דוגמית צבע חדשה… + New Swatch Group… קבוצת דוגמיות חדשה… + Import Swatches… ייבוא דוגמיות… + Replace Swatches… החלף דוגמיות… + Export Swatches… ייצוא דוגמיות… + Export Swatches for Exchange… ייצוא דוגמיות להחלפה… + Reset Swatches אפס דוגמיות + Add to Swatches הוסף לדוגמיות + Blend If: מיזוג אם: + Current Layer: שכבה נוכחית: + Channels: ערוצים: + Knockout ניקוב (Knockout) + Apply At Canvas Bounds החל בגבולות הקנבס + Color Picker (Text Color) בוחר צבעים (צבע טקסט) + Color Picker ({name}) בוחר צבעים ({name}) + Color Picker (Fill Color) בוחר צבעים (צבע מילוי) + Fill color צבע מילוי + Color Picker (Stroke Color) בוחר צבעים (צבע קו מתאר) + Stroke color צבע קו מתאר + Pick screen color בחר צבע מהמסך + Sample a pixel anywhere on the screen דגום פיקסל בכל מקום על המסך + Click to pick · Esc to cancel לחץ לבחירה · Esc לביטול + Pick a screen pixel or press Esc to cancel בחר פיקסל במסך או הקש Esc לביטול + Scroll to zoom גלול לתקריב + Drag to pan · Scroll to zoom · Double-click to fit גרור לגלילה · גלול לתקריב · לחיצה כפולה להתאמה + Show/Hide All Panels הצג/הסתר את כל הפאנלים + Show/Hide Panels הצג/הסתר פאנלים + Could not open לא ניתן לפתוח + {path}: the path is not valid Unicode; rename the file and open it again. {path}: הנתיב אינו Unicode תקין; שנה את שם הקובץ ופתח אותו מחדש. + Contents: תוכן: + Custom Pattern: תבנית מותאמת אישית: + Foreground Color צבע חזית + Color… צבע… + 50% Gray 50% אפור + {size} (was {old}) {size} (היה {old}) + Cone חרוט + Cone (Inverted) חרוט (הפוך) + Domed כיפתי + Domed (Inverted) כיפתי (הפוך) + Diagonal (Descending) אלכסוני (יורד) + Contour Editor עורך קו מתאר + Anti-aliased מוחלק קצוות + Corner פינה + Gloss Contour קו מתאר ברק + Contour קו מתאר + Cone - Inverted חרוט - הפוך + Cove - Deep שוקע - עמוק + Cove - Shallow שוקע - שטחי + Half Round חצי עגול + Ring טבעת + Ring - Double טבעת - כפולה + Rolling Slope - Descending מדרון מתגלגל - יורד + Rounded Steps מדרגות מעוגלות + Sawtooth 1 שן-מסור 1 + Red Eye Tool כלי עיניים אדומות + Red Eye עיניים אדומות + Pupil Size גודל אישון + Darken Amount מידת הכהיה + Click a red pupil to neutralize it לחץ על אישון אדום כדי לנטרל אותו + open source קוד פתוח + …and {n} more ...ועוד {n} + Eyedroppers: טפטפות: + Set Black Point הגדר נקודה שחורה + Set Neutral Gray Point הגדר נקודת אפור נייטרלי + Set White Point הגדר נקודה לבנה + Unavailable in this color mode לא זמין במצב צבע זה + Selection Preview: תצוגה מקדימה של בחירה: + Black Matte מסגרת שחורה + White Matte מסגרת לבנה + Seafoam קצף ים + Indigo אינדיגו + Fuchsia פוקסיה + Violet סגלגל + Reset אפס + Large document: redrawing on the CPU מסמך גדול: ציור מחדש על ה-CPU + Redrawing ציור מחדש + This redraw took {seconds} s on the CPU. הציור מחדש הזה לקח {seconds} שניות על ה-CPU. + Edits that change the whole document, such as a layer's blend mode, opacity or visibility, redraw all of it. עריכות שמשנות את כל המסמך, כגון מצב המיזוג, האטימות או מצב התצוגה של שכבה, מציירות אותו מחדש במלואו. + The GPU compositor wasn't used: {reason} מרכיב ה-GPU לא נוצל: {reason} +fontWeight Thin דק +fontWeight ExtraLight קלוש מאוד +fontWeight Light קלוש +fontWeight Regular רגיל +fontWeight Medium בינוני +fontWeight SemiBold מודגש-חלקי +fontWeight Bold מודגש +fontWeight ExtraBold מודגש מאוד +fontWeight Black שחור +fontWeight Italic נטוי + Pattern Stamp Tool כלי חותמת תבנית + Pattern Stamp חותמת תבנית + Impressionist אימפרסיוניסטי + Rotate View סבב תצוגה + Rotate View Tool כלי סיבוב תצוגה + Reset View אפס תצוגה + Drag around the centre to rotate the view · Shift constrains to 15° גרור מסביב למרכז כדי לסבב את התצוגה · Shift מגביל ל-15° + Dual Axis שני צירים + Diagonal אלכסוני + Transform Symmetry שנה צורת סימטריה + Point Sample דגימת נקודה + 3 by 3 Average ממוצע 3 על 3 + 5 by 5 Average ממוצע 5 על 5 + 11 by 11 Average ממוצע 11 על 11 + 31 by 31 Average ממוצע 31 על 31 + 51 by 51 Average ממוצע 51 על 51 + 101 by 101 Average ממוצע 101 על 101 + Sample Size: גודל דגימה: + All Layers No Adjustments כל השכבות ללא התאמות + Current & Below No Adjustments נוכחי ומתחת ללא התאמות + Show Sampling Ring הצג טבעת דגימה + Out of gamut for printing: click for the nearest printable colour מחוץ לטווח הצבעים להדפסה: לחץ לצבע המדפיס הקרוב ביותר + Not a web colour: click for the nearest web colour לא צבע אינטרנט: לחץ לצבע האינטרנט הקרוב ביותר + Color to Alpha… צבע לאלפא… + Transparency Threshold סף שקיפות + Opacity Threshold סף אטימות + PhotoCraft — Screen Color Picker PhotoCraft — בוחר צבעים מהמסך + Rasterize svg groups deeper than רסטר קבוצות SVG עמוקות יותר מ + 0 turns this threshold off; SVG groups nested deeper than 100 levels are always rasterized. 0 מכבה את הסף הזה; קבוצות SVG מקוננות עמוק מ-100 רמות מרוסטרות תמיד. + Rule of Thirds חלוקה לשלישים + Triangle משולש + Golden Ratio היחס הזהב + Golden Spiral ספירלת הזהב + Auto Show Overlay הצג שכבת-על אוטומטית + Always Show Overlay הצג שכבת-על תמיד + Never Show Overlay לעולם לא הצג שכבת-על + Cycle Overlay החלף שכבת-על + Cycle Orientation החלף כיוון + Set the overlay options for the Crop tool הגדר את אפשרויות שכבת-העל לכלי החיתוך + Alt-click went to the desktop, which moves windows with Alt-drag. Set its window-move key to Super, or latch Alt in Window › Modifier Keys. Alt-לחיצה עברה לשולחן העבודה, שמזיז חלונות עם Alt-גרירה. הגדר את מקש הזזת החלון שלו ל-Super, או נעל את Alt בחלון › מקשי עריכה. + Color Picker (Layer Style Color) בוחר צבעים (צבע סגנון שכבה) + Auto Hide Notifications הסתר התראות אוטומטית + Notification Duration (seconds) משך התראה (שניות) + Bundle Arrow-Key Nudges אגד הזזות עדינות עם מקשי חצים + Nudge Bundle Pause (ms) השהיית אגד הזזה עדינה (ms) + Appearance Mode מצב מראה + Dark Theme עיצוב כהה + Light Theme עיצוב בהיר + Pro Medium Pro בינוני + Studio Light Studio בהיר + Next Appearance Mode מצב המראה הבא + Sync with system סנכרן עם המערכת + Active פעיל + Color Picker (Solid Color) בוחר צבעים (צבע אחיד) + Straighten the image by drawing a line on it ישר את התמונה על ידי ציור קו עליה + Set additional Crop options הגדר אפשרויות חיתוך נוספות + Show Cropped Area הצג אזור חתוך + Enable Crop Shield אפשר מגן חיתוך + Match Canvas התאם לקנבס + Auto Adjust Opacity התאם אטימות אוטומטית + Crop Shield color צבע מגן חיתוך + Color Picker (Crop Shield Color) בוחר צבעים (צבע מגן חיתוך) + From Center מהמרכז + Link radii קשר רדיוסים + Star Ratio: יחס כוכב: + Create Rectangle צור מלבן + Create Ellipse צור אליפסה + Create Triangle צור משולש + Create Polygon צור מצולע + Pressure curve עקומת לחיצה + Click to add a point, right-click to remove לחץ להוספת נקודה, לחיצה ימנית להסרה + Some brush presets could not be loaded לא ניתן היה לטעון חלק מערכות המברשת הקבועות מראש + Retry saving presets נסה לשמור ערכות קבועות מראש שוב + Brush preset changes are not saved: {error} שינויי ערכת המברשת הקבועה מראש אינם נשמרים: {error} + Keep this tab open to retain your brushes. השאר כרטיסייה זו פתוחה כדי לשמור על המברשות שלך. + Browser storage is unavailable; brushes are session-only. Keep this tab open to retain them. אחסון הדפדפן אינו זמין; המברשות הן להפעלה זו בלבד. השאר כרטיסייה זו פתוחה כדי לשמור עליהן. + Saving brush presets… Keep this tab open until saving finishes. שומר ערכות מברשת קבועות מראש… השאר כרטיסייה זו פתוחה עד לסיום השמירה. + Reflect שיקוף + Glow זוהר + Negation שלילה + XOR XOR + Color Burn (Paint.NET) כהיית צבע (Paint.NET) + Color Dodge (Paint.NET) הבהרת צבע (Paint.NET) + Stroke Options אפשרויות קו מתאר + Solid אחיד + Dashed מקווקו + Dotted מנוקד + Alignment יישור + Caps קצוות (Caps) + Butt / Flat שטוח + Corners פינות + Miter זוויתי (Miter) + Round עגול + Bevel משופע (Bevel) + Miter limit גבול זוויתי (Miter) + Dashed line קו מקווקו + Dash קו + Gap רווח + Dash / gap lengths × stroke width אורכי קו/רווח × רוחב קו מתאר + Add pair הוסף זוג + Remove pair הסר זוג + Dash offset היסט קו מקווקו + Open paths use centered strokes נתיבים פתוחים משתמשים בקווי מתאר ממורכזים + Use finite lengths and a positive pattern total השתמש באורכים סופיים ובסכום תבנית חיובי + No subject found — try Object Selection or the Lasso לא נמצא נושא — נסה בחירת אובייקטים או לאסו + Quick Selection found nothing there בחירה מהירה לא מצאה שם כלום + Object Selection found nothing there — try a tighter rectangle בחירת אובייקטים לא מצאה שם כלום — נסה מלבן צפוף יותר + No subject found — try a rectangle around the object לא נמצא נושא — נסה מלבן מסביב לאובייקט + Click the first point or press {key} to close · {del} removes a point · Esc cancels לחץ על הנקודה הראשונה או הקש {key} לסגירה · {del} מסיר נקודה · Esc מבטל + Click, then move along an edge · click to fasten a point · {alt}-click for a straight segment · double-click to close לחץ, ואז עבור לאורך קצה · לחץ להצמדת נקודה · {alt}-לחיצה לקטע ישר · לחיצה כפולה לסגירה + Follows only edges this close to the pointer ([ and ] change it) עוקב רק אחרי קצוות קרובים כך למצביע ‏([ ו-] משנים זאת) + Higher values follow only edges that contrast sharply with their surroundings ערכים גבוהים יותר עוקבים רק אחרי קצוות הניגודיים בחדות לסביבתם + How often fastening points are placed by themselves באיזו תדירות נקודות הצמדה מוצבות מעצמן + Appearance Settings… הגדרות מראה… + Add to favorites הוסף למועדפים + Remove from favorites הסר מהמועדפים + Camera Data נתוני מצלמה +cameraData Make יצרן +cameraData Model דגם +cameraData Date Taken תאריך צילום +cameraData Exposure חשיפה +cameraData F-Stop צמצם (F-Stop) +cameraData ISO Speed רגישות ISO +cameraData Focal Length אורך מוקד +cameraData Focal Length (35 mm) אורך מוקד (35 מ"מ) +cameraData Lens עדשה + Activate Panel הפעל פאנל + Change Panel Group שנה קבוצת פאנלים + Change Panel Layout שנה פריסת פאנלים + Close Panel סגור פאנל + Dock Panel עגן פאנל + Float Panel צף פאנל + Move Panel הזז פאנל + Group with קבץ עם + Panel menu תפריט פאנל + Resize panel window שנה גודל חלון פאנל + Resize panels שנה גודל פאנלים + Distribution התפלגות + Uniform אחידה + Gaussian גאוסית + Monochromatic מונוכרומטית + Seed זרע (Seed) + Strength עוצמה + Reduce Color Noise הפחת רעש צבע + Remove Jpeg Artifact הסר ארטיפקט JPEG + Sharpen Details חדד פרטים + Reduce Noise הפחת רעש + Use Classic Mode השתמש במצב קלאסי + Auto Center Preview מרכז תצוגה מקדימה אוטומטית + Next Document המסמך הבא + Previous Document המסמך הקודם + W x H x Resolution W x H x רזולוציה + Front Image תמונה קדמית + Frame Tool כלי מסגרת + Create a new rectangular frame צור מסגרת מלבנית חדשה + Create a new elliptical frame צור מסגרת אליפטית חדשה + Include in playback הכלל בהפעלה + Perspective Crop Tool כלי חיתוך פרספקטיבה + Show Grid הצג רשת + Drag a box or click four corners · drag the corners onto the edges of a skewed shape · {commit} commits · Esc cancels גרור תיבה או לחץ על ארבע פינות · גרור את הפינות לקצוות של צורה משוכה · {commit} מאשר · Esc מבטל + Artboard Tool כלי לוח ציור + Make Portrait הפוך לאורך + Make Landscape הפוך לרוחב + Add New Artboard הוסף לוח ציור חדש + Freeform Pen Tool כלי קולמוס חופשי + Curvature Pen Tool כלי קולמוס עקומה + Curve Fit: התאמת עקומה: + Drag: draw freehand · {alt}-click: straight segment · Release on the start point: close גרור: ציור חופשי · {alt}-לחיצה: קטע ישר · שחרור על נקודת ההתחלה: סגירה + Click: smooth point · Double-click: corner · Drag a point: move · Click first point: close · {key} finish לחיצה: נקודה חלקה · לחיצה כפולה: פינה · גרירת נקודה: הזזה · לחיצה על הנקודה הראשונה: סגירה · {key} סיום + New Crop Preset… ערכת חיתוך חדשה… + Delete Crop Preset… מחק ערכת חיתוך… + Select the crop presets to delete: בחר את ערכות החיתוך למחיקה: + Select the crop presets to delete בחר את ערכות החיתוך למחיקה + Enter a name for the crop preset הזן שם לערכת החיתוך + There is no crop size or ratio to save אין גודל או יחס חיתוך לשמירה + Scale: קנה מידה: + Snap to Origin הצמד למקור + Search settings… חפש הגדרות… + No matching settings אין הגדרות תואמות + Sampling Brush Tool כלי מברשת דגימה + Sampling Area Overlay שכבת-על של אזור דגימה + Show Sampling Area הצג אזור דגימה + Indicates מציין + Sampling Area אזור דגימה + Excluded Area אזור מוחרג + Sampling Area Options אפשרויות אזור דגימה + Rectangular מלבני + Fill Settings הגדרות מילוי + Rotation Adaptation הסתגלות סיבוב + Very High גבוה מאוד + Full מלא + Mirror מראה + Output Settings הגדרות פלט + Output To פלט אל + Animation Options אפשרויות הנפשה + Entire Document כל המסמך + Filter Options אפשרויות מסנן + Layer Bounds גבולות שכבה + Layers Panel Options אפשרויות פאנל שכבות + Lock Layers נעל שכבות + New Artboard… לוח ציור חדש… + New Group… קבוצה חדשה… + New Layer… שכבה חדשה… + Panel Options… אפשרויות פאנל… + Prevent Auto-Nesting מנע קינון אוטומטי + Show Layers הצג שכבות + Thumbnail Contents תוכן תמונה ממוזערת + Thumbnail Size גודל תמונה ממוזערת + Use Default Masks on Fill Layers השתמש במסכות ברירת מחדל בשכבות מילוי + Expand New Effects הרחב אפקטים חדשים + Add “copy” to Copied Layers and Groups הוסף "עותק" לשכבות וקבוצות מועתקות + Preview on canvas when reordering layers תצוגה מקדימה על הקנבס בעת סידור מחדש של שכבות + Show layer mask badges הצג תגי מסכת שכבה + Blending Options ({filter}) אפשרויות מיזוג ({filter}) + Hide the layer's effects and Smart Filters ({key}-click: all layers) הסתר את אפקטי השכבה והמסננים החכמים ({key}-לחיצה: כל השכבות) + Show the layer's effects and Smart Filters ({key}-click: all layers) הצג את אפקטי השכבה והמסננים החכמים ({key}-לחיצה: כל השכבות) + Wait for the current job to finish. המתן לסיום העבודה הנוכחית. + The document or Smart Filter changed. Reopen its dialog. המסמך או המסנן החכם השתנו. פתח מחדש את תיבת הדו-שיח שלו. + Opacity must be between 0% and 100%. האטימות חייבת להיות בין 0% ל-100%. + Dissolve is approximated: it blends without Photoshop's dither. פירוק (Dissolve) מקורב: הוא ממזג בלי הדיתור של Photoshop. + Loading fonts… טוען גופנים… + Response curve עקומת תגובה + Tool כלי + Simulate Pressure דמה לחיצה + Stroke Path… צייר קו מתאר לנתיב… + Background Eraser מחק רקע + Healing Brush מברשת ריפוי + Spot Healing Brush מברשת ריפוי נקודתי + Smudge מריחה + Sponge ספוג + Amount: מידה: + Protect: הגן: + Protect skin tones הגן על גווני עור + Edit points to modify the curve ערוך נקודות כדי לשנות את העקומה + Draw to modify the curve צייר כדי לשנות את העקומה +curves Smooth החלק + Smooth the curve values החלק את ערכי העקומה + Drag to draw the curve · {key}-click draws a straight line גרור כדי לצייר את העקומה · {key}-לחיצה מציירת קו ישר + Edit Plane ערוך מישור + Create Plane צור מישור + Grid Size: גודל רשת: + Vanishing Point: click four corners to create a plane נקודת היעלמות: לחץ על ארבע פינות כדי ליצור מישור + Vanishing Point is not active נקודת היעלמות אינה פעילה + Apply Vanishing Point ({key}) החל נקודת היעלמות ({key}) + Fix the red plane first: its corners must form a convex quad תקן קודם את המישור האדום: הפינות שלו צריכות ליצור מרובע קמור + Alt-click a plane to set the clone source Alt-לחיצה על מישור כדי להגדיר את מקור השכפול + Too many clone strokes: apply Vanishing Point first יותר מדי משיכות שכפול: החל קודם נקודת היעלמות + Onion Skin קליפת בצל (Onion Skin) + Marching Ants נמלים צועדות (Marching Ants) + On Black על שחור + On White על לבן + On Layers על שכבות + Show Edge הצג קצה + Show Original הצג מקור + F cycles the views; hold X to see the image F מחליף בין התצוגות; החזק X כדי לראות את התמונה + Refine Edge Brush (R) מברשת חידוד קצה (R) + Expand Detection Area הרחב אזור גילוי + Restore Original Edge שחזר קצה מקורי + Paint over hair or fur on the image; Alt paints the other mode צבע על שיער או פרווה בתמונה; Alt צובע את המצב האחר + Clear Brush Strokes נקה משיכות מברשת + Show rulers הצג סרגלים + Presentation מצגת + Click to place · Alt-click or drag off-canvas to remove לחץ להצבה · Alt-לחיצה או גרירה מחוץ לקנבס להסרה + No document open אין מסמך פתוח + {n} of {max} sample points {n} מתוך {max} נקודות דגימה + New Snapshot… תצלום מצב חדש… + History Options… אפשרויות היסטוריה… + Allow Non-Linear History אפשר היסטוריה לא לינארית + Make Layer Visibility Changes Undoable אפשר ביטול לשינויי מצב תצוגה של שכבות + Emulsion Down אמולסיה למטה + Functions פונקציות + Print Resolution: רזולוציית הדפסה: + Use Previous Layer to Create Clipping Mask השתמש בשכבה הקודמת כדי ליצור מסכת גזירה + Fill with {mode}-neutral color (white) מלא בצבע נייטרלי ל-{mode} (לבן) + Fill with {mode}-neutral color (black) מלא בצבע נייטרלי ל-{mode} (שחור) + Fill with {mode}-neutral color (50% gray) מלא בצבע נייטרלי ל-{mode} (50% אפור) + (No neutral color exists for {mode} mode.) (אין צבע נייטרלי למצב {mode}.) + Apply mask to layer before removing? להחיל את המסכה על השכבה לפני ההסרה? + The layer or its mask changed. Drag the mask onto the Trash again. השכבה או המסכה שלה השתנו. גרור את המסכה לאשפה מחדש. + Delete the vector mask? למחוק את מסכת הווקטור? +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} יוצאה {n} דוגמית צבע אל {file}|יוצאו {n} דוגמיות צבע אל {file} +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} יובאה {n} מברשת מתוך {group}|יובאו {n} מברשות מתוך {group} +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} יובאה {n} דוגמית צבע מתוך {file}|יובאו {n} דוגמיות צבע מתוך {file} +@plural Played {n} step|Played {n} steps הופעל {n} שלב|הופעלו {n} שלבים +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk עודכן {n} אובייקט חכם מקושר שהשתנה בדיסק|עודכנו {n} אובייקטים חכמים מקושרים שהשתנו בדיסק +@plural Saved for Web: {n} file|Saved for Web: {n} files נשמר לאינטרנט: {n} קובץ|נשמרו לאינטרנט: {n} קבצים +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. {n} שכבה שתועדה בקומפ זה נמחקה. עדכן את הקומפ, או מחק את האזהרה.|{n} שכבות שתועדו בקומפ זה נמחקו. עדכן את הקומפ, או מחק את האזהרה. +@plural {n} plane|{n} planes {n} מישור|{n} מישורים +@plural {n} preset|{n} presets {n} ערכה קבועה מראש|{n} ערכות קבועות מראש +@plural {n} sample point removed|{n} sample points removed {n} נקודת דגימה הוסרה|{n} נקודות דגימה הוסרו +@plural {n} slice|{n} slices {n} פרוסה|{n} פרוסות +@plural {n} step|{n} steps {n} שלב|{n} שלבים +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} ‏(+{n} אזהרת ערכת מברשת נוספת)|{warning} ‏(+{n} אזהרות ערכת מברשת נוספות) +@plural {what} with {n} warning|{what} with {n} warnings {what} עם {n} אזהרה|{what} עם {n} אזהרות + Light Blue כחול בהיר + Light Red אדום בהיר + Medium Blue כחול בינוני + Light Gray אפור בהיר + Object Finder מאתר אובייקטים + No object found there — drag a rectangle around it לא נמצא אובייקט שם — גרור מלבן מסביבו + The active layer has no pixels here — turn on Sample All Layers or select a layer with pixels לשכבה הפעילה אין פיקסלים כאן — הפעל דגימת כל השכבות או בחר שכבה עם פיקסלים + Remove after each stroke הסר אחרי כל משיכה + Apply the removal ({key}) החל את ההסרה ({key}) + Strokes to remove: {n} (Enter applies, Esc cancels) משיכות להסרה: {n} ‏(Enter מאשר, Esc מבטל) + Load Contours… טען קווי מתאר… + Replace Contours… החלף קווי מתאר… + Save Contours… שמור קווי מתאר… + Delete Contour מחק קו מתאר + Loaded contours from {file} נטענו קווי מתאר מתוך {file} + Saved contours to {file} נשמרו קווי מתאר אל {file} +@id select.all בחר הכול + Delete Smart Filters מחק מסננים חכמים + Enable Smart Filters אפשר מסננים חכמים + Delete Layer… מחק שכבה… + Select Similar Colors בחר צבעים דומים + Canvas rotation סיבוב קנבס + Extensions הרחבות + Libraries ספריות + 3D 3D + Toolbars סרגלי כלים + Wand שרביט + Healing ריפוי + Pen קולמוס + Hand יד + Sampler דוגם (Sampler) + Magnetic Lasso לאסו מגנטי + Art History Brush מברשת היסטוריה אמנותית + Spot Healing ריפוי נקודתי + Patch טלאי + Content-Aware Move הזזה מודעת לתוכן + Perspective Crop חיתוך פרספקטיבה + Dodge/Burn הבהרה/כהייה + Dynamics דינמיקה + Tilt הטיה + Defaults restored. ברירת המחדל שוחזרה. + Stop עצור + Create new set צור קבוצה חדשה + Technology Previews תצוגות מקדימות של טכנולוגיה + Create new layer צור שכבה חדשה + Group · {n} layer קבוצה · {n} שכבה + General Blend מיזוג כללי + Advanced Blending מיזוג מתקדם + RGB RGB + Spot Channel ערוץ ספוט + Working Gray Plate לוח אפור עבודה + HSL/Grayscale HSL/גווני אפור + Tone Curve עקומת גוון + Split Toning גוון מפוצל + Lens Corrections תיקוני עדשה + Camera Calibration כיול מצלמה + Snapshots תצלומי מצב + Recovery שחזור + Fill Light תאורת מילוי + Convert to Grayscale המר לגווני אפור + Sharpness חדות + Color Noise Reduction הפחתת רעש צבע + Luminance Smoothness חלקות בהירות אור + Lens עדשה + ISO ISO + Focal Length35mm אורך מוקד 35 מ"מ + Aspect Ratio יחס גובה-רוחב + Time זמן + Enter description… הזן תיאור… + ColorSync ColorSync + ProPhoto ProPhoto + ACES ACES + Industry Standard תקן תעשייתי + Uncoated CMYK CMYK לא מצופה + Newspaper עיתון + Working Spaces מרחבי עבודה + Color Management Policies מדיניות ניהול צבע + Detect Faces גלה פנים + Localize Color Clusters מקם אשכולות צבע + Duplicated selection name שם בחירה כפול + Operation פעולה + New channel only ערוץ חדש בלבד + Color indicates הצבע מציין + Create Snapshot צור תצלום מצב + Delete Snapshot מחק תצלום מצב + New Snapshot תצלום מצב חדש + Snapshot 1 תצלום מצב 1 + Step Forward צעד קדימה + Step Backward צעד אחורה + Nonlinear History היסטוריה לא לינארית + Set New Snapshot as Default הגדר תצלום מצב חדש כברירת מחדל + Automatically Create First Snapshot צור תצלום מצב ראשון אוטומטית + Automatically Create New Snapshot When Saving צור תצלום מצב חדש אוטומטית בעת שמירה + Show New Snapshot Dialog by Default הצג תיבת דו-שיח של תצלום מצב חדש כברירת מחדל + Clear History נקה היסטוריה + View menu תפריט תצוגה + Keep view in sync שמור על סנכרון תצוגה + {zoom}% {zoom}% + Mouse Controls פקדי עכבר + Initial Direction of Stroke כיוון התחלתי של המשיכה + Direction of Stroke כיוון המשיכה + Humidity לחות + Auto Clean Brush נקה מברשת אוטומטית + Spacing: ריווח: + New Layer from Brush שכבה חדשה ממברשת + New Brush מברשת חדשה + New Tool Preset ערכת כלי חדשה + Auto-Leading ריווח שורות אוטומטי + Scale Horizontally קנה מידה אופקי + Scale Vertically קנה מידה אנכי + Mac LCD Mac LCD + Mac Sharp Mac חד + Mac Crisp Mac קריספי + Mac Strong Mac חזק + Mac Smooth Mac חלק + Superscript כתב עילי + Subscript כתב תחתי + Ligature ליגטורה + Alternative חלופה + Ultra Light קלוש ביותר + Extra Light קלוש מאוד + Semi Bold מודגש-חלקי + Extra Bold מודגש מאוד + Ultra Bold מודגש ביותר + Condensed מצומצם (Condensed) + First Line Indent הזחת שורה ראשונה + Hanging Punctuation פיסוק תלוי + Roman Hanging Punctuation פיסוק תלוי רומי + Avoid Widows/Orphans הימנע משורות יתומות/אלמנות + Compose הרכב + Adobe Single-line Composer מרכיב שורה בודדת של Adobe + Adobe Every-line Composer מרכיב כל השורות של Adobe + Word Spacing ריווח מילים + Letter Spacing ריווח אותיות + Glyph Scaling שינוי קנה מידה של גליפים + Auto-leading % % ריווח שורות אוטומטי + Single Word Justification יישור מילה בודדת + Justify יישור לשני הצדדים + Glyph גליף + Alternates for Current Selection חלופות לבחירה הנוכחית + Digits ספרות + Path: נתיב: + Path to Illustrator… נתיב ל-Illustrator… + Clipping Path נתיב גזירה + New Path נתיב חדש + Duplicate Path שכפל נתיב + Rename Path… שנה שם נתיב… + Auto-Hide הסתרה אוטומטית + X X + Y Y + Frame Sync סנכרון פריימים + Quick Sync סנכרון מהיר + Audio שמע + Frame Duration משך פריים + Loop לופ (חזרה) + Split at Playhead פצל בראש ההפעלה + Flatten Frames Into Clips שטח פריימים לקליפים + Flatten Frames Into Layers שטח פריימים לשכבות + Convert Frames > Video Layers המר פריימים > שכבות וידאו + New Video Layer שכבת וידאו חדשה + New Video Group קבוצת וידאו חדשה + Limit Playback הגבל הפעלה + Enable Timeline Quick Config אפשר תצורה מהירה של ציר הזמן + Set Start Timecode… הגדר קוד זמן התחלה… + Timecode קוד זמן + 30 fps 30 fps + 25 fps 25 fps + 24 fps 24 fps + 15 fps 15 fps + 10 fps 10 fps + Current Time זמן נוכחי + Out יציאה (Out) + In כניסה (In) + Duration משך + Repeat חזרה + Play Once הפעל פעם אחת + Info Options… אפשרויות מידע… + First Color Readout קריאת צבע ראשונה + Second Color Readout קריאת צבע שנייה + Actual Color צבע ממשי + Grayscale Slider מחוון גווני אפור + Web Color צבע אינטרנט + HSB Color צבע HSB + Total Ink דיו כולל + Opacity Mask מסכת אטימות + Document Size גודל מסמך + Timing תזמון + Status Information מידע מצב + Saved Multichannel נשמר כרב-ערוצי + Mouse Coordinates קואורדינטות עכבר + Ruler Units יחידות סרגל + Hide הסתר + Restore last viewed comp שחזר את הקומפ שנצפה לאחרונה + Select All Layers בחר את כל השכבות + Keep proportions שמור על פרופורציות + Interpolation אינטרפולציה + Caption כיתוב + Caption Credits קרדיטים לכיתוב + Keywords מילות מפתח + Copyright Info URL כתובת URL למידע זכויות יוצרים + Copyright Status מצב זכויות יוצרים + Copyright Notice הודעת זכויות יוצרים + Document Title כותרת מסמך + Copyrighted מוגן בזכויות יוצרים + Public Domain נחלת הכלל + Unknown לא ידוע + Credit קרדיט + Transmission Reference התייחסות שידור + Urgency דחיפות + High גבוה + Low נמוך + Category קטגוריה + Supplemental Categories קטגוריות משלימות + Object Name / Title שם אובייקט / כותרת + Date Created תאריך יצירה + City עיר + Province / State מחוז / מדינה + Country מדינה + Byline שם המחבר (Byline) + Byline Title תפקיד המחבר + Phone טלפון + Email דוא"ל + URLs כתובות URL + Last Modified שונה לאחרונה + EXIF EXIF + GPS GPS + Camera Model דגם מצלמה + Camera Make יצרן מצלמה + EXIF Version גרסת EXIF + Exposure Program תוכנית חשיפה + Aperture צמצם + Shutter Speed מהירות צמצם + Metering Mode מצב מדידה + Light Source מקור אור + Flash פלאש + Lens Info מידע עדשה + ISO Speed רגישות ISO + Subject Distance מרחק הנושא + DateTime Original תאריך ושעה מקוריים + Create Date תאריך יצירה + Modify Date תאריך שינוי + Raw Data נתוני Raw + Import… ייבוא… + PDF Presentation… מצגת PDF… + Create Multiple Picture Packages צור חוברות תמונה מרובות + Picture Package… חוברת תמונה… + Web Photo Gallery… גלריית תמונות לאינטרנט… + Choose… בחר… + Select Folder… בחר תיקייה… + Override Action "Save" Commands דרוס פקודות "שמור" בפעולה + File Naming שם קובץ + Compatibility תאימות + Mac OS Mac OS + Unix Unix + Include ICC Profile הכלל פרופיל ICC + Error File קובץ שגיאות + Stop For Errors עצור בשגיאות + Log Errors To File תעד שגיאות לקובץ + Errors שגיאות + Settings הגדרות + Settings: הגדרות: + Working Space מרחב עבודה + RGB: RGB: + CMYK: CMYK: + Gray: אפור: + Spot: ספוט: + Advanced Controls פקדים מתקדמים + Desaturate Monitor Colors By הפחת רוויית צבעי הצג ב- + Blend RGB Colors Using Gamma 1.0 מזג צבעי RGB באמצעות גמא 1.0 + Profile Mismatches: Ask When Opening חוסר התאמת פרופיל: שאל בעת פתיחה + Ask When Pasting שאל בעת הדבקה + Missing Profiles: Ask When Opening פרופילים חסרים: שאל בעת פתיחה + Embed profiles הטבע פרופילים + Ask Before Saving Saved Embedded שאל לפני שמירה של הטבעה שנשמרה + Coerce to sRGB כפה ל-sRGB + sRGB IEC61966-2.1 sRGB IEC61966-2.1 + Adobe RGB (1998) Adobe RGB (1998) + ProPhoto RGB ProPhoto RGB + ColorMatch RGB ColorMatch RGB + Wide Gamut RGB Wide Gamut RGB + Apple RGB Apple RGB + NTSC (1953) NTSC (1953) + PAL/SECAM PAL/SECAM + SMPTE C SMPTE C + HDTV (Rec. 709) HDTV (Rec. 709) + CIE RGB CIE RGB + Minimalistic מינימליסטי + Expand All Groups הרחב את כל הקבוצות + Photo (2 × 3 in) תמונה (2 × 3 אינץ') + Photo (4 × 6 in) תמונה (4 × 6 אינץ') + Photo (5 × 7 in) תמונה (5 × 7 אינץ') + Photo (8 × 10 in) תמונה (8 × 10 אינץ') + Recent Items פריטים אחרונים + Delete Preset… מחק ערכה קבועה מראש… + Preset Name: שם ערכה קבועה מראש: + Width and Height רוחב וגובה + Color Profile פרופיל צבע + Units יחידות + Create new count group צור קבוצת ספירה חדשה + Adjustment Layer שכבת התאמה + Drag to move the layer גרור כדי להזיז את השכבה + Go to Layer עבור לשכבה + After (X) אחרי (X) + Reference point location מיקום נקודת ייחוס + Toggle reference point הצג/הסתר נקודת ייחוס + Add Pins הוסף סיכות + Delete Pins מחק סיכות + Rotate Auto סיבוב אוטומטי + Rotate Fixed סיבוב קבוע + Select Plane בחר מישור + Measure מדוד + Heal ריפוי + Heal Off ריפוי כבוי + Heal On ריפוי פעיל + Heal Auto ריפוי אוטומטי + Blend מיזוג + Brush Size גודל מברשת + Heal Color צבע ריפוי + Result תוצאה + Duplicate שכפל + Fast מהיר + Accurate מדויק + Add to הוסף אל + Subtract from החסר מ- + Intersect with חתוך עם + Capture Comp לכוד קומפ + No Layer Comps אין קומפים של שכבות + Adobe PDF Presets… ערכות PDF של Adobe… + 3D… 3D… + Technology Previews… תצוגות מקדימות של טכנולוגיה… + Add a mask (from the selection; ⌥ inverts) הוסף מסכה (מהבחירה; ⌥ הופך) + Add to selection (⇧) הוסף לבחירה (⇧) + Airbrush: keeps painting while the pointer rests. אירוגרף: ממשיך לצבוע כל עוד המצביע נשאר במקום. + Click the first point or press ↵ to close · Esc cancels לחץ על הנקודה הראשונה או הקש ↵ לסגירה · Esc מבטל + Click to add a point · drag off or ⌘/Ctrl-click or Delete to remove לחץ להוספת נקודה · גרור הצידה או ⌘/Ctrl-לחיצה או Delete להסרה + Click to apply, ⌥-click to clear overrides, double-click for Style Options לחץ להחלה, ⌥-לחיצה לניקוי דריסות, לחיצה כפולה לאפשרויות סגנון + Click to zoom in · ⌥-click to zoom out לחץ להגדלה · ⌥-לחיצה להקטנה + Click: corner · Drag: smooth · Click first point: close · ↩ finish · Esc cancel לחיצה: פינה · גרירה: החלקה · לחיצה על הנקודה הראשונה: סגירה · ↩ סיום · Esc ביטול + Commit Perspective Warp (↩) אשר עיוות פרספקטיבה (↩) + Commit Puppet Warp (↩) אשר עיוות בובה (↩) + Commit any current edits (⌘↩) אשר עריכות נוכחיות (⌘↩) + Commit current crop operation (↵) אשר פעולת חיתוך נוכחית (↵) + Commit transform (↩) אשר שינוי צורה (↩) + Commit warp (↩) אשר עיוות (↩) + Create a new layer (⇧⌘N) צור שכבה חדשה (⇧⌘N) + Custom pattern תבנית מותאמת אישית + General Brushes מברשות כלליות + Grid (⌘') רשת (⌘') + Intersect with selection (⇧⌥) חתוך עם הבחירה (⇧⌥) + New document… ⌘N מסמך חדש… ⌘N + Open… ⌘O פתח… ⌘O + Rulers (⌘R) סרגלים (⌘R) + Search commands (⌘K) חפש פקודות (⌘K) + Show Guides (⌘;) הצג קווים מנחים (⌘;) + Subtract from selection (⌥) החסר מהבחירה (⌥) + Uses the foreground and background colors. משתמש בצבעי החזית והרקע. + ↑↓ navigate ↵ run esc close ↑↓ ניווט ↵ הפעלה esc סגירה + Adds grain to the soft edges of the brush tip. מוסיף גרגיריות לקצוות הרכים של קצה המברשת. + Keeps the current texture when switching presets. שומר על המרקם הנוכחי בעת החלפת ערכות קבועות מראש. + Watercolour look: lighter interior, darker rims. מראה צבעי מים: פנים בהיר יותר, שפות כהות יותר. + Collapse group (⌥-click: all groups) כווץ קבוצה (⌥-לחיצה: כל הקבוצות) + Expand group (⌥-click: all groups) הרחב קבוצה (⌥-לחיצה: כל הקבוצות) + Hide the layer's effects (⌥-click: all layers) הסתר את אפקטי השכבה (⌥-לחיצה: כל השכבות) + Show the layer's effects (⌥-click: all layers) הצג את אפקטי השכבה (⌥-לחיצה: כל השכבות) +cameraRaw Blacks שחורים +cameraRaw Masking מיסוך +@id edit.stroke קו מתאר +@id edit.transform.scale קנה מידה +cameraRaw Luminance בהירות אור +cameraRaw Color צבע +cameraRaw Vibrance תוססות +cameraRaw Color Grading דירוג צבע +cameraRaw Global גלובלי +cameraRaw Hue גוון +cameraRaw Luminance Detail פרטי בהירות אור +cameraRaw Color Detail פרטי צבע +cameraRaw Roughness גסות +cameraRaw Whites לבנים +layerLabel No Color בלי צבע + Preferences… העדפות… + Actual Pixels פיקסלים ממשיים + Clipping Mask מסכת גזירה + Tool Options אפשרויות כלי + Color Swatches דוגמיות צבע + Linear Dodge הבהרה לינארית + Preview Image תצוגה מקדימה של תמונה + Save As שמור בשם + Remove All הסר הכול + Unlock בטל נעילה + Enable אפשר + Disable השבת + On פעיל + Clear Selection נקה בחירה + Invert Selection הפוך בחירה + Select Inverse בחר היפוך + Contract כווץ + Sample Size גודל דגימה + Gamma גמא + Input קלט + Input Levels רמות קלט + Output Levels רמות פלט + Layer Styles סגנונות שכבה + Blending Mode מצב מיזוג + Stroke Width רוחב קו מתאר + Shadow צל + Adjustment Layers שכבות התאמה + Text Layer שכבת טקסט + Documents מסמכים + File Name שם קובץ + File Format תבנית קובץ + Compression דחיסה + Artboards לוחות ציור + Snap to Grid הצמד לרשת + Full Screen מסך מלא + Fullscreen מסך מלא + Workspaces סביבות עבודה + Show All הצג הכול + Hidden מוסתר + Duplicate Layer שכפל שכבה + Ungroup פרק קיבוץ + Guide Layout… פריסת קווים מנחים… + Page Setup… הגדרת עמוד… + Reset Preferences אפס העדפות + Documentation תיעוד + Check for Updates בדוק עדכונים + Loading… טוען… + Processing… מעבד… + Saving… שומר… + Exporting… מייצא… + Please wait… המתן בבקשה… + No selection אין בחירה + No layers אין שכבות + No recent files אין קבצים אחרונים + Unsupported file format תבנית קובץ לא נתמכת + Failed to open file פתיחת הקובץ נכשלה + Failed to save file שמירת הקובץ נכשלה + Operation canceled הפעולה בוטלה + Changes have not been saved. השינויים לא נשמרו. + Are you sure? האם אתה בטוח? + Discard Changes השלך שינויים + Open File פתח קובץ + Save File שמור קובץ + Save Changes שמור שינויים + Rendering… מעבד… + Importing… מייבא… + Ready מוכן + Failed נכשל + Warning אזהרה + Information מידע + Retry נסה שוב + Continue המשך + Skip דלג + Resume המשך + Reset All אפס הכול + Defaults ברירות מחדל + Apply to All החל על הכול + Confirm אשר + Finish סיים + Back חזרה + Next הבא + Previous הקודם + More עוד + Less פחות + Manual ידני + Disabled מושבת + Locked נעול + Unlocked לא נעול + Delete… מחק… + Create… צור… + Edit… ערוך… + Change… שנה… + Transformation שינוי צורה + Scaling שינוי קנה מידה + Canvas Size גודל קנבס + Percentage אחוז + Degrees מעלות + Middle אמצע + Diameter קוטר + Intensity עוצמה + Sensitivity רגישות + Softness רכות + Feather Radius רדיוס הכהיה + Library ספרייה + Layer Properties מאפייני שכבה + Groups קבוצות + Masks מסכות + Add Mask הוסף מסכה + Delete Mask מחק מסכה + Invert Mask הפוך מסכה + Enable Mask אפשר מסכה + Disable Mask השבת מסכה + Apply Mask החל מסכה + Import Settings ייבוא הגדרות + Export Settings ייצוא הגדרות + Shortcuts קיצורים + Keyboard מקלדת + Mouse עכבר + Tablet טאבלט + Display תצוגה + Panel פאנל + Hide Grid הסתר רשת + Fit to Window התאם לחלון + Live Preview תצוגה מקדימה חייה + Before לפני + After אחרי + Compare השווה + File Size גודל קובץ + Filename שם קובץ + Open Folder פתח תיקייה + Choose Folder בחר תיקייה + Browse עיון + Find חפש + Replace החלף + Date תאריך + Learn More למד עוד + Report a Bug דווח על באג + Updates עדכונים + Update עדכן + Restart Required נדרשת הפעלה מחדש + Restart הפעל מחדש + Quit צא + Quit PhotoCraft צא מ-PhotoCraft + Close Window סגור חלון + New Window חלון חדש + Open Image פתח תמונה + Save Image שמור תמונה + Export Image ייצוא תמונה + Import Image ייבוא תמונה + Export As ייצוא בשם + Export to ייצוא אל + Export Options אפשרויות ייצוא + Import Options אפשרויות ייבוא + No Selection אין בחירה + No Image אין תמונה + No Layers אין שכבות + No Results אין תוצאות + No Results Found לא נמצאו תוצאות + Nothing to Undo אין מה לבטל + Nothing to Redo אין מה לבצע שוב + Changes Saved השינויים נשמרו + Save before closing? לשמור לפני הסגירה? + Are you sure you want to quit? האם אתה בטוח שברצונך לצאת? + The file could not be opened. לא ניתן היה לפתוח את הקובץ. + The file could not be saved. לא ניתן היה לשמור את הקובץ. + Unsupported format תבנית לא נתמכת + Out of memory חסר זיכרון + Permission denied ההרשאה נדחתה + File not found הקובץ לא נמצא + Operation failed הפעולה נכשלה + Operation completed הפעולה הושלמה + Operation cancelled הפעולה בוטלה + Sharpen Amount מידת חידוד + Sharpen Radius רדיוס חידוד + Sharpen Detail פרטי חידוד + Sharpen Masking מיסוך חידוד + Noise Luminance בהירות רעש + Noise Luminance Detail פרטי בהירות רעש + Noise Color צבע רעש + Noise Color Detail פרטי צבע רעש + Grain Amount מידת גרגיריות + Grain Size גודל גרגיריות + Grain Roughness גסות גרגיריות + Vignette Roundness עגילות ויניטה + Vignette Feather הכהיית ויניטה + Vignette Highlights הדגשות ויניטה + Vignette Style סגנון ויניטה + Planes מישורים + Plane מישור + Shadow Amount מידת צל + Shadow Tone גוון צל + Shadow Radius רדיוס צל + Highlight Amount מידת הדגשה + Highlight Tone גוון הדגשה + Highlight Radius רדיוס הדגשה + Midtone גוון ביניים + Black Clip גזירת שחור + White Clip גזירת לבן + Fuzziness עמימות + Source Layer שכבת מקור + Neutralize נטרל + Use Selection In Source השתמש בבחירה במקור + Use Selection In Target השתמש בבחירה ביעד + Flame Type סוג להבה + Randomize Length אורך אקראי + Interval מרווח + Adjust Interval For Loops התאם מרווח ללופים + Use Custom Color השתמש בצבע מותאם אישית + Flame Lines קווי להבה + Flame Bottom Alignment יישור תחתית להבה + Flame Style סגנון להבה + Flame Shape צורת להבה + Randomize Shapes צורות אקראיות + Frame מסגרת + Arrangement סידור + Thickness עובי + Vine Color צבע גפן + Flower Color צבע פרח + Leaf Color צבע עלה + Base Tree Type סוג עץ בסיסי + Light Direction כיוון אור + Leaves Amount כמות עלים + Leaves Size גודל עלים + Branches Height גובה ענפים + Branches Thickness עובי ענפים + Default Leaves עלים ברירת מחדל + Leaves Color צבע עלים + Custom Branch Color צבע ענף מותאם אישית + Branches Color צבע ענפים + Flat Shading הצללה שטוחה + Date and Time תאריך ושעה + Scale Units יחידות קנה מידה + Scale Factor מקדם קנה מידה + Area שטח + Perimeter היקף + Circularity עגוליות + Gray Value (Minimum) ערך אפור (מינימום) + Gray Value (Maximum) ערך אפור (מקסימום) + Gray Value (Mean) ערך אפור (ממוצע) + Gray Value (Median) ערך אפור (חציון) + Integrated Density צפיפות משולבת + Length אורך + In Black שחור קלט + In White לבן קלט + Out Black שחור פלט + Out White לבן פלט + Tint Color צבע טינט + Stops נקודות עצירה + Center X מרכז X + Center Y מרכז Y + Cell Size גודל תא + Generators מחוללים + Wavelength Min אורך גל מינימלי + Wavelength Max אורך גל מקסימלי + Amplitude Min אמפליטודה מינימלית + Amplitude Max אמפליטודה מקסימלית + Undefined Areas אזורים לא מוגדרים + Preserve שמור + Max Radius רדיוס מקסימלי + Depth Mode מצב עומק + Solid Front Faces פאות קדמיות אחידות + Mask Incomplete Blocks מסך בלוקים לא שלמים + Stylization סטיילזציה + Cleanliness נקיות + Bristle Detail פרטי זיף + Lighting תאורה + Shine זוהר (Shine) + Max Offset היסט מקסימלי + Map Document מפה את המסמך + Map Path מפה את הנתיב + Map Layer מפה את השכבה + Ridges רכסים + Light Type סוג אור + Light X אור X + Light Y אור Y + Light Z אור Z + Target X יעד X + Target Y יעד Y + Hotspot נקודת מוקד (Hotspot) + Elevation גובה (זווית) + Ambient סביבתי (Ambient) + Warmth חמימות + Gloss ברק + Metallic מטאלי + Ambience אווירה (Ambience) + White Is High לבן הוא גבוה + Blade Curvature עקמומיות להב + Depth Map מפת עומק + Focal Distance מרחק מוקד + Focus מוקד + Transition מעבר + Radius X רדיוס X + Radius Y רדיוס Y + Pins סיכות + Speed מהירות + Taper חידוד קצה (Taper) + Start X התחלה X + Start Y התחלה Y + End X סוף X + End Y סוף Y + Kernel ליבה (Kernel) + Input Mode מצב קלט + Row Order סדר שורות + Eliminate מחק + Create By צור לפי + List רשימה + Pencil Width רוחב עיפרון + Stroke Pressure לחיצת משיכה + Paper Brightness בהירות נייר + Number Of Levels מספר רמות + Edge Simplicity פשטות קצוות + Edge Fidelity דיוק קצוות + Brush Detail פרטי מברשת + Highlight Area אזור הדגשה + Glow Size גודל זוהר + Glow Brightness בהירות זוהר + Brush Type סוג מברשת + Stroke Size גודל משיכה + Stroke Detail פרטי משיכה + Highlight Strength עוצמת הדגשה + Smoothness חלקות + Edge Thickness עובי קצה + Edge Intensity עוצמת קצה + Posterization פוסטריזציה + Stroke Length אורך משיכה + Relief תבליט (Relief) + Definition חדות (Definition) + Texture Coverage כיסוי מרקם + Shadow Intensity עוצמת צל + Edge Width רוחב קצה + Edge Brightness בהירות קצה + Direction Balance איזון כיוון + Black Intensity עוצמת שחור + White Intensity עוצמת לבן + Dark Intensity עוצמת כהה + Custom Pixel Aspect Ratio יחס גובה-רוחב מותאם אישית של פיקסל + 32-bit Preview Options אפשרויות תצוגה מקדימה של 32 סיביות + New Guide קו מנחה חדש + Join the ArtCraft Discord הצטרף לדיסקורד של ArtCraft + Report an Issue דווח על תקלה + Load Files into Stack טען קבצים לערימה + Statistics סטטיסטיקה + Duplicate Layers שכפל שכבות + Edit Toolbar ערוך סרגל כלים + Import Brushes ייבוא מברשות + Load 3D LUT טען LUT תלת-ממדי + Press keys הקש מקשים + Rename Group שנה שם קבוצה + Rename Tool Preset שנה שם ערכת כלי + Search commands, tools and panels חפש פקודות, כלים ופאנלים + Slice Options אפשרויות פרוסה + Rename Brush שנה שם מברשת + Opening פותח + Reading קורא + Working עובד + Accented Edges קצוות מודגשים + Angled Strokes משיכות באלכסון + Anisotropic אניזוטרופי + Around Center מסביב למרכז + Artistic אמנותי + Bamboo במבוק + Bas Relief תבליט שקוע + Berries יער פירות (Berries) + Blast התפוצצות + Bleach Bypass דילוג הלבנה (Bleach Bypass) + Blocks בלוקים + Brick לבנים + Brush Strokes משיכות מברשת + Burlap יוטה (Burlap) + Candle Light אור נר + Circle עיגול + Clumped מגובש + Coarse Dots נקודות גסות + Colored Pencil עפרון צבעוני + Contrasty ניגודי + Cool קריר + Craquelure סדקים (Craquelure) + Cross צלב + Cross Process עיבוד חילופי (Cross Process) + Crosshatch הצללה צולבת + Cutout גזירה (Cutout) + Daisies חרציות + Dark Rough כהה וגס + Dark Strokes משיכות כהות + Darken Only הכהה בלבד + Day For Night יום כלילה + Deep Blue כחול עמוק + Deep Emerald אמרלד עמוק + Deep Red אדום עמוק + Deep Yellow צהוב עמוק + Dot נקודה + Double Line קו כפול + Draft טיוטה + Dry Brush מברשת יבשה + Duplication שכפול + Edge Extension הרחבת קצה + Edge Only קצה בלבד + Enlarged מוגדל + Even Fields שדות זוגיים + Faded Film סרט דהוי + Film Grain גרגיריות סרט + Fine דק + Fine Dots נקודות דקות + Flat שטוח + Fresco פרסקו + From Left משמאל + From Right מימין + Frosted מכוסה כפור + Generic גנרי + Glass זכוכית + Glowing Edges קצוות זוהרים + Grainy Dots נקודות גרגיריות + Hearts לבבות + Heptagon שבעון (Heptagon) + Hexagon משושה + Horizontal Only אופקי בלבד + Infinite אינסופי + Ink Outlines קווי מתאר בדיו + Ivy קיסוס + Left Diagonal אלכסון שמאלי + Level Based מבוסס רמה + Light Rough בהיר וגס + Lighten Only הבהר בלבד + Long Lines קווים ארוכים + Long Strokes משיכות ארוכות + Lower תחתון + Medium Dots נקודות בינוניות + Medium Lines קווים בינוניים + Medium Strokes משיכות בינוניות + Mono Contrast ניגודיות מונוכרומטית + Mosaic Tiles אריחי פסיפס + Multiple Flames Along Path להבות מרובות לאורך הנתיב + Multiple Flames One Direction להבות מרובות בכיוון אחד + Multiple Flames Path Directions להבות מרובות בכיווני הנתיב + Multiple Flames Various Length להבות מרובות באורכים שונים + Octagon מתומן + Odd Fields שדות אי-זוגיים + One Flame Along Path להבה אחת לאורך הנתיב + Out From Center מהמרכז חוצה + Oval אובלי + Overlay Edge שכבת-על קצה + Palette Knife סכין צבעים (Palette Knife) + Parallel מקביל + Patchwork טלאים (Patchwork) + Pentagon מחומש + Point נקודה + Pointed מחודד + Pond Ripples אדוות בריכה + Pyramids פירמידות + Random אקראי + Right Diagonal אלכסון ימני + Rope חבל + Roses שושנים + Sandstone אבן חול + Scallops קונכיות (Scallops) + Sepia ספיה + Short Lines קווים קצרים + Short Strokes משיכות קצרות + Simple פשוט + Light Intensity עוצמת אור + Spray Radius רדיוס ריסוס + Stroke Direction כיוון משיכה + Graininess גרגיריות + Glow Amount מידת זוהר + Clear Amount מידת ניקוי + Distortion עיוות + Ripple Size גודל אדווה + Ripple Magnitude עוצמת אדווה + Charcoal Area אזור פחם + Chalk Area אזור גיר + Charcoal Thickness עובי פחם + Light Dark Balance איזון בהיר-כהה + Foreground Level רמת חזית + Background Level רמת רקע + Pattern Type סוג תבנית + Image Balance איזון תמונה + Darkness כהות + Fiber Length אורך סיבים + Crack Spacing ריווח סדקים + Crack Depth עומק סדקים + Crack Brightness בהירות סדקים + Grain Type סוג גרגיריות + Tile Size גודל אריח + Grout Width רוחב רובה (Grout) + Lighten Grout הבהר רובה + Square Size גודל ריבוע + Border Thickness עובי גבול + Correct Distortion תקן עיוות + Correct Vignette תקן ויניטה + Correct C A תקן סטיית צבע (CA) + Auto Scale קנה מידה אוטומטי + Red Cyan אדום ציאן + Blue Yellow כחול צהוב + Vignette Amount מידת ויניטה + Vignette Midpoint נקודת ביניים של ויניטה + Constraints אילוצים + Curve Highlights הדגשות עקומה + Curve Lights בהירים בעקומה + Curve Darks כהים בעקומה + Curve Shadows צללי עקומה + Curve Splits פיצולי עקומה + Point Curve עקומת נקודה + Point Curve Red עקומת נקודה אדומה + Point Curve Green עקומת נקודה ירוקה + Point Curve Blue עקומת נקודה כחולה + Hsl Hue גוון HSL + Hsl Sat רוויה HSL + Hsl Lum בהירות אור HSL + Grade Shadows דירוג צללים + Grade Midtones דירוג גוני ביניים + Grade Highlights דירוג הדגשות + Grade Global דירוג גלובלי + Grade Blending מיזוג דירוג + Grade Balance איזון דירוג + Sine סינוס + Sketch סקיצה + Snowflakes פתיתי שלג + Sparkle ניצוץ + Spatter התזה + Speckle נקודות (Speckle) + Spin סביבוב + Sprinkles פיזור קטן (Sprinkles) + Squareness ריבועיות + Stagger דילוג (Stagger) + Stained Glass זכוכית צבועה + Star כוכב + Stars כוכבים + Stippled מנוקד (Stippled) + Stretch מתיחה + Teal Orange טורקיז כתום + Tiny Lens עדשה קטנה + To Center למרכז + Unaltered לא משתנה + Underpainting שכבת ציור בסיסית (Underpainting) + Underwater תת-מימי + Upper עליון + Vertical Only אנכי בלבד + Vine With Flowers גפן עם פרחים + Vine With Leaves גפן עם עלים + Violent אלים (Violent) + Warm חמים + Watercolor צבעי מים + Waves גלים + Wide Blurry רחב וטשטוש + Wide Sharp רחב וחד + Wrap עטיפה + Zigzag זיגזג + Wetness לחות + AI Integrations שילובי בינה מלאכותית + Add Noise הוסף רעש + Apply Data Set החל ערכת נתונים + Apply Image החל תמונה + Arbitrary שרירותי + Artboard from Group לוח ציור מקבוצה + Artboard from Layers לוח ציור משכבות + Artboards to Files לוחות ציור לקבצים + Artboards to PDF לוחות ציור ל-PDF + Assign Profile הקצה פרופיל + At ב- + Auto-Align Layers יישור שכבות אוטומטי + Auto-Blend Layers מיזוג שכבות אוטומטי + Batch אצווה + Border גבול + Box Blur טשטוש קופסה + Calculations חישובים + Camera Raw Camera Raw + Camera Raw Filter מסנן Camera Raw + Channel1 ערוץ1 + Channel2 ערוץ2 + Channel3 ערוץ3 + Channel4 ערוץ4 + Clone שכפול + Color Decontaminate ניקוי זיהום צבע + Color Halftone חצי-טון צבעוני + Color Lookup Tables טבלאות חיפוש צבע + Color Settings הגדרות צבע + Color Table טבלת צבעים + Conditional Mode Change שינוי מצב מותנה + Content-Aware Fill מילוי מודע לתוכן + Convert to Linked המר למקושר + Convert to Profile המר לפרופיל + Crystallize גיבוש + Data נתונים + Data Sets as Files ערכות נתונים כקבצים + De-Interlace ביטול שזירה + Define Brush Preset הגדר ערכת מברשת + Define Custom Shape הגדר צורה מותאמת אישית + Define Pattern הגדר תבנית + Defringe הסרת שוליים + Diffuse פיזור + Diffuse Glow זוהר מפוזר + Displace הזזה + Do you want to save you made to “{name}” before quitting? האם לשמור את השינויים שעשית ב"{name}" לפני היציאה? + Dust & Scratches אבק ושריטות + Export Contents ייצוא תוכן + Export Preferences העדפות ייצוא + Export/Import Presets ייצוא/ייבוא ערכות קבועות מראש + Extrude הבלטה תלת-ממדית + Fibers סיבים + Field Blur טשטוש שדה + File Info פרטי קובץ + Filter Gallery גלריית מסננים + Find and Replace Text חיפוש והחלפת טקסט + Fit Image התאמת תמונה + Flame להבה + Focus Area אזור מיקוד + Gaussian Blur טשטוש גאוסי + Global Light אור גלובלי + Group from Layers קבוצה משכבות + HDR Toning גוון HDR + High Pass מעבר עליון + Highlight הדגשה + Image Processor מעבד תמונות + Install Plug-in התקן תוסף + Interpret Footage פרש חומר גלם + Iris Blur טשטוש קשתית + Jag שבר (Jag) + Label תווית + Layer Comps to Files קומפים של שכבות לקבצים + Layer Content Options אפשרויות תוכן שכבה + Layer From Background שכבה מרקע + Layer from Background שכבה מרקע + Layers to Files שכבות לקבצים + Legacy ישן (Legacy) + Lens Blur טשטוש עדשה + Lens Correction תיקון עדשה + Lens Flare זוהר עדשה + Lighting Effects אפקטי תאורה + Liquify נזילות + Lum בהירות אור + Match Color התאמת צבע + Merge to HDR Pro מיזוג ל-HDR Pro + Mezzotint מצו-טינטו + Mosaic פסיפס + Motion Blur טשטוש תנועה + Native file drag-and-drop is not supported on Wayland yet. Use File › Open, or run PhotoCraft under XWayland with `WAYLAND_DISPLAY= photocraft`. גרירה ושחרור טבעיים של קבצים עדיין לא נתמכים ב-Wayland. השתמש בקובץ › פתח, או הפעל את PhotoCraft תחת XWayland עם `WAYLAND_DISPLAY= photocraft`. + Neon Glow זוהר ניאון + New Guide Layout פריסת קווים מנחים חדשה + New Video Layer from File שכבת וידאו חדשה מקובץ + Ocean Ripple אדוות אוקיינוס + Oil Paint צבעי שמן + Open As פתח בתור + Package אריזה + Paint Daubs כתמי צבע + Path Blur טשטוש נתיב + Paths to Illustrator נתיבים ל-Illustrator + Photomerge מיזוג תמונות + Picture Frame מסגרת תמונה + Pinch צביטה + Place Embedded הצבה מוטבעת + Place Linked הצבה מקושרת + Place Scale Marker הצב סמן קנה מידה + Plastic Wrap עטיפת פלסטיק + Pointillize פואנטיליזם + Polar Coordinates קואורדינטות קוטביות + Polar To Rectangular מקוטבי למלבני + Poster Edges קצוות פוסטר + Preset Manager מנהל ערכות קבועות מראש + Profile פרופיל + Radial Blur טשטוש רדיאלי + Raw Defaults ברירות מחדל ל-Raw + Rectangular To Polar ממלבני לקוטבי + Relink to File קשר מחדש לקובץ + Render Video עיבוד וידאו + Replace Color החלפת צבע + Replace Contents החלף תוכן + Replace Footage החלף חומר גלם + Resolve Missing Fonts פתור גופנים חסרים + Ripple אדווה + Rough Pastels פסטלים גסים + Sat רוויה + Save a Copy שמור עותק + Save for Web (Legacy) שמור לאינטרנט (ישן) + Scale Effects שנה קנה מידה של אפקטים + Script Events Manager מנהל אירועי סקריפט + Search menus חפש בתפריטים + Select and Mask בחירה ומיסוך + Set Measurement Scale הגדר קנה מידה למדידה + Shadows/Highlights צללים/הדגשות + Shape Blur טשטוש צורה + Shear גזירה + Smart Blur טשטוש חכם + Smart Sharpen חידוד חכם + Smudge Stick מריחת גיר (Smudge Stick) + Solid Color צבע אחיד + Spherize כדוריות + Spin Blur טשטוש סיבוב + Spot ספוט + Sprayed Strokes משיכות מרוססות + Strokes משיכות + Sumi-e סומי-אה (Sumi-e) + Surface Blur טשטוש משטח + Texturizer יוצר מרקם (Texturizer) + Tiles אריחים + Tilt-Shift הטיה-הזזה + Trace Contour עקוב אחר קווי מתאר + Trap לכידה + Tree עץ + Trim גיזום + Turbulent טורבולנטי + Twirl סחרור + Unsharp Mask מסכת חידוד + Use File › Open to open an image. השתמש בקובץ › פתח כדי לפתוח תמונה. + Vanishing Point נקודת היעלמות + Variable Data Sets ערכות נתונים משתנות + Video Frames to Layers פריימי וידאו לשכבות + WIA Support תמיכת WIA + Warp Text עיוות טקסט + Wind רוח + Vertical Type Tool כלי טקסט אנכי + About {app} אודות {app} + Hide {app} הסתר את {app} + Quit {app} צא מ-{app} + Services שירותים + Hide Others הסתר אחרים + Lut LUT + Cooling L B B קירור LBB + Cooling80 קירור 80 + Cooling82 קירור 82 + Hsb HSB + Hsl HSL + Movie Prime Movie Prime + Prime105 Prime105 + Prime35 Prime35 + Warming L B A חימום LBA + Warming81 חימום 81 + Warming85 חימום 85 +@id filter.sharpen.sharpen חידוד + Good טוב + Best הטוב ביותר + Adjustment Properties מאפייני התאמה + Default Foreground and Background Colors צבעי חזית ורקע ברירת מחדל + Move Layer הזז שכבה + Rectangular Selection בחירה מלבנית + Reorder Layer סדר שכבה מחדש + Select Layer בחר שכבה + Set Colors הגדר צבעים + Switch Foreground and Background Colors החלף צבעי חזית ורקע + Target יעד + Make Work Path… צור נתיב עבודה… + Create Vector Mask צור מסכת וקטור + Make Selection… צור בחירה… + Fill Path… מלא נתיב… + Clipping Path… נתיב גזירה… + Free Transform Path שינוי צורה חופשי לנתיב + Unite Shapes at Overlap אחד צורות בחפיפה + Subtract Shapes at Overlap חסר צורות בחפיפה + Copy Fill העתק מילוי + Copy Complete Stroke העתק קו מתאר מלא + Paste Fill הדבק מילוי + Paste Complete Stroke הדבק קו מתאר מלא + Make Symmetry Path צור נתיב סימטריה + Disable Symmetry Path השבת נתיב סימטריה + Select Custom Color… בחר צבע מותאם אישית… + Color Picker (Custom Canvas Color) בוחר צבעים (צבע קנבס מותאם אישית) + Duplicate Channel שכפל ערוץ + Delete Channel מחק ערוץ + Rename Channel… שנה שם ערוץ… + Merge Spot Channel מזג ערוץ ספוט + Convert to Alpha Channel המר לערוץ אלפא + Exit Quick Mask צא ממסכה מהירה + New Channel… ערוץ חדש… + New Spot Channel… ערוץ ספוט חדש… + Split Channels פצל ערוצים + Merge Channels… מזג ערוצים… + Color Indicates Masked Areas הצבע מציין אזורים ממוסכים + Color Indicates Selected Areas הצבע מציין אזורים נבחרים + ✓ Color Indicates Masked Areas ✓ הצבע מציין אזורים ממוסכים + ✓ Color Indicates Selected Areas ✓ הצבע מציין אזורים נבחרים + Up מעלה + To אל + Shallow שטחי + Deep עמוק + Blend Interior Effects as Group מזג אפקטים פנימיים כקבוצה + Blend Clipped Layers as Group מזג שכבות גזורות כקבוצה + Transparency Shapes Layer השקיפות מעצבת את השכבה + Layer Mask Hides Effects מסכת שכבה מסתירה אפקטים + Vector Mask Hides Effects מסכת וקטור מסתירה אפקטים + General Blending מיזוג כללי + Underlying Layer: שכבה שמתחת: + Nothing to paste: the clipboard holds no image אין מה להדביק: לוח הגזירים אינו מכיל תמונה + Preferences saved ההעדפות נשמרו + Invalid panel layout; restored the default dock פריסת פאנלים לא תקינה; העוגן ברירת המחדל שוחזר + Preferences were reset: {error} ההעדפות אופסו: {error} + Recovered {name} {name} שוחזר + Couldn't save preferences: {error}. Retrying… לא ניתן היה לשמור את ההעדפות: {error}. מנסה שוב… + Autosave failed: {error} השמירה האוטומטית נכשלה: {error} + Exported presets to {path} ערכות קבועות מראש יוצאו אל {path} + Ran script {name} הסקריפט {name} הופעל + Sent to the printer ({spooler}) נשלח למדפסת ({spooler}) + Printed to {path} הודפס אל {path} + Exported {path} ({size}) יוצא {path} ‏({size}) + Exported {path} יוצא {path} + Added swatch {name} נוספה דוגמית הצבע {name} + Step {step} ({id}) failed: {error} השלב {step} ‏({id}) נכשל: {error} + Could not rename the action: {error} לא ניתן היה לשנות את שם הפעולה: {error} + Action playback failed: {error} הפעלת הפעולה נכשלה: {error} + Clone source set at {x}, {y} מקור השכפול הוגדר ב-{x}, {y} + Color management: {error} ניהול צבע: {error} + Opened {url} {url} נפתח + No custom shape "{name}": pick one in the options bar or Window › Shapes אין צורה מותאמת אישית "{name}": בחר אחת בסרגל האפשרויות או בחלון › צורות + Saved a copy as {path} נשמר עותק בשם {path} + Exported contents to {path} התוכן יוצא אל {path} + {label} is not available: {reason} {label} אינו זמין: {reason} + Saved {path}; image assets: {n} in {dir} {path} נשמר; נכסי תמונה: {n} ב-{dir} + {message} (notes: {n}; {warning}) {message} ‏(הערות: {n}; {warning}) + Preferences can't be saved לא ניתן לשמור את ההעדפות + PhotoCraft keeps retrying; until a save succeeds, preference changes are lost when it closes. PhotoCraft ממשיך לנסות; עד שהשמירה תצליח, שינויי ההעדפות יאבדו בסגירה. + GPU retry scheduled ניסיון חזרה ל-GPU מתוזמן + Save your work and restart PhotoCraft to retry GPU acceleration. CPU rendering remains active for this session. שמור את העבודה שלך והפעל את PhotoCraft מחדש כדי לנסות שוב את האצת ה-GPU. עיבוד ה-CPU ימשיך לפעול להפעלה זו. + GPU device was lost; using the CPU renderer. מכשיר ה-GPU אבד; משתמש במעבד ה-CPU. + GPU error; using the CPU renderer. שגיאת GPU; משתמש במעבד ה-CPU. + Couldn't open {name}: {error} לא ניתן היה לפתוח את {name}: {error} + Toggle the Brush Settings panel הצג/הסתר את פאנל הגדרות המברשת + New Brush Preset ערכת מברשת חדשה + Grid view תצוגת רשת + List view תצוגת רשימה + {verb} {mask} {layer} {verb} {mask} {layer} + Unlink בטל קישור + Link קשר + Commit transform אשר שינוי צורה + Cancel transform בטל שינוי צורה + Scroll menu up גלול תפריט למעלה + Scroll menu down גלול תפריט למטה + This type layer must be rasterized before proceeding. Its text will no longer be editable. Rasterize the type? שכבת הטקסט הזו חייבת להיות מרוסטרת לפני ההמשך. הטקסט שלה לא יהיה עוד עריך. לרסטר את הטקסט? + This shape layer must be rasterized before proceeding. It will no longer be editable as a shape. Rasterize the shape? שכבת הצורה הזו חייבת להיות מרוסטרת לפני ההמשך. היא לא תהיה עוד עריכה כצורה. לרסטר את הצורה? + This Smart Object must be rasterized before proceeding. Its contents will no longer be editable. Rasterize the Smart Object? האובייקט החכם הזה חייב להיות מרוסטר לפני ההמשך. התוכן שלו לא יהיה עוד עריך. לרסטר את האובייקט החכם? + This fill layer must be rasterized before proceeding. Its fill content will no longer be editable. Rasterize the layer? שכבת המילוי הזו חייבת להיות מרוסטרת לפני ההמשך. תוכן המילוי שלה לא יהיה עוד עריך. לרסטר את השכבה? + This layer must be rasterized before proceeding. השכבה הזו חייבת להיות מרוסטרת לפני ההמשך. + Color Picker (Background Color) בוחר צבעים (צבע רקע) + Color Picker (Foreground Color) בוחר צבעים (צבע חזית) + Adwaita (Light) Adwaita (בהיר) + Adwaita (Dark) Adwaita (כהה) + Open Recent is unavailable on the web פתח אחרונים אינו זמין בגרסת האינטרנט + Graphics adapter: {adapter} מאיץ גרפי: {adapter} + Backend: {backend} ({type}) מנגנון: {backend} ‏({type}) + Driver: {driver} מנהל התקן: {driver} + GPU backend preference: {backend} העדפת מנגנון GPU: {backend} + Selected at launch: {backend} נבחר בעת ההפעלה: {backend} + Image compositor: {processor} מרכיב תמונה: {processor} + Fallback: {reason} חזרה לברירת מחדל: {reason} + This session: {reason} הפעלה זו: {reason} + Window renderer: {renderer} מעבד חלון: {renderer} + Software adapter מאיץ תוכנה + Graphics adapter מאיץ גרפי + unknown type סוג לא ידוע + Platform: {os} {arch} פלטפורמה: {os} {arch} + previous reading kept; the last re-read failed: {reason} הקריאה הקודמת נשמרה; הקריאה החדשה נכשלה: {reason} + Monitor profile: {profile} פרופיל צג: {profile} + Display profiles: {reason} פרופילי תצוגה: {reason} + Monitor profile in use on {display}: {profile} פרופיל הצג בשימוש ב-{display}: {profile} + Monitor profile in use: {profile} פרופיל הצג בשימוש: {profile} + The canvas is shown as sRGB. Choose a monitor profile in Edit › Color Settings. הקנבס מוצג כ-sRGB. בחר פרופיל צג בעריכה › הגדרות צבע. + The canvas on {display} is shown as sRGB. Choose a monitor profile in Edit › Color Settings. הקנבס ב-{display} מוצג כ-sRGB. בחר פרופיל צג בעריכה › הגדרות צבע. + Display profile not used פרופיל תצוגה לא בשימוש + Monitor profile on {display} (main window): {profile} פרופיל צג ב-{display} (חלון עיקרי): {profile} + Monitor profile on {display}: {profile} פרופיל צג ב-{display}: {profile} + fallback חזרה לברירת מחדל + The document does not have an embedded colour profile. Working space: {working}. למסמך אין פרופיל צבע מוטבע. מרחב עבודה: {working}. + The document has an embedded colour profile that does not match the working space.\nEmbedded: {embedded}\nWorking: {working} למסמך יש פרופיל צבע מוטבע שאינו תואם למרחב העבודה.\nמוטבע: {embedded}\nעבודה: {working} + Importing {what} from {file}… מייבא {what} מתוך {file}… +@plural Imported {n} brush from {file}|Imported {n} brushes from {file} יובאה {n} מברשת מתוך {file}|יובאו {n} מברשות מתוך {file} +@plural Imported {n} gradient from {file}|Imported {n} gradients from {file} יובא {n} מעבר צבעים מתוך {file}|יובאו {n} מעברי צבעים מתוך {file} +@plural Imported {n} pattern from {file}|Imported {n} patterns from {file} יובאה {n} תבנית מתוך {file}|יובאו {n} תבניות מתוך {file} + Data Set: {name} ({index}/{total}) ערכת נתונים: {name} ‏({index}/{total}) + (none) (ללא) +navigator Zoom תקריב + Apply {option}: {state} החל {option}: {state} + This adjustment ({key}) is kept as imported and can't be edited yet. התאמה זו ({key}) נשמרת כמיובאת ולא ניתן עדיין לערוך אותה. + Join the ArtCraft Discord ({url}) הצטרף לדיסקורד של ArtCraft ‏({url}) + {index} of {total} {index} מתוך {total} + {shortcut} assigned. {shortcut} הוקצה. + {shortcut} is already in use by {commands} and will be removed from it when you click OK. {shortcut} נמצא כבר בשימוש על ידי {commands} ויוסר ממנו בעת לחיצה על אישור. + The current gradient (pick one in Window › Gradients) מעבר הצבעים הנוכחי (בחר אחד בחלון › מעברי צבעים) + auto אוטומטי + Baseline Shift הזזת קו בסיס + Breeze Dark Breeze כהה + Breeze Light Breeze בהיר + brushes מברשות + Color Picker בוחר צבעים + Current נוכחי + Dark Gray אפור כהה + Fill Color צבע מילוי + gradients מעברי צבעים + Graphic and web גרפיקה ואינטרנט + layer mask מסכת שכבה + Lock All נעל הכול + Lock Image Pixels נעל פיקסלי תמונה + Lock Position נעל מיקום + Lock Transparent Pixels נעל פיקסלים שקופים + manual ידני + Medium Gray אפור בינוני + New document מסמך חדש + New Selection בחירה חדשה + No Document אין מסמך + Note tool כלי הערה + off כבוי + on פעיל + Recent Files קבצים אחרונים + Rgb RGB + Shortcut קיצור + Show Rulers הצג סרגלים + Solarized Dark Solarized כהה + sRGB sRGB + Stroke Color צבע קו מתאר + unknown לא ידוע + Unsaved Changes שינויים שלא נשמרו + vector mask מסכת וקטור + ZigZag זיגזג + Show home recent files הצג קבצים אחרונים במסך הבית + Clear Brush Controls נקה פקדי מברשת + Reset All Locked Settings אפס את כל ההגדרות הנעולות + Copy Texture to Other Tools העתק מרקם לכלים אחרים + Load Actions… טען פעולות… + Save Actions… שמור פעולות… + New Action… פעולה חדשה… + Start Recording התחל הקלטה + Stop Recording עצור הקלטה + {name} (Photoshop) {name} ‏(Photoshop) + {message} ({note}) {message} ‏({note}) +@plural Loaded {n} action from {file}|Loaded {n} actions from {file} נטענה {n} פעולה מתוך {file}|נטענו {n} פעולות מתוך {file} +@plural {n} step has no PhotoCraft equivalent yet|{n} steps have no PhotoCraft equivalent yet ל-{n} שלב אין עדיין מקביל ב-PhotoCraft|ל-{n} שלבים אין עדיין מקביל ב-PhotoCraft +@plural Saved {n} action to {file}|Saved {n} actions to {file} נשמרה {n} פעולה אל {file}|נשמרו {n} פעולות אל {file} +@plural {n} step with no Photoshop equivalent left out|{n} steps with no Photoshop equivalent left out {n} שלב בלי מקביל ב-Photoshop הושמט|{n} שלבים בלי מקביל ב-Photoshop הושמטו + Starting serial מספר סידורי התחלתי + Insert Stop… הוסף נקודת עצירה… + Save Set… שמור קבוצה… + Message: הודעה: + Allow Continue אפשר המשך + Show dialog during playback הצג תיבת דו-שיח בעת ההפעלה + Select an action first בחר פעולה קודם + Action playback stopped הפעלת הפעולה נעצרה + Step {step} is waiting for its dialog השלב {step} מחכה לתיבת הדו-שיח שלו +@plural {n} action|{n} actions {n} פעולה|{n} פעולות + Background (Default) רקע (ברירת מחדל) + Include All Subfolders הכלל את כל תיקיות המשנה + Auto Add/Delete הוספה/מחיקה אוטומטית + Don't also tick Mirror Image in Print Settings…: the two flips cancel out. אל תסמן גם היפוך תמונה בהגדרות הדפסה…: שני ההיפוכים מבטלים זה את זה. + Print Settings… הגדרות הדפסה… + Remember to turn off the printer's own colour management in Print Settings… זכור לכבות את ניהול הצבע של המדפסת עצמה בהגדרות הדפסה… + Sent to {printer} נשלח אל {printer} + set in Print Settings… נקבע בהגדרות הדפסה… + ICO is limited to 256 × 256 pixels ICO מוגבל ל-256 × 256 פיקסלים + Show Favorite Fonts הצג גופנים מועדפים + No favorite fonts yet: click the star beside a font to add it. אין עדיין גופנים מועדפים: לחץ על הכוכב לצד גופן כדי להוסיף אותו. + Favorite fonts גופנים מועדפים + Add to Favorites הוסף למועדפים + Remove from Favorites הסר מהמועדפים + Show All Fonts הצג את כל הגופנים + All Classes כל הסוגים + Blackletter בלאקלטר (Blackletter) + Decorative דקורטיבי + Font preview: תצוגה מקדימה של גופן: + Handwritten כתב יד + Hide Font Classes הסתר סוגי גופנים + Hide Styles הסתר סגנונות + Monospace ברוחב אחיד (Monospace) + No fonts match these filters. אין גופנים התואמים למסננים אלה. + No similar fonts: the current font doesn't say what it looks like. אין גופנים דומים: הגופן הנוכחי לא מציין איך הוא נראה. + OpenType font גופן OpenType + Sans Serif Sans Serif + Script כתב (Script) + Serif Serif + Show Font Classes הצג סוגי גופנים + Show Similar Fonts הצג גופנים דומים + Show Styles הצג סגנונות + Show Variable Fonts הצג גופנים משתנים + Slab Serif Slab Serif + TrueType font גופן TrueType + Variable font גופן משתנה + Calibration כיול + Red Primary ראשי אדום + Green Primary ראשי ירוק + Blue Primary ראשי כחול + Write xmp sidecars כתוב קבצי XMP נלווים + Set the tone sliders from the image הגדר את מחווני הגוון מהתמונה + Settings from {name} הגדרות מתוך {name} + Settings from {name}; {count} not supported: {names} הגדרות מתוך {name}; {count} לא נתמכות: {names} + Could not write {name}: {error} לא ניתן היה לכתוב את {name}: {error} + Kept {name}: written by another application {name} נשמר ללא שינוי: נכתב על ידי יישום אחר + Shadow Tint טינט צל + Check for Updates… בדוק עדכונים… + PhotoCraft Updates עדכוני PhotoCraft + Checking for updates… בודק עדכונים… + Open the release page to choose an installer for your system. פתח את עמוד הגרסה כדי לבחור מתקין למערכת שלך. + Open Download Page פתח עמוד הורדה + PhotoCraft is up to date. PhotoCraft מעודכן. + Could not check for updates. לא ניתן היה לבדוק עדכונים. + Updates have not been checked yet. העדכונים לא נבדקו עדיין. + Check Again בדוק שוב + Automatically Check for Updates בדוק עדכונים אוטומטית + Installed version: {version} גרסה מותקנת: {version} + PhotoCraft {version} is available. PhotoCraft {version} זמין. + Paints from the History panel's source state צובע מהמצב המקור של פאנל ההיסטוריה + Sets the source for the history brush מגדיר את המקור למברשת ההיסטוריה + Highlight Mode מצב הדגשה + Highlight Color צבע הדגשה + Highlight Opacity אטימות הדגשה + Shadow Mode מצב צל + Shadow Color צבע צל + Shadow Opacity אטימות צל + Use the embedded profile ({profile}) השתמש בפרופיל המוטבע ({profile}) + Convert to the working space ({profile}) המר למרחב העבודה ({profile}) + Remember this choice for future images זכור בחירה זו לתמונות עתידיות + Turn the prompt back on with Ask On Mismatch in Edit › Color Settings. הפעל מחדש את ההודעה עם שאל בעת חוסר התאמה בעריכה › הגדרות צבע. + Button Mode מצב כפתורים + Button Mode On מצב כפתורים פעיל + Darken Interface הכהה ממשק + Lighten Interface הבהר ממשק + Technique שיטה + Chisel Hard אזמל קשה + Chisel Soft אזמל רך + Open color-less EXR as ACEScg פתח EXR חסר-צבע כ-ACEScg + Do not append "copy" to filename when saving a copy אל תוסיף "עותק" לשם הקובץ בעת שמירת עותק + Edit Selected Guides ערוך קווים מנחים נבחרים + Clear Selected Guides נקה קווים מנחים נבחרים + Bicubic Automatic דו-מעוקב אוטומטי + Bicubic Smoother דו-מעוקב חלק יותר + Bicubic Sharper דו-מעוקב חד יותר + Pasting from other apps is unavailable הדבקה מיישומים אחרים אינה זמינה + PhotoCraft can't reach the system clipboard in this session. On Wayland, a Flatpak sandbox hides the protocol that images from other apps are read through. PhotoCraft לא יכול להגיע ללוח הגזירים של המערכת בהפעלה זו. ב-Wayland, ארגז חול של Flatpak מסתיר את הפרוטוקול שבאמצעותו נקראות תמונות מיישומים אחרים. + To paste from other apps, start PhotoCraft under XWayland: `{command}` כדי להדביק מיישומים אחרים, הפעל את PhotoCraft תחת XWayland: `{command}` + Nothing to paste: PhotoCraft can't read the system clipboard here אין מה להדביק: PhotoCraft לא יכול לקרוא את לוח הגזירים של המערכת כאן + Delete this set מחק קבוצה זו + New Set… קבוצה חדשה… + PhotoCraft Defaults ברירות המחדל של PhotoCraft + Save a list of these shortcuts as a web page שמור רשימה של קיצורים אלה כעמוד אינטרנט + Save the changes to this set שמור את השינויים בקבוצה זו + Save these shortcuts as a .kys file שמור קיצורים אלה כקובץ ‎.kys + Save these shortcuts as a new set שמור קיצורים אלה כקבוצה חדשה + Set deleted. הקבוצה נמחקה. + Set saved. הקבוצה נשמרה. + Set: קבוצה: + Summarize… סכם… + There are too many sets: delete one first. יש יותר מדי קבוצות: מחק אחת קודם. + set name שם קבוצה + {set} (modified) {set} (שונה) + Show file name in title הצג שם קובץ בכותרת + 50% Threshold סף 50% + Pattern Dither דיתור תבנית + Diffusion Dither דיתור פיזור + Halftone Screen מסך חצי-טון + Custom Pattern תבנית מותאמת אישית + Frequency: תדירות: + Lines/Inch קווים/אינץ' + Lines/Centimeter קווים/סנטימטר + Ellipse אליפסה + Accept and Go to Conflict אשר ועבור לסתירה + Changes undone. השינויים בוטלו. + Choose a new shortcut for this command, or leave it without one. בחר קיצור חדש לפקודה זו, או השאר אותה בלי קיצור. + Put this command's shortcuts back as they were החזר את הקיצורים של הפקודה הזו כמו שהיו + Take the shortcut from the other command and select it קח את הקיצור מהפקודה האחרת ובחר אותו + Undo Changes בטל שינויים + {shortcut} is reserved by the system and can't be assigned. {shortcut} שמור למערכת ולא ניתן להקצות אותו. + Low-Latency Drawing (vsync off, applies at next launch) ציור בחיוג נמוך (vsync כבוי, חל בהפעלה הבאה) + Free Transform is still being applied; try again when it has finished. שינוי הצורה החופשי עדיין מוחל; נסה שוב כשיסתיים. + The transform couldn't be applied. לא ניתן היה להחיל את שינוי הצורה. + Its layers need {needed} of GPU memory; the budget leaves them {budget}. השכבות שלו צריכות {needed} של זיכרון GPU; התקציב משאיר להן {budget}. + Set GPU Memory in Preferences › Performance to what your graphics card can hold, at most 3/8 of its memory. Automatic follows Memory Usage, within a quarter of this computer's memory and 3/8 of the card's, and doesn't count the document against a card whose memory is known. The status bar shows GPU Memory Full while they don't fit. הגדר זיכרון GPU בהעדפות › ביצועים למה שכרטיס המסך שלך יכול להכיל, לכל היותר 3/8 מהזיכרון שלו. אוטומטי עוקב אחר שימוש בזיכרון, במסגרת רבע מזיכרון המחשב הזה ו-3/8 מזיכרון הכרטיס, ולא סופר את המסמך מול כרטיס שהזיכרון שלו ידוע. סרגל המצב מציג זיכרון GPU מלא כשהם לא מתאימים. + GPU Memory Full זיכרון GPU מלא + The layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. השכבות צריכות {needed} של זיכרון GPU ועשויות להכיל {budget}, כך שעריכות שמציירות מחדש את כל המסמך עושות זאת על ה-CPU. לחץ כדי להגדיר זיכרון GPU. + GPU memory budget: {budget} תקציב זיכרון GPU: {budget} + Graphics memory: {size} זיכרון גרפי: {size} + This document's layers: {needed} of {budget} for layers שכבות המסמך הזה: {needed} מתוך {budget} לשכבות + This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU שכבות המסמך הזה צריכות {needed} אבל עשויות להכיל {budget}: ציור מחדש של כל המסמך משתמש ב-CPU + GPU Memory (MB, 0 = Automatic) זיכרון GPU (MB, 0 = אוטומטי) + {path}: the path is not valid Unicode; save under another name. {path}: הנתיב אינו Unicode תקין; שמור בשם אחר. + {name} was changed by another app after it was opened or saved here. {name} השתנה על ידי יישום אחר לאחר שנפתח או נשמר כאן. + Replace it with this document, or cancel and use File › Save As to keep both. החלף אותו במסמך זה, או בטל והשתמש בקובץ › שמור בשם כדי לשמור על שניהם. + Decrease Brush Size הקטן גודל מברשת + Increase Brush Size הגדל גודל מברשת + Decrease Brush Hardness הקטן קשיחות מברשת + Increase Brush Hardness הגדל קשיחות מברשת + Demosaic פענוח מוזאיקה (Demosaic) + 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. איך מוזאיקת מסנני הצבע של המצלמה ממולאת. היא מוחלת בעת פתיחת הקובץ; התצוגה המקדימה מציגה את השיטה שבה הוא נפתח. + AHD (adaptive homogeneity) AHD (הומוגניות אדפטיבית) + Malvar–He–Cutler Malvar–He–Cutler + Hirakawa–Parks: the cleanest edges and the least colour fringing, the slowest. Hirakawa–Parks: הקצוות הנקיים ביותר והכי פחות גזירת צבע, האיטי ביותר. + Gradient-corrected interpolation: sharp and fast, with some colour fringing on fine detail. אינטרפולציה מתוקנת-מעבר צבעים: חדה ומהירה, עם מעט גזירת צבע בפרטים דקים. + The fastest and the softest, with colour fringing on fine detail. המהירה והרכה ביותר, עם גזירת צבע בפרטים דקים. + “{name}” already exists. Replace it? "{name}" כבר קיים. להחליף אותו? + The name in the save dialog was “{name}”. השם בתיבת הדו-שיח של השמירה היה "{name}". + Previous Brush המברשת הקודמת + Next Brush המברשת הבאה + First Brush המברשת הראשונה + Last Brush המברשת האחרונה + Preview size גודל תצוגה מקדימה + Memory Usage שימוש בזיכרון + Per-document RAM limit (MB) מגבלת RAM למסמך (MB) + Installed RAM: {ram} MB; this limit: {percent}% RAM מותקן: {ram} MB; מגבלה זו: {percent}% + Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. מגביל את הפיקסלים של כל מסמך פתוח בתוספת ההיסטוריה. מצבי הביטול הישנים ביותר נמחקים כשחורגים מהמגבלה. + Applies immediately when saved. Memory is not reserved in advance. חל באופן מיידי בעת השמירה. הזיכרון לא שמור מראש. + With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. כאשר זיכרון GPU מוגדר לאוטומטי, זה גם מגביל את תקציב שכבת ה-GPU. התקציב הזה מוגבל לרבע מה-RAM המותקן, וכאשר ידוע, לשלושה שמיניות מזיכרון כרטיס המסך, עם מינימום של 512MB. הגדלת המגבלה הזו מעבר לתקרות הללו לא מגדילה את תקציב ה-GPU. + Use השתמש + In Front בחזית + Behind מאחור + DDS Options אפשרויות DDS + Generate Mipmaps צור Mipmaps + There is no color table to save. אין טבלת צבעים לשמירה. +@plural Saved {n} color to {file}|Saved {n} colors to {file} נשמר {n} צבע אל {file}|נשמרו {n} צבעים אל {file} + GPU adapter מאיץ GPU + Import Styles… ייבוא סגנונות… + Export Selected Styles… ייצוא סגנונות נבחרים… + Export Styles… ייצוא סגנונות… + {file} is not a style library (.asl) {file} אינו ספריית סגנונות (‎.asl) +@plural Imported {n} style from {file}|Imported {n} styles from {file} יובא {n} סגנון מתוך {file}|יובאו {n} סגנונות מתוך {file} +@plural Exported {n} style to {file}|Exported {n} styles to {file} יוצא {n} סגנון אל {file}|יוצאו {n} סגנונות אל {file} + 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 EXR + Automatic paragraph direction כיוון פסקה אוטומטי + Left-to-right paragraph direction כיוון פסקה משמאל לימין + Right-to-left paragraph direction כיוון פסקה מימין לשמאל + Not rendered: this adjustment ({key}) is kept as imported. לא מעובד: התאמה זו ({key}) נשמרת כמיובאת. + Print preview image הדפס תצוגה מקדימה של תמונה + Hue Cube קובייה של גוון + Brightness Cube קובייה של בהירות + Color Wheel גלגל צבעים + RGB Sliders מחווני RGB + HSB Sliders מחווני HSB + CMYK Sliders מחווני CMYK + Lab Sliders מחווני Lab + Web Color Sliders מחווני צבע אינטרנט + Copy Color as HTML העתק צבע כ-HTML + Copy Color's Hex Code העתק את קוד ה-Hex של הצבע + RGB Spectrum ספקטרום RGB + CMYK Spectrum ספקטרום CMYK + Grayscale Ramp שיפוע גווני אפור + Current Colors צבעים נוכחיים + Make Ramp Web Safe הפוך את השיפוע לבטוח לאינטרנט + The path was kept as the Work Path הנתיב נשמר כנתיב עבודה + The path was discarded הנתיב הושלך + Art History Brush Tool כלי מברשת היסטוריה אמנותית + Tight Short צפוף וקצר + Tight Medium צפוף ובינוני + Tight Long צפוף וארוך + Loose Medium רפוי ובינוני + Loose Long רפוי וארוך + Dab נגיעה (Dab) + Tight Curl תלתל צפוף + Loose Curl תלתל רפוי + Stylized dabs from a history state נגיעות מסוגננות ממצב היסטוריה + Font size presets ערכות גודל גופן קבועות מראש + Leading presets ערכות ריווח שורות קבועות מראש + Tracking presets ערכות מעקב תווים קבועות מראש + Color Aware מודע לצבע + Decontaminate Colors נקה זיהום צבעים + Edge Detection גילוי קצוות + Global Refinements חידודים גלובליים + High Quality Preview תצוגה מקדימה באיכות גבוהה + Object Aware מודע לאובייקטים + Real-Time Refinement חידוד בזמן אמת + Refine Edge Brush Tool כלי מברשת חידוד קצה + Refine Hair חדד שיער + Refine Mode מצב חידוד + Remember Settings זכור הגדרות + View Mode מצב תצוגה + Object Aware needs a segmentation model, which isn't available yet מודע לאובייקטים דורש מודל פילוח, שאינו זמין עדיין + Refine Hair needs hair detection, which isn't available yet חידוד שיער דורש גילוי שיער, שאינו זמין עדיין + Select and Mask was closed: its document is no longer the active one בחירה ומיסוך נסגר: המסמך שלו אינו הפעיל יותר + Select and Mask was closed: another layer was selected בחירה ומיסוך נסגר: שכבה אחרת נבחרה + Select Layer Under Cursor בחר שכבה מתחת לסמן + Drag to move the selected path גרור כדי להזיז את הנתיב הנבחר + Drag to move the active shape's path or the Work Path גרור כדי להזיז את הנתיב של הצורה הפעילה או את נתיב העבודה + Export As: {name} ייצוא בשם: {name} + Color Sampler Tool כלי דוגם צבעים + Proof Setup… הגדרת הדמיית הדפסה… + Toggle Layer Mask Overlay הצג/הסתר שכבת-על של מסכת שכבה + Increase Type Size הגדל גודל טקסט + Decrease Type Size הקטן גודל טקסט + Increase Type Size by 10 הגדל גודל טקסט ב-10 + Decrease Type Size by 10 הקטן גודל טקסט ב-10 + Make Selection from Path צור בחירה מנתיב + Target Composite Channel ערוץ מרוכב יעד + Target Channel 3 ערוץ יעד 3 + Target Channel 4 ערוץ יעד 4 + Target Channel 5 ערוץ יעד 5 + Target Channel 6 ערוץ יעד 6 + Target Channel 7 ערוץ יעד 7 + Target Channel 8 ערוץ יעד 8 + Target Channel 9 ערוץ יעד 9 + Fill with Foreground Color מלא בצבע חזית + Fill with Background Color מלא בצבע רקע + Fill with Foreground Color, Preserve Transparency מלא בצבע חזית, שמור על שקיפות + Fill with Background Color, Preserve Transparency מלא בצבע רקע, שמור על שקיפות + Temporary זמני + Space Space + Hand Tool (hold) כלי יד (החזק) + Zoom In (hold, drag to scrub) הגדל תצוגה (החזק, גרור לכיוון) + Zoom Out (hold) הקטן תצוגה (החזק) + Erase with Brush or Pencil (hold) מחק עם מברשת או עיפרון (החזק) + Author Title תפקיד המחבר + Copyright Url כתובת URL לזכויות יוצרים + Title כותרת + Working-cmyk CMYK עבודה + Coated-cmyk CMYK מצופה + Linear-srgb sRGB לינארי + Gray-gamma-2.2 אפור גמא 2.2 + Adobe-rgb-compat תואם Adobe RGB + Prophoto-compat תואם ProPhoto + Display-p3 Display P3 + Intent כוונה (Intent) + Bpc Bpc + Simulate Paper דמה נייר + Warming Filter (85) מסנן חימום (85) + Cw עם כיוון השעון + Ccw נגד כיוון השעון + Nearest שכן קרוב + Mask Channel ערוץ מסכה + R G B R G B + Source Channel ערוץ מקור + Source Invert היפוך מקור + Source1 Channel ערוץ מקור1 + Source1 Invert היפוך מקור1 + Source2 Channel ערוץ מקור2 + Source2 Invert היפוך מקור2 + W: W: + A: A: + Pattern Fill… מילוי תבנית… + Any כלשהו + Cmyk CMYK + Dont Enlarge אל תגדיל + Change Find שנה חיפוש + Case Sensitive תלוי רישיות + Whole Word מילה שלמה + Forward קדימה + Based On מבוסס על + This Layer: שכבה זו: + Checkerboard לוח שחמט + Arc Lower קשת תחתית + Arc Upper קשת עליונה + Bend כיפוף + Horizontal Distortion עיוות אופקי + Vertical Distortion עיוות אנכי + Move Up הזז מעלה + Move Down הזז מטה + CPU Rendering עיבוד CPU + Calculating… מחשב… + Click to refresh histogram with uncached data לחץ לרענון ההיסטוגרמה עם נתונים לא ממוטמנים + Count: ספירה: + Drawn on the CPU: {reason}. Click for System Info. צויר על ה-CPU: {reason}. לחץ לפרטי מערכת. + Level: רמה: + Percentile: אחוזון: + Release Notes הערות גרסה + Show Channels in Color הצג ערוצים בצבע + Show Statistics הצג סטטיסטיקה + Source: מקור: + Uncached Refresh רענון לא ממוטמן + Update and Restart עדכן והפעל מחדש + +# Color picker, gradient map and font list strings added on main + No matching fonts אין גופנים תואמים + Recently Used Colors צבעים שנעשה בהם שימוש לאחרונה + Shapes can't use patterns yet צורות עדיין לא יכולות להשתמש בתבניות + Stop Color צבע נקודת עצירה + +# Strings added on main after the catalog was completed (2026-11-06) + A command was cancelled or stopped during batch processing. Continue with the next file or stop? פקודה בוטלה או נעצרה במהלך עיבוד האצווה. להמשיך לקובץ הבא או לעצור? + A file is still being placed; try again when it has finished. קובץ עדיין נמצא בתהליך הצבה; נסה שוב כשההצבה תסתיים. + A frame supports affine transforms; select its image for perspective transforms מסגרת תומכת בהתמרות אפיניות; בחר את התמונה שלה להתמרות פרספקטיבה + A frame supports affine transforms; select its image to warp it מסגרת תומכת בהתמרות אפיניות; בחר את התמונה שלה כדי לעוות אותה + Accelerated מואץ + Answer the open import question first, then import this file again. ענה תחילה על שאלת הייבוא הפתוחה, ואז ייבא את הקובץ הזה שוב. + Arrowhead options אפשרויות ראש חץ + Arrowheads ראשי חץ + Attribute מאפיין + Background (default) רקע (ברירת מחדל) + Batch preview תצוגה מקדימה של אצווה + Cancelled placing {name} ההצבה של {name} בוטלה + Channel Options… אפשרויות ערוץ… + Concavity קעירות + Convert to Frame… המר למסגרת… + Create a new custom frame צור מסגרת מותאמת אישית חדשה + Create a new polygonal frame צור מסגרת מצולעת חדשה + Create a new triangular frame צור מסגרת משולשת חדשה + Create a single history state צור מצב היסטוריה יחיד + Data Sets as Files is unavailable on the web ערכות נתונים כקבצים אינן זמינות בגרסת האינטרנט + Dropped files weren't placed: their document was closed. הקבצים שנגררו לא הוצבו: המסמך שלהם נסגר. + Dropped files weren't placed: too many are waiting for their document. הקבצים שנגררו לא הוצבו: יותר מדי קבצים ממתינים למסמך שלהם. + Effect אפקט + Empty ריק + End סוף + Filter for embedded smart objects סנן אובייקטים חכמים מוטבעים + Filter for linked smart objects that are missing סנן אובייקטים חכמים מקושרים שחסרים + Filter for smart objects linked locally סנן אובייקטים חכמים המקושרים מקומית + Fit Content to Frame התאם תוכן למסגרת + Fit Frame to Content התאם מסגרת לתוכן + Frame coordinates must be finite and within 600000 pixels קואורדינטות המסגרת חייבות להיות סופיות ובטווח של 600000 פיקסלים + High Memory Photoshop Document מסמך Photoshop עתיר זיכרון + Image Compression דחיסת תמונה + Import Image… ייבוא תמונה… + Import as New Group ייבא כקבוצה חדשה + Import as New Group keeps “{group}” and adds the file as a new group beside it. ייבוא כקבוצה חדשה שומר את "{group}" ומוסיף את הקובץ כקבוצה חדשה לצידה. + Invalid frame transform התמרת מסגרת לא חוקית + Invalid nested file drop גרירת קובץ מקונן לא חוקית + LZW LZW + Layer Effects אפקטי שכבה + Learn למידה + Lining ספרות בגובה אחיד + Linked מקושר + New Frame מסגרת חדשה + New file קובץ חדש + No Adv. Blending ללא מיזוג מתקדם + No Layer Effects ללא אפקטי שכבה + No Layer Mask ללא מסכת שכבה + No Vector Mask ללא מסכת וקטור + No import is waiting. Import the file again. אין ייבוא ממתין. ייבא את הקובץ שוב. + Not Clipped לא גזור + Not Empty לא ריק + Not Linked לא מקושר + Not Locked לא נעול + Not Visible לא גלוי + Numerals ספרות + On your computer במחשב שלך + Open anyway פתח בכל זאת + Opening this document uses more memory and may slow down your computer or other running applications. פתיחת המסמך הזה צורכת יותר זיכרון ועלולה להאט את המחשב שלך או יישומים אחרים הפועלים בו. + Opening “{name}” requires an estimated {est} GiB of memory ({avail} GiB available). פתיחת "{name}" דורשת כ-{est} GiB זיכרון ({avail} GiB זמינים). + Opening “{name}” requires an estimated {est} GiB of memory. The available memory could not be measured. פתיחת "{name}" דורשת כ-{est} GiB זיכרון. לא ניתן היה למדוד את הזיכרון הזמין. + Pause For השהה למשך + Pause For: השהה למשך: + Playback Options… אפשרויות הפעלה… + Proportional יחסי + Proportional Lining יחסי בגובה אחיד + Proportional Oldstyle יחסי עתיק + Replace Image… החלף תמונה… + Replace deletes everything in “{group}” first, including presets you edited or moved there. This can't be undone. החלפה מוחקת תחילה את כל התוכן של "{group}", כולל ערכות קבועות מראש שערכת או העברת לשם. לא ניתן לבטל פעולה זו. + Save Image Pyramid שמור פירמידת תמונה + Save Transparency שמור שקיפות + Set ערכה + Set 1 ערכה 1 + Set 10 ערכה 10 + Set 11 ערכה 11 + Set 12 ערכה 12 + Set 13 ערכה 13 + Set 14 ערכה 14 + Set 15 ערכה 15 + Set 16 ערכה 16 + Set 17 ערכה 17 + Set 18 ערכה 18 + Set 19 ערכה 19 + Set 2 ערכה 2 + Set 20 ערכה 20 + Set 3 ערכה 3 + Set 4 ערכה 4 + Set 5 ערכה 5 + Set 6 ערכה 6 + Set 7 ערכה 7 + Set 8 ערכה 8 + Set 9 ערכה 9 + Set as default הגדר כברירת מחדל + Source: {name} מקור: {name} + Specify Channels: ציין ערוצים: + Start התחלה + Step by Step צעד אחר צעד + Stylistic Sets ערכות סגנוניות + Tabular טבלאי + Tabular Lining טבלאי בגובה אחיד + Tabular Oldstyle טבלאי עתיק + The GPU compositor is still being prepared מרכיב ה-GPU עדיין בהכנה + The History Brush source was deleted: set a new source in the History panel מקור מברשת ההיסטוריה נמחק: הגדר מקור חדש בחלונית ההיסטוריה + The frame is locked המסגרת נעולה + The frame is unavailable המסגרת אינה זמינה + Transparent (default) שקוף (ברירת מחדל) + Use these settings for new arrows השתמש בהגדרות אלה עבור חצים חדשים + Website אתר אינטרנט + ZIP ZIP + seconds שניות + {message} into “{group}” {message} אל "{group}" + {ok} written to {dir} {ok} נכתבו אל {dir} + {set} from {file} replaced the one from {earlier} {set} מתוך {file} החליף את זה מתוך {earlier} +@plural The brush group “{group}” already has {n} brush of yours.|The brush group “{group}” already has {n} brushes of yours. לקבוצת המברשות "{group}" כבר יש {n} מברשת שלך.|לקבוצת המברשות "{group}" כבר יש {n} מברשות שלך. +@plural The gradient group “{group}” already exists ({n} gradient).|The gradient group “{group}” already exists ({n} gradients). קבוצת מעברי הצבעים "{group}" כבר קיימת ({n} מעבר צבעים).|קבוצת מעברי הצבעים "{group}" כבר קיימת ({n} מעברי צבעים). +@plural {n} action file loaded|{n} action files loaded נטען {n} קובץ פעולות|נטענו {n} קובצי פעולות +@plural {n} file could not be loaded: {errors}|{n} files could not be loaded: {errors} לא ניתן היה לטעון {n} קובץ: {errors}|לא ניתן היה לטעון {n} קבצים: {errors} +@plural {what}: {n} Image Assets output failed|{what}: {n} Image Assets outputs failed {what}: {n} פלט נכסי תמונה נכשל|{what}: {n} פלטי נכסי תמונה נכשלו diff --git a/crates/ui-egui/src/i18n/hi.tsv b/crates/ui-egui/src/i18n/hi.tsv index aa79f03063..4680b417d4 100644 --- a/crates/ui-egui/src/i18n/hi.tsv +++ b/crates/ui-egui/src/i18n/hi.tsv @@ -160,6 +160,8 @@ Layer Mask लेयर मास्क Hide All सभी छिपाएँ Reveal Selection चयन दिखाएँ + Reveal in Finder Finder में दिखाएँ + Reveal in Explorer Explorer में दिखाएँ Hide Selection चयन छिपाएँ From Transparency पारदर्शिता से Apply लागू करें @@ -235,6 +237,12 @@ Info जानकारी Timeline टाइमलाइन Tools टूल्स + Contextual Task Bar प्रासंगिक कार्य पट्टी + Hide bar पट्टी छिपाएँ + Reset bar position पट्टी की स्थिति रीसेट करें + Pin bar position पट्टी की स्थिति पिन करें + Move bar पट्टी खिसकाएँ + More options अधिक विकल्प Options विकल्प Status Bar स्टेटस बार Move Tool मूव टूल @@ -350,6 +358,7 @@ Aligned संरेखित Fit in View दृश्य में फ़िट करें Camera Raw Camera Raw + Camera Raw… Camera Raw… cameraRaw Amount मात्रा Amount मात्रा cameraRaw Aqua एक्वा diff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsv index b54afb204c..46e1f4dbc8 100644 --- a/crates/ui-egui/src/i18n/hu.tsv +++ b/crates/ui-egui/src/i18n/hu.tsv @@ -908,6 +908,12 @@ Titling Alternates Címbetű-változatok Tool Presets Eszköz-előbeállítások Tools Eszközök + Contextual Task Bar Környezetfüggő feladatsáv + Hide bar Sáv elrejtése + Reset bar position Sáv helyzetének visszaállítása + Pin bar position Sáv helyzetének rögzítése + Move bar Sáv áthelyezése + More options További beállítások Trace Contour… Kontúrkövetés… Transform Symmetry Szimmetria alakítása Tree… Fa… @@ -3299,7 +3305,6 @@ cameraRaw Yellow Sárga Ellipse Tool Ellipszis Elliptical Marquee Tool Ellipszis-kijelölés Enable Bekapcsolás - Enable animations Animációk engedélyezése Enable flick panning Lendítéses pásztázás engedélyezése Enable floating document window docking Lebegő dokumentumablakok dokkolásának engedélyezése Enable narrow options bar Keskeny beállítósáv engedélyezése @@ -3444,6 +3449,7 @@ cameraRaw Yellow Sárga Magnetic Lasso Mágneses lasszó Magnetic Lasso Tool Mágneses lasszó Make Selection Kijelölés készítése + Make Shape Alakzat készítése Make work path from selection Munkaútvonal készítése a kijelölésből Manual Kézi manual kézi diff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsv index b2f51040e8..e4c20e72f8 100644 --- a/crates/ui-egui/src/i18n/id.tsv +++ b/crates/ui-egui/src/i18n/id.tsv @@ -825,7 +825,7 @@ Consolidate All to Tabs Gabungkan Semua ke Tab Float in Window Mengambang di Jendela Float All in Windows Mengambangkan Semua di Jendela - New Window Jendela Baru untuk Dokumen + New Window Jendela Baru Workspace Ruang Kerja Essentials Esensial Graphic and Web Grafis dan Web @@ -887,6 +887,12 @@ Timeline Timeline Tool Presets Preset Alat Tools Alat + Contextual Task Bar Bilah Tugas Kontekstual + Hide bar Sembunyikan bilah + Reset bar position Atur ulang posisi bilah + Pin bar position Sematkan posisi bilah + Move bar Pindahkan bilah + More options Opsi lainnya About PhotoCraft Tentang PhotoCraft PhotoCraft Website Situs Web PhotoCraft PhotoCraft on GitHub PhotoCraft di GitHub @@ -2121,7 +2127,6 @@ Show only crosshair while painting Tampilkan crosshair saja saat melukis Show slice numbers Tampilkan nomor slice Show tooltips Tampilkan tooltip - Enable animations Aktifkan animasi Show highlight on rollover Tampilkan sorotan saat kursor melintas Show transformation values Tampilkan nilai transformasi Slice color Warna slice @@ -2502,6 +2507,7 @@ Path to Illustrator… Path ke Illustrator… Make Work Path Buat Work Path Make Selection Buat Seleksi + Make Shape Buat Bentuk Fill Path Isi Path Stroke Path Stroke Path Clipping Path Clipping Path diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsv index a42efb170f..84fb1feef8 100644 --- a/crates/ui-egui/src/i18n/it.tsv +++ b/crates/ui-egui/src/i18n/it.tsv @@ -763,7 +763,7 @@ Working Magenta Plate Lastra magenta di lavoro Working Yellow Plate Lastra gialla di lavoro Working Black Plate Lastra nera di lavoro - Working CMY Plates Lastra CMY di lavoro + Working CMY Plates Lastre CMY di lavoro Legacy Macintosh RGB (Gamma 1.8) RGB legacy Macintosh (Gamma 1.8) Internet Standard RGB (sRGB) RGB standard Internet (sRGB) Monitor RGB RGB monitor @@ -918,6 +918,12 @@ Timeline Timeline Tool Presets Predefiniti strumento Tools Strumenti + Contextual Task Bar Barra delle attività contestuale + Hide bar Nascondi barra + Reset bar position Ripristina posizione barra + Pin bar position Blocca posizione barra + Move bar Sposta barra + More options Altre opzioni About PhotoCraft Informazioni su PhotoCraft PhotoCraft Website Sito web PhotoCraft PhotoCraft on GitHub PhotoCraft su GitHub @@ -2149,7 +2155,6 @@ Show only crosshair while painting Mostra solo mirino durante pittura Show slice numbers Mostra numeri sezioni Show tooltips Mostra tooltip - Enable animations Attiva animazioni Show highlight on rollover Mostra evidenziazione al passaggio del mouse Show bounding box when dragging layer Mostra riquadro selezione al trascinamento livello System title bar Barra del titolo di sistema @@ -2401,6 +2406,7 @@ Punctuation Punteggiatura Make Work Path Crea tracciato di lavoro Make Selection Crea selezione + Make Shape Crea forma Fill Path Riempi tracciato Stroke Path Traccia tracciato Delete Path Elimina tracciato diff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsv index 919d1f0977..3f7bdf4dab 100644 --- a/crates/ui-egui/src/i18n/ja.tsv +++ b/crates/ui-egui/src/i18n/ja.tsv @@ -870,7 +870,7 @@ Consolidate All to Tabs すべてをタブに統合 Float in Window ウィンドウ内に浮動 Float All in Windows すべてをウィンドウ内に浮動 - New Window ドキュメントの新規ウィンドウ + New Window 新規ウィンドウ Workspace ワークスペース Essentials 基本 Graphic and Web グラフィックと Web @@ -932,6 +932,12 @@ Timeline タイムライン Tool Presets ツールプリセット Tools ツール + Contextual Task Bar コンテキストタスクバー + Hide bar バーを隠す + Reset bar position バーの位置をリセット + Pin bar position バーの位置を固定 + Move bar バーを移動 + More options その他のオプション About PhotoCraft PhotoCraft について PhotoCraft Website PhotoCraft の Web サイト PhotoCraft on GitHub GitHub 上の PhotoCraft @@ -2160,7 +2166,6 @@ Show only crosshair while painting 描画中は十字線のみ表示 Show slice numbers スライス番号を表示 Show tooltips ツールチップを表示 - Enable animations アニメーションを有効にする Show highlight on rollover ロールオーバー時にハイライトを表示 Show bounding box when dragging layer レイヤーのドラッグ中にバウンディングボックスを表示 System title bar システムのタイトルバー @@ -3042,6 +3047,7 @@ fontWeight Italic 斜体 Magnetic Lasso マグネット投げ縄 Make 作成 Make Selection 選択範囲を作成 + Make Shape シェイプを作成 Make Work Path 作業用パスを作成 Match Color カラーを一致 Mezzotint メゾティント diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsv index b7f16a941e..045c0c4cea 100644 --- a/crates/ui-egui/src/i18n/ko.tsv +++ b/crates/ui-egui/src/i18n/ko.tsv @@ -825,7 +825,7 @@ Consolidate All to Tabs 모두 탭으로 통합 Float in Window 별도 창으로 띄우기 Float All in Windows 모두 별도 창으로 띄우기 - New Window 문서의 새 창 + New Window 새 창 Workspace 작업 영역 Essentials 필수 Graphic and Web 그래픽 및 웹 @@ -888,6 +888,12 @@ Timeline 타임라인 Tool Presets 도구 사전 설정 Tools 도구 + Contextual Task Bar 상황별 작업 표시줄 + Hide bar 막대 숨기기 + Reset bar position 막대 위치 재설정 + Pin bar position 막대 위치 고정 + Move bar 막대 이동 + More options 추가 옵션 About PhotoCraft PhotoCraft 정보 PhotoCraft Website PhotoCraft 웹사이트 PhotoCraft on GitHub GitHub의 PhotoCraft @@ -2133,7 +2139,6 @@ Show only crosshair while painting 칠하는 동안 십자선만 표시 Show slice numbers 분할 영역 번호 표시 Show tooltips 도구 설명 표시 - Enable animations 애니메이션 사용 Show highlight on rollover 롤오버 시 강조 표시 Show transformation values 변형 값 표시 Slice color 분할 영역 색상 @@ -3589,6 +3594,7 @@ curves Smooth 매끄럽게 Edit Selected Guides 선택한 안내선 편집 Clear Selected Guides 선택한 안내선 지우기 Make Selection 선택 영역 만들기 + Make Shape 모양 만들기 Bicubic Automatic 쌍입방 자동 Bicubic Smoother 쌍입방 더 부드럽게 Bicubic Sharper 쌍입방 더 선명하게 @@ -3825,3 +3831,349 @@ smartSvg AI/PDF/EPS contents will be edited as SVG. Saving replaces the embedded Pick a different document for each channel. 채널마다 다른 문서를 선택하십시오. A picked document is no longer open. 선택한 문서 중 하나가 더 이상 열려 있지 않습니다. A picked document is no longer a grayscale document of the same size. 선택한 문서 중 하나가 더 이상 같은 크기의 회색 음영 문서가 아닙니다. + +# Rows that #8185 adds on top of the catalog above. + Working CMY Plate 작업용 CMY 판 + Legacy Macintosh RGB 기존 Macintosh RGB + Internet Standard RGB 인터넷 표준 RGB + New Window for Document 문서의 새 창 + Drag on the image to add a constraint; Shift for horizontal/vertical; right-click to delete. 이미지 위에서 드래그하여 제약 조건 추가; Shift 키로 수평/수직 유지; 오른쪽 클릭하여 삭제. +@id edit.stroke 획 +@id edit.transform.scale 크기 조절 +@id edit.purge.undo 실행 취소 기록 +cameraRaw Red 빨강 +cameraRaw Orange 주황 +cameraRaw Yellow 노랑 +cameraRaw Green 초록 +cameraRaw Aqua 청록 +cameraRaw Blue 파랑 +cameraRaw Purple 보라 +cameraRaw Magenta 자홍 +cameraRaw Luminance 휘도 +cameraRaw Temperature 색온도 + 3D 3D + About {app} {app} 정보 + Adjustment 조정 + Adjustment Properties 조정 속성 + Adobe RGB (1998) Adobe RGB (1998) + Advanced Blending 고급 혼합 + Apply Layer Comp 레이어 구성 적용 + Arc 호 + Arch 아치 + Artist 아티스트 + Back 뒤로 + Before 적용 전 + Bulge 볼록하게 + Clipping Path 클리핑 패스 + Close Window 창 닫기 + Color Swatches 색상 견본 + Content-Aware Move 내용 인식 이동 + Default Foreground and Background Colors 기본 전경색 및 배경색 + Delete Path 패스 삭제 + Documents 문서 + Duplicate Layer Comp 레이어 구성 복제 + Duplicate Path 패스 복제 + F F + Filename 파일 이름 + Fill Path 패스 칠 + Fish 물고기 + Flag 깃발 + Group · {n} layer 그룹 · 레이어 {n}개 + Hide 숨기기 + Hide Others 다른 앱 숨기기 + Hide {app} {app} 숨기기 + ISO Speed ISO 감도 + Inflate 팽창 + Invert Mask 마스크 반전 + Justification 양쪽 정렬 + Layer Comp 레이어 구성 + Layer Properties 레이어 속성 + Loop 반복 + Magnetic Lasso 자석 올가미 + Make 제조사 + Make Work Path 작업 패스 만들기 + Move Layer 레이어 이동 + New Channel 새 채널 + New Layer Comp 새 레이어 구성 + Patch 패치 + Pencil Tool 연필 도구 + Perspective Crop 원근 자르기 + Pixel 픽셀 + Punctuation 문장 부호 + Quick Selection 빠른 선택 + Quit 종료 + Quit {app} {app} 종료 + RGB RGB + Recovery 복구 + Rectangle 사각형 + Rectangular Selection 사각형 선택 + Rename Layer Comp 레이어 구성 이름 바꾸기 + Reorder Layer 레이어 순서 변경 + Reset Preferences 환경 설정 초기화 + Rise 상승 + Ruler 눈금자 + Search menus 메뉴 검색 + Select All Layers 모든 레이어 선택 + Select Inverse 선택 영역 반전 + Select Layer 레이어 선택 + Services 서비스 + Set Colors 색상 설정 + Shell Lower 아래쪽 조개껍데기 + Shell Upper 위쪽 조개껍데기 + Show All 모두 표시 + Software 소프트웨어 + Squeeze 압축 + Stroke Path 패스에 획 적용 + Switch Foreground and Background Colors 전경색과 배경색 전환 + Symbols 기호 + Twist 비틀기 + Unknown 알 수 없음 + Update Layer Comp 레이어 구성 업데이트 + Vertical Type Tool 세로 문자 도구 + sRGB IEC61966-2.1 sRGB IEC61966-2.1 + shortcut 단축키 +cameraRaw Color Detail 색상 세부 정보 +cameraRaw Color Grading 색상 등급 +cameraRaw Darks 어두운 영역 +cameraRaw Global 전체 +cameraRaw Hue 색조 +cameraRaw Luminance Detail 휘도 세부 정보 +cameraRaw Masking 마스킹 +cameraRaw Roughness 거칠기 +cameraRaw Tint 색조 보정 +cameraRaw Vibrance 활기 +cameraRaw Whites 흰색 계열 +layerLabel No Color 색상 없음 + Make Work Path… 작업 패스 만들기… + Create Vector Mask 벡터 마스크 만들기 + Make Selection… 선택 영역 만들기… + Fill Path… 패스 칠… + Clipping Path… 클리핑 패스… + Free Transform Path 패스 자유 변형 + Copy Fill 칠 복사 + Copy Complete Stroke 전체 획 복사 + Paste Fill 칠 붙여넣기 + Paste Complete Stroke 전체 획 붙여넣기 + Make Symmetry Path 대칭 패스 만들기 + Disable Symmetry Path 대칭 패스 비활성화 + Dark Gray 진한 회색 + Medium Gray 중간 회색 + Select Custom Color… 사용자 지정 색상 선택… + Color Picker (Custom Canvas Color) 색상 선택기(사용자 지정 캔버스 색상) + Rename Channel… 채널 이름 바꾸기… + Convert to Alpha Channel 알파 채널로 변환 + Exit Quick Mask 빠른 마스크 종료 + Color Indicates Masked Areas 색상으로 마스크 영역 표시 + Color Indicates Selected Areas 색상으로 선택 영역 표시 + Up 위로 + To 대상 + Shallow 얕게 + Deep 깊게 + Blend Interior Effects as Group 내부 효과를 그룹으로 혼합 + Blend Clipped Layers as Group 클리핑된 레이어를 그룹으로 혼합 + Transparency Shapes Layer 투명도로 레이어 모양 결정 + Layer Mask Hides Effects 레이어 마스크로 효과 숨기기 + Vector Mask Hides Effects 벡터 마스크로 효과 숨기기 + General Blending 일반 혼합 + This Layer: 현재 레이어: + Nothing to paste: the clipboard holds no image 붙여넣을 이미지가 클립보드에 없습니다. + Preferences saved 환경 설정을 저장했습니다. + Invalid panel layout; restored the default dock 패널 배치가 잘못되어 기본 도킹 배치로 복원했습니다. + Preferences were reset: {error} 환경 설정을 초기화했습니다: {error} + Recovered {name} {name}을(를) 복구했습니다. + Couldn't save preferences: {error}. Retrying… 환경 설정을 저장할 수 없습니다: {error}. 다시 시도하는 중… + Autosave failed: {error} 자동 저장 실패: {error} + Exported presets to {path} 사전 설정을 {path}(으)로 내보냈습니다. + Ran script {name} {name} 스크립트를 실행했습니다. + Sent to the printer ({spooler}) 프린터로 전송했습니다({spooler}). + Printed to {path} {path}(으)로 인쇄했습니다. + Exported {path} ({size}) {path}을(를) 내보냈습니다({size}). + Exported {path} {path}을(를) 내보냈습니다. + Added swatch {name} {name} 견본을 추가했습니다. + Step {step} ({id}) failed: {error} {step}단계({id}) 실패: {error} + Could not rename the action: {error} 액션 이름을 바꿀 수 없습니다: {error} + Action playback failed: {error} 액션 재생 실패: {error} + Clone source set at {x}, {y} 복제 소스를 {x}, {y}에 설정했습니다. + Color management: {error} 색상 관리: {error} + Opened {url} {url}을(를) 열었습니다. + No custom shape "{name}": pick one in the options bar or Window › Shapes 사용자 지정 도형 "{name}"이(가) 없습니다. 옵션 막대 또는 창 › 도형에서 선택하세요. + Saved a copy as {path} 사본을 {path}(으)로 저장했습니다. + Exported contents to {path} 내용을 {path}(으)로 내보냈습니다. + {label} is not available: {reason} {label}을(를) 사용할 수 없습니다: {reason} + Saved {path}; image assets: {n} in {dir} {path} 저장 완료 · 이미지 에셋: {dir}에 {n}개 + {message} (notes: {n}; {warning}) {message}(참고: {n}개; {warning}) + Preferences can't be saved 환경 설정을 저장할 수 없습니다. + PhotoCraft keeps retrying; until a save succeeds, preference changes are lost when it closes. PhotoCraft가 계속 다시 시도합니다. 저장에 성공하기 전까지는 종료 시 환경 설정 변경 사항이 사라집니다. + GPU retry scheduled GPU 재시도가 예약되었습니다. + Save your work and restart PhotoCraft to retry GPU acceleration. CPU rendering remains active for this session. 작업을 저장하고 PhotoCraft를 다시 시작하면 GPU 가속을 다시 시도합니다. 현재 세션에서는 CPU 렌더링을 계속 사용합니다. + GPU device was lost; using the CPU renderer. GPU 장치 연결이 끊어져 CPU 렌더러를 사용합니다. + GPU error; using the CPU renderer. GPU 오류로 CPU 렌더러를 사용합니다. + Couldn't open {name}: {error} {name}을(를) 열 수 없습니다: {error} + Toggle the Brush Settings panel 브러시 설정 패널 표시 전환 + New Brush Preset 새 브러시 사전 설정 + {verb} {mask} {layer} {layer} {mask} {verb} + Unlink 연결 해제 + Link 연결 + layer mask 레이어 마스크 + vector mask 벡터 마스크 + Commit transform 변형 적용 + Cancel transform 변형 취소 + Scroll menu up 메뉴 위로 스크롤 + Scroll menu down 메뉴 아래로 스크롤 + This type layer must be rasterized before proceeding. Its text will no longer be editable. Rasterize the type? 계속하려면 이 문자 레이어를 래스터화해야 합니다. 이후에는 텍스트를 편집할 수 없습니다. 문자를 래스터화할까요? + This shape layer must be rasterized before proceeding. It will no longer be editable as a shape. Rasterize the shape? 계속하려면 이 도형 레이어를 래스터화해야 합니다. 이후에는 도형으로 편집할 수 없습니다. 도형을 래스터화할까요? + This Smart Object must be rasterized before proceeding. Its contents will no longer be editable. Rasterize the Smart Object? 계속하려면 이 고급 개체를 래스터화해야 합니다. 이후에는 내용을 편집할 수 없습니다. 고급 개체를 래스터화할까요? + This fill layer must be rasterized before proceeding. Its fill content will no longer be editable. Rasterize the layer? 계속하려면 이 칠 레이어를 래스터화해야 합니다. 이후에는 칠 내용을 편집할 수 없습니다. 레이어를 래스터화할까요? + This layer must be rasterized before proceeding. 계속하려면 이 레이어를 래스터화해야 합니다. + Color Picker (Background Color) 색상 선택기(배경색) + Color Picker (Foreground Color) 색상 선택기(전경색) + Adwaita (Light) Adwaita(밝게) + Adwaita (Dark) Adwaita(어둡게) + Breeze Light Breeze 밝게 + Breeze Dark Breeze 어둡게 + Solarized Dark Solarized 어둡게 + Open Recent is unavailable on the web 웹에서는 최근 파일 열기를 사용할 수 없습니다. + Graphics adapter: {adapter} 그래픽 어댑터: {adapter} + Backend: {backend} ({type}) 백엔드: {backend}({type}) + Driver: {driver} 드라이버: {driver} + GPU backend preference: {backend} 선호 GPU 백엔드: {backend} + Selected at launch: {backend} 시작 시 선택된 백엔드: {backend} + Image compositor: {processor} 이미지 합성 처리기: {processor} + Fallback: {reason} 대체 사용 사유: {reason} + This session: {reason} 현재 세션: {reason} + Window renderer: {renderer} 창 렌더러: {renderer} + Software adapter 소프트웨어 어댑터 + Graphics adapter 그래픽 어댑터 + unknown 알 수 없음 + unknown type 알 수 없는 유형 + auto 자동 + Platform: {os} {arch} 플랫폼: {os} {arch} + previous reading kept; the last re-read failed: {reason} 이전 값을 유지합니다. 마지막으로 다시 읽기에 실패했습니다: {reason} + Monitor profile: {profile} 모니터 프로파일: {profile} + Display profiles: {reason} 디스플레이 프로파일: {reason} + Monitor profile in use on {display}: {profile} {display}에서 사용 중인 모니터 프로파일: {profile} + Monitor profile in use: {profile} 사용 중인 모니터 프로파일: {profile} + The canvas is shown as sRGB. Choose a monitor profile in Edit › Color Settings. 캔버스를 sRGB로 표시합니다. 편집 › 색상 설정에서 모니터 프로파일을 선택하세요. + The canvas on {display} is shown as sRGB. Choose a monitor profile in Edit › Color Settings. {display}의 캔버스를 sRGB로 표시합니다. 편집 › 색상 설정에서 모니터 프로파일을 선택하세요. + Display profile not used 디스플레이 프로파일 사용 안 함 + Monitor profile on {display} (main window): {profile} {display}의 모니터 프로파일(주 창): {profile} + Monitor profile on {display}: {profile} {display}의 모니터 프로파일: {profile} + manual 수동 + fallback 대체 + Importing {what} from {file}… {file}에서 {what} 가져오는 중… + brushes 브러시 + gradients 그레이디언트 +@plural Imported {n} brush from {file}|Imported {n} brushes from {file} {file}에서 브러시 {n}개를 가져왔습니다. +@plural Imported {n} gradient from {file}|Imported {n} gradients from {file} {file}에서 그레이디언트 {n}개를 가져왔습니다. +@plural Imported {n} pattern from {file}|Imported {n} patterns from {file} {file}에서 패턴 {n}개를 가져왔습니다. + Data Set: {name} ({index}/{total}) 데이터 세트: {name} ({index}/{total}) + (none) (없음) +navigator Zoom 확대/축소 + Apply {option}: {state} {option} 적용: {state} + on 켜짐 + off 꺼짐 + This adjustment ({key}) is kept as imported and can't be edited yet. 이 조정({key})은 가져온 상태로 유지되며 아직 편집할 수 없습니다. + {index} of {total} {total}개 중 {index}번째 + {shortcut} assigned. {shortcut}을(를) 할당했습니다. + {shortcut} is already in use by {commands} and will be removed from it when you click OK. {shortcut}은(는) 이미 {commands}에서 사용 중입니다. 확인을 누르면 기존 할당이 해제됩니다. + Export As: {name} 다른 형식으로 내보내기: {name} + Color Sampler Tool 색상 샘플러 도구 + Proof Setup… 교정 설정… + Toggle Layer Mask Overlay 레이어 마스크 오버레이 전환 + Increase Type Size 문자 크기 늘리기 + Decrease Type Size 문자 크기 줄이기 + Increase Type Size by 10 문자 크기 10 늘리기 + Decrease Type Size by 10 문자 크기 10 줄이기 + Make Selection from Path 패스에서 선택 영역 만들기 + Target Composite Channel 합성 채널 지정 + Target Channel 3 채널 3 지정 + Target Channel 4 채널 4 지정 + Target Channel 5 채널 5 지정 + Target Channel 6 채널 6 지정 + Target Channel 7 채널 7 지정 + Target Channel 8 채널 8 지정 + Target Channel 9 채널 9 지정 + Fill with Foreground Color 전경색으로 칠 + Fill with Background Color 배경색으로 칠 + Fill with Foreground Color, Preserve Transparency 전경색으로 칠, 투명도 유지 + Fill with Background Color, Preserve Transparency 배경색으로 칠, 투명도 유지 + Temporary 임시 + Space 스페이스 + Hand Tool (hold) 손 도구(누르고 유지) + Zoom In (hold, drag to scrub) 확대(누르고 유지, 드래그로 조절) + Zoom Out (hold) 축소(누르고 유지) + Erase with Brush or Pencil (hold) 브러시 또는 연필로 지우기(누르고 유지) + Warming Filter (85) 따뜻한 필터(85) + W: 너비: + A: 각도: + Pattern Fill… 패턴 칠… + Checkerboard 체커보드 + Arc Lower 아래쪽 호 + Arc Upper 위쪽 호 + Bend 구부리기 + Lock Transparent Pixels 투명 픽셀 잠금 + Detect Faces 얼굴 감지 + Delete Snapshot 스냅샷 삭제 + Snapshot 1 스냅샷 1 + ProPhoto RGB ProPhoto RGB +@id file.close 닫기 +@id layer.layerMask.apply 레이어 마스크 적용 +@id edit.clear 지우기 +layerLabel Red 빨강 +layerLabel Magenta 자홍 + Pick Color From Image 이미지에서 색상 선택 + Arrows 화살표 + Basic Latin 기본 라틴 문자 + Bloat 볼록하게 + Currency 통화 기호 + Cyrillic 키릴 문자 + Forward Warp 앞으로 뒤틀기 + Freeze Lasso 고정 올가미 + Freeze Mask 고정 마스크 + Greek 그리스 문자 + Kerning: Metrics, Optical or a value in 1/1000 em (Alt+←/→ at the caret) 커닝: 메트릭, 광학 또는 1/1000 em 단위 값(커서 위치에서 Alt+←/→) + Latin 1 라틴 문자 1 + Latin Extended-A 라틴 문자 확장-A + Latin Extended-B 라틴 문자 확장-B + Mask None 마스크 없음 + Math Symbols 수학 기호 + Numbers 숫자 + Pucker 오목하게 + Push Left 왼쪽으로 밀기 + Reconstruct All 모두 복원 + Save Path 패스 저장 + Thaw Mask 마스크 고정 해제 + Twirl Clockwise 시계 방향 돌리기 + Twirl Counterclockwise 반시계 방향 돌리기 + blue 파랑 + gray 회색 + green 초록 + none 없음 + orange 주황 + red 빨강 + violet 보라 + yellow 노랑 +cameraRaw Balance 균형 +cameraRaw Clarity 명료도 +cameraRaw Color Mixer 색상 혼합기 +cameraRaw Contrast 대비 +cameraRaw Curve 곡선 +cameraRaw Dehaze 안개 제거 +cameraRaw Detail 세부 정보 +cameraRaw Effects 효과 +cameraRaw Exposure 노출 +cameraRaw Feather 페더 +cameraRaw Highlights 밝은 영역 +cameraRaw Midpoint 중간 지점 +cameraRaw Midtones 중간톤 +cameraRaw Radius 반경 +cameraRaw Roundness 원형률 +cameraRaw Saturation 채도 +cameraRaw Shadows 어두운 영역 +cameraRaw Size 크기 +cameraRaw Texture 텍스처 +colorRange Invert 반전 +document Orientation 방향 +layers Fill 칠 +layers Fill: 칠: +shape Appearance 화면 모양 diff --git a/crates/ui-egui/src/i18n/live_tests.rs b/crates/ui-egui/src/i18n/live_tests.rs index 63b842a16d..ac54c8adc7 100644 --- a/crates/ui-egui/src/i18n/live_tests.rs +++ b/crates/ui-egui/src/i18n/live_tests.rs @@ -30,6 +30,7 @@ fn requested_languages_resolve_regional_preferences() { ("id-ID", "id"), ("vi-VN", "vi"), ("sr-RS", "sr"), + ("az-Latn-AZ", "az"), ("bs-BA", "bs"), ] { assert_eq!(Lang::from_pref(tag), lang(code), "{tag}"); @@ -39,6 +40,80 @@ fn requested_languages_resolve_regional_preferences() { assert_eq!(lang_from_tag("ko"), Some(lang("ko"))); } +/// Switching redraws the menu and persists through the shell's save/load services on restart. +#[test] +fn azerbaijani_draw_after_switching_and_restore_after_restart() { + use std::{cell::RefCell, rc::Rc}; + + let code = "az"; + let file = "Fayl"; + with_language(Lang::EN, || { + let saved = Rc::new(RefCell::new(None::)); + let (load, store) = (saved.clone(), saved.clone()); + let services = Services { + load_prefs: Some(Box::new(move || load.borrow().clone())), + save_prefs: Some(Box::new(move |text| { + *store.borrow_mut() = Some(text.to_owned()); + Ok(()) + })), + ..Default::default() + }; + let mut h = harness_with_services(services); + h.state_mut().run("prefs.set", json!({"path": "interface.language", "value": code})).expect("choose language"); + h.run_steps(4); + assert_eq!(current(), lang(code)); + assert_eq!(tr(current(), "File"), file); + assert!(drawn_text(&h).iter().any(|text| *text == file_title(lang(code)))); + let persisted = saved.borrow().clone().expect("shell saved preferences"); + let value: serde_json::Value = serde_json::from_str(&persisted).expect("saved JSON"); + assert_eq!(value["interface"]["language"], code); + h.state_mut().run("prefs.set", json!({"path": "interface.language", "value": "en"})).expect("switch back"); + h.run_steps(4); + assert_eq!(current(), Lang::EN); + assert_eq!( + serde_json::from_str::(&saved.borrow().clone().expect("saved English preferences")).expect("saved JSON")["interface"]["language"], + "en" + ); + h.state_mut().run("prefs.set", json!({"path": "interface.language", "value": code})).expect("choose language again"); + h.run_steps(4); + assert_eq!( + serde_json::from_str::(&saved.borrow().clone().expect("saved language preferences")).expect("saved JSON")["interface"]["language"], + code + ); + drop(h); + // The restarted shell, not the old one's drawing language, must bring Azerbaijani back. + set_current(Lang::EN); + let services = Services { load_prefs: Some(Box::new(move || saved.borrow().clone())), ..Default::default() }; + let restarted = harness_with_services(services); + assert_eq!(restarted.state().session.prefs().interface.language, code); + assert_eq!(current(), lang(code)); + assert!(drawn_text(&restarted).iter().any(|text| *text == file_title(lang(code)))); + }); +} + +/// Preferences draw the catalog terms verbatim and the bundled UI font covers their letters. +#[test] +fn azerbaijani_preferences_draw_terms_and_glyphs() { + let code = "az"; + let interface = "İnterfeys"; + let light = "Açıq mövzu"; + with_language(Lang::EN, || { + let mut h = harness(); + h.state_mut().run("prefs.set", json!({"path": "interface.language", "value": code})).expect("choose language"); + crate::prefs_ui::open_preferences(h.state_mut(), "interface"); + h.run_steps(4); + let text = drawn_text(&h); + for expected in [interface, light, tr(lang(code), "UI font size"), tr(lang(code), "UI scale")] { + assert!(text.iter().any(|text| text == expected), "{code}: missing {expected:?}"); + h.ctx.fonts_mut(|fonts| { + for c in expected.chars().chain("ƏəĞğIıİiÖöŞşÜüÇç".chars()).filter(|c| c.is_alphabetic()) { + assert!(fonts.has_glyph(&egui::FontId::proportional(12.0), c), "{code}: missing glyph {c}"); + } + }); + } + }); +} + #[test] fn ukrainian_native_app_menu_keeps_product_and_language_names() { with_language(Lang::EN, || { @@ -231,6 +306,7 @@ fn harness_with_services(services: Services) -> egui_kittest::Harness<'static, P harness } +/// Auto draws the detected system language on first launch while keeping the Auto preference. #[test] fn first_launch_renders_the_system_language_without_overwriting_auto() { for (tag, code) in [ @@ -245,6 +321,7 @@ fn first_launch_renders_the_system_language_without_overwriting_auto() { ("fi-FI", "fi"), ("da-DK", "da"), ("nb-NO", "nb"), + ("az-AZ", "az"), ] { system::with_system_tags(&[tag], || { with_language(Lang::EN, || { diff --git a/crates/ui-egui/src/i18n/nb.tsv b/crates/ui-egui/src/i18n/nb.tsv index 73f521675a..f4f72bb96b 100644 --- a/crates/ui-egui/src/i18n/nb.tsv +++ b/crates/ui-egui/src/i18n/nb.tsv @@ -542,6 +542,12 @@ Timeline Tidslinje Tool Presets Verktøyforvalg Tools Verktøy + Contextual Task Bar Kontekstavhengig oppgavelinje + Hide bar Skjul linjen + Reset bar position Tilbakestill linjens plassering + Pin bar position Fest linjens plassering + Move bar Flytt linjen + More options Flere alternativer Libraries Biblioteker 3D 3D Toolbars Verktøylinjer @@ -1214,6 +1220,7 @@ Path to Illustrator… Bane til Illustrator… Make Work Path Opprett arbeidsbane Make Selection Opprett utvalg + Make Shape Opprett form Fill Path Fyll bane Stroke Path Strek opp bane Clipping Path Klippebane @@ -2061,7 +2068,7 @@ Vertical Centers Loddrette sentre Video Frames to Layers… Videorammer til lag… WIA Support… WIA-støtte… - Working CMY Plates Arbeidsplate for CMY + Working CMY Plates Arbeidsplater for CMY # tl! literals (third pass) Absolute Absolutt @@ -2478,7 +2485,6 @@ Show only crosshair while painting Vis bare trådkors under maling Show slice numbers Vis segmentnumre Show tooltips Vis verktøytips - Enable animations Aktiver animasjoner Show highlight on rollover Vis utheving ved pekerberøring Show bounding box when dragging layer Vis avgrensningsboks når lag dras System title bar Systemets tittellinje diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsv index 169db2173c..28714c102b 100644 --- a/crates/ui-egui/src/i18n/nl.tsv +++ b/crates/ui-egui/src/i18n/nl.tsv @@ -707,7 +707,7 @@ Working Magenta Plate Werkplaat magenta Working Yellow Plate Werkplaat geel Working Black Plate Werkplaat zwart - Working CMY Plates Werkplaat CMY + Working CMY Plates CMY-werkplaten Legacy Macintosh RGB (Gamma 1.8) Verouderde Macintosh RGB (Gamma 1.8) Internet Standard RGB (sRGB) Internetstandaard RGB (sRGB) Monitor RGB Monitor-RGB @@ -854,6 +854,12 @@ Timeline Tijdlijn Tool Presets Gereedschapsvoorinstellingen Tools Gereedschappen + Contextual Task Bar Contextuele taakbalk + Hide bar Balk verbergen + Reset bar position Balkpositie herstellen + Pin bar position Balkpositie vastzetten + Move bar Balk verplaatsen + More options Meer opties About PhotoCraft Over PhotoCraft PhotoCraft Website Website van PhotoCraft PhotoCraft on GitHub PhotoCraft op GitHub @@ -2081,7 +2087,6 @@ Show only crosshair while painting Alleen dradenkruis tonen tijdens schilderen Show slice numbers Segmentnummers tonen Show tooltips Knopinfo tonen - Enable animations Animaties inschakelen Show highlight on rollover Markering bij aanwijzen tonen Show bounding box when dragging layer Selectiekader tonen bij slepen van laag System title bar Titelbalk van systeem @@ -2324,6 +2329,7 @@ Punctuation Interpunctie Make Work Path Werkpad maken Make Selection Selectie maken + Make Shape Vorm maken Fill Path Pad vullen Stroke Path Pad omlijnen Delete Path Pad verwijderen diff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsv index 6aae9b3d84..a0850e6246 100644 --- a/crates/ui-egui/src/i18n/pl.tsv +++ b/crates/ui-egui/src/i18n/pl.tsv @@ -752,7 +752,7 @@ Working Magenta Plate Robocza płyta magenty Working Yellow Plate Robocza płyta żółci Working Black Plate Robocza płyta czerni - Working CMY Plates Robocza płyta CMY + Working CMY Plates Robocze płyty CMY Legacy Macintosh RGB (Gamma 1.8) Starszy Macintosh RGB (Gamma 1.8) Internet Standard RGB (sRGB) Standardowy RGB dla Internetu (sRGB) Monitor RGB RGB monitora @@ -846,7 +846,7 @@ Consolidate All to Tabs Połącz wszystko w karty Float in Window Odłącz do okna Float All in Windows Odłącz wszystko do okien - New Window Nowe okno dla dokumentu + New Window Nowe okno Workspace Obszar roboczy Essentials Podstawowe Graphic and Web Grafika i Internet @@ -908,6 +908,12 @@ Timeline Oś czasu Tool Presets Ustawienia wstępne narzędzi Tools Narzędzia + Contextual Task Bar Kontekstowy pasek zadań + Hide bar Ukryj pasek + Reset bar position Resetuj położenie paska + Pin bar position Przypnij położenie paska + Move bar Przesuń pasek + More options Więcej opcji About PhotoCraft O programie PhotoCraft PhotoCraft Website Strona internetowa PhotoCraft PhotoCraft on GitHub PhotoCraft na GitHubie @@ -2145,7 +2151,6 @@ Show only crosshair while painting Podczas malowania pokaż tylko celownik Show slice numbers Pokaż numery plasterków Show tooltips Pokaż podpowiedzi - Enable animations Włącz animacje Show highlight on rollover Pokaż podświetlenie po najechaniu Show bounding box when dragging layer Pokaż ramkę ograniczającą podczas przeciągania warstwy Show transformation values Pokaż wartości przekształcenia @@ -2526,6 +2531,7 @@ Path to Illustrator… Ścieżka do Illustratora… Make Work Path Utwórz ścieżkę roboczą Make Selection Utwórz zaznaczenie + Make Shape Utwórz kształt Fill Path Wypełnij ścieżkę Stroke Path Obrysuj ścieżkę Clipping Path Ścieżka przycinająca diff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsv index bee618bcbd..4f4c6c4b83 100644 --- a/crates/ui-egui/src/i18n/pt-br.tsv +++ b/crates/ui-egui/src/i18n/pt-br.tsv @@ -730,7 +730,7 @@ Working Magenta Plate Chapa magenta de trabalho Working Yellow Plate Chapa amarela de trabalho Working Black Plate Chapa preta de trabalho - Working CMY Plates Chapa CMY de trabalho + Working CMY Plates Chapas CMY de trabalho Legacy Macintosh RGB (Gamma 1.8) RGB Macintosh legado (Gamma 1.8) Internet Standard RGB (sRGB) RGB padrão da Internet (sRGB) Monitor RGB RGB do monitor @@ -885,6 +885,12 @@ Timeline Linha do tempo Tool Presets Predefinições de ferramentas Tools Ferramentas + Contextual Task Bar Barra de tarefas contextual + Hide bar Ocultar barra + Reset bar position Redefinir posição da barra + Pin bar position Fixar posição da barra + Move bar Mover barra + More options Mais opções About PhotoCraft Sobre o PhotoCraft PhotoCraft Website Site do PhotoCraft PhotoCraft on GitHub PhotoCraft no GitHub @@ -2104,7 +2110,6 @@ Show only crosshair while painting Mostrar apenas a mira ao pintar Show slice numbers Mostrar números das fatias Show tooltips Mostrar dicas de ferramentas - Enable animations Ativar animações Show highlight on rollover Mostrar realce ao passar o mouse Show transformation values Mostrar valores de transformação Slice color Cor das fatias @@ -2488,6 +2493,7 @@ Path to Illustrator… Demarcador para o Illustrator… Make Work Path Criar demarcador de trabalho Make Selection Fazer seleção + Make Shape Fazer forma Fill Path Preencher demarcador Stroke Path Traçar demarcador Clipping Path Demarcador de corte diff --git a/crates/ui-egui/src/i18n/ro.tsv b/crates/ui-egui/src/i18n/ro.tsv new file mode 100644 index 0000000000..5bf7d924c8 --- /dev/null +++ b/crates/ui-egui/src/i18n/ro.tsv @@ -0,0 +1,4616 @@ +# Romanian (ro) catalog. Columns, separated by a TAB: context source translation +# +# context empty a plain UI string; `source` is the English text in the code +# @plural `source` is "one|other" (English forms); the translation lists +# the language's forms separated by "|" (see `plural` in i18n/mod.rs) +# escapes \n \t \\ inside a column. `{name}` placeholders must appear in both columns. +# lines starting with # and blank lines are ignored. +# +# Clean-room: every entry was written from the plain meaning of the English label using ordinary +# Romanian computing and photo-editing vocabulary (strat, pensulă, selecție, pânză/canvas ...). No +# proprietary localisation resource, string table or product UI was consulted or copied; add +# entries the same way. +# Product and technology names (PhotoCraft, ArtCraft, OpenType, CMYK, Lab ...) stay in Latin +# letters; the trailing "…" of dialog commands is kept. +# Machine-translated with Claude (Anthropic) for @tronicum; not yet reviewed by a native speaker. +# Layer Mask Display Options (the layer mask rubylith's colour and opacity) +# Channel Options and New Spot Channel (#3761) +# Guide layout dialog +# Custom print paper (#3820) +# Select and Mask dialog labels +# Field Blur pins (#3373) +# Dialogs and panels +# Layers-panel trash confirmation +# Tool names, brush and style option tables +# Templates with placeholders +# Preferences (labels are generated from the setting names) +# Added with the rebase onto the dock / brush picker work +# Strings added to the UI after this catalog was first written (rebase onto main, 2026-10). +# Gradient Editor window, opened from the options bar's gradient swatch. +# Tool, filter, warp-style, path, layer-comp and metadata names that fell outside the `tl!` test. +# Command-id override: under Edit > Purge a bare "Undo" reads as an action, not the history. +# Rendering mode and recovery +# Camera Raw: contextual controls and window title +# About ▸ Contributors / Models (credits, craftrules standards/contributors.md) +# Swatches panel +# Layer Style > Blending Options (Advanced Blending) +# Shared screen eyedropper and text Color Picker (#1128). +# Fill dialog, layer style contours and Image Size +# Layer colour labels. +# Pattern Stamp tool +# Painting symmetry presets. +# Eyedropper Sample Size and Sample (#1649). +# Color Picker warnings +# Shared Layer Style color picker +# File Info ▸ Camera Data (read-only EXIF fields; "Make" is the camera maker, not the verb). +# Shared panel docking +# Add Noise, Reduce Noise and Smart Sharpen dialog controls (Filter > Noise, Filter > Sharpen). +# Edit › Content-Aware Fill workspace +# Smart Filter editors +# Select and Mask view modes (#1754) +# Select and Mask Refine Edge Brush (#2972) +# Color Sampler (added with the i18n coverage repair) +# History panel menu (#2966) +# History panel › History Options… (#2966) +# Print dialog (#2697) +# Counted status messages and labels (#3454) +# View › Guides › New Guide… › Color +# Dynamic labels (filter and adjustment parameters, Camera Raw, panels, dialogs) translated from +# the English source, following the pattern of the other complete catalogs. +# Path, channel, layer style, status and System Info labels +# Actions panel: Load/Save Actions (.atn) and kept Photoshop steps +# Entries added so this catalog covers the keys any complete catalog (Spanish, Arabic, Hebrew) +# covers, keeping the UI usable from top to bottom in Romanian. + Mask Options… Opțiuni mască… + Layer Mask Display Options… Opțiuni de afișare a măștii de strat… + Channel Color Culoare canal + Color Indicates: Culoarea indică: + Solidity: Soliditate: + Masked Areas Zone mascate + Selected Areas Zone selectate + Ink Characteristics Caracteristici cerneală + Paper Width Lățime hârtie + Paper Height Înălțime hârtie + Columns Coloane + Rows Rânduri + Number Număr + Margin Margine + Top: Sus: + Left: Stânga: + Bottom: Jos: + Right: Dreapta: + Target: Destinație: + Selected Artboards Planșe de lucru selectate + Center Columns Centrare coloane + Clear Existing Guides Ștergere ghidaje existente + Invalid guide layout Aranjament de ghidaje nevalid + Leave empty for automatic size Lăsați necompletat pentru dimensiune automată + 5 Columns, 3 Rows 5 coloane, 3 rânduri + 8 Columns 8 coloane + 12 Columns 12 coloane + File Fișier + Edit Editare + Image Imagine + Layer Strat + Type Text + Select Selectare + Selected Selectate + Scope Domeniu + Top Left Sus stânga + Top Right Sus dreapta + Bottom Left Jos stânga + Bottom Right Jos dreapta + Filter Filtru + View Vizualizare + Window Fereastră + Help Ajutor + (coming soon) (în curând) + New… Nou… + New from Clipboard Nou din clipboard + Open… Deschidere… + Open As… Deschidere ca… + Open EXR Parts… Deschidere părți EXR… + Add beauty precomp from the AOVs Adăugare precompunere „beauty” din AOV-uri + Both Ambele + Left Stânga + Right Dreapta + Open Recent Deschidere recente + Clear Recent Files Golire fișiere recente + Remove from Recent Eliminare din recente + Remove {name} from Recent Eliminare {name} din recente + Close Închidere + Minimize Minimizare + Maximize Maximizare + Restore Restaurare + Close All Închidere tot + Close Others Închidere celelalte + Save Salvare + Save As… Salvare ca… + Save a Copy… Salvare copie… + {name} can't keep everything in this document {name} nu poate păstra tot conținutul acestui document + Choose a format that keeps it, such as Photoshop (PSD), or save a copy. Alegeți un format care îl păstrează, precum Photoshop (PSD), sau salvați o copie. + Revert Revenire + Export Export + Quick Export as PNG Export rapid ca PNG + Export As… Export ca… + Export Preferences… Preferințe export… + Save for Web (Legacy)… Salvare pentru web (vechi)… + Artboards to Files… Planșe de lucru în fișiere… + Artboards to PDF… Planșe de lucru în PDF… + Layers to Files… Straturi în fișiere… + Layer Comps to Files… Compoziții de straturi în fișiere… + Color Lookup Tables… Tabele de căutare a culorilor… + Data Sets as Files… Seturi de date ca fișiere… + Paths to Illustrator… Trasee către Illustrator… + Render Video… Randare video… + Generate Generare + Image Assets Resurse imagine + Place Embedded… Plasare încorporată… + Place Linked… Plasare conectată… + Package… Împachetare… + Automate Automatizare + Batch… Lot… + Create Droplet… Creare droplet… + Crop and Straighten Photos Decupare și îndreptare fotografii + Contact Sheet II… Planșă de contact II… + Conditional Mode Change… Schimbare condiționată a modului… + Fit Image… Încadrare imagine… + Lens Correction… Corecție obiectiv… + Merge to HDR Pro… Îmbinare în HDR Pro… + Photomerge… Photomerge… + Scripts Scripturi + Image Processor… Procesor de imagini… + Delete All Empty Layers Ștergere toate straturile goale + Flatten All Layer Effects Aplatizare toate efectele de strat + Flatten All Masks Aplatizare toate măștile + Script Events Manager… Administrator evenimente script… + Import Import + Browse… Răsfoire… + Source Files Fișiere sursă + Use: Utilizare: + Files Fișiere + Folder Folder + Add Open Files Adăugare fișiere deschise + Sort By Name Sortare după nume + Attempt to Automatically Align Source Images Se încearcă alinierea automată a imaginilor sursă + Create Smart Object after Loading Layers Creare obiect inteligent după încărcarea straturilor + Reveal in Finder Dezvăluire în Finder + Show in Explorer Afișare în Explorer + Show in Folder Afișare în folder + File Info… Informații fișier… + Print… Imprimare… + Print One Copy Imprimare o copie + Exit Ieșire + Undo Anulare + Redo Refacere + Toggle Last State Comutare ultima stare + Fade… Atenuare… + Cut Decupare + Copy Copiere + Copy Merged Copiere combinată + Paste Inserare + Paste Special Inserare specială + Paste in Place Inserare pe loc + Paste Into Inserare în interior + Paste Outside Inserare în exterior + Paste Lorem Ipsum Inserare Lorem Ipsum + Clear Golire + Search… Căutare… + Check Spelling… Verificare ortografică… + Find and Replace Text… Găsire și înlocuire text… + Add to Dictionary Adăugare în dicționar + No Spelling Suggestions Nicio sugestie ortografică + Fill… Umplere… + Stroke… Contur… + Content-Aware Fill… Umplere sensibilă la conținut… + Delete and Fill Selection Ștergere și umplere selecție + Content-Aware Scale Scalare sensibilă la conținut + Puppet Warp Deformare tip marionetă + Perspective Warp Deformare de perspectivă + Free Transform Transformare liberă + Free Transform a Copy Transformare liberă a unei copii + Transform Transformare + Again Din nou + Transform Again on a Copy Transformare din nou pe o copie + Scale Scalare + Rotate Rotire + Set horizontal skew Definire înclinare orizontală + Set vertical skew Definire înclinare verticală + Skew Înclinare + Distort Distorsionare + Perspective Perspectivă + Warp Deformare + Flip Horizontal Răsturnare orizontală + Flip Vertical Răsturnare verticală + Rotate 180° Rotire 180° + Rotate 90° Clockwise Rotire 90° în sensul acelor de ceasornic + Rotate 90° Counter Clockwise Rotire 90° în sens invers acelor de ceasornic + 180° 180° + 90° Clockwise 90° în sensul acelor de ceasornic + 90° Counter Clockwise 90° în sens invers acelor de ceasornic + Arbitrary… Arbitrar… + Auto-Align Layers… Alinierea automată a straturilor… + Auto-Blend Layers… Combinarea automată a straturilor… + Define Brush Preset… Definire presetare pensulă… + Define Pattern… Definire model… + Define Custom Shape… Definire formă personalizată… + Purge Golire memorie + Clipboard Clipboard + Histories Istorice + Video Cache Cache video + All Tot + Presets Presetări + Preset Manager… Administrator presetări… + Migrate Presets Migrare presetări + Export/Import Presets… Export/import presetări… + Color Settings… Setări de culoare… + Assign Profile… Asignare profil… + Convert to Profile… Conversie la profil… + Keyboard Shortcuts… Comenzi rapide de la tastatură… + Menus… Meniuri… + Toolbar… Bară de instrumente… + Preferences Preferințe + General… General… + Interface… Interfață… + Workspace… Spațiu de lucru… + Tools… Instrumente… + History Log… Jurnal de istoric… + File Handling… Gestionare fișiere… + Export… Export… + Performance… Performanță… + Scratch Disks… Discuri temporare… + Cursors… Cursoare… + Transparency & Gamut… Transparență și gamă… + Units & Rulers… Unități și rigle… + Guides, Grid & Slices… Ghidaje, grilă și felii… + Plug-ins… Plugin-uri… + Type… Text… + Enhanced Controls… Controale îmbunătățite… + Camera Raw… Camera Raw… + Raw Defaults… Valori implicite Raw… + Integrations… Integrări… + AI Integrations… Integrări AI… + Install Plug-in… Instalare plugin… + Language Options Opțiuni de limbă + Settings… Setări… + Mode Mod + Bitmap Bitmap + Grayscale Tonuri de gri + Duotone Duoton + Indexed Color Culoare indexată + RGB Color Culoare RGB + CMYK Color Culoare CMYK + Lab Color Culoare Lab + Multichannel Multicanal + 8 Bits/Channel 8 biți/canal + 8 bit 8 biți + Integer Întreg + 16 Bits/Channel 16 biți/canal + 16 bit 16 biți + 32 Bits/Channel 32 biți/canal + 32 bit (float) 32 biți (virgulă mobilă) + Floating point Virgulă mobilă + Color Table… Tabel de culori… + Bitmap… Bitmap… + Duotone… Duoton… + Indexed Color… Culoare indexată… + Adjustments Ajustări + Brightness/Contrast… Luminozitate/contrast… + Levels… Niveluri… + Curves… Curbe… + Exposure… Expunere… + Vibrance… Vibranță… + Hue/Saturation… Nuanță/saturație… + Color Balance… Balans de culoare… + Black & White… Negru și alb… + Photo Filter… Filtru foto… + Channel Mixer… Mixer de canale… + Color Lookup… Căutare culoare… + Invert Inversare + Posterize… Posterizare… + Threshold… Prag… + Gradient Map… Hartă de degrade… + Selective Color… Culoare selectivă… + Shadows/Highlights… Umbre/luminile… + HDR Toning… Tonalizare HDR… + Desaturate Desaturare + Match Color… Potrivire culoare… + Replace Color… Înlocuire culoare… + Equalize Egalizare + Auto Tone Ton automat + Auto Contrast Contrast automat + Auto Color Culoare automată + Image Size… Dimensiune imagine… + Canvas Size… Dimensiune pânză… + Image Rotation Rotire imagine + Flip Canvas Horizontal Răsturnare pânză orizontal + Flip Canvas Vertical Răsturnare pânză vertical + Crop Decupare + Trim… Ajustare margini… + Reveal All Dezvăluire totală + Duplicate… Duplicare… + Apply Image… Aplicare imagine… + Calculations… Calcule… + Variables Variabile + Define… Definire… + Data Sets… Seturi de date… + Apply Data Set… Aplicare set de date… + Variable Data Sets… Seturi de date variabile… + Trap… Trapping… + Analysis Analiză + Set Measurement Scale… Definire scară de măsurare… + Select Data Points… Selectare puncte de date… + Record Measurements Înregistrare măsurători + Ruler Tool Instrument Riglă + Count Tool Instrument Numărare + Place Scale Marker… Plasare marcator de scară… + Custom… Personalizat… + New Nou + Layer… Strat… + Group… Grup… + Group from Layers… Grup din straturi… + New Group from Layers… Grup nou din straturi… + Artboard… Planșă de lucru… + Artboard from Group… Planșă de lucru din grup… + Artboard from Layers… Planșă de lucru din straturi… + Layer via Copy Strat prin copiere + Layer via Cut Strat prin decupare + Layer From Background… Strat din fundal… + Layer from Background… Strat din fundal… + Background from Layer Fundal din strat + Background From Layer Fundal din strat + New Shape Layer Strat de formă nou + New Type Layer Strat de text nou + New Fill Layer Strat de umplere nou + New Adjustment Layer Strat de ajustare nou + New Layer Based Slice Felie nouă bazată pe strat + New Smart Object via Copy Obiect inteligent nou prin copiere + New Blank Video Layer Strat video gol nou + New Video Layer from File… Strat video nou din fișier… + Duplicate Layer… Duplicare strat… + Delete Layer Ștergere strat + Delete Ștergere + Rename Layer Redenumire strat + Create Layer Creare strat + Layer Style Stil de strat + Blending Options… Opțiuni de fuziune… + Bevel & Emboss… Relief și teșire… + Use Global Light Utilizare lumină globală + Overprint Suprimprimare + Inner Shadow… Umbră interioară… + Inner Glow… Strălucire interioară… + Satin… Satin… + Color Overlay… Suprapunere culoare… + Gradient Overlay… Suprapunere degrade… + Pattern Overlay… Suprapunere model… + Outer Glow… Strălucire exterioară… + Drop Shadow… Umbră paralelă… + Copy Layer Style Copiere stil de strat + Paste Layer Style Inserare stil de strat + Clear Layer Style Ștergere stil de strat + Global Light… Lumină globală… + Hide All Effects Ascundere toate efectele + Scale Effects… Scalare efecte… + Smart Filter Filtru inteligent + Convert for Smart Filters Conversie pentru filtre inteligente + Clear Smart Filters Ștergere filtre inteligente + Disable Smart Filters Dezactivare filtre inteligente + Delete Filter Mask Ștergere mască de filtru + Disable Filter Mask Dezactivare mască de filtru + Solid Color… Culoare solidă… + Gradient… Degrade… + Pattern… Model… + Layer Mask Mască de strat + Vector Mask Mască vectorială + Reveal Selection Dezvăluire selecție + Hide Selection Ascundere selecție + Hide All Ascundere tot + From Transparency Din transparență + Delete Vector Mask Ștergere mască vectorială + Enable Layer Mask Activare mască de strat + Disable Layer Mask Dezactivare mască de strat + Enable Vector Mask Activare mască vectorială + Link Layer Mask Conectare mască de strat + Unlink Layer Mask Deconectare mască de strat + Link Vector Mask Conectare mască vectorială + Add Vector Mask Adăugare mască vectorială + Vector Mask from Current Path Mască vectorială din traseul curent + Create Clipping Mask Creare mască de tăiere + Release Clipping Mask Eliberare mască de tăiere + Smart Objects Obiecte inteligente + Smart Object Obiect inteligent + Convert to Smart Object Conversie în obiect inteligent + Convert to Embedded Conversie în încorporat + Convert to Layers Conversie în straturi + Convert to Linked… Conversie în conectat… + Edit Contents Editare conținut + Replace Contents… Înlocuire conținut… + Relink to File… Reconectare la fișier… + Export Contents… Export conținut… + Update Modified Content Actualizare conținut modificat + Update All Modified Content Actualizare tot conținutul modificat + Stack Mode Mod stivuire + Choose Stack Mode: Alegere mod stivuire: + Entropy Entropie + Kurtosis Boltire (curtoză) + Maximum Maximum + Mean Medie + Median Mediană + Minimum Minimum + Range Interval + Skewness Asimetrie + Standard Deviation Deviație standard + Summation Sumă + Variance Varianță + Video Layers Straturi video + Interpret Footage… Interpretare material video… + Replace Footage… Înlocuire material video… + Reload Frame Reîncărcare cadru + Show Altered Video Afișare video modificat + Restore Frame Restaurare cadru + Restore All Frames Restaurare toate cadrele + Insert Blank Frame Inserare cadru gol + Delete Frame Ștergere cadru + Duplicate Frame Duplicare cadru + Frame from Layers Cadru din straturi + Video Frames to Layers… Cadre video în straturi… + Rasterize Rasterizare + Rasterize Type Rasterizare text + Rasterize Type Layer Rasterizare strat de text + Rasterize Shape Rasterizare formă + New Guide Layout… Aranjament nou de ghidaje… + New Guides From Shape Ghidaje noi din formă + Lock Layers… Blocare straturi… + Link Layers Conectare straturi + Select Linked Layers Selectare straturi conectate + Merge Layers Combinare straturi + Merge Down Combinare cu stratul de dedesubt + Merge Group Combinare grup + Merge Visible Combinare vizibile + Stamp Visible Ștampilare vizibile + Select Layer Above Selectare strat de sus + Select Layer Below Selectare strat de jos + Select Top Layer Selectare strat superior + Select Bottom Layer Selectare strat inferior + Add Layer Above to Selection Adăugare strat de sus la selecție + Add Layer Below to Selection Adăugare strat de jos la selecție + Stamp Down Ștampilare în jos + Flatten Image Aplatizare imagine + Matting Halouri + Color Decontaminate… Decontaminare culoare… + Remove Black Matte Eliminare halou negru + Remove White Matte Eliminare halou alb + Defringe… Eliminare halouri… + Group Layers Grupare straturi + Ungroup Layers Degrupare straturi + Hide Layers Ascundere straturi + Arrange Aranjare + Bring to Front Aducere în față + Bring Forward Aducere mai în față + Send Backward Trimitere mai în spate + Send to Back Trimitere în spate + Reverse Inversare + Combine Shapes Combinare forme + Unite Shapes Unire forme + Subtract Front Shape Scădere formă din față + Intersect Shape Areas Intersectare zone de forme + Exclude Overlapping Shapes Exclude forme suprapuse + Merge Shape Components Combinare componente de formă + Path operations Operații cu trasee + Align Alinere + Top Edges Margini superioare + Vertical Centers Centre verticale + Bottom Edges Margini inferioare + Left Edges Margini din stânga + Horizontal Centers Centre orizontale + Right Edges Margini din dreapta + Distribute Distribuire + Vertically Vertical + Horizontally Orizontal + Layer Edges Margini strat + Isolate Layers Izolare straturi + Layer Content Options… Opțiuni conținut strat… + Fill Content Conținut umplere + Deselect Layers Deselectare straturi + Find Layers Căutare straturi + Layer Comps Compoziții de straturi + Layers Straturi + All Layers Toate straturile + Hidden Layers Straturi ascunse + Mask All Objects Mascare toate obiectele + Subject Subiect + Sky Cer + Panels Panouri + Character Panel Panou Caracter + Paragraph Panel Panou Paragraf + Character Styles Panel Panou Stiluri de caracter + Paragraph Styles Panel Panou Stiluri de paragraf + Glyphs Panel Panou Glife + Anti-Alias Anticrenelare + Sharp Clar + Crisp Net + Strong Puternic + Smooth Lin + Windows LCD LCD Windows + Windows Windows + Orientation Orientare + Horizontal Orizontal + Vertical Vertical + OpenType OpenType + Standard Ligatures Ligaturi standard + Contextual Alternates Alternative contextuale + Discretionary Ligatures Ligaturi discreționare + Swash Caractere ornamentale + Oldstyle Stil vechi + Stylistic Alternates Alternative stilistice + Titling Alternates Alternative pentru titluri + Ornaments Ornamente + Ordinals Ordinale + Fractions Fracții + Create Work Path Creare traseu de lucru + Convert to Shape Conversie în formă + Warp Text… Deformare text… + Convert to Point Text Conversie în text punctual + Convert to Paragraph Text Conversie în text în paragraf + Default Features Funcții implicite + East Asian Features Funcții pentru Asia de Est + Middle Eastern Features Funcții pentru Orientul Mijlociu + Middle Eastern & South Asian Composer Compozitor pentru Orientul Mijlociu și Asia de Sud + Update All Text Layers Actualizare toate straturile de text + Replace All Missing Fonts Înlocuire toate fonturile lipsă + Resolve Missing Fonts… Rezolvare fonturi lipsă… + Font Preview Size Dimensiune previzualizare font + None Niciuna + Small Mic + Medium Mediu + Large Mare + Extra Large Foarte mare + Huge Enorm + Load Default Type Styles Încărcare stiluri de text implicite + Save Default Type Styles Salvare stiluri de text implicite + Deselect Deselectare + Reselect Reselectare + Inverse Inversare + Inverse Selection Inversare selecție + Similar Similar + Color Range… Gamă de culori… + Focus Area… Zonă de focalizare… + Select and Mask… Selecție și mască… + Smart Radius Rază inteligentă + Shift Edge Deplasare margine + Decontaminate Decontaminare + Output Rezultat + Refine Edge Perfecționare margine + Modify Modificare + Border… Margine… + Smooth… Netezire… + Expand… Expandare… + Contract… Contractare… + Feather… Calare… + Grow Extindere + Transform Selection Transformare selecție + Edit in Quick Mask Mode Editare în mod mască rapidă + Load Selection… Încărcare selecție… + Save Selection… Salvare selecție… + Match All Potrivire totală + Last Filter Ultimul filtru + Filter Gallery… Galerie de filtre… + Adaptive Wide Angle… Unghi larg adaptabil… + Camera Raw Filter… Filtru Camera Raw… + Liquify… Lichefiere… + Vanishing Point… Punct de fugă… + Blur Neclaritate + Blur Gallery Galerie neclaritate + Field Blur… Neclaritate câmp… + No pin selected Niciun pin selectat + Click the image to add a pin; drag a pin to move it, or its ring to change its blur. Delete removes the selected pin. Faceți clic pe imagine pentru a adăuga un pin; trageți un pin pentru a-l deplasa sau inelul său pentru a modifica neclaritatea. Delete elimină pinul selectat. + Drag the handles on the outline to resize and turn it, the square to round its corners, and the dots inside to set where the blur starts. Trageți manetele de pe contur pentru a-l redimensiona și roti, pătratul pentru a-i rotunji colțurile și punctele interioare pentru a stabili de unde începe neclaritatea. + Drag the pin to move the band, or its ring to change its blur. Drag the solid lines to widen the sharp band, the dashed lines to set the transition, and the dots to turn it. Trageți pinul pentru a deplasa banda sau inelul său pentru a modifica neclaritatea. Trageți liniile continue pentru a lărgi banda clară, liniile întrerupte pentru a defini tranziția și punctele pentru a o roti. + Drag the handles on the outline to resize and turn it; the ring sets the blur angle. Trageți manetele de pe contur pentru a-l redimensiona și roti; inelul stabilește unghiul de neclaritate. + Blur Angle Unghi neclaritate + Iris Blur… Neclaritate iris… + Tilt-Shift… Înclinare-deplasare… + Path Blur… Neclaritate traseu… + Spin Blur… Neclaritate rotație… + Blur More Neclaritate mai accentuată + Box Blur… Neclaritate cutie… + Gaussian Blur… Neclaritate gaussiană… + Lens Blur… Neclaritate lentilă… + Motion Blur… Neclaritate mișcare… + Radial Blur… Neclaritate radială… + Shape Blur… Neclaritate formă… + Smart Blur… Neclaritate inteligentă… + Surface Blur… Neclaritate suprafață… + Average Medie + Displace… Deplasare… + Pinch… Ciupire… + Polar Coordinates… Coordonate polare… + Ripple… Ondulație… + Shear… Forfecare… + Spherize… Sferizare… + Twirl… Vârtej… + Wave… Val… + ZigZag… Zigzag… + Noise Zgomot + Add Noise… Adăugare zgomot… + Despeckle Eliminare pete + Dust & Scratches… Praf și zgârieturi… + Median… Mediană… + Reduce Noise… Reducere zgomot… + Pixelate Pixelizare + Color Halftone… Semiton color… + Crystallize… Cristalizare… + Facet Fațetare + Fragment Fragmentare + Mezzotint… Mezzotintă… + Mosaic… Mozaic… + Pointillize… Pointilism… + Render Randare + Clouds Nori + Difference Clouds Nori de diferență + Fibers… Fibre… + Flame… Flacără… + Lens Flare… Reflexie lentilă… + Lighting Effects… Efecte de iluminare… + Relight… Reiluminare… + Picture Frame… Ramă foto… + Tree… Copac… + Sharpen Claritate + Sharpen Edges Clarificare margini + Sharpen More Clarificare mai accentuată + Smart Sharpen… Clarificare inteligentă… + Unsharp Mask… Mască de claritate… + High Pass… Trecere de sus… + Stylize Stilizare + Diffuse… Difuzare… + Emboss… Relief… + Extrude… Extrudare… + Find Edges Găsire margini + Oil Paint… Pictură în ulei… + Solarize Solarizare + Tiles… Plăci… + Trace Contour… Trasare contur… + Wind… Vânt… + Video Video + De-Interlace… Dezîntrețesere… + NTSC Colors Culori NTSC + Other Altul + Maximum… Maximum… + Minimum… Minimum… + Offset… Decalaj… + Plug-ins Plugin-uri + Proof Setup Configurare probă + Proof Colors Culori de probă + Gamut Warning Avertisment gamă + Working CMYK CMYK de lucru + Working Cyan Plate Placă cyan de lucru + Working Magenta Plate Placă magenta de lucru + Working Yellow Plate Placă galben de lucru + Working Black Plate Placă negru de lucru + Working CMY Plate Placă CMY de lucru + Legacy Macintosh RGB RGB vechi Macintosh + Internet Standard RGB RGB standard Internet + Monitor RGB RGB monitor + Color Blindness — Protanopia-type Daltonism — tip protanopie + Color Blindness — Deuteranopia-type Daltonism — tip deuteranopie + Zoom In Mărire + Zoom Out Micșorare + Fit on Screen Încadrare în ecran + Fit Layer(s) on Screen Încadrare strat(uri) în ecran + Fit Artboard on Screen Încadrare planșă de lucru în ecran + 100% 100% + 105% 105% + 110% 110% + 115% 115% + 120% 120% + 200% 200% + 75% 75% + 80% 80% + 85% 85% + 90% 90% + 95% 95% + 125% 125% + 150% 150% + 175% 175% + 250% 250% + 300% 300% + Print Size Dimensiune imprimare + Pixel Aspect Ratio Raport de aspect pixel + Pixel Aspect Ratio Correction Corecție raport de aspect pixel + Custom Pixel Aspect Ratio… Raport de aspect pixel personalizat… + Square Pătrat + D1/DV NTSC (0.91) D1/DV NTSC (0,91) + D1/DV NTSC Widescreen (1.21) D1/DV NTSC panoramic (1,21) + D1/DV PAL (1.09) D1/DV PAL (1,09) + D1/DV PAL Widescreen (1.46) D1/DV PAL panoramic (1,46) + Anamorphic 2:1 (2) Anamorfic 2:1 (2) + HDV 1080/DVCPRO HD 720 (1.33) HDV 1080/DVCPRO HD 720 (1,33) + DVCPRO HD 1080/HDV 1080 (1.5) DVCPRO HD 1080/HDV 1080 (1,5) + 32-bit Preview Options… Opțiuni previzualizare 32 biți… + Screen Mode Mod ecran + Standard Screen Mode Mod ecran standard + Full Screen Mode With Menu Bar Mod ecran complet cu bară de meniuri + Full Screen Mode Mod ecran complet + Cycle Screen Mode Comutare mod ecran + Show Afișare + Extras Elemente suplimentare + Selection Edges Margini selecție + Target Path Traseu destinație + Current Path Traseu curent + Grid Grilă + Guides Ghidaje + Canvas Guides Ghidaje pânză + Artboard Guides Ghidaje planșă de lucru + Count Numărare + Smart Guides Ghidaje inteligente + Slices Felii + Notes Note + Pixel Grid Grilă de pixeli + Pixel Art Artă în pixeli + Pixel Art Preview Previzualizare artă în pixeli + Pattern Preview Previzualizare model + Brush Preview Previzualizare pensulă + Mesh Plasă + Edit Pins Editare pini + Document Bounds Limite document + Show Extras Options… Opțiuni elemente suplimentare… + Rulers Rigle + Snap Fixare + Snap To Fixare la + Lock Guides Blocare ghidaje + Clear Guides Ștergere ghidaje + Clear Selected Artboard Guides Ștergere ghidaje planșă de lucru selectată + Clear Canvas Guides Ștergere ghidaje pânză + New Guide… Ghidaj nou… + Lock Slices Blocare felii + Clear Slices Ștergere felii + Match Zoom Potrivire zoom + Match Location Potrivire poziție + Match Rotation Potrivire rotație + Cascade Cascadă + Tile Mozaic + Tile All Horizontally Mozaic orizontal pentru toate + Tile All Vertically Mozaic vertical pentru toate + 2-up Horizontal 2 ferestre (orizontal) + 2-up Vertical 2 ferestre (vertical) + 3-up Horizontal 3 ferestre (orizontal) + 3-up Stacked 3 ferestre (stivuite) + 3-up Vertical 3 ferestre (vertical) + 4-up 4 ferestre + 6-up 6 ferestre + Consolidate All to Tabs Consolidare tot în file + Float in Window Flotare în fereastră + Float All in Windows Flotare toate în ferestre + New Window for Document Fereastră nouă pentru document + Workspace Spațiu de lucru + Essentials Esențiale + Graphic and Web Grafică și web + Painting Pictură + Photography Fotografie + New Workspace… Spațiu de lucru nou… + Delete Workspace… Ștergere spațiu de lucru… + Reset Workspace Resetare spațiu de lucru + Reset Tool Resetare instrument + Reset All Tools Resetare toate instrumentele + Reset all tools to their default settings? Se resetează toate instrumentele la valorile implicite? + Lock Workspace Blocare spațiu de lucru + Theme Temă + Pro Theme Temă Pro + Pro Medium Gray Theme Temă Pro (gri mediu) + Pro Light Gray Theme Temă Pro (gri clar) + Pro Light Theme Temă Pro (clară) + Studio Theme Temă Studio + Studio Light Theme Temă Studio (clară) + Adwaita Light Theme Temă Adwaita (clară) + Adwaita Dark Theme Temă Adwaita (întunecată) + Classic Theme Temă Clasică + Solarized dark Solarized întunecat + Solarized Dark Theme Temă Solarized întunecată + Breeze dark Breeze întunecat + Breeze Dark Theme Temă Breeze întunecată + Breeze light Breeze clar + Breeze Light Theme Temă Breeze clară + Soft dark Suave întunecat + Soft light Suave clar + Soft Dark Theme Temă suave întunecată + Soft Light Theme Temă suave clară + Next Theme Temă următoare + Actions Acțiuni + Brush Settings Setări pensulă + Brushes Pensule + Channels Canale + Character Caracter + Character Styles Stiluri de caracter + Clone Source Sursă de clonare + Color Culoare + Glyphs Glife + Gradients Degradeuri + Histogram Histogramă + History Istoric + Info Informații + Measurement Log Jurnal de măsurători + Modifier Keys Taste modificatoare + Navigator Navigator + Options Opțiuni + Paragraph Paragraf + Paragraph Styles Stiluri de paragraf + Paths Trasee + Patterns Modele + Properties Proprietăți + Shapes Forme + Styles Stiluri + Swatches Mostre + Timeline Cronologie + Tool Presets Presetări instrument + Tools Instrumente + About PhotoCraft Despre PhotoCraft + PhotoCraft Website Site-ul PhotoCraft + PhotoCraft on GitHub PhotoCraft pe GitHub + ArtCraft Website Site-ul ArtCraft + Join the ArtCraft Discord… Alăturați-vă Discord-ului ArtCraft… + Report an Issue… Raportare problemă… + WIA Support… Suport WIA… + Apply Aplicare + HSB/HSL HSB/HSL + Invert… Inversare… + Load Files into Stack… Încărcare fișiere în stivă… + Motion Mișcare + Notes… Note… + Other… Altul… + Remove Warp Split Eliminare divizare deformare + Shape Formă + Split Warp Crosswise Divizare deformare în cruce + Split Warp Horizontally Divizare deformare orizontal + Split Warp Vertically Divizare deformare vertical + Statistics… Statistici… + Refine Strokes Perfecționare trasee + Edits Editări +@plural {n} item|{n} items {n} element|{n} elemente|{n} de elemente + Auto Automat + (print to the printer) (se imprimă pe imprimantă) + + Add variable + Adăugare variabilă + 30 frames @ 30 fps 30 de cadre @ 30 fps + 3D LUT File Fișier LUT 3D + Absolute Absolut + Absolute Colorimetric Colorimetric absolut + Action Acțiune + Adaptive Adaptiv + Adaptive Wide Angle isn't open Unghiul larg adaptabil nu este deschis + Add Adăugare + Add Layer Mask Adăugare mască de strat + Add Stop Adăugare marcaj + Add a layer style Adăugare stil de strat + Move effect up Deplasare efect sus + Move effect down Deplasare efect jos + Delete effect Ștergere efect + Add a mask (from the selection; {key} inverts) Adăugare mască (din selecție; {key} o inversează) + Add an adjustment Adăugare ajustare + Add disk Adăugare disc + Add space after paragraph Adăugare spațiu după paragraf + Add space before paragraph Adăugare spațiu înainte de paragraf + Add to Sample Adăugare la probă + Add to selection ({key}) Adăugare la selecție ({key}) + Adjust for Zoom Ajustare în funcție de zoom + Adjustment visible Ajustare vizibilă + Adobe RGB (1998) compatible Compatibil cu Adobe RGB (1998) + Align and Distribute Alinere și distribuire + Align and distribute Alinere și distribuire + Align horizontal centers Aliniere centre orizontale + Align left edges Aliniere margini din stânga + Align right edges Aliniere margini din dreapta + Aligned Aliniat + All Caps Toate majuscule + All Slices Toate feliile + All User Slices Toate feliile utilizatorului + All shortcuts reset to PhotoCraft defaults. Toate comenzile rapide au fost resetate la valorile implicite ale PhotoCraft. + Alt Alt + Always use pressure for opacity Utilizare permanentă a presiunii pentru opacitate + Always use pressure for size Utilizare permanentă a presiunii pentru dimensiune + Amount Cantitate + Anchor: Ancorare: + Angle Unghi + Angle Gradient Degrade unghiular + Angle Jitter Variație unghi + Answer the unsaved-changes prompt first Răspundeți mai întâi la solicitarea privind modificările nesalvate + Anti-alias Anticrenelare + Appearance Aspect + Appearance (Layer Style) Aspect (stil de strat) + Apply Layer Mask Aplicare mască de strat + Add Mask to Selection Adăugare mască la selecție + Subtract Mask from Selection Scădere mască din selecție + Intersect Mask with Selection Intersectare mască cu selecția + Apply Per Tip Aplicare pe fiecare vârf + Apply next selected layer comp Aplicare următoarea compoziție de strat selectată + Apply previous selected layer comp Aplicare compoziția de strat selectată anterioară + Artboard Planșă de lucru + Artboard Background Color Culoare de fundal a planșei de lucru + Assign working space Asignare spațiu de lucru + Author: Autor: + Auto Hide Ascundere automată + Auto-Select: Selecție automată: + Automatically level near-horizontal line segments Nivelare automată a segmentelor aproape orizontale + Automatically straighten and level Îndreptare și nivelare automată + Automatically straighten near-vertical line segments Îndreptare automată a segmentelor aproape verticale + Background Fundal + Background Color Culoare de fundal + Background Contents Conținut fundal + Custom background color Culoare de fundal personalizată + Balance Balans + Baseline Linia de bază + Baseline shift Deplasare linie de bază + Basic De bază + Before (Y) Înainte (Y) + Save Settings… Salvare setări… + Load Settings… Încărcare setări… + Save these settings as a Camera Raw .xmp file Salvare acestor setări ca fișier .xmp Camera Raw + Load settings from a Camera Raw .xmp file Încărcare setări dintr-un fișier .xmp Camera Raw + Loaded Camera Raw settings from {file} Setări Camera Raw încărcate din {file} + Loaded Camera Raw settings from {file} ({n} not supported) Setări Camera Raw încărcate din {file} ({n} nesuportate) + Begin recording Pornire înregistrare + Bend: Curbură: + Bicubic Bicubică + Bicubic (smooth gradients) Bicubică (degradeuri netede) + Automatic Automat + Bicubic Smoother (enlargement) Bicubică mai netedă (mărire) + Bicubic Sharper (reduction) Bicubică mai clară (reducere) + Bilinear Biliniară + Black Negru + Black & White Negru și alb + Black Point Compensation Compensare punct negru + Black, White Negru, alb + Blacks Negre + Blending Fuziune + Blending Options Opțiuni de fuziune + Blue Albastru + Blue, Red, Yellow Albastru, roșu, galben + Both Axes Ambele axe + Bottom Jos + Brightness Luminozitate + Brightness Jitter Variație luminozitate + Brightness/Contrast Luminozitate/contrast + Bring the selected pin forward Aducere pin selectat în față + Brush Preset picker Selector presetări pensulă + Brush Reconstruct Options Opțiuni reconstrucție pensulă + Brush Tool Options Opțiuni instrument Pensulă + Cache Level: Nivel cache: + Camera Raw isn't open Camera Raw nu este deschis + Cancel Anulare + Cancel (Esc) Anulare (Esc) + Manage submitted jobs in the system print queue Gestionarea lucrărilor trimise în coada de imprimare a sistemului + Cancel any current edits (Esc) Anulare editări curente (Esc) + Cancel current crop operation (Esc) Anulare operație de decupare curentă (Esc) + Cancel transform (Esc) Anulare transformare (Esc) + Cancel warp (Esc) Anulare deformare (Esc) + Canvas Pânză + Canvas extension color: Culoare extindere pânză: + Capture Captură + Capture the visibility, position and style of every layer with + below, then switch between versions. Capturați vizibilitatea, poziția și stilul fiecărui strat cu + de mai jos, apoi comutați între versiuni. + Catch-up on Stroke End Recuperare la finalul tusei + Center Centru + Center Crop Marks Marcaje de tăiere centrate + Center text Centrare text + Change Modificare + Change All Modificare toate + Change Screen Mode (F) Comutare mod ecran (F) + Change To: Modificare în: + Channel Mixer Mixer de canale + Channel: Canal: + Check All Layers Verificare toate straturile + Check Spelling Verificare ortografică + Clarity Claritate + Clear All Ștergere tot + Clear Override Eliminare excepție + Clear Samples Ștergere probe + Click sets foreground · right-click sets background Clic stabilește culoarea frontală · clic dreapta stabilește culoarea de fundal + Click the first point or press {key} to close · Esc cancels Faceți clic pe primul punct sau apăsați {key} pentru a încheia · Esc anulează + Click to add a point · drag off or {key}-click or Delete to remove Clic pentru a adăuga un punct · trageți departe sau {key}-clic sau Delete pentru a elimina + Click to apply, {key}-click to clear overrides, double-click for Style Options Clic pentru a aplica, {key}-clic pentru a elimina excepțiile, dublu clic pentru Opțiuni de stil + Click to edit the gradient Faceți clic pentru a edita degradeul + Click to restore the current colour Faceți clic pentru a restaura culoarea curentă + Click to zoom in · {key}-click to zoom out · drag right/left to zoom in/out Clic pentru mărire · {key}-clic pentru micșorare · trageți dreapta/stânga pentru mărire/micșorare + Click with the Note tool to add a note. Faceți clic cu instrumentul Notă pentru a adăuga o notă. + Click: corner · Drag: smooth · Click first point: close · {key} finish · Esc cancel Clic: colț · Tragere: netezire · Clic pe primul punct: încheiere · {key}: finalizare · Esc: anulare + Click: corner · Drag: smooth · {alt}-drag: break handle · Click or drag first point: close · {key} finish · Esc cancel Clic: colț · Tragere: netezire · {alt}+tragere: separare manetă · Clic sau tragere pe primul punct: încheiere · {key}: finalizare · Esc: anulare + Clip to layer below Tăiere la stratul de dedesubt + Clipped Tăiat + Close Style Options Închidere opțiuni de stil + Cmd Cmd + Coated CMYK CMYK pentru hârtie cretată + Color & Swatches Culoare și mostre + Color Balance Balans de culoare + Color Detail Detaliu culoare + Color Grading Gradare culoare + Color Lookup Căutare culoare + Color Management Gestionare culoare + Color Mixer Mixer de culoare + Color Mode Mod culoare + Color Priority Prioritate culoare + Color Range preview Previzualizare gamă de culori + Color: Culoare: + Colorize Colorare + Colors Culori + Commit Perspective Warp ({key}) Confirmare deformare perspectivă ({key}) + Commit Puppet Warp ({key}) Confirmare deformare marionetă ({key}) + Commit any current edits ({key}) Confirmare editări curente ({key}) + Commit current crop operation ({key}) Confirmare operație de decupare curentă ({key}) + Commit transform ({key}) Confirmare transformare ({key}) + Commit warp ({key}) Confirmare deformare ({key}) + Constant Constant + Constrain proportions Restricționare proporții + Contact Sheet II Planșă de contact II + Content-Aware Sensibil la conținut + Contiguous Contiguu + Contrast Contrast + Control: Control: + Convert to sRGB Conversie la sRGB + Copies Exemplare + Copper Cupru + Copyright Drepturi de autor + Copyright and Contact Info Drepturi de autor și informații de contact + Corner Crop Marks Marcaje de tăiere în colțuri + Corner radius Rază colț + Correction Corecție + Count Jitter Variație numărare + Create Creare + Create Droplet Creare droplet + Create Texture Creare textură + Create Video Timeline Creare cronologie video + Create a new count group Creare grup de numărare nou + Create a new document or open an existing file. Creați un document nou sau deschideți un fișier existent. + Create a new group Creare grup nou + Create a new layer Creare strat nou + Create new action Creare acțiune nouă + Create new channel Creare canal nou + Create new document from current state Creare document nou din starea curentă + Create new fill or adjustment layer Creare strat de umplere sau de ajustare nou + Create new gradient Creare degrade nou + Create new group Creare grup nou + Create new layer comp Creare compoziție de strat nouă + Create new pattern from the selection Creare model nou din selecție + Create new shape from the current path Creare formă nouă din traseul curent + Create new snapshot Creare captură nouă + From: Din: + Full Document Document complet + Merged Layers Straturi combinate + Create new tool preset Creare presetare instrument nouă + Crop Factor Factor de decupare + Ctrl Ctrl + Current & Below Curent și inferioare + Current Layer Stratul curent + Current Size Dimensiune curentă + Current Tool Only Numai instrumentul curent + Curve Curbă + Curves Curbe + Custom Personalizat + Custom Shapes Forme personalizate + Cyan Cian + Cyan · Red Cian · roșu + Darken Întunecare + Darks Întunecate + Data Sets Seturi de date + Default Implicit + Default colours (D) Culori implicite (D) + Default printer Imprimantă implicită + Default restored. Valorile implicite au fost restaurate. + Define Definire + Define at least one variable first. Definiți cel puțin o variabilă întâi. + Dehaze Eliminare ceață + Delete Cropped Pixels Ștergere pixeli decupați + Delete Group Ștergere grup + Delete Layer Mask Ștergere mască de strat + Delete Layers Ștergere straturi + Add Shortcut Adăugare comandă rapidă + Delete Shortcut Ștergere comandă rapidă + Delete Timeline Ștergere cronologie + Delete Tool Preset Ștergere presetare instrument + Delete count group Ștergere grup de numărare + Delete current channel Ștergere canal curent + Delete current state Ștergere stare curentă + Delete effect layer Ștergere strat de efect + Delete layer ‘{name}’? Ștergeți stratul „{name}”? + Delete {count} layers? {names} Ștergeți {count} straturi? {names} + Delete layer? Ștergeți stratul? + The document is closed Documentul este închis + The document or selected layers changed. Please request deletion again. Documentul sau straturile selectate s-au modificat. Solicitați din nou ștergerea. + Missing delete command Comandă de ștergere lipsă + Invalid delete command Comandă de ștergere nevalidă + Layer deleted, but confirmation preference could not be saved: {error} Stratul a fost șters, dar preferința de confirmare nu a putut fi salvată: {error} + Delete layer Ștergere strat + Delete layer comp Ștergere compoziție de strat + Delete note Ștergere notă + Delete selected measurements Ștergere măsurători selectate + Delete style Ștergere stil + Delete tool preset Ștergere presetare instrument + Density Densitate + Density: Densitate: + Depth Profunzime + Depth Jitter Variație profunzime + Description Descriere + Deselect All Deselectare tot + Detail Detaliu + Diamond Gradient Degrade romb + Difference Diferență + Diffusion Difuzie + Discard the embedded profile (don't color manage) Renunțare la profilul încorporat (fără gestionarea culorii) + Discontiguous Necontiguu + Discord Discord + Dismiss Închidere + Display P3 Display P3 + Display Text Text afișat + Dither Tramare + Divide… Împărțire… + Document Document + Don't Save Nu salvați + No Nu + Yes Da + Done Terminat + Dots Puncte + Drag a rectangle around the object Trageți un rectangul în jurul obiectului + Drag on the image to add a constraint; Shift for horizontal/vertical; right-click a constraint to change or delete it. Trageți pe imagine pentru a adăuga o constrângere; Shift pentru orizontal/vertical; clic dreapta pe o constrângere pentru a o modifica sau șterge. + Click: select anchor · Drag: move anchor, handle or segment · {shift}-click: add · {alt}-click: whole subpath Clic: selectare punct de ancorare · Tragere: deplasare punct, manetă sau segment · {shift}-clic: adăugare · {alt}-clic: subtraseu complet + Draw with the Pen tool (P) or make a work path from a selection. Desenați cu instrumentul Pană (P) sau creați un traseu de lucru dintr-o selecție. + Drop an image or PSD anywhere to open it. Plasați o imagine sau un PSD oriunde pentru a-l deschide. + Native file drag-and-drop is unavailable Tragerea și plasarea nativă a fișierelor nu este disponibilă pe Wayland + Native file drag-and-drop is not supported on Wayland yet. Use File › Open, or copy the image in your file manager and paste it with {paste}. Tragerea și plasarea nativă a fișierelor nu este încă suportată pe Wayland. Utilizați Fișier › Deschidere, sau copiați imaginea din gestionarul de fișiere și inserați-o cu {paste}. + To drop files, start PhotoCraft under XWayland: `{command}` Pentru a plasa fișiere, porniți PhotoCraft sub XWayland: `{command}` + Or set Preferences › Performance › Linux display server to X11: PhotoCraft then always starts under XWayland. Sau setați Preferințe › Performanță › Server de afișare Linux la X11: PhotoCraft va porni mereu sub XWayland. + Edit › Paste Editare › Inserare + Duplicate Layers… Duplicare straturi… + Duplicate style Duplicare stil + Edit Toolbar… Editare bară de instrumente… + Use File › Open, or paste a copied image with {paste}. Utilizați Fișier › Deschidere, sau inserați o imagine copiată cu {paste}. + Edit in Quick Mask Mode (Q) Editare în mod mască rapidă (Q) + Edit in Standard Mode (Q) Editare în mod standard (Q) + Effects Efecte + Embed Color Profile Încorporare profil de culoare + Embedded Profile Mismatch Profilul încorporat nu corespunde + Enable airbrush-style build-up effects Activare efecte de acumulare tip aerograf + Enhance Edge Îmbunătățire margine + Entire Font Fontul complet + Exact Exact + Expansion: Expansiune: + Export Presets Export presetări + Export selected measurements (CSV) Export măsurători selectate (CSV) + Exposure Expunere + Exposure and Gamma Expunere și gamma + Exposure: Expunere: + Eyedropper Pipetă + Factor: Factor: + Faux Bold Bold fals + Faux Italic Cursiv fals + Feather Calare + Fewer Points Mai puține puncte + File Settings Setări fișier + Fill Umplere + Fill: Umplere: + Filter for adjustment layers Filtrare după straturi de ajustare + Filter for pixel layers Filtrare după straturi de pixeli + Filter for shape layers Filtrare după straturi de formă + Filter for smart objects Filtrare după obiecte inteligente + Filter for type layers Filtrare după straturi de text + Filter: Filtru: + Finger Painting Pictură cu degetele + Fisheye Ochi de pește + Fit Încadrare + Fit Screen Încadrare în ecran + Fill Screen Umplere ecran + Fit in View Încadrare în vizualizare + Fixed Fix + Fixed Ratio Raport fix + Fixed Size Dimensiune fixă + Flip Răsturnare + Flip X Răsturnare X + Flip X Jitter Variație răsturnare X + Flip Y Răsturnare Y + Flip Y Jitter Variație răsturnare Y + Flow Flux + Flow Jitter Variație flux + Focal Length Distanță focală + Font Font + Font Size: Dimensiune font: + Font size Dimensiune font + Foreground Frontală + Foreground to Background De la frontală la fundal + Foreground/Background Jitter Variație frontal/fundal + Format Format + Frame from Layers… Cadru din straturi… + Free Liber + Full Spherical Sferic complet + Fuzziness: Toleranță: + GPU GPU + Gamma Correction Corecție gamma + Gamma: Gamma: + Global Global + Glow Color Culoare strălucire + Gradient Map Hartă de degrade + Grain Granulație + Gray Gri + Gray Gamma 2.2 Gri gamma 2,2 + Green Verde + Group Grup + Hardness Duritate + Heart Inimă + Height Înălțime + Height: Înălțime: + Hide Auto Slices Ascundere felii automate + Hide Properties Ascundere proprietăți + Highlight Compression Compresie luminile + Highlight Priority Prioritate luminile + Highlights Luminile + Home Acasă + Horizontal scale Scalare orizontală + Hue Nuanță + Hue Jitter Variație nuanță + Hue/Saturation Nuanță/saturație + Hyphenate Silabisire + Ignore Ignorare + Ignore All Ignorare tot + Image Size Dimensiune imagine + Import Brushes… Import pensule… + Gradient Preset Options Opțiuni presetare degrade + Import .GRD Import .GRD + Choose a gradient file (.grd). Selectați un fișier de degradeuri (.grd). + Import brushes (.abr) Import pensule (.abr) + Import Presets Import presetări + Imported Importat + Indent First Indentare primă linie + Indent Left Indentare stânga + Indent Right Indentare dreapta + Indent first line Indentare primă linie + Indent left margin Indentare margine stânga + Indent right margin Indentare margine dreapta + Input: Intrare: + Inside Interior + Interlaced Întrețesut + Interpolation: Interpolare: + Intersect with selection ({key}) Intersectare cu selecția ({key}) + Invert All Inversare tot + Invert has no settings. Inversare nu are setări. + Italic Cursiv + Join us on Discord Alăturați-vă Discord-ului nostru + Justify all Aliniere completă pentru toate + Justify last centered Aliniere completă, ultima centrată + Justify last left Aliniere completă, ultima la stânga + Justify last right Aliniere completă, ultima la dreapta + Kerning Interliterare + Keyboard Shortcuts Comenzi rapide de la tastatură + Keyboard Shortcuts and Menus Comenzi rapide de la tastatură și meniuri + Kind Tip + Label Size Dimensiune etichetă + Labels Etichete + Lanczos (sharp) Lanczos (clar) + Landscape Peisaj + Last Document State Ultima stare a documentului + Layout Aranjament + Leading Interlinie + Leading (set to the font size × auto-leading when Auto) Interlinie (egală cu dimensiunea fontului × interlinie automată când e pe Automat) + Leave as is (don't color manage) Lăsare ca este (fără gestionarea culorii) + Left align text Aliniere text la stânga + Length: Lungime: + Level Nivel + Levels Niveluri + Lighten Luminare + Lightness Luminozitate + Lights Lumini + Limits: Limite: + Linear Gradient Degrade liniar + Link layers Conectare straturi + Link width and height Legare lățime și înălțime + Liquify is not open Lichefierea nu este deschisă + Load Încărcare + Load 3D LUT… Încărcare LUT 3D… + Load channel as selection Încărcare canal ca selecție + Load… Încărcare… + Localized Color Clusters Grupuri de culori localizate + Lock Blocare + Lock all Blocare tot + Lock image pixels Blocare pixeli imagine + Lock layer Blocare strat + Lock position Blocare poziție + Lock transparent pixels Blocare pixeli transparenți + Lock: Blocare: + Logical Length: Lungime logică: + Logical Units: Unități logice: + Luminance Luminanță + Luminance Detail Detaliu luminanță + Magenta Magenta + Magenta · Green Magenta · verde + Maintain aspect ratio Păstrare raport de aspect + Marker Size Dimensiune marcator + Mask All Mascare tot + Mask Options Opțiuni mască + Masking Mascare + Master Toți + Matte Mat + Median: Mediană: + Menus Meniuri + Mesh Size Dimensiune plasă + Metadata Metadate + Metrics Metrici + Midpoint Punct median + Midtones Tonuri medii + Midtones from: Tonuri medii de la: + Midtones to: Tonuri medii până la: + Minimum Depth Profunzime minimă + Minimum Diameter Diametru minim + Minimum Roundness Rotunjime minimă + Mode: Mod: + Monochrome Monocrom + More Points Mai multe puncte + Move effect layer down Deplasare strat de efect jos + Move effect layer up Deplasare strat de efect sus + Move to Deplasare la + Name Nume + Name: Nume: + Nearest Neighbor Vecinul cel mai apropiat + Nearest Neighbor (hard edges) Vecinul cel mai apropiat (margini dure) + New Size Dimensiune nouă + New document… Document nou… + New effect layer Strat de efect nou + New selection Selecție nouă + Next frame Cadrul următor + Next note Nota următoare + No Color Fără culoare + No Color Management Fără gestionare a culorii + No Dither Fără tramare + No author Fără autor + No character style Fără stil de caracter + No document Fără document + No matching commands Nicio comandă corespunzătoare + No presets for the current tool. Nu există presetări pentru instrumentul curent. + No presets of this type. Nu există presetări de acest tip. + No properties Fără proprietăți + No tool presets. Nu există presetări de instrument. + Noise Reduction Reducere zgomot + Normal Normal + Not in Dictionary: Nu este în dicționar: + OK OK + Offset Decalaj + Only Web Colors Numai culori web + Opacity Opacitate + Opacity Jitter Variație opacitate + Opacity: Opacitate: + Open a document to define variables. Deschideți un document pentru a defini variabile. + Open a document to select a colour range. Deschideți un document pentru a selecta o gamă de culori. + Open a document to use the timeline. Deschideți un document pentru a utiliza cronologia. + Optical Optic + Optimized Optimizat + Option-click to define a source point to clone from Clic cu Opțiune pentru a defini un punct sursă din care să clonați + Original Original + Output Channel: Canal de ieșire: + Output Levels: Niveluri de ieșire: + Output: Rezultat: + Outside Exterior + Overlay Color Culoare suprapunere + Overlay Opacity Opacitate suprapunere + Overlay: Rule of Thirds Suprapunere: regula terților + Override Pressure Anulare presiune + Override Rotation Anulare rotație + Override Tilt Anulare înclinare + Override Tilt X Anulare înclinare X + Override Tilt Y Anulare înclinare Y + PRESET DETAILS DETALII PRESETARE + PSD PSD + Paint Overlay Suprapunere pictură + Panel locations are saved in the workspace. Keyboard shortcuts, menus and toolbar are optional. Pozițiile panourilor sunt salvate în spațiul de lucru. Comenzile rapide de la tastatură, meniurile și bara de instrumente sunt opționale. + Paper Hârtie + Path Traseu + Pattern Model + Pattern Size Dimensiune model + Pause Pauză + Percent Procent + Perceptual Perceptual + Perspective Warp is not active Deformarea de perspectivă nu este activă + Perspective Warp: draw planes along the image's perspective, then switch to Warp Deformare de perspectivă: desenați planuri de-a lungul perspectivei imaginii, apoi comutați la Deformare + Photo Filter Filtru foto + PhotoCraft PhotoCraft + PhotoCraft Manages Colors PhotoCraft gestionează culorile + PhotoCraft — an open-source, native image editor written in Rust. PhotoCraft — un editor de imagini nativ, open-source, scris în Rust. + Pin Depth: Profunzime pin: + Pixel Length: Lungime în pixeli: + Pixels/Centimeter Pixeli/centimetru + Pixels/Inch Pixeli/inch + Pixels: Pixeli: + Play Redare + Play selection Redare selecție + Portrait Portret + Position Poziție + Position and Size Poziție și dimensiune + Posterize Posterizare + Preserve Details Conservare detalii + Preserve Luminosity Conservare luminozitate + Preset Presetare + Preset Type Tip presetare + Preset: Presetare: + Presets: Presetări: + Press keys… Apăsați tastele… + Pressure Presiune + Pressure for Opacity Presiune pentru opacitate + Pressure for Size Presiune pentru dimensiune + Prevent auto-nesting in and out of Artboards and Frames Prevenire cuibărire automată în și din planșe de lucru și cadre + Preview Previzualizare + Previous frame Cadrul anterior + Previous note Nota anterioară + Print Imprimare + Printer Imprimantă + Printer Manages Colors Imprimanta gestionează culorile + Printer Setup Configurare imprimantă + Printing Marks Marcaje de imprimare + Progressive Progresiv + Promote Promovare + Protect Detail Protejare detalii + Protect Foreground Color Protejare culoare frontală + Protect Tones Protejare tonuri + Proximity Match Potrivire de proximitate + Pulled String Mode Mod coardă trasă + Puppet Warp is not active Deformarea marionetă nu este activă + Purity Puritate + Quality Calitate + Quick Actions Acțiuni rapide + Quick Export As PNG Export rapid ca PNG + Radial Gradient Degrade radial + Radius Rază + Radius: Rază: + Range: Interval: + Rate Viteză + Recently Used Utilizate recent + Reconstruct Reconstruire + Record ● a sequence of edits, then play ▶ it on any document. Înregistrați ● o secvență de editări, apoi redați-o ▶ pe orice document. + Red Roșu + Redefine style by current selection Redefinire stil prin selecția curentă + Refine Rafinare + Reflected Gradient Degrade reflectat + Registration Marks Marcaje de registru + Regular Normal + Relative Relativ + Relative Colorimetric Colorimetric relativ + Remove Eliminare + Remove All Pins Eliminare toate pinii + Remove Background Eliminare fundal + Remove Planes Eliminare planuri + Remove Tool Instrument Eliminare + Remove stop Eliminare marcaj de oprire + Remove variable Eliminare variabilă + Rename Redenumire + Rename Group… Redenumire grup… + Rename Layer… Redenumire strat… + Rename Tool Preset… Redenumire presetare instrument… + Rename… Redenumire… + Resample Reeșantionare + Reset All to Defaults Resetare tot la valorile implicite + Import Shortcuts… Import comenzi rapide… + Load a keyboard shortcut set saved as .kys Încărcare un set de comenzi rapide de la tastatură salvat ca .kys + Imported {n} shortcuts from {file}. Click OK to keep them. S-au importat {n} comenzi rapide din {file}. Faceți clic pe OK pentru a le păstra. + {n} commands are not in PhotoCraft. {n} comenzi nu există în PhotoCraft. + Keyboard shortcuts imported Comenzi rapide de la tastatură importate + Your keyboard shortcut set {set} is in use here: {n} shortcuts differ from the defaults. Edit › Keyboard Shortcuts shows them; Reset All to Defaults undoes this. Setul dvs. de comenzi rapide de la tastatură {set} este în uz aici: {n} comenzi rapide diferă de valorile implicite. Editare › Comenzi rapide de la tastatură le afișează; Resetare tot la valorile implicite anulează acest lucru. + Import keyboard shortcuts? Importați comenzile rapide de la tastatură? + PhotoCraft found your keyboard shortcut set {set} from another image editor on this computer: {n} of its shortcuts differ from PhotoCraft's. Import it? PhotoCraft a găsit pe acest computer setul dvs. de comenzi rapide de la tastatură {set} dintr-un alt editor de imagini: {n} dintre comenzile sale rapide diferă de cele ale PhotoCraft. Doriți să îl importați? + Edit › Keyboard Shortcuts › Reset All to Defaults undoes an import. Editare › Comenzi rapide de la tastatură › Resetare tot la valorile implicite anulează un import. + Don't Import Nu importați + The keyboard shortcut set was not imported: {error} Setul de comenzi rapide de la tastatură nu a fost importat: {error} + Reset Section Resetare secțiune + Reset Transform Resetare transformare + Reset to defaults Resetare la valorile implicite + Resolution Rezoluție + Resolution: Rezoluție: + Restore All Restaurare tot + Restore Defaults Restaurare valori implicite + Restrictive (Web) Restrictiv (web) + Right align text Aliniere text la dreapta + Rigid Rigid + Rotate: Rotație: + Rotation Rotație + Roughness Rugozitate + Roundness Rotunjime + Roundness Jitter Variație rotunjime + Rulers & Grids Rigle și grile + Sample All Layers Eșantionare toate straturile + Sample: Probă: + Sampling: Background Swatch Eșantionare: mostra de fundal + Sampling: Continuous Eșantionare: continuă + Sampling: Once Eșantionare: o singură dată + Saturate Creștere saturație + Saturation Saturație + Saturation Jitter Variație saturație + Save HTML and Images Salvare HTML și imagini + Save as PDF Salvare ca PDF + Save selection as channel Salvare selecție ca canal + Save… Salvare… + Scale to Fit Media Scalare pentru a încadra mediul + Scatter Dispersie + Scratch disks Discuri temporare + Search Căutare + Search commands Căutare comenzi + Search commands, tools and panels… Căutare comenzi, instrumente și panouri… + Search fonts Căutare fonturi + Select All Selectare tot + Select Subject Selectare subiect + Select a type layer or click into text to insert glyphs Selectați un strat de text sau faceți clic în text pentru a insera glife + Select text to apply a character style Selectați text pentru a aplica un stil de caracter + Select: Selecție: + Selections Selecții + Selective Selectiv + Selective Color Culoare selectivă + Send the selected pin backward Trimitere pin selectat în spate + Set additional smoothing options Setare opțiuni de netezire suplimentare + Set background color Setare culoare de fundal + Set foreground color Setare culoare frontală + Set painting symmetry options Setare opțiuni de simetrie pentru pictură + Symmetry Off Simetrie dezactivată + Set shape fill type Setare tip de umplere a formei + Set shape stroke type Setare tip de contur al formei + Set the text color Setare culoare text + Create warped text Creare text deformat + Shadows Umbre + Shape: Formă: + Sharpening Clarificare + Shift Shift + Shortcut removed. Comandă rapidă eliminată. + Show All Menu Items Afișare toate elementele de meniu + Show Backdrop Afișare fundal + Show Guides Afișare ghidaje + Show Mask Afișare mască + Show Mesh Afișare plasă + Show Overlay Afișare suprapunere + Show Transform Controls Afișare controale de transformare + Show or hide the Notes panel Afișare sau ascundere panou Note + Show: Afișare: + Sides Laturi + Sides: Laturi: + Size Dimensiune + Size Jitter Variație dimensiune + Size: Dimensiune: + Slice Options… Opțiuni felie… + Slices From Guides Felii din ghidaje + Slices are locked (View › Lock Slices) Feliile sunt blocate (Vizualizare › Blocare felii) + Small Caps Capitale mici + Smoothing Netezire + Space After Spațiu după + Space Before Spațiu înainte + Spacing Spațiere + Spell check complete. Verificarea ortografică s-a încheiat. + Split: Divizare: + Star ratio Raport stea + Stop playing/recording Întrerupere redare/înregistrare + Straighten Îndreptare + Straighten Layer Îndreptare strat + Strength: Intensitate: + Strikethrough Tăiat (strikethrough) + Stroke Trasou + Stroke Catch-up Recuperare tusă + Stroke: Trasou: + Location Locație + Location: Locație: + Style Stil + Style Options Opțiuni de stil + Style Options… Opțiuni de stil… + Style: Normal Stil: Normal + Subtract from Sample Scădere din probă + Subtract from selection ({key}) Scădere din selecție ({key}) + Suggestions: Sugestii: + Swap colours (X) Interschimbare culori (X) + Swaps height and width Interschimbă înălțimea și lățimea + Switch between free transform and warp modes Comutare între modurile transformare liberă și deformare + Switch theme Comutare temă + Temperature Temperatură + Tetrahedral Tetraedric + Text Position: Poziție text: + Texture Textură + Texture Each Tip Textură pe fiecare vârf + Threshold Prag + Threshold Level Nivel prag + Thumbnail size (smallest: list) Dimensiune miniatură (cel mai mic: listă) + Tilt X Înclinare X + Tilt Y Înclinare Y + Tint Tentă + Toggle count group visibility Comutare vizibilitate grup de numărare + Toggle text orientation Comutare orientare text + Tolerance Toleranță + Tolerance: Toleranță: + Tone: Ton: + Toolbar Bară de instrumente + Top Sus + Total: Total: + Tracking Spațiere + Tracking (1/1000 em) Spațiere (1/1000 em) + Transparency Transparență + Transparent Transparent + Trilinear Triliniar + Type Styles Stiluri de text + Type: Tip: + Underline Subliniere + Untitled Fără titlu + Untitled-1 Fără titlu-1 + Update layer comp (visibility, position and appearance) Actualizare compoziție de strat (vizibilitate, poziție și aspect) + Use Default Utilizare valoare implicită + Use Legacy Utilizare versiune veche + Use Measurement Scale Utilizare scară de măsurare + Variables bind a layer's visibility, text or pixels to a named data slot. Variabilele leagă vizibilitatea, textul sau pixelii unui strat de un slot de date cu nume. + Vertical scale Scalare verticală + Vibrance Vibranță + View Options Opțiuni de vizualizare + Vignetting Vinietare + Violet, Orange Violet, portocaliu + Visibility Vizibilitate + Visible Vizibil + Warp: Deformare: + Web Snap Fixare web + Weight Grosime + Weight: Grosime: + White Alb + White Balance: As Shot Balans de alb: ca la fotografiere + Whites Albe + Width Lățime + Slant Înclinare + Width: Lățime: + Work Path Traseu de lucru + Yellow Galben + Yellow · Blue Galben · albastru + Zoom Zoom + Zoom in Mărire + Zoom out Micșorare + command or shortcut comandă sau comandă rapidă + current curent + image file path cale fișier imagine + modified modificat + name nume + new nou + {name} options Opțiuni {name} + ↑↓ navigate {key} run esc close ↑↓ navigare {key} executare esc închidere + Version {version} Versiune {version} + New Document Document nou + New Document With Mask Document nou cu mască + New Layer With Mask Strat nou cu mască + New Layer Strat nou + Save Preset… Salvare presetare… + Preset Name Nume presetare + No saved presets yet. Nu există încă presetări salvate. + Error Eroare + Command Comandă + Adjustment layers have nothing to transform Straturile de ajustare nu au nimic de transformat + Altitude Altitudine + Android 1080p Android 1080p + Apple Watch 45mm Apple Watch 45mm + Aqua Aqua + Art & Illustration Artă și ilustrație + ArtCraft ArtCraft + Background Eraser Tool Instrument Radieră de fundal + Bevel & Emboss Relief și teșire + Blend Mode Mod de amestecare + Blues Albaștri + Blur Tool Instrument Neclaritate + Bold Bold (gras) + Brush Pensulă + Block Bloc + Brush Pose Postura pensulei + Brush Tip Shape Forma vârfului pensulei + Brush Tool Instrument Pensulă + Build-up Acumulare + Burn Tool Instrument Întunecare + Centimeters Centimetri + Choke Strângere + Classic Clasic + Click to add text Faceți clic pentru a adăuga text + Click to fill similar colours Faceți clic pentru a umple culori similare + Clone Stamp Tool Instrument Ștampilă de clonare + Color Burn Întunecare culoare + Color Dodge Luminare culoare + Color Dynamics Dinamică culoare + Color Overlay Suprapunere culoare + Comic Book Bandă desenată + Conform Conformare + Content-Aware Fill needs a selection on a pixel layer Umplerea sensibilă la conținut necesită o selecție pe un strat de pixeli + Couldn't place {name}: {error} Nu s-a putut plasa {name}: {error} + Could not transform: the layer is empty Nu s-a putut transforma: stratul este gol + Could not use Perspective Warp: the layer is empty Nu s-a putut folosi Deformarea de perspectivă: stratul este gol + Could not use Puppet Warp: no opaque pixels Nu s-a putut folosi Deformarea marionetă: nu există pixeli opaci + Could not use Puppet Warp: the layer is empty Nu s-a putut folosi Deformarea marionetă: stratul este gol + Crop Tool Instrument Decupare + Crosswise În cruce + Current Tool Instrument curent + Custom Shape Tool Instrument Formă personalizată + Cyans Cianuri + Default PhotoCraft Size Dimensiune implicită PhotoCraft + Delete Workspace Ștergere spațiu de lucru + Diamond Diamant + Dimensions: Dimensiuni: + Direction Direcție + Distance Distanță + Document Dimensions Dimensiuni document + Document Profile Profil document + Document Sizes Dimensiuni document + Dodge Tool Instrument Luminare + Down Jos + Drag to draw a gradient Trageți pentru a desena un degrade + Drag to move the active layer Trageți pentru a deplasa stratul activ + Drag to pan · hold Space with any tool Trageți pentru a deplasa vizualizarea · țineți apăsat Spațiu cu orice instrument + Drop Shadow Umbră paralelă + Dual Brush Pensulă duală + Edge Margine + Efficiency Eficiență + Efficiency: 100% Eficiență: 100% + Ellipse Tool Instrument Elipsă + Elliptical Marquee Tool Instrument Selecție elipsă + Single Row Marquee Tool Instrument Selecție rând unic + Single Column Marquee Tool Instrument Selecție coloană unică + Emboss Relief + Eraser Radieră + Eraser Tool Instrument Radieră + ExtraBold Extra Bold (extra gras) + ExtraLight Extra fină + Eyedropper Tool Instrument Pipetă + Fade Atenuare + Fill Opacity Opacitate umplere + Film & Video Film și video + From De la + General General + GitHub GitHub + Gradient Overlay Suprapunere degrade + Gradient Tool Instrument Degrade + Greens Verzi + Hand Tool Instrument Mână + Hard Dur + Hard Mix Mixaj dur + Healing Brush Tool Instrument Pensulă corectoare + Highlights from: Luminile de la: + History Brush Tool Instrument Pensulă istoric + Horizontal Type Tool Instrument Text orizontal + Horizontal Type Mask Tool Instrument Mască text orizontal + Vertical Type Mask Tool Instrument Mască text vertical + Image Size: Dimensiune imagine: + Inches Inchi + Indexed Indexat + Initial Direction Direcție inițială + Inner Bevel Teșire interioară + Inner Glow Strălucire interioară + Inner Shadow Umbră interioară + Lab Lab + Landscape, 10 x 8 Peisaj, 10 x 8 + Landscape, 6 x 4 Peisaj, 6 x 4 + Landscape, 7 x 5 Peisaj, 7 x 5 + Lasso Lasou + Lasso Tool Instrument Lasou + Layer Count Număr straturi + Layer Knocks Out Drop Shadow Stratul elimină umbra paralelă + Legal Legal + Letter Scrisoare + Light Fină + Line Tool Instrument Linie + Linear Liniar + Linear Burn Întunecare liniară + Linear Height Înălțime liniară + Link with Layer Conectare cu stratul + Lorem Ipsum Lorem Ipsum + Magentas Magenta-uri + Magic Eraser Tool Instrument Radieră magică + Magic Wand Tool Instrument Baghetă magică + Marquee Selecție + Mean: Media: + Measurement Scale Scară de măsurare + Measurement Scale Marker Marcator scară de măsurare + Millimeters Milimetri + Mobile Mobil + Move Tool Instrument Deplasare + Could not use the move tool because the layer is locked. Nu s-a putut folosi instrumentul Deplasare pentru că stratul este blocat. + Could not complete the Free Transform command because the layer is locked. Nu s-a putut finaliza comanda Transformare liberă pentru că stratul este blocat. + Multiply Multiplicare + My Brushes Pensulele mele + Neutrals Neutri + New Workspace Spațiu de lucru nou + Note Tool Instrument Notă + Object Selection Tool Instrument Selecție obiect + Off Dezactivat + Open Deschidere + Orange Portocaliu + Original Ratio Raport original + Out Of Gamut În afara gamei + Outer Bevel Teșire exterioară + Outer Glow Strălucire exterioară + Overlay Suprapunere + Paint Bucket Tool Instrument Găleată de vopsea + Paints from the document's opening state Pictează pe baza stării de la deschiderea documentului + Path Selection Tool Instrument Selecție traseu + Direct Selection Tool Instrument Selecție directă + Add Anchor Point Tool Instrument Adăugare punct de ancoră + Delete Anchor Point Tool Instrument Ștergere punct de ancoră + Click a segment to add an anchor point · {alt}-click an anchor to delete it Faceți clic pe un segment pentru a adăuga un punct de ancoră · {alt}-clic pe un punct de ancoră pentru a-l șterge + Click an anchor point to delete it · {alt}-click a segment to add one Faceți clic pe un punct de ancoră pentru a-l șterge · {alt}-clic pe un segment pentru a adăuga unul + Pattern Overlay Suprapunere model + Pen Pressure Presiune peniță + Pen Tilt Înclinare peniță + Pen Tool Instrument Pană + Convert Point Tool Instrument Conversie punct + Photo Fotografie + PhotoCraft website Site-ul web PhotoCraft + Picas Pica + Pillow Emboss Relief tip pernă + Pixel Replacement Înlocuire pixeli + Pixels Pixeli + Points Puncte + Polygon Tool Instrument Poligon + Polygonal Lasso Tool Instrument Lasou poligonal + Portrait, 4 x 6 Portret, 4 x 6 + Portrait, 5 x 7 Portret, 5 x 7 + PostScript (72 points/inch) PostScript (72 puncte/inch) + Postcard Carte poștală + Poster Poster + Pro (Dark) Pro (întunecat) + Pro (Light) Pro (clar) + Pro (Light Gray) Pro (gri clar) + Pro (Medium Gray) Pro (gri mediu) + Protect Texture Protejare textură + Purple Mov + Quick Mask Mască rapidă + Quick Selection Tool Instrument Selecție rapidă + Radial Radial + Rasterize Layer Rasterizare strat + Rasterize Layers Rasterizare straturi + Ratio Raport + Recent Recent + Rectangle Tool Instrument Rectangul + Rectangular Marquee Tool Instrument Selecție rectangulară + Reds Roșii + Reflected Reflectat + Sample: foreground colour Probă: culoare frontală + Sampled Colors Culori eșantionate + Satin Satin + Save Pixel Aspect Ratio Salvare raport de aspect pixel + Scattering Dispersare + Scratch Sizes Dimensiuni memorie virtuală + Select Data Points Selectare puncte de date + Selection Selecție + SemiBold Semi Bold (semigras) + Shadows up to: Umbre până la: + Shape Dynamics Dinamică formă + Sharpen Tool Instrument Clarificare + Show Extras Options Opțiuni elemente suplimentare + Slice Select Tool Instrument Selecție felie + Slice Tool Instrument Felie + Smart Filters Filtre inteligente + Smudge Tool Instrument Deget + Soft Moale + Soften Înmuiere + Source Sursă + Source: set Sursă: stabilit + Sponge Tool Instrument Burete + Spot Healing Brush Tool Instrument Pensulă corectoare punctuală + Spread Extindere + Square, 12 x 12 Pătrat, 12 x 12 + Square, 5 x 5 Pătrat, 5 x 5 + Std Dev: Deviație std.: + Studio (Dark) Studio (întunecat) + Studio (Light) Studio (clar) + Stylus Wheel Rotiță stylus + Subtract Scădere + Tabloid Tabloid + Text Replacement Înlocuire text + Thin Fin + Traditional (72.27 points/inch) Tradițional (72,27 puncte/inch) + Transfer Transfer + Triangle Tool Instrument Triunghi + Unsaved changes Modificări nesalvate + Uses the foreground and background colours. Utilizează culorile frontală și de fundal. + Web Web + Web Large Web (mare) + Web Minimum Web (minim) + Web Most Common Web (cel mai comun) + WebP (lossless) WebP (fără pierderi) + Wet Edges Margini umede + Yellows Galbene + Zoom Tool Instrument Zoom + {name} Properties Proprietăți {name} + Revert “{name}” to the last saved version? Your changes will be lost. Reveniți „{name}” la ultima versiune salvată? Modificările vor fi pierdute. + Do you want to save the changes you made to “{name}” before quitting? Doriți să salvați modificările făcute la „{name}” înainte de a închide programul? + Do you want to save the changes you made to “{name}” before closing? Doriți să salvați modificările făcute la „{name}” înainte de a închide? + Doc: {flat}/{layered} Doc.: {flat}/{layered} + Scratch: {size} Memorie virtuală: {size} + Untagged {mode} Netichetat {mode} + Invalid {mode} profile Profil {mode} nevalid + Unnamed {mode} profile Profil {mode} fără nume + {w} px x {h} px ({ppi} ppi) {w} px × {h} px ({ppi} ppi) + {w} {unit} x {h} {unit} ({ppi} ppi) {w} {unit} × {h} {unit} ({ppi} ppi) + Resolution: {dpi} pixels/inch Rezoluție: {dpi} pixeli/inch + Doc: {w} × {h} px Doc.: {w} × {h} px + Frame {current} / {total} Cadru {current} / {total} + Count: {n} Numărare: {n} + BLANK DOCUMENT PRESETS ({n}) PRESETĂRI DOCUMENT GOL ({n}) + Constraints ({n}) Constrângeri ({n}) + Align {what} Aliniere {what} +@plural {n} Layer|{n} Layers {n} strat|{n} straturi|{n} de straturi +@plural {n} layer|{n} layers {n} strat|{n} straturi|{n} de straturi +@plural Group · {n} layer|Group · {n} layers Grup · {n} strat|Grup · {n} straturi|Grup · {n} de straturi + Additional plugins folder Folder adițional de plugin-uri + Adobe Adobe + Adobe rgb Adobe RGB + Allow agent control Permitere control de la agenți + Allow scripts to connect Permitere conectare scripturi + Always Întotdeauna + Always create smart objects when placing Creare întotdeauna de obiecte inteligente la plasare + Animated zoom Zoom animat + Apply auto tone Aplicare ton automat + Ask Întrebare + Ask before saving layered tiff Întrebare înainte de a salva TIFF cu straturi + Auto collapse icon panels Restrângere automată panouri de iconițe + Auto show hidden panels Afișare automată panouri ascunse + Auto show home screen Afișare automată ecran de pornire + Autosave Salvare automată + Autosave minutes Minute între salvări automate + Beep when done Semnal sonor la finalizare + Bicubic automatic Bicubică automată + Bicubic sharper Bicubică mai clară + Bicubic smoother Bicubică mai netedă + Bit depth Profunzime biți + Brush preview color Culoare previzualizare pensulă + Cache levels Niveluri cache + Cache tile size Dimensiune mozaic cache + Camera Raw Defaults Valori implicite Camera Raw + Canvas border Margine pânză + Show canvas dots Afișare puncte pânză + Clip thumbnails to layer bounds Decupare miniaturi la limitele stratului + Clip Thumbnails to Layer Bounds Decupare miniaturi la limitele stratului + Canvas color Culoare pânză + Canvas custom color Culoare personalizată pânză + Color picker Selector de culoare + Color space Spațiu de culoare + Column width Lățime coloană + Concise Concis + Control port Port de control + Convert to srgb Conversie la sRGB + Cursors Cursoare + Custom dark Personalizat (întunecat) + Custom light Personalizat (clar) + Dark Întunecat + Dark gray Gri întunecat + Dashed lines Linii întrerupte + Destination Destinație + Detailed Detaliat + Disks Discuri + Display p3 Display P3 + Double click layer mask launches select and mask Dublu clic pe masca de strat lansează Selecție și mască + Drop shadow Umbră paralelă + Dynamic color sliders Glisoare de culoare dinamice + East asian Asia de Est + Effect cache mb Cache efecte (MB) + Enable flick panning Activare derulare prin gest + Enable floating document window docking Acoplare ferestre de document flotante + Enable narrow options bar Bară de opțiuni îngustă + Enabled Activat + Enhanced Controls Controale îmbunătățite + Export clipboard Export clipboard + Extra large Extra mare + File Handling Gestionare fișiere + File path Cale fișier + Fill new type layers with placeholder Umplere straturi de text noi cu text substituent + Font preview Previzualizare font + Full size tip Vârf la dimensiune reală + Gamut warning color Culoare avertisment gamă + Gamut warning opacity Opacitate avertisment gamă + Enable Generator Activare Generator + Gif GIF + Glossy Lucios + Grid color Culoare grilă + Grid colors Culori grilă + Grid size Dimensiune grilă + Grid style Stil grilă + Grid unit Unitate grilă + Gridline every Linie de grilă la fiecare + Guide color Culoare ghidaje + Guide style Stil ghidaje + Guides, Grid & Slices Ghidaje, grilă și felii + Gutter Interstițiu + History Log Jurnal de istoric + History states Stări de istoric + Ignore exif profile tag Ignorare etichetă profil EXIF + Image interpolation Interpolare imagine + Image previews Previzualizări imagine + Integrations Integrări + Interface Interfață + Jpeg quality Calitate JPEG + Jpg JPG + Language Limbă + Large tabs File mari + Legacy compositing Compoziție veche + Light gray Gri clar + Line Linie + Lines Linii + Lossless Fără pierderi + Lowercase extension Extensie cu minuscule + Maximize psd compatibility Maximizare compatibilitate PSD + Medium gray Gri mediu + Memory usage mb Utilizare memorie (MB) + Low resolution previews Previzualizări cu rezoluție scăzută + Missing glyph protection Protecție glife lipsă + Modern Modern + Nearest neighbor Vecinul cel mai apropiat + Never Niciodată + Normal tip Vârf normal + Open as smart object Deschidere ca obiect inteligent + Open in camera raw Deschidere în Camera Raw + Open documents as tabs Deschidere documente ca file + Overscroll Suprascrolare + Performance Performanță + Png PNG + Point size Dimensiune puncte + Precise Precis + Preserve details Conservare detalii + Print resolution Rezoluție imprimare + Pro Pro + Pro light Pro (clar) + Pro light gray Pro (gri clar) + Pro medium Pro (mediu) + Pro photo ProPhoto + Quick export format Format export rapid + Quick export location Locație export rapid + Recent file count Număr fișiere recente + LUT folder Folder LUT + Recent files Fișiere recente + Recent fonts Fonturi recente + Recover on launch Recuperare la pornire + Remember workspace changes Reținere modificări spațiu de lucru + Resize image during place Redimensionare imagine la plasare + Rotate view with trackpad Rotire vizualizare cu trackpad + Same folder Același folder + Save in background Salvare în fundal + Scratch Disks Discuri temporare + Screen Ecran + Screen resolution Rezoluție ecran + Scrubby slider acceleration Accelerare glisor + Sessions only Numai sesiuni + Sharpen for Clarificare pentru + Show channels in color Afișare canale în culoare + Show crosshair in brush tip Afișare reticulă în vârful pensulei + Show extension panels Afișare panouri de extensie + Show font names in english Afișare nume fonturi în engleză + Show menu colors Afișare culori meniu + Show only crosshair while painting Afișare numai reticulă la pictare + Show slice numbers Afișare numere felie + Show tooltips Afișare indicii + Enable animations Activare animații + Show highlight on rollover Afișare evidențiere la survolare + Show bounding box when dragging layer Afișare chenar de delimitare la tragerea stratului + System title bar Bară de titlu a sistemului + Show transformation values Afișare valori transformare + Slice color Culoare felie + Smart guide color Culoare ghidaje inteligente + Smart quotes Ghilimele tipografice + Snap vector tools and transforms to pixel grid Fixare instrumente vectoriale și transformări la grila de pixeli + Srgb sRGB + Standard Standard + Studio Studio + Studio light Studio (clar) + Adwaita Adwaita + Adwaita dark Adwaita (întunecat) + Subdivisions Subdiviziuni + System Sistem + Text engine Motor de text + Text file Fișier text + Tiny Minuscul + Touch gestures Gesturi tactile + Transparency & Gamut Transparență și gamă + Type units Unități text + UI font size Dimensiune font interfață + UI scale Scalare interfață + Units & Rulers Unități și rigle + Use additional plugins folder Utilizare folder adițional de plugin-uri + Use esc to commit Utilizare Esc pentru confirmare + Use gpu Utilizare GPU + Use legacy free transform Utilizare transformare liberă veche + Use shift key for tool switch Utilizare tastă Shift pentru comutare instrument + Vary round brush hardness on hud Variere duritate pensulă rotundă în HUD + Webp WebP + World ready Universal + Zoom clicked point to center Centrare punct apăsat la zoom + Zoom resizes windows Zoom redimensionează ferestrele + Zoom with scroll wheel Zoom cu rotița de derulare + Zoom with trackpad pinch Zoom cu ciupire pe trackpad + Pass Through Transmitere directă + Dissolve Dizolvare + Darker Color Culoare mai întunecată + Linear Dodge (Add) Sobreexpunere liniară (adunare) + Lighter Color Culoare mai clară + Soft Light Lumină slabă + Hard Light Lumină puternică + Vivid Light Lumină vie + Linear Light Lumină liniară + Pin Light Lumină punctuală + Exclusion Exclundere + Divide Împărțire + Luminosity Luminozitate +@plural {n} sample|{n} samples {n} probă|{n} probe|{n} de probe + {added}, {removed} subtracted {added}, {removed} scăzute + Adjustment Preview Previzualizare ajustare + Airbrush: keeps depositing paint while the pointer rests. Aerograf: continuă să depună vopsea cât timp cursorul rămâne nemișcat. + Angle: Unghi: + Blend If Fuziune dacă + Close Tab Group Închidere grup de file + Collapse Restrângere + Collapse All Groups Restrângere toate grupurile + Collapse Panel Group Restrângere grup de panouri + Collapse group ({key}-click: all groups) Restrângere grup ({key}-clic: toate grupurile) + Create new brush from the current settings Creare pensulă nouă din setările curente + Create new brush from these settings Creare pensulă nouă din aceste setări + Update the current brush with these settings Actualizare pensulă curentă cu aceste setări + Delete brush Ștergere pensulă + Drag the arrow to set the angle, the dots to set the roundness Trageți săgeata pentru a fixa unghiul și punctele pentru a fixa rotunjimea + Expand Expandare + Expand Panel Group Expandare grup de panouri + Expand group ({key}-click: all groups) Expandare grup ({key}-clic: toate grupurile) + Fade steps Pași de estompare + Hide the layer's effects ({key}-click: all layers) Ascundere efectele stratului ({key}-clic: toate straturile) + Import Brushes… (.abr or image) Import pensule… (.abr sau imagine) + Import Brush from Image… Import pensulă din imagine… + Move Group Down Deplasare grup jos + Move Group Up Deplasare grup sus + Reset the brush to the defaults Resetare pensulă la valorile implicite + Restore original size Restaurare dimensiune originală + Roundness: Rotunjime: + Search Brushes Căutare pensule + Show the layer's effects ({key}-click: all layers) Afișare efectele stratului ({key}-clic: toate straturile) + Brush picker Selector de pensule + Erase Ștergere + Right click with painting tools Clic dreapta cu instrumente de pictură + System Info… Informații sistem… + System Info Informații sistem + More panels Mai multe panouri + More documents Mai multe documente + These settings aren't available in PhotoCraft yet. Aceste setări nu sunt încă disponibile în PhotoCraft. + Graphics Grafică + Reset GPU Backend Resetare backend GPU + Applies at next launch. Se aplică la următoarea pornire. + Click to sample the foreground colour · {key}-click for background Clic pentru a eșantiona culoarea frontală · {key}-clic pentru fundal + {key}-click to set the source {key}-clic pentru a stabili sursa + {key} to subtract {key} pentru a scădea + Clone source {n} ({key}-click with Clone Stamp to set) Sursă de clonare {n} ({key}-clic cu Ștampila de clonare pentru a stabili) + Source: not set ({key}-click with Clone Stamp) Sursă: nestabilit ({key}-clic cu Ștampila de clonare) + Pixel Layer Strat de pixeli + Type Layer Strat de text + Shape Layer Strat de formă + Group Layer Strat de grup + Fill Layer Strat de umplere + Smart Object Layer Strat de obiect inteligent + Create Warped Text Creare text deformat + Rasterize Smart Object Rasterizare obiect inteligent + Rasterize Fill Content Rasterizare conținut de umplere + Rasterize Layer Style Rasterizare stil de strat + Unlock: picking a preset replaces these settings Deblocare: alegerea unei presetări înlocuiește aceste setări + Lock: keep these settings when picking another preset Blocare: păstrare aceste setări la alegerea altei presetări + Diameter: Diametru: + Hardness: Duritate: + No brush presets Nicio presetare de pensulă + Toggle the Brush Settings panel (F5) Comutare panou Setări pensulă (F5) + Create new brush preset from the current settings Creare presetare de pensulă nouă din setările curente + Brush Settings… (F5): every option of this brush Setări pensulă… (F5): toate opțiunile acestei pensule + Rename Brush… Redenumire pensulă… + Delete Brush Ștergere pensulă + New Brush Preset… Presetare de pensulă nouă… + Capture Brush Size in Preset Capturare dimensiune pensulă în presetare + Include Tool Settings Includere setări instrument + Include Color Includere culoare + Enter a name for the brush preset Introduceți un nume pentru presetarea de pensulă + A brush preset with this name already exists Există deja o presetare de pensulă cu acest nume + Brush Preset Options Opțiuni presetare pensulă + Group name Nume grup + Brush name Nume pensulă + Brush Name Nume pensulă + Brush Stroke Tușă pensulă + Brush Tip Vârf pensulă + Off: the speed of the pointer sets the spacing Dezactivat: viteza cursorului stabilește spațierea + Tilt Scale Scală înclinare + Brush Projection Proiecție pensulă + Apply the pen's tilt and rotation to the tip shape Aplicare înclinarea și rotația peniței la forma vârfului + Mixer Brush Pensulă de mixare + Mixer Brush Tool Instrument Pensulă de mixare + Color Replacement Tool Instrument Înlocuire culoare + Wet Umed + Current Brush Load Încărcare curentă a pensulei + Load Brush Încărcare pensulă + Clean Brush Curățare pensulă + Load the brush after each stroke Încărcare pensula după fiecare tușă + Clean the brush after each stroke Curățare pensula după fiecare tușă + Mix Mixare + Wetness Jitter Variație umiditate + Mix Jitter Variație mixare + Show the layer mask as an overlay Afișare mască de strat ca suprapunere + Toggle visibility Comutare vizibilitate + Unlink the mask from the layer Deconectare mască de strat + Link the mask to the layer Conectare mască la strat + Gradient Degrade + Gradient Options Opțiuni degrade + Align with layer Aliniere cu stratul + Reset Alignment Resetare aliniere + Centre the gradient (offset 0, 0) Centrare degrade (decalaj 0, 0) + Gradient Editor Editor de degrade + Gradient picker Selector de degrade + Save As Preset Salvare ca presetare + The gradient the Gradient tool paints with Degradeul cu care pictează instrumentul Degrade + Adds the current gradient to the Gradients panel Adaugă degradeul curent la panoul Degradeuri + Gradient stops Marcaje de degrade + Select a type layer to edit its character and paragraph settings. Selectați un strat de text pentru a-i edita setările de caracter și paragraf. + Text color Culoare text + Type Options Opțiuni text + Anti-aliasing method Metodă de anticrenelare + Horizontal type Text orizontal + Vertical type Text vertical + Fill path with foreground color Umplere traseu cu culoarea frontală + Stroke path with brush Trasare contur al traseului cu pensula + Load path as a selection Încărcare traseu ca selecție + Make work path from selection Creare traseu de lucru din selecție + Add vector mask Adăugare mască vectorială + Create new path Creare traseu nou + Delete path Ștergere traseu + Delete vector mask Ștergere mască vectorială + CPU (no GPU acceleration) CPU (fără accelerare GPU) + DirectX 12 DirectX 12 + GPU backend Backend GPU + Linux display server Server de afișare Linux + X11 X11 + Metal Metal + OpenGL OpenGL + Use tablet pressure Utilizare presiune tabletă + Vulkan Vulkan + Alt-click to define a source point to clone from Alt+clic pentru a defini un punct sursă din care să clonați + No path to make a selection from: draw one with the Pen tool or select one in the Paths panel. Niciun traseu din care să se creeze o selecție: desenați unul cu instrumentul Pană sau selectați unul în panoul Trasee. + Cancel opening Anulare deschidere + Cancelled opening {name} S-a anulat deschiderea {name} + Damaged Photoshop document Document Photoshop deteriorat + The document “{name}” may be damaged. Documentul „{name}” poate fi deteriorat. + Some layers, pixels or masks could not be read. Do you want to continue opening it? Unele straturi, pixeli sau măști nu au putut fi citite. Doriți să continuați deschiderea lui? + If you continue, saving over the original may permanently discard unreadable data. Save a copy to keep the original. Dacă continuați, salvarea peste original poate elimina permanent datele ilizibile. Salvați o copie pentru a păstra originalul. + The document “{name}” does not have an embedded {mode} profile. Documentul „{name}” nu are un profil {mode} încorporat. + The document “{name}” has an embedded color profile that does not match the current {mode} working space. Documentul „{name}” are un profil de culoare încorporat care nu corespunde cu spațiul de lucru {mode} curent. + Working: {working} Spațiu de lucru: {working} + Developing {name} Se procesează {name} + Cancelled {label} S-a anulat {label} + Esc to cancel Esc pentru a anula + Opened {name} S-a deschis {name} + Opening {name} Se deschide {name} + Saved {name} S-a salvat {name} + Saving {name} Se salvează {name} + Saving {percent} Se salvează {percent} + A save to {name} is still running; try again when it finishes O salvare a {name} este încă în curs; încercați din nou când se termină + {label} is writing the file and can no longer be cancelled {label} scrie fișierul și nu mai poate fi anulat + Opening {name}… Se deschide {name}… + Opening… Se deschide… + Reading… Se citește… + Working… Se procesează… + 3 x 3 3 × 3 + 4 x 4 4 × 4 + 5 x 5 5 × 5 + Grid: Grilă: + Color Range Gamă de culori + Adaptive Wide Angle Unghi larg adaptabil + Chalk & Charcoal Cretă și cărbune + Charcoal Cărbune + Chrome Crom + Conté Crayon Creion Conté + Graphic Pen Peniță grafică + Halftone Pattern Model de semitonuri + Note Paper Hârtie de notițe + Photocopy Fotocopie + Plaster Ipsos + Reticulation Reticulare + Stamp Ștampilă + Torn Edges Margini rupte + Water Paper Hârtie umedă + Move Deplasare + Pencil Creion + Clone Stamp Ștampilă de clonare + Dodge Luminare + Burn Întunecare + Quick Selection Selecție rapidă + History Brush Pensulă istoric + Color Replacement Înlocuire culoare + New Group Grup nou + Layer Comp Compoziție de strat + Alpha Alfa + Make Producător + Model Model + F Diafragmă f + Artist Artist + Spot Color Culoare plană + Roman Normal + Bold Italic Bold cursiv + Justification Justificare + Symbols Simboluri + Punctuation Punctuație + Make Work Path Creare traseu de lucru + Make Selection Creare selecție + Fill Path Umplere traseu + Stroke Path Trasare contur al traseului + Delete Path Ștergere traseu + W L + H Î + Ruler Riglă + New Layer Comp Compoziție de strat nouă + Duplicate Layer Comp Duplicare compoziție de strat + Rename Layer Comp Redenumire compoziție de strat + Apply Layer Comp Aplicare compoziție de strat + Update Layer Comp Actualizare compoziție de strat + Method Metodă + Author Autor + Software Software + Pencil Tool Instrument Creion + Pixel Pixel + Adjustment Ajustare + Drag (lasso) or click points (polygonal) · {add} add · {sub} subtract Trageți (lasou) sau faceți clic pe puncte (poligonal) · {add} adăugare · {sub} scădere + Drag a crop box · drag inside to move · edges resize ({ratio} ratio, {centre} centre) · Space moves while drawing · arrows nudge · X swaps orientation · {commit} commits · Esc cancels Trageți un cadru de decupare · trageți în interior pentru a deplasa · marginile redimensionează ({ratio} raport, {centre} centru) · Spațiu deplasează în timpul desenării · săgețile ajustează fin · X schimbă orientarea · {commit} confirmă · Esc anulează + {mode} Color · {bits} bit Culoare {mode} · {bits} biți + Scrubby Zoom Zoom prin tragere + Auto Erase Ștergere automată + Color Adaptation Adaptare culoare + Preserve Transparency Conservare transparență + shortcut comandă rapidă + Saved Salvat + Arc Arc + Arch Arc inferior + Bulge Umflătură + Shell Lower Scoică inferioară + Shell Upper Scoică superioară + Flag Steag + Fish Pește + Wave Val + Rise Ascensiune + Inflate Inflare + Twist Torsiune + Squeeze Strângere + Mask Mască + Channel Canal + Rectangle Rectangul + New Channel Canal nou + Save Selection Salvare selecție + Load Selection Încărcare selecție +@id edit.purge.undo Istoric de anulări + Rendering Mode Mod de randare + Automatic (recommended) Automat (recomandat) + CPU / Compatibility CPU / Compatibilitate + Automatic uses GPU acceleration when available and falls back to CPU rendering on errors. Automat utilizează accelerarea GPU atunci când este disponibilă și trece la randare pe CPU în caz de erori. + Switched to CPU rendering S-a comutat la randare pe CPU + GPU acceleration could not continue. Your documents are unchanged. Accelerarea GPU nu a putut continua. Documentele dvs. sunt neschimbate. + PhotoCraft is using the CPU image compositor. The window may still use your graphics adapter. PhotoCraft compune imaginile pe CPU. Fereastra poate utiliza totuși adaptorul grafic. + Retry GPU requires a restart. Save your work first. Reîncercarea GPU necesită o repornire. Salvați mai întâi munca dvs. + Retry GPU tries the graphics processor again now. Reîncercarea GPU încearcă din nou procesorul grafic acum. + GPU acceleration resumed. Accelerarea GPU a fost reluată. + Keep Using CPU Continuare utilizare CPU + Retry GPU Reîncercare GPU + Advanced Avansat + GPU Backend Backend GPU + Details Detalii + Rendering mode Mod de randare + Freeze Lasso: drag to freeze an area, Alt-drag to thaw it (L) Lasou de îngheț: trageți pentru a îngheța o zonă, Alt+tragere pentru a o dezgheța (L) + Shadow Clipping Warning (U) Avertisment tăiere umbre (U) + Highlight Clipping Warning (O) Avertisment tăiere lumini (O) + Show Lab Color Readouts Afișare valori culoare Lab + Show Vectorscope Afișare vectoroscop + Show Red at 3 o'clock Afișare roșu la ora 3 + Show Skin Tone Indicator Afișare indicator ton piele + Tone Histogram Histogramă tonală + Show Selected Region Afișare regiune selectată +cameraRaw Light Lumină + Camera Raw Filter ({layer}) Filtru Camera Raw ({layer}) + Camera Raw ({name}) Camera Raw ({name}) +cameraRaw Lights Luminile +cameraRaw Darks Umbrele +cameraRaw Red Roșii +cameraRaw Orange Portocalii +cameraRaw Yellow Galbeni +cameraRaw Green Verzi +cameraRaw Aqua Aguamarine +cameraRaw Blue Albaștri +cameraRaw Purple Violeți +cameraRaw Magenta Magenta +cameraRaw Blending Fuziune +cameraRaw Tint Tentă +cameraRaw Temperature Temperatură +cameraRaw Amount Cantitate + Patch Tool Instrument Plasture + Patch: Plasture: + Lasso around an area, then drag the selection Încercuiți o zonă cu lasoul, apoi trageți selecția + Transform On Drop Transformare la plasare + Scale or rotate the moved area, then press {key} Scalați sau rotiți zona deplasată, apoi apăsați {key} + Now drag the selection onto another area Acum trageți selecția peste o altă zonă + Edit Type Editare text + New Style… Stil nou… + Style {name} saved Stilul {name} a fost salvat + Create new style (from the selected type) Creare stil nou (din textul selectat) + Create new style from the selected layer Creare stil nou din stratul selectat + Make Default Stabilire ca implicit + Reset to Default Resetare la valoarea implicită + Full-resolution preview unavailable Previzualizare la rezoluție completă indisponibilă + No patterns Niciun model + Enable {name} Activare {name} + Hold Alt while drawing for straight segments Țineți Alt în timp ce desenați pentru segmente drepte + Drag or click polygon points · hold Alt during lasso for straight segments · {add} add · {sub} before drawing subtracts Trageți sau faceți clic pe punctele poligonului · țineți Alt în timpul lasoului pentru segmente drepte · {add} adăugare · {sub} înainte de desenare scade + Extend Extindere + Structure: Structură: + Content-Aware Move Tool Instrument Deplasare cu detecție de conținut + TIFF Options Opțiuni TIFF + Targa Options Opțiuni Targa + JPEG Options Opțiuni JPEG + Image Options Opțiuni imagine + Format Options Opțiuni format + Baseline ("Standard") Linie de bază („Standard”) + Baseline Optimized Linie de bază optimizată + 24 bits/pixel 24 biți/pixel + 32 bits/pixel 32 biți/pixel + Including layers will increase file size. Includerea straturilor va crește dimensiunea fișierului. + Discard Layers and Save a Copy Eliminare straturi și salvare copie + Don't show again Nu afișa din nou + Save failed: {error} Salvare nereușită: {error} + Save cancelled Salvare anulată + Magnetic Lasso Tool Instrument Lasou magnetic + Frequency Frecvență + Use tablet pressure to change pen width Utilizare presiune tabletă pentru a modifica lățimea peniței + About Despre + Contributors Contribuitori + Models Modele + Sort Sortare + Username Nume de utilizator + Display name Nume afișat + Real name Nume real + Reverse the order Inversare ordine + Grab bag Listă liberă + Table Tabel + Name (A–Z) Nume (A–Z) + Merged PRs PR-uri fuzionate + Commits Commit-uri + Lines added Linii adăugate + Lines deleted Linii șterse + Line delta Diferență linii + Binary assets added Fișiere binare adăugate + Binary assets removed Fișiere binare eliminate + First commit Primul commit + First Primul + Last commit Ultimul commit + Last Ultimul + Contributors: {contributors} · Commits: {commits} Contribuitori: {contributors} · Commit-uri: {commits} + No contributor data was built into this copy. Această copie nu include date despre contribuitori. + No model credits were built into this copy. Această copie nu include credite de modele. + Company Companie + Version Versiune + % of all commits % din toate commit-urile + Lines +/− Linii +/− + @{login}: {prs} PRs, {commits} commits, +{added} / −{deleted} lines (Δ {delta}), +{binAdded} / −{binDeleted} binary assets, {first} – {last} @{login}: {prs} PR, {commits} commit-uri, +{added} / −{deleted} linii (Δ {delta}), +{binAdded} / −{binDeleted} fișiere binare, {first} – {last} + Create new swatch Creare mostră nouă + New Swatch… Mostră nouă… + New Swatch Group… Grup de mostre nou… + Import Swatches… Import mostre… + Replace Swatches… Înlocuire mostre… + Export Swatches… Export mostre… + Export Swatches for Exchange… Export mostre pentru schimb… + Reset Swatches Resetare mostre + Add to Swatches Adăugare la mostre + Blend If: Fuzionare dacă: + Current Layer: Strat curent: + Channels: Canale: + Knockout Extracție + Apply At Canvas Bounds Aplicare la limitele pânzei + Color Picker (Text Color) Selector de culoare (culoare text) + Color Picker ({name}) Selector de culoare ({name}) + Color Picker (Fill Color) Selector de culoare (culoare umplere) + Fill color Culoare umplere + Color Picker (Stroke Color) Selector de culoare (culoare trasou) + Stroke color Culoare trasou + Pick screen color Alegere culoare de pe ecran + Sample a pixel anywhere on the screen Eșantionați un pixel oriunde pe ecran + Click to pick · Esc to cancel Clic pentru a alege · Esc pentru a anula + Pick a screen pixel or press Esc to cancel Alegeți un pixel de pe ecran sau apăsați Esc pentru a anula + Scroll to zoom Derulați pentru a mări + Drag to pan · Scroll to zoom · Double-click to fit Trageți pentru a deplasa · Derulați pentru a mări · Dublu clic pentru a încadra + Show/Hide All Panels Afișare/ascundere toate panourile + Show/Hide Panels Afișare/ascundere panouri + Could not open Nu s-a putut deschide + {path}: the path is not valid Unicode; rename the file and open it again. {path}: calea nu este Unicode valid; redenumiți fișierul și deschideți-l din nou. + Contents: Conținut: + Custom Pattern: Model personalizat: + Foreground Color Culoare frontală + Color… Culoare… + 50% Gray Gri 50% + {size} (was {old}) {size} (anterior {old}) + Cone Con + Cone (Inverted) Con (inversat) + Domed Bombat + Domed (Inverted) Bombat (inversat) + Diagonal (Descending) Diagonală (descrescătoare) + Contour Editor Editor contur + Anti-aliased Anticrenelat + Corner Colț + Gloss Contour Contur luciu + Contour Contur + Cone - Inverted Con - inversat + Cove - Deep Golf - adânc + Cove - Shallow Golf - puțin adânc + Half Round Semirotund + Ring Inel + Ring - Double Inel - dublu + Rolling Slope - Descending Pantă ondulată - descrescătoare + Rounded Steps Trepte rotunjite + Sawtooth 1 Dinte de fierăstrău 1 + Red Eye Tool Instrument Ochi roșii + Red Eye Ochi roșii + Pupil Size Dimensiune pupilă + Darken Amount Cantitate întunecare + Click a red pupil to neutralize it Faceți clic pe o pupilă roșie pentru a o neutraliza + open source open source + …and {n} more …și încă {n} + Eyedroppers: Pipete: + Set Black Point Stabilire punct negru + Set Neutral Gray Point Stabilire punct gri neutru + Set White Point Stabilire punct alb + Unavailable in this color mode Indisponibil în acest mod de culoare + Selection Preview: Previzualizare selecție: + Black Matte Mat negru + White Matte Mat alb + Seafoam Verde spumă de mare + Indigo Indigo + Fuchsia Fucsia + Violet Violet + Reset Resetare + Large document: redrawing on the CPU Document mare: redesenare pe CPU + Redrawing Redesenare + This redraw took {seconds} s on the CPU. Această redesenare a durat {seconds} s pe CPU. + Edits that change the whole document, such as a layer's blend mode, opacity or visibility, redraw all of it. Editările care schimbă tot documentul, precum modul de amestecare, opacitatea sau vizibilitatea unui strat, îl redesenează integral. + The GPU compositor wasn't used: {reason} Compozitorul GPU nu a fost folosit: {reason} +fontWeight Thin Ultrafină +fontWeight ExtraLight Extrafină +fontWeight Light Fină +fontWeight Regular Normal +fontWeight Medium Medie +fontWeight SemiBold Semi Bold +fontWeight Bold Bold +fontWeight ExtraBold Extra Bold +fontWeight Black Ultra Bold +fontWeight Italic Cursivă + Pattern Stamp Tool Instrument Ștampilă de model + Pattern Stamp Ștampilă de model + Impressionist Impresionist + Rotate View Rotire vizualizare + Rotate View Tool Instrument Rotire vizualizare + Reset View Resetare vizualizare + Drag around the centre to rotate the view · Shift constrains to 15° Trageți în jurul centrului pentru a roti vizualizarea · Shift fixează la 15° + Dual Axis Dublă axă + Diagonal Diagonal + Transform Symmetry Transformare simetrie + Point Sample Eșantion punctual + 3 by 3 Average Medie 3 × 3 + 5 by 5 Average Medie 5 × 5 + 11 by 11 Average Medie 11 × 11 + 31 by 31 Average Medie 31 × 31 + 51 by 51 Average Medie 51 × 51 + 101 by 101 Average Medie 101 × 101 + Sample Size: Dimensiune eșantion: + All Layers No Adjustments Toate straturile fără ajustări + Current & Below No Adjustments Curent și inferioare fără ajustări + Show Sampling Ring Afișare inel de eșantionare + Out of gamut for printing: click for the nearest printable colour În afara gamei de imprimare: faceți clic pentru cea mai apropiată culoare imprimabilă + Not a web colour: click for the nearest web colour Nu este o culoare web: faceți clic pentru cea mai apropiată culoare web + Color to Alpha… Culoare la alfa… + Transparency Threshold Prag transparență + Opacity Threshold Prag opacitate + PhotoCraft — Screen Color Picker PhotoCraft — Selector de culoare de pe ecran + Rasterize svg groups deeper than Rasterizare grupuri SVG mai profunde decât + 0 turns this threshold off; SVG groups nested deeper than 100 levels are always rasterized. 0 dezactivează acest prag; grupurile SVG imbricate la mai mult de 100 de niveluri sunt întotdeauna rasterizate. + Rule of Thirds Regula terților + Triangle Triunghi + Golden Ratio Raport auriu + Golden Spiral Spirală aurie + Auto Show Overlay Afișare automată suprapunere + Always Show Overlay Afișare întotdeauna suprapunere + Never Show Overlay Nu afișa niciodată suprapunerea + Cycle Overlay Comutare suprapunere + Cycle Orientation Comutare orientare + Set the overlay options for the Crop tool Definire opțiuni de suprapunere pentru instrumentul Decupare + Alt-click went to the desktop, which moves windows with Alt-drag. Set its window-move key to Super, or latch Alt in Window › Modifier Keys. Alt+clic a fost primit de desktop, care deplasează ferestrele cu Alt+tragere. Setați tasta de deplasare a ferestrelor la Super, sau blocați Alt în Fereastră › Taste modificatoare. + Color Picker (Layer Style Color) Selector de culoare (culoare stil de strat) + Auto Hide Notifications Ascundere automată notificări + Notification Duration (seconds) Durată notificare (secunde) + Bundle Arrow-Key Nudges Grupare ajustări fine cu săgețile + Nudge Bundle Pause (ms) Pauză grupare ajustări fine (ms) + Appearance Mode Mod aspect + Dark Theme Temă întunecată + Light Theme Temă clară + Pro Medium Pro (mediu) + Studio Light Studio (clar) + Next Appearance Mode Modul următor de aspect + Sync with system Sincronizare cu sistemul + Active Activ + Color Picker (Solid Color) Selector de culoare (culoare solidă) + Straighten the image by drawing a line on it Îndreptare imagine desenând o linie pe ea + Set additional Crop options Definire opțiuni adiționale de decupare + Show Cropped Area Afișare zonă decupată + Enable Crop Shield Activare ecran de decupare + Match Canvas Potrivire cu pânza + Auto Adjust Opacity Ajustare automată opacitate + Crop Shield color Culoare ecran de decupare + Color Picker (Crop Shield Color) Selector de culoare (culoare ecran de decupare) + From Center Din centru + Link radii Conectare raze + Star Ratio: Raport stea: + Create Rectangle Creare rectangul + Create Ellipse Creare elipsă + Create Triangle Creare triunghi + Create Polygon Creare poligon + Pressure curve Curbă de presiune + Click to add a point, right-click to remove Faceți clic pentru a adăuga un punct; clic dreapta pentru a-l elimina + Some brush presets could not be loaded Unele presetări de pensulă nu au putut fi încărcate + Retry saving presets Reîncercare salvare presetări + Brush preset changes are not saved: {error} Modificările presetărilor de pensulă nu sunt salvate: {error} + Keep this tab open to retain your brushes. Păstrați această filă deschisă pentru a vă conserva pensulele. + Browser storage is unavailable; brushes are session-only. Keep this tab open to retain them. Stocarea browserului nu este disponibilă; pensulele durează numai pentru această sesiune. Păstrați această filă deschisă pentru a le conserva. + Saving brush presets… Keep this tab open until saving finishes. Se salvează presetările de pensulă… Păstrați această filă deschisă până la finalizare. + Reflect Reflectare + Glow Strălucire + Negation Negație + XOR XOR + Color Burn (Paint.NET) Întunecare culoare (Paint.NET) + Color Dodge (Paint.NET) Luminare culoare (Paint.NET) + Stroke Options Opțiuni trasou + Solid Continuu + Dashed Întrerupt + Dotted Punctat + Alignment Aliniere + Caps Capete + Butt / Flat Plat + Corners Colțuri + Miter Unghi ascuțit + Round Rotund + Bevel Teșit + Miter limit Limită unghi ascuțit + Dashed line Linie întreruptă + Dash Linie + Gap Spațiu + Dash / gap lengths × stroke width Lungimi linie / spațiu × lățime trasou + Add pair Adăugare pereche + Remove pair Eliminare pereche + Dash offset Decalaj liniuțe + Open paths use centered strokes Traseele deschise folosesc trasee centrate + Use finite lengths and a positive pattern total Utilizați lungimi finite și un total de model pozitiv + No subject found — try Object Selection or the Lasso Niciun subiect găsit — încercați Selecție obiect sau Lasoul + Quick Selection found nothing there Selecția rapidă nu a găsit nimic acolo + Object Selection found nothing there — try a tighter rectangle Selecția obiectului nu a găsit nimic acolo — încercați un rectangul mai restrâns + No subject found — try a rectangle around the object Niciun subiect găsit — încercați un rectangul în jurul obiectului + Click the first point or press {key} to close · {del} removes a point · Esc cancels Faceți clic pe primul punct sau apăsați {key} pentru a încheia · {del} elimină un punct · Esc anulează + Click, then move along an edge · click to fasten a point · {alt}-click for a straight segment · double-click to close Faceți clic, apoi mișcați de-a lungul unei margini · faceți clic pentru a fixa un punct · {alt}-clic pentru un segment drept · dublu clic pentru a încheia + Follows only edges this close to the pointer ([ and ] change it) Urmărește numai marginile atât de apropiate de cursor ([ și ] îl modifică) + Higher values follow only edges that contrast sharply with their surroundings Valorile mai mari urmăresc numai marginile cu contrast puternic față de mediul lor + How often fastening points are placed by themselves Cât de des se plasează automat punctele de fixare + Appearance Settings… Setări de aspect… + Add to favorites Adăugare la favorite + Remove from favorites Eliminare din favorite + Camera Data Date cameră +cameraData Make Producător +cameraData Model Model +cameraData Date Taken Data capturii +cameraData Exposure Timp de expunere +cameraData F-Stop Diafragmă f +cameraData ISO Speed Sensibilitate ISO +cameraData Focal Length Distanță focală +cameraData Focal Length (35 mm) Distanță focală (35 mm) +cameraData Lens Obiectiv + Activate Panel Activare panou + Change Panel Group Modificare grup de panouri + Change Panel Layout Modificare aranjament panouri + Close Panel Închidere panou + Dock Panel Acoplare panou + Float Panel Panou flotant + Move Panel Deplasare panou + Group with Grupare cu + Panel menu Meniu panou + Resize panel window Redimensionare fereastră panou + Resize panels Redimensionare panouri + Distribution Distribuție + Uniform Uniform + Gaussian Gaussian + Monochromatic Monocromatic + Seed Sămânță + Strength Intensitate + Reduce Color Noise Reducere zgomot de culoare + Remove Jpeg Artifact Eliminare artefacte JPEG + Sharpen Details Clarificare detalii + Reduce Noise Reducere zgomot + Use Classic Mode Utilizare mod clasic + Auto Center Preview Centrare automată previzualizare + Next Document Documentul următor + Previous Document Documentul anterior + W x H x Resolution L x Î x Rezoluție + Front Image Imagine frontală + Frame Tool Instrument Cadru + Create a new rectangular frame Creare cadru rectangular nou + Create a new elliptical frame Creare cadru elipsoidal nou + Include in playback Includere în redare + Perspective Crop Tool Instrument Decupare cu perspectivă + Show Grid Afișare grilă + Drag a box or click four corners · drag the corners onto the edges of a skewed shape · {commit} commits · Esc cancels Trageți un cadru sau faceți clic pe patru colțuri · trageți colțurile pe marginile unei forme înclinate · {commit} confirmă · Esc anulează + Artboard Tool Instrument Planșă de lucru + Make Portrait Transformare în portret + Make Landscape Transformare în peisaj + Add New Artboard Adăugare planșă de lucru nouă + Freeform Pen Tool Instrument Pană formă liberă + Curvature Pen Tool Instrument Pană curbură + Curve Fit: Potrivire curbă: + Drag: draw freehand · {alt}-click: straight segment · Release on the start point: close Tragere: desenare la liberă mână · {alt}-clic: segment drept · Eliberare pe punctul de start: încheiere + Click: smooth point · Double-click: corner · Drag a point: move · Click first point: close · {key} finish Clic: punct neted · Dublu clic: colț · Tragere punct: deplasare · Clic pe primul punct: încheiere · {key}: finalizare + New Crop Preset… Presetare de decupare nouă… + Delete Crop Preset… Ștergere presetare de decupare… + Select the crop presets to delete: Selectați presetările de decupare de șters: + Select the crop presets to delete Selectați presetările de decupare de șters + Enter a name for the crop preset Introduceți un nume pentru presetarea de decupare + There is no crop size or ratio to save Nu există dimensiune sau raport de decupare de salvat + Scale: Scală: + Snap to Origin Fixare la origine + Search settings… Căutare setări… + No matching settings Nicio setare corespunzătoare + Sampling Brush Tool Instrument Pensulă de eșantionare + Sampling Area Overlay Suprapunere zonă de eșantionare + Show Sampling Area Afișare zonă de eșantionare + Indicates Indică + Sampling Area Zonă de eșantionare + Excluded Area Zonă exclusă + Sampling Area Options Opțiuni zonă de eșantionare + Rectangular Rectangular + Fill Settings Setări umplere + Rotation Adaptation Adaptare rotație + Very High Foarte mare + Full Completă + Mirror Oglindă + Output Settings Setări de ieșire + Output To Ieșire către + Animation Options Opțiuni animație + Entire Document Document întreg + Filter Options Opțiuni filtru + Layer Bounds Limite strat + Layers Panel Options Opțiuni panou Straturi + Lock Layers Blocare straturi + New Artboard… Planșă de lucru nouă… + New Group… Grup nou… + New Layer… Strat nou… + Panel Options… Opțiuni panou… + Prevent Auto-Nesting Prevenire cuibărire automată + Show Layers Afișare straturi + Thumbnail Contents Conținut miniaturi + Thumbnail Size Dimensiune miniaturi + Use Default Masks on Fill Layers Utilizare măști implicite pe straturile de umplere + Expand New Effects Expandare efecte noi + Add “copy” to Copied Layers and Groups Adăugare „copie” la straturile și grupurile duplicate + Preview on canvas when reordering layers Previzualizare pe pânză la reordonarea straturilor + Show layer mask badges Afișare insigne de mască de strat + Blending Options ({filter}) Opțiuni de fuziune ({filter}) + Hide the layer's effects and Smart Filters ({key}-click: all layers) Ascundere efectele și filtrele inteligente ale stratului ({key}-clic: toate straturile) + Show the layer's effects and Smart Filters ({key}-click: all layers) Afișare efectele și filtrele inteligente ale stratului ({key}-clic: toate straturile) + Wait for the current job to finish. Așteptați finalizarea sarcinii curente. + The document or Smart Filter changed. Reopen its dialog. Documentul sau filtrul inteligent s-a modificat. Deschideți din nou dialogul acestuia. + Opacity must be between 0% and 100%. Opacitatea trebuie să fie între 0% și 100%. + Dissolve is approximated: it blends without Photoshop's dither. Dizolvarea este aproximată: fuzionează fără tramarea din Photoshop. + Loading fonts… Se încarcă fonturile… + Response curve Curbă de răspuns + Tool Instrument + Simulate Pressure Simulare presiune + Stroke Path… Trasare contur al traseului… + Background Eraser Radieră de fundal + Healing Brush Pensulă corectoare + Spot Healing Brush Pensulă corectoare punctuală + Smudge Deget + Sponge Burete + Amount: Cantitate: + Protect: Protejare: + Protect skin tones Protejare tonuri de piele + Edit points to modify the curve Editare puncte pentru a modifica curba + Draw to modify the curve Desenare pentru a modifica curba +curves Smooth Netezire + Smooth the curve values Netezire valorile curbei + Drag to draw the curve · {key}-click draws a straight line Trageți pentru a desena curba · {key}-clic trasează o linie dreaptă + Edit Plane Editare plan + Create Plane Creare plan + Grid Size: Dimensiune grilă: + Vanishing Point: click four corners to create a plane Punct de fugă: faceți clic pe patru colțuri pentru a crea un plan + Vanishing Point is not active Punctul de fugă nu este activ + Apply Vanishing Point ({key}) Aplicare punct de fugă ({key}) + Fix the red plane first: its corners must form a convex quad Corectați mai întâi planul roșu: colțurile lui trebuie să formeze un patrulater convex + Alt-click a plane to set the clone source Alt+clic pe un plan pentru a stabili sursa de clonare + Too many clone strokes: apply Vanishing Point first Prea multe tușe de clonare: aplicați mai întâi Punctul de fugă + Onion Skin Hârtie de ceapă + Marching Ants Furnici în mișcare + On Black Pe negru + On White Pe alb + On Layers Pe straturi + Show Edge Afișare margine + Show Original Afișare original + F cycles the views; hold X to see the image F comută vizualizările; țineți X pentru a vedea imaginea + Refine Edge Brush (R) Pensulă de perfecționare margine (R) + Expand Detection Area Expandare zonă de detecție + Restore Original Edge Restaurare margine originală + Paint over hair or fur on the image; Alt paints the other mode Pictați peste părul sau blana din imagine; Alt pictează în modul opus + Clear Brush Strokes Ștergere tușe de pensulă + Show rulers Afișare rigle + Presentation Prezentare + Click to place · Alt-click or drag off-canvas to remove Clic pentru a plasa · Alt+clic sau tragere în afara pânzei pentru a elimina + No document open Niciun document deschis + {n} of {max} sample points {n} din {max} puncte de eșantionare + New Snapshot… Captură nouă… + History Options… Opțiuni istoric… + Allow Non-Linear History Permitere istoric neliniar + Make Layer Visibility Changes Undoable Permitere anulare pentru modificările de vizibilitate a straturilor + Emulsion Down Emulsie în jos + Functions Funcții + Print Resolution: Rezoluție imprimare: + Use Previous Layer to Create Clipping Mask Utilizare strat anterior pentru a crea masca de tăiere + Fill with {mode}-neutral color (white) Umplere cu culoarea neutră {mode} (alb) + Fill with {mode}-neutral color (black) Umplere cu culoarea neutră {mode} (negru) + Fill with {mode}-neutral color (50% gray) Umplere cu culoarea neutră {mode} (gri 50%) + (No neutral color exists for {mode} mode.) (Nu există o culoare neutră pentru modul {mode}.) + Apply mask to layer before removing? Aplicați masca pe strat înainte de a o elimina? + The layer or its mask changed. Drag the mask onto the Trash again. Stratul sau masca sa s-au modificat. Trageți din nou masca în Coș de gunoi. + Delete the vector mask? Ștergeți masca vectorială? +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} S-a exportat {n} mostră în {file}|S-au exportat {n} mostre în {file}|S-au exportat {n} de mostre în {file} +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} S-a importat {n} pensulă din {group}|S-au importat {n} pensule din {group}|S-au importat {n} de pensule din {group} +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} S-a importat {n} mostră din {file}|S-au importat {n} mostre din {file}|S-au importat {n} de mostre din {file} +@plural Played {n} step|Played {n} steps S-a redat {n} pas|S-au redat {n} pași|S-au redat {n} de pași +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk S-a actualizat {n} obiect inteligent conectat modificat pe disc|S-au actualizat {n} obiecte inteligente conectate modificate pe disc|S-au actualizat {n} de obiecte inteligente conectate modificate pe disc +@plural Saved for Web: {n} file|Saved for Web: {n} files Salvat pentru web: {n} fișier|Salvat pentru web: {n} fișiere|Salvat pentru web: {n} de fișiere +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. {n} strat înregistrat de această compoziție a fost șters. Actualizați compoziția sau ștergeți avertismentul.|{n} straturi înregistrate de această compoziție au fost șterse. Actualizați compoziția sau ștergeți avertismentul.|{n} de straturi înregistrate de această compoziție au fost șterse. Actualizați compoziția sau ștergeți avertismentul. +@plural {n} plane|{n} planes {n} plan|{n} planuri|{n} de planuri +@plural {n} preset|{n} presets {n} presetare|{n} presetări|{n} de presetări +@plural {n} sample point removed|{n} sample points removed S-a eliminat {n} punct de eșantionare|S-au eliminat {n} puncte de eșantionare|S-au eliminat {n} de puncte de eșantionare +@plural {n} slice|{n} slices {n} felie|{n} felii|{n} de felii +@plural {n} step|{n} steps {n} pas|{n} pași|{n} de pași +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} avertisment suplimentar de presetare de pensulă)|{warning} (+{n} avertismente suplimentare de presetare de pensulă)|{warning} (+{n} de avertismente suplimentare de presetare de pensulă) +@plural {what} with {n} warning|{what} with {n} warnings {what} cu {n} avertisment|{what} cu {n} avertismente|{what} cu {n} de avertismente + Light Blue Albastru deschis + Light Red Roșu deschis + Medium Blue Albastru mediu + Light Gray Gri deschis + Object Finder Căutător de obiecte + No object found there — drag a rectangle around it Niciun obiect găsit acolo — trageți un rectangul în jurul lui + The active layer has no pixels here — turn on Sample All Layers or select a layer with pixels Stratul activ nu are pixeli aici — activați Eșantionare toate straturile sau selectați un strat cu pixeli + Remove after each stroke Eliminare după fiecare tușă + Apply the removal ({key}) Aplicare eliminare ({key}) + Strokes to remove: {n} (Enter applies, Esc cancels) Tușe de eliminat: {n} (Enter aplică, Esc anulează) + Load Contours… Încărcare contururi… + Replace Contours… Înlocuire contururi… + Save Contours… Salvare contururi… + Delete Contour Ștergere contur + Loaded contours from {file} S-au încărcat contururile din {file} + Saved contours to {file} S-au salvat contururile în {file} +@id select.all Selectare tot + Delete Smart Filters Ștergere filtre inteligente + Enable Smart Filters Activare filtre inteligente + Delete Layer… Ștergere strat… + Select Similar Colors Selectare culori similare + Canvas rotation Rotație pânză + Extensions Extensii + Libraries Biblioteci + 3D 3D + Toolbars Bare de instrumente + Wand Baghetă + Healing Corector + Pen Pană + Hand Mână + Sampler Eșantionator + Magnetic Lasso Lasou magnetic + Art History Brush Pensulă istoric artistic + Spot Healing Corector punctual + Patch Plasture + Content-Aware Move Deplasare cu detecție de conținut + Perspective Crop Decupare cu perspectivă + Dodge/Burn Luminare/Întunecare + Dynamics Dinamică + Tilt Înclinare + Defaults restored. Valorile implicite au fost restaurate. + Stop Stop + Create new set Creare set nou + Technology Previews Previzualizări de tehnologie + Create new layer Creare strat nou + Group · {n} layer Grup · {n} strat + General Blend Fuziune generală + Advanced Blending Fuziune avansată + RGB RGB + Spot Channel Canal de culoare plană + Working Gray Plate Placă gri de lucru + HSL/Grayscale HSL/Tonuri de gri + Tone Curve Curbă de tonuri + Split Toning Divizare de tonuri + Lens Corrections Corecții obiectiv + Camera Calibration Calibrare cameră + Snapshots Instantanee + Recovery Recuperare + Fill Light Lumină de umplere + Convert to Grayscale Conversie în tonuri de gri + Sharpness Claritate + Color Noise Reduction Reducere zgomot de culoare + Luminance Smoothness Netezime luminanță + Lens Obiectiv + ISO ISO + Focal Length35mm Distanță focală echivalentă (35 mm) + Aspect Ratio Raport de aspect + Time Oră + Enter description… Introduceți o descriere… + ColorSync ColorSync + ProPhoto ProPhoto + ACES ACES + Industry Standard Standard industrial + Uncoated CMYK CMYK pentru hârtie nemăsluită + Newspaper Hârtie de ziar + Working Spaces Spații de lucru + Color Management Policies Politici de gestionare a culorii + Detect Faces Detectare fețe + Localize Color Clusters Localizare grupuri de culoare + Duplicated selection name Nume de selecție duplicat + Operation Operație + New channel only Numai canal nou + Color indicates Culoarea indică + Create Snapshot Creare captură + Delete Snapshot Ștergere captură + New Snapshot Captură nouă + Snapshot 1 Captură 1 + Step Forward Avansare un pas + Step Backward Retragere un pas + Nonlinear History Istoric neliniar + Set New Snapshot as Default Stabilire captură nouă ca implicită + Automatically Create First Snapshot Creare automată a primei capturi + Automatically Create New Snapshot When Saving Creare automată a unei capturi noi la salvare + Show New Snapshot Dialog by Default Afișare implicită a dialogului Captură nouă + Clear History Ștergere istoric + View menu Meniu Vizualizare + Keep view in sync Menținere vizualizare sincronizată + {zoom}% {zoom}% + Mouse Controls Controale mouse + Initial Direction of Stroke Direcție inițială a tușei + Direction of Stroke Direcție tușă + Humidity Umiditate + Auto Clean Brush Curățare automată pensulă + Spacing: Spațiere: + New Layer from Brush Strat nou din pensulă + New Brush Pensulă nouă + New Tool Preset Presetare de instrument nouă + Auto-Leading Interlinie automată + Scale Horizontally Scalare orizontală + Scale Vertically Scalare verticală + Mac LCD LCD Mac + Mac Sharp Clar Mac + Mac Crisp Definit Mac + Mac Strong Puternic Mac + Mac Smooth Suavizat Mac + Superscript Exponent superior + Subscript Exponent inferior + Ligature Ligatură + Alternative Alternativă + Ultra Light Ultra fină + Extra Light Extra fină + Semi Bold Semi Bold + Extra Bold Extra Bold + Ultra Bold Ultra Bold + Condensed Condensată + First Line Indent Indentare primă linie + Hanging Punctuation Punctuație suspendată + Roman Hanging Punctuation Punctuație latină suspendată + Avoid Widows/Orphans Evitare linii văduve/orfane + Compose Compunere + Adobe Single-line Composer Compozitor Adobe cu o linie + Adobe Every-line Composer Compozitor Adobe multilinie + Word Spacing Spațiu între cuvinte + Letter Spacing Spațiu între caractere + Glyph Scaling Scalare glife + Auto-leading % Interlinie automată % + Single Word Justification Justificare pentru un singur cuvânt + Justify Justificare + Glyph Glif + Alternates for Current Selection Alternative pentru selecția curentă + Digits Cifre + Path: Traseu: + Path to Illustrator… Traseu către Illustrator… + Clipping Path Traseu de tăiere + New Path Traseu nou + Duplicate Path Duplicare traseu + Rename Path… Redenumire traseu… + Auto-Hide Ascundere automată + X X + Y Y + Frame Sync Sincronizare cadre + Quick Sync Sincronizare rapidă + Audio Audio + Frame Duration Durată cadru + Loop Buclă + Split at Playhead Divizare la capul de redare + Flatten Frames Into Clips Aplatizare cadre în clipuri + Flatten Frames Into Layers Aplatizare cadre în straturi + Convert Frames > Video Layers Conversie cadre > Straturi video + New Video Layer Strat video nou + New Video Group Grup video nou + Limit Playback Limitare redare + Enable Timeline Quick Config Activare configurare rapidă a cronologiei + Set Start Timecode… Stabilire cod de timp inițial… + Timecode Cod de timp + 30 fps 30 fps + 25 fps 25 fps + 24 fps 24 fps + 15 fps 15 fps + 10 fps 10 fps + Current Time Timp curent + Out Ieșire + In Intrare + Duration Durată + Repeat Repetare + Play Once Redare o dată + Info Options… Opțiuni informații… + First Color Readout Prima lectură de culoare + Second Color Readout A doua lectură de culoare + Actual Color Culoare reală + Grayscale Slider Regulator tonuri de gri + Web Color Culoare web + HSB Color Culoare HSB + Total Ink Cerneală totală + Opacity Mask Mască de opacitate + Document Size Dimensiune document + Timing Temporizare + Status Information Informații de stare + Saved Multichannel Multicanal salvat + Mouse Coordinates Coordonate mouse + Ruler Units Unități riglă + Hide Ascundere + Restore last viewed comp Restaurare ultima compoziție vizualizată + Select All Layers Selectare toate straturile + Keep proportions Păstrare proporții + Interpolation Interpolare + Caption Legendă + Caption Credits Credite legendă + Keywords Cuvinte cheie + Copyright Info URL URL informații drepturi de autor + Copyright Status Stare drepturi de autor + Copyright Notice Mențiune drepturi de autor + Document Title Titlu document + Copyrighted Cu drepturi de autor + Public Domain Domeniu public + Unknown Necunoscut + Credit Credit + Transmission Reference Referință transmisie + Urgency Urgență + High Ridicată + Low Scăzută + Category Categorie + Supplemental Categories Categorii suplimentare + Object Name / Title Nume obiect / titlu + Date Created Data creării + City Oraș + Province / State Provincie / stat + Country Țară + Byline Autor + Byline Title Funcția autorului + Phone Telefon + Email E-mail + URLs URL-uri + Last Modified Ultima modificare + EXIF EXIF + GPS GPS + Camera Model Model cameră + Camera Make Producător cameră + EXIF Version Versiune EXIF + Exposure Program Program de expunere + Aperture Diafragmă + Shutter Speed Viteză obturator + Metering Mode Mod de măsurare + Light Source Sursă de lumină + Flash Blitz + Lens Info Informații obiectiv + ISO Speed Sensibilitate ISO + Subject Distance Distanță subiect + DateTime Original Dată și oră originale + Create Date Dată creare + Modify Date Dată modificare + Raw Data Date brute + Import… Import… + PDF Presentation… Prezentare PDF… + Create Multiple Picture Packages Creare mai multe seturi de imagini + Picture Package… Set de imagini… + Web Photo Gallery… Galerie foto web… + Choose… Alegere… + Select Folder… Selectare folder… + Override Action "Save" Commands Omitere comenzi „Salvare” ale acțiunii + File Naming Denumire fișiere + Compatibility Compatibilitate + Mac OS Mac OS + Unix Unix + Include ICC Profile Includere profil ICC + Error File Fișier de erori + Stop For Errors Întrerupere la erori + Log Errors To File Înregistrare erori într-un fișier + Errors Erori + Settings Setări + Settings: Setări: + Working Space Spațiu de lucru + RGB: RGB: + CMYK: CMYK: + Gray: Gri: + Spot: Plană: + Advanced Controls Controale avansate + Desaturate Monitor Colors By Desaturare culori monitor cu + Blend RGB Colors Using Gamma 1.0 Fuziune culori RGB folosind gamma 1,0 + Profile Mismatches: Ask When Opening Diferențe de profil: întrebare la deschidere + Ask When Pasting Întrebare la inserare + Missing Profiles: Ask When Opening Profiluri lipsă: întrebare la deschidere + Embed profiles Încorporare profiluri + Ask Before Saving Saved Embedded Întrebare înainte de a salva profilul încorporat + Coerce to sRGB Forțare sRGB + sRGB IEC61966-2.1 sRGB IEC61966-2.1 + Adobe RGB (1998) Adobe RGB (1998) + ProPhoto RGB ProPhoto RGB + ColorMatch RGB ColorMatch RGB + Wide Gamut RGB RGB cu gamă largă + Apple RGB Apple RGB + NTSC (1953) NTSC (1953) + PAL/SECAM PAL/SECAM + SMPTE C SMPTE C + HDTV (Rec. 709) HDTV (Rec. 709) + CIE RGB CIE RGB + Minimalistic Minimalist + Expand All Groups Expandare toate grupurile + Photo (2 × 3 in) Foto (2 × 3 in.) + Photo (4 × 6 in) Foto (4 × 6 in.) + Photo (5 × 7 in) Foto (5 × 7 in.) + Photo (8 × 10 in) Foto (8 × 10 in.) + Recent Items Elemente recente + Delete Preset… Ștergere presetare… + Preset Name: Nume presetare: + Width and Height Lățime și înălțime + Color Profile Profil de culoare + Units Unități + Create new count group Creare grup de numărare nou + Adjustment Layer Strat de ajustare + Drag to move the layer Trageți pentru a deplasa stratul + Go to Layer Salt la strat + After (X) După (X) + Reference point location Locație punct de referință + Toggle reference point Afișare sau ascundere punct de referință + Add Pins Adăugare pini + Delete Pins Ștergere pini + Rotate Auto Rotire automată + Rotate Fixed Rotire fixă + Select Plane Selectare plan + Measure Măsurare + Heal Corectare + Heal Off Corecție dezactivată + Heal On Corecție activată + Heal Auto Corecție automată + Blend Fuziune + Brush Size Dimensiune pensulă + Heal Color Culoare corecție + Result Rezultat + Duplicate Duplicare + Fast Rapid + Accurate Precisă + Add to Adăugare la + Subtract from Scădere din + Intersect with Intersectare cu + Capture Comp Capturare compoziție + No Layer Comps Nicio compoziție de strat + Adobe PDF Presets… Presetări Adobe PDF… + 3D… 3D… + Technology Previews… Previzualizări de tehnologie… + Add a mask (from the selection; ⌥ inverts) Adăugare mască (din selecție; ⌥ inversează) + Add to selection (⇧) Adăugare la selecție (⇧) + Airbrush: keeps painting while the pointer rests. Aerograf: continuă să picteze cât timp cursorul rămâne nemișcat. + Click the first point or press ↵ to close · Esc cancels Faceți clic pe primul punct sau apăsați ↵ pentru a încheia · Esc anulează + Click to add a point · drag off or ⌘/Ctrl-click or Delete to remove Faceți clic pentru a adăuga un punct · trageți departe sau ⌘/Ctrl-clic sau Delete pentru a elimina + Click to apply, ⌥-click to clear overrides, double-click for Style Options Faceți clic pentru a aplica, ⌥-clic pentru a elimina excepțiile, dublu clic pentru Opțiuni de stil + Click to zoom in · ⌥-click to zoom out Clic pentru mărire · ⌥-clic pentru micșorare + Click: corner · Drag: smooth · Click first point: close · ↩ finish · Esc cancel Clic: colț · Tragere: netezire · Clic pe primul punct: încheiere · ↩ finalizare · Esc anulare + Commit Perspective Warp (↩) Confirmare Deformare de perspectivă (↩) + Commit Puppet Warp (↩) Confirmare Deformare marionetă (↩) + Commit any current edits (⌘↩) Confirmare editări curente (⌘↩) + Commit current crop operation (↵) Confirmare operație de decupare curentă (↵) + Commit transform (↩) Confirmare transformare (↩) + Commit warp (↩) Confirmare deformare (↩) + Create a new layer (⇧⌘N) Creare strat nou (⇧⌘N) + Custom pattern Model personalizat + General Brushes Pensule generale + Grid (⌘') Grilă (⌘') + Intersect with selection (⇧⌥) Formare intersecție cu selecția (⇧⌥) + New document… ⌘N Document nou… ⌘N + Open… ⌘O Deschidere… ⌘O + Rulers (⌘R) Rigle (⌘R) + Search commands (⌘K) Căutare comenzi (⌘K) + Show Guides (⌘;) Afișare ghidaje (⌘;) + Subtract from selection (⌥) Scădere din selecție (⌥) + Uses the foreground and background colors. Utilizează culorile frontală și de fundal. + ↑↓ navigate ↵ run esc close ↑↓ navigare ↵ executare esc închidere + Adds grain to the soft edges of the brush tip. Adaugă granulație marginilor moi ale vârfului pensulei. + Keeps the current texture when switching presets. Păstrează textura curentă la comutarea presetărilor. + Watercolour look: lighter interior, darker rims. Aspect de acuarelă: interior mai clar, margini mai întunecate. + Collapse group (⌥-click: all groups) Restrângere grup (⌥-clic: toate grupurile) + Expand group (⌥-click: all groups) Expandare grup (⌥-clic: toate grupurile) + Hide the layer's effects (⌥-click: all layers) Ascundere efectele stratului (⌥-clic: toate straturile) + Show the layer's effects (⌥-click: all layers) Afișare efectele stratului (⌥-clic: toate straturile) +cameraRaw Blacks Negre +cameraRaw Masking Mascare +@id edit.stroke Contur… +@id edit.transform.scale Scalare +cameraRaw Luminance Luminanță +cameraRaw Color Culoare +cameraRaw Vibrance Vibranță +cameraRaw Color Grading Gradare culoare +cameraRaw Global Global +cameraRaw Hue Nuanță +cameraRaw Luminance Detail Detaliu luminanță +cameraRaw Color Detail Detaliu culoare +cameraRaw Roughness Rugozitate +cameraRaw Whites Albe +layerLabel No Color Fără culoare + Preferences… Preferințe… + Actual Pixels Pixeli reali + Clipping Mask Mască de tăiere + Tool Options Opțiuni instrument + Color Swatches Mostre de culoare + Linear Dodge Sobreexpunere liniară + Preview Image Previzualizare imagine + Save As Salvare ca + Remove All Eliminare tot + Unlock Deblocare + Enable Activare + Disable Dezactivare + On Activat + Clear Selection Golire selecție + Invert Selection Inversare selecție + Select Inverse Inversare selecție + Contract Contractare + Sample Size Dimensiune eșantion + Gamma Gamma + Input Intrare + Input Levels Niveluri de intrare + Output Levels Niveluri de ieșire + Layer Styles Stiluri de strat + Blending Mode Mod de amestecare + Stroke Width Lățime trasou + Shadow Umbră + Adjustment Layers Straturi de ajustare + Text Layer Strat de text + Documents Documente + File Name Nume fișier + File Format Format fișier + Compression Compresie + Artboards Planșe de lucru + Snap to Grid Fixare la grilă + Full Screen Ecran complet + Fullscreen Ecran complet + Workspaces Spații de lucru + Show All Afișare tot + Hidden Ascuns + Duplicate Layer Duplicare strat + Ungroup Degrupare + Guide Layout… Aranjament de ghidaje… + Page Setup… Configurare pagină… + Reset Preferences Resetare preferințe + Documentation Documentație + Check for Updates Căutare actualizări + Loading… Se încarcă… + Processing… Se procesează… + Saving… Se salvează… + Exporting… Se exportă… + Please wait… Așteptați… + No selection Fără selecție + No layers Niciun strat + No recent files Niciun fișier recent + Unsupported file format Format de fișier neacceptat + Failed to open file Deschiderea fișierului a eșuat + Failed to save file Salvarea fișierului a eșuat + Operation canceled Operație anulată + Changes have not been saved. Modificările nu au fost salvate. + Are you sure? Sunteți sigur? + Discard Changes Renunțare la modificări + Open File Deschidere fișier + Save File Salvare fișier + Save Changes Salvare modificări + Rendering… Se randează… + Importing… Se importă… + Ready Pregătit + Failed Nereușit + Warning Avertisment + Information Informații + Retry Reîncercare + Continue Continuare + Skip Omitere + Resume Reluare + Reset All Resetare tot + Defaults Valori implicite + Apply to All Aplicare la tot + Confirm Confirmare + Finish Finalizare + Back Înapoi + Next Următor + Previous Anterior + More Mai mult + Less Mai puțin + Manual Manual + Disabled Dezactivat + Locked Blocat + Unlocked Deblocat + Delete… Ștergere… + Create… Creare… + Edit… Editare… + Change… Modificare… + Transformation Transformare + Scaling Scalare + Canvas Size Dimensiune pânză + Percentage Procentaj + Degrees Grade + Middle Centru + Diameter Diametru + Intensity Intensitate + Sensitivity Sensibilitate + Softness Moliciune + Feather Radius Rază calare + Library Bibliotecă + Layer Properties Proprietăți strat + Groups Grupuri + Masks Măști + Add Mask Adăugare mască + Delete Mask Ștergere mască + Invert Mask Inversare mască + Enable Mask Activare mască + Disable Mask Dezactivare mască + Apply Mask Aplicare mască + Import Settings Import setări + Export Settings Export setări + Shortcuts Comenzi rapide + Keyboard Tastatură + Mouse Mouse + Tablet Tabletă + Display Afișaj + Panel Panou + Hide Grid Ascundere grilă + Fit to Window Încadrare în fereastră + Live Preview Previzualizare în direct + Before Înainte + After După + Compare Comparare + File Size Dimensiune fișier + Filename Nume fișier + Open Folder Deschidere folder + Choose Folder Alegere folder + Browse Răsfoire + Find Găsire + Replace Înlocuire + Date Dată + Learn More Aflați mai multe + Report a Bug Raportare eroare + Updates Actualizări + Update Actualizare + Restart Required Este necesară repornirea + Restart Repornire + Quit Ieșire + Quit PhotoCraft Ieșire din PhotoCraft + Close Window Închidere fereastră + New Window Fereastră nouă + Open Image Deschidere imagine + Save Image Salvare imagine + Export Image Export imagine + Import Image Import imagine + Export As Export ca + Export to Export către + Export Options Opțiuni export + Import Options Opțiuni import + No Selection Fără selecție + No Image Fără imagine + No Layers Fără straturi + No Results Niciun rezultat + No Results Found Nu s-au găsit rezultate + Nothing to Undo Nimic de anulat + Nothing to Redo Nimic de refăcut + Changes Saved Modificări salvate + Save before closing? Salvați înainte de a închide? + Are you sure you want to quit? Sunteți sigur că doriți să ieșiți? + The file could not be opened. Fișierul nu a putut fi deschis. + The file could not be saved. Fișierul nu a putut fi salvat. + Unsupported format Format neacceptat + Out of memory Memorie insuficientă + Permission denied Permisiune refuzată + File not found Fișierul nu a fost găsit + Operation failed Operație nereușită + Operation completed Operație finalizată + Operation cancelled Operație anulată + Sharpen Amount Cantitate clarificare + Sharpen Radius Rază clarificare + Sharpen Detail Detaliu clarificare + Sharpen Masking Mascare clarificare + Noise Luminance Luminanță zgomot + Noise Luminance Detail Detaliu luminanță zgomot + Noise Color Culoare zgomot + Noise Color Detail Detaliu culoare zgomot + Grain Amount Cantitate granulație + Grain Size Dimensiune granulație + Grain Roughness Rugozitate granulație + Vignette Roundness Rotunjime vinietă + Vignette Feather Calare vinietă + Vignette Highlights Luminile vinietei + Vignette Style Stil vinietă + Planes Planuri + Plane Plan + Shadow Amount Cantitate umbră + Shadow Tone Ton umbră + Shadow Radius Rază umbră + Highlight Amount Cantitate lumini + Highlight Tone Ton lumini + Highlight Radius Rază lumini + Midtone Ton mediu + Black Clip Tăiere negru + White Clip Tăiere alb + Fuzziness Toleranță + Source Layer Strat sursă + Neutralize Neutralizare + Use Selection In Source Utilizare selecție în sursă + Use Selection In Target Utilizare selecție în destinație + Flame Type Tip flacără + Randomize Length Aleatorizare lungime + Interval Interval + Adjust Interval For Loops Ajustare interval pentru bucle + Use Custom Color Utilizare culoare personalizată + Flame Lines Linii de flacără + Flame Bottom Alignment Aliniere inferioară a flăcării + Flame Style Stil flacără + Flame Shape Formă flacără + Randomize Shapes Aleatorizare forme + Frame Cadru + Arrangement Aranjare + Thickness Grosime + Vine Color Culoare viță + Flower Color Culoare floare + Leaf Color Culoare foi + Base Tree Type Tip arbore de bază + Light Direction Direcție lumină + Leaves Amount Cantitate foi + Leaves Size Dimensiune foi + Branches Height Înălțime ramuri + Branches Thickness Grosime ramuri + Default Leaves Foi implicite + Leaves Color Culoare foi + Custom Branch Color Culoare personalizată ramuri + Branches Color Culoare ramuri + Flat Shading Umbrire plată + Date and Time Dată și oră + Scale Units Unități scară + Scale Factor Factor de scară + Area Zonă + Perimeter Perimetru + Circularity Circularitate + Gray Value (Minimum) Valoare gri (minimum) + Gray Value (Maximum) Valoare gri (maximum) + Gray Value (Mean) Valoare gri (medie) + Gray Value (Median) Valoare gri (mediană) + Integrated Density Densitate integrată + Length Lungime + In Black Negru intrare + In White Alb intrare + Out Black Negru ieșire + Out White Alb ieșire + Tint Color Culoare tentă + Stops Marcaje + Center X Centru X + Center Y Centru Y + Cell Size Dimensiune celulă + Generators Generatoare + Wavelength Min Lungime de undă min. + Wavelength Max Lungime de undă max. + Amplitude Min Amplitudine minimă + Amplitude Max Amplitudine maximă + Undefined Areas Zone nedefinite + Preserve Conservare + Max Radius Rază maximă + Depth Mode Mod profunzime + Solid Front Faces Fețe frontale solide + Mask Incomplete Blocks Mascare blocuri incomplete + Stylization Stilizare + Cleanliness Curățenie + Bristle Detail Detaliu peri + Lighting Iluminare + Shine Lucire + Max Offset Decalaj maxim + Map Document Hartă document + Map Path Cale hartă + Map Layer Strat hartă + Ridges Creste + Light Type Tip lumină + Light X Lumină X + Light Y Lumină Y + Light Z Lumină Z + Target X Destinație X + Target Y Destinație Y + Hotspot Punct focal + Elevation Elevație + Ambient Ambiant + Warmth Căldură + Gloss Luciu + Metallic Metalic + Ambience Ambianță + White Is High Albul este ridicat + Blade Curvature Curbură lamă + Depth Map Hartă de profunzime + Focal Distance Distanță focală + Focus Focalizare + Transition Tranziție + Radius X Rază X + Radius Y Rază Y + Pins Pini + Speed Viteză + Taper Îngustare + Start X Start X + Start Y Start Y + End X Final X + End Y Final Y + Kernel Nucleu + Input Mode Mod de intrare + Row Order Ordine rânduri + Eliminate Eliminare + Create By Creare prin + List Listă + Pencil Width Lățime creion + Stroke Pressure Presiune tușă + Paper Brightness Luminozitate hârtie + Number Of Levels Număr de niveluri + Edge Simplicity Simplitate margine + Edge Fidelity Fidelitate margine + Brush Detail Detaliu pensulă + Highlight Area Zonă lumini + Glow Size Dimensiune strălucire + Glow Brightness Luminozitate strălucire + Brush Type Tip pensulă + Stroke Size Dimensiune tușă + Stroke Detail Detaliu tușă + Highlight Strength Intensitate lumini + Smoothness Netezime + Edge Thickness Grosime margine + Edge Intensity Intensitate margine + Posterization Posterizare + Stroke Length Lungime tușă + Relief Relief + Definition Definiție + Texture Coverage Acoperire textură + Shadow Intensity Intensitate umbre + Edge Width Lățime margine + Edge Brightness Luminozitate margine + Direction Balance Balans direcție + Black Intensity Intensitate negre + White Intensity Intensitate albe + Dark Intensity Intensitate întunecate + Custom Pixel Aspect Ratio Raport de aspect pixel personalizat + 32-bit Preview Options Opțiuni previzualizare 32 biți + New Guide Ghidaj nou + Join the ArtCraft Discord Alăturați-vă Discord-ului ArtCraft + Report an Issue Raportare problemă + Load Files into Stack Încărcare fișiere în stivă + Statistics Statistici + Duplicate Layers Duplicare straturi + Edit Toolbar Editare bară de instrumente + Import Brushes Import pensule + Load 3D LUT Încărcare LUT 3D + Press keys Apăsare taste + Rename Group Redenumire grup + Rename Tool Preset Redenumire presetare instrument + Search commands, tools and panels Căutare comenzi, instrumente și panouri + Slice Options Opțiuni felie + Rename Brush Redenumire pensulă + Opening Se deschide + Reading Se citește + Working Se procesează + Accented Edges Margini accentuate + Angled Strokes Tușe înclinate + Anisotropic Anizotropic + Around Center În jurul centrului + Artistic Artistic + Bamboo Bambus + Bas Relief Basorelief + Berries Fructe de pădure + Blast Explozie + Bleach Bypass Albire fotografică + Blocks Blocuri + Brick Cărămidă + Brush Strokes Tușe de pensulă + Burlap Pânză de sac + Candle Light Lumină de lumânare + Circle Cerc + Clumped Grupat + Coarse Dots Puncte groase + Colored Pencil Creion colorat + Contrasty Contrastant + Cool Rece + Craquelure Craclură + Cross Cruce + Cross Process Procesare încrucișată + Crosshatch Hașură încrucișată + Cutout Decupaje + Daisies Margarete + Dark Rough Rugos întunecat + Dark Strokes Tușe întunecate + Darken Only Numai întunecare + Day For Night Noapte americană + Deep Blue Albastru profund + Deep Emerald Smarald profund + Deep Red Roșu profund + Deep Yellow Galben profund + Dot Punct + Double Line Linie dublă + Draft Schiță + Dry Brush Pensulă uscată + Duplication Duplicare + Edge Extension Extensie margine + Edge Only Numai margine + Enlarged Mărit + Even Fields Câmpuri pare + Faded Film Film decolorat + Film Grain Granulație film + Fine Fin + Fine Dots Puncte fine + Flat Plat + Fresco Fresco + From Left Din stânga + From Right Din dreapta + Frosted Glazurat + Generic Generic + Glass Sticlă + Glowing Edges Margini strălucitoare + Grainy Dots Puncte granulate + Hearts Inimi + Heptagon Heptagon + Hexagon Hexagon + Horizontal Only Numai orizontal + Infinite Infinit + Ink Outlines Contururi cu tuș + Ivy Iederă + Left Diagonal Diagonală stânga + Level Based Bazat pe niveluri + Light Rough Rugos clar + Lighten Only Numai luminare + Long Lines Linii lungi + Long Strokes Tușe lungi + Lower Inferior + Medium Dots Puncte medii + Medium Lines Linii medii + Medium Strokes Tușe medii + Mono Contrast Contrast monocrom + Mosaic Tiles Plăci de mozaic + Multiple Flames Along Path Mai multe flăcări de-a lungul traseului + Multiple Flames One Direction Mai multe flăcări într-o direcție + Multiple Flames Path Directions Mai multe flăcări în direcțiile traseului + Multiple Flames Various Length Mai multe flăcări de lungimi diferite + Octagon Octagon + Odd Fields Câmpuri impare + One Flame Along Path O flacără de-a lungul traseului + Out From Center Dinspre centru în exterior + Oval Oval + Overlay Edge Margine suprapusă + Palette Knife Spatulă + Parallel Paralel + Patchwork Petice + Pentagon Pentagon + Point Punct + Pointed Ascuțit + Pond Ripples Unde de iaz + Pyramids Piramide + Random Aleatoriu + Right Diagonal Diagonală dreapta + Rope Coardă + Roses Trandafiri + Sandstone Gresie + Scallops Scoici + Sepia Sepia + Short Lines Linii scurte + Short Strokes Tușe scurte + Simple Simplu + Light Intensity Intensitate lumină + Spray Radius Rază pulverizare + Stroke Direction Direcție tușă + Graininess Granulozitate + Glow Amount Cantitate strălucire + Clear Amount Cantitate transparență + Distortion Distorsiune + Ripple Size Dimensiune undă + Ripple Magnitude Magnitudine undă + Charcoal Area Zonă carboncium + Chalk Area Zonă cretă + Charcoal Thickness Grosime carboncium + Light Dark Balance Balans clar/întunecat + Foreground Level Nivel frontal + Background Level Nivel fundal + Pattern Type Tip model + Image Balance Balans imagine + Darkness Întuneciune + Fiber Length Lungime fibră + Crack Spacing Spațiere crăpături + Crack Depth Profunzime crăpături + Crack Brightness Luminozitate crăpături + Grain Type Tip granulație + Tile Size Dimensiune plăcuță + Grout Width Lățime rost + Lighten Grout Luminare rost + Square Size Dimensiune pătrat + Border Thickness Grosime margine + Correct Distortion Corectare distorsiune + Correct Vignette Corectare vinietă + Correct C A Corectare AC + Auto Scale Scalare automată + Red Cyan Roșu/cian + Blue Yellow Albastru/galben + Vignette Amount Cantitate vinietă + Vignette Midpoint Punct median vinietă + Constraints Constrângeri + Curve Highlights Curbă lumini + Curve Lights Curbă luminile + Curve Darks Curbă umbrele + Curve Shadows Curbă umbre + Curve Splits Diviziuni curbă + Point Curve Curbă de puncte + Point Curve Red Curbă de puncte roșie + Point Curve Green Curbă de puncte verde + Point Curve Blue Curbă de puncte albastră + Hsl Hue Nuanță HSL + Hsl Sat Saturație HSL + Hsl Lum Luminanță HSL + Grade Shadows Gradare umbre + Grade Midtones Gradare tonuri medii + Grade Highlights Gradare lumini + Grade Global Gradare globală + Grade Blending Fuziune gradare + Grade Balance Balans gradare + Sine Sinusoidal + Sketch Schiță + Snowflakes Fulgi de nea + Sparkle Sclipiri + Spatter Stropi + Speckle Pigmentare + Spin Rotire + Sprinkles Presărare + Squareness Caracter pătrat + Stagger Decalat + Stained Glass Vitraliu + Star Stea + Stars Stele + Stippled Punctat + Stretch Întindere + Teal Orange Verde-azuriu și portocaliu + Tiny Lens Lentilă mică + To Center Spre centru + Unaltered Nealterat + Underpainting Pictură de bază + Underwater Subacvatic + Upper Superior + Vertical Only Numai vertical + Vine With Flowers Enredadera cu flori + Vine With Leaves Viță cu foi + Violent Violent + Warm Cald + Watercolor Acuarelă + Waves Unde + Wide Blurry Larg neclar + Wide Sharp Larg clar + Wrap Învăluire + Zigzag Zigzag + Wetness Umiditate + AI Integrations Integrări AI + Add Noise Adăugare zgomot + Apply Data Set Aplicare set de date + Apply Image Aplicare imagine + Arbitrary Arbitrar + Artboard from Group Planșă de lucru din grup + Artboard from Layers Planșă de lucru din straturi + Artboards to Files Planșe de lucru în fișiere + Artboards to PDF Planșe de lucru în PDF + Assign Profile Asignare profil + At La + Auto-Align Layers Alinierea automată a straturilor + Auto-Blend Layers Combinarea automată a straturilor + Batch Lot + Border Margine + Box Blur Neclaritate cutie + Calculations Calcule + Camera Raw Camera Raw + Camera Raw Filter Filtru Camera Raw + Channel1 Canal 1 + Channel2 Canal 2 + Channel3 Canal 3 + Channel4 Canal 4 + Clone Clonare + Color Decontaminate Decontaminare culoare + Color Halftone Semiton color + Color Lookup Tables Tabele de căutare a culorilor + Color Settings Setări de culoare + Color Table Tabel de culori + Conditional Mode Change Schimbare condiționată a modului + Content-Aware Fill Umplere sensibilă la conținut + Convert to Linked Conversie în conectat + Convert to Profile Conversie la profil + Crystallize Cristalizare + Data Date + Data Sets as Files Seturi de date ca fișiere + De-Interlace Dezîntrețesere + Define Brush Preset Definire presetare pensulă + Define Custom Shape Definire formă personalizată + Define Pattern Definire model + Defringe Eliminare halouri + Diffuse Difuzare + Diffuse Glow Strălucire difuză + Displace Deplasare + Do you want to save you made to “{name}” before quitting? Doriți să salvați modificările făcute la „{name}” înainte de a închide programul? + Dust & Scratches Praf și zgârieturi + Export Contents Export conținut + Export Preferences Preferințe export + Export/Import Presets Export/import presetări + Extrude Extrudare + Fibers Fibre + Field Blur Neclaritate câmp + File Info Informații fișier + Filter Gallery Galerie de filtre + Find and Replace Text Găsire și înlocuire text + Fit Image Încadrare imagine + Flame Flacără + Focus Area Zonă de focalizare + Gaussian Blur Neclaritate gaussiană + Global Light Lumină globală + Group from Layers Grup din straturi + HDR Toning Tonalizare HDR + High Pass Trecere de sus + Highlight Lumini + Image Processor Procesor de imagini + Install Plug-in Instalare plugin + Interpret Footage Interpretare material video + Iris Blur Neclaritate iris + Jag Zimțat + Label Etichetă + Layer Comps to Files Compoziții de straturi în fișiere + Layer Content Options Opțiuni conținut strat + Layer From Background Strat din fundal + Layer from Background Strat din fundal + Layers to Files Straturi în fișiere + Legacy Veche + Lens Blur Neclaritate lentilă + Lens Correction Corecție obiectiv + Lens Flare Reflexie lentilă + Lighting Effects Efecte de iluminare + Liquify Lichefiere + Lum Lum + Match Color Potrivire culoare + Merge to HDR Pro Îmbinare în HDR Pro + Mezzotint Mezzotintă + Mosaic Mozaic + Motion Blur Neclaritate mișcare + Native file drag-and-drop is not supported on Wayland yet. Use File › Open, or run PhotoCraft under XWayland with `WAYLAND_DISPLAY= photocraft`. Tragerea și plasarea nativă a fișierelor nu este încă suportată pe Wayland. Utilizați Fișier › Deschidere, sau porniți PhotoCraft prin XWayland cu `WAYLAND_DISPLAY= photocraft`. + Neon Glow Strălucire neon + New Guide Layout Aranjament nou de ghidaje + New Video Layer from File Strat video nou din fișier + Ocean Ripple Ondulație oceanică + Oil Paint Pictură în ulei + Open As Deschidere ca + Package Împachetare + Paint Daubs Pete de pictură + Path Blur Neclaritate traseu + Paths to Illustrator Trasee către Illustrator + Photomerge Photomerge + Picture Frame Ramă foto + Pinch Ciupire + Place Embedded Plasare încorporată + Place Linked Plasare conectată + Place Scale Marker Plasare marcator de scară + Plastic Wrap Înveliș de plastic + Pointillize Pointilism + Polar Coordinates Coordonate polare + Polar To Rectangular Polar la rectangular + Poster Edges Margini posterizate + Preset Manager Administrator presetări + Profile Profil + Radial Blur Neclaritate radială + Raw Defaults Valori implicite Raw + Rectangular To Polar Rectangular la polar + Relink to File Reconectare la fișier + Render Video Randare video + Replace Color Înlocuire culoare + Replace Contents Înlocuire conținut + Replace Footage Înlocuire material video + Resolve Missing Fonts Rezolvare fonturi lipsă + Ripple Ondulație + Rough Pastels Pasteluri aspre + Sat Sat + Save a Copy Salvare copie + Save for Web (Legacy) Salvare pentru web (vechi) + Scale Effects Scalare efecte + Script Events Manager Administrator evenimente script + Search menus Căutare în meniuri + Select and Mask Selecție și mască + Set Measurement Scale Definire scară de măsurare + Shadows/Highlights Umbre/luminile + Shape Blur Neclaritate formă + Shear Forfecare + Smart Blur Neclaritate inteligentă + Smart Sharpen Clarificare inteligentă + Smudge Stick Difumino + Solid Color Culoare solidă + Spherize Sferizare + Spin Blur Neclaritate rotație + Spot Foc + Sprayed Strokes Tușe pulverizate + Strokes Tușe + Sumi-e Sumi-e + Surface Blur Neclaritate suprafață + Texturizer Texturizare + Tiles Plăci + Tilt-Shift Înclinare-deplasare + Trace Contour Trasare contur + Trap Trapping + Tree Copac + Trim Ajustare margini + Turbulent Turbulent + Twirl Vârtej + Unsharp Mask Mască de claritate + Use File › Open to open an image. Utilizați Fișier › Deschidere pentru a deschide o imagine. + Vanishing Point Punct de fugă + Variable Data Sets Seturi de date variabile + Video Frames to Layers Cadre video în straturi + WIA Support Suport WIA + Warp Text Deformare text + Wind Vânt + Vertical Type Tool Instrument Text vertical + About {app} Despre {app} + Hide {app} Ascundere {app} + Quit {app} Ieșire din {app} + Services Servicii + Hide Others Ascundere celelalte + Lut LUT + Cooling L B B Răcire LBB + Cooling80 Răcire 80 + Cooling82 Răcire 82 + Hsb HSB + Hsl HSL + Movie Prime Film Prime + Prime105 Obiectiv fix de 105 mm + Prime35 Obiectiv fix de 35 mm + Warming L B A Încălzire LBA + Warming81 Încălzire 81 + Warming85 Încălzire 85 +@id filter.sharpen.sharpen Clarificare + Good Bună + Best Cea mai bună + Adjustment Properties Proprietăți ajustare + Default Foreground and Background Colors Culori frontală și de fundal implicite + Move Layer Deplasare strat + Rectangular Selection Selecție rectangulară + Reorder Layer Reordonare strat + Select Layer Selectare strat + Set Colors Stabilire culori + Switch Foreground and Background Colors Interschimbare culori frontală și de fundal + Target Destinație + Make Work Path… Creare traseu de lucru… + Create Vector Mask Creare mască vectorială + Make Selection… Creare selecție… + Fill Path… Umplere traseu… + Clipping Path… Traseu de tăiere… + Free Transform Path Transformare liberă traseu + Unite Shapes at Overlap Unire forme la suprapunere + Subtract Shapes at Overlap Scădere forme la suprapunere + Copy Fill Copiere umplere + Copy Complete Stroke Copiere trasou complet + Paste Fill Inserare umplere + Paste Complete Stroke Inserare trasou complet + Make Symmetry Path Creare traseu de simetrie + Disable Symmetry Path Dezactivare traseu de simetrie + Select Custom Color… Selectare culoare personalizată… + Color Picker (Custom Canvas Color) Selector de culoare (culoare pânză personalizată) + Duplicate Channel Duplicare canal + Delete Channel Ștergere canal + Rename Channel… Redenumire canal… + Merge Spot Channel Combinare canal de culoare plană + Convert to Alpha Channel Conversie în canal alfa + Exit Quick Mask Ieșire din Mască rapidă + New Channel… Canal nou… + New Spot Channel… Canal de culoare plană nou… + Split Channels Divizare canale + Merge Channels… Combinare canale… + Color Indicates Masked Areas Culoarea indică zone mascate + Color Indicates Selected Areas Culoarea indică zone selectate + ✓ Color Indicates Masked Areas ✓ Culoarea indică zone mascate + ✓ Color Indicates Selected Areas ✓ Culoarea indică zone selectate + Up Sus + To Până la + Shallow Superficial + Deep Profund + Blend Interior Effects as Group Fuziune efecte interioare ca grup + Blend Clipped Layers as Group Fuziune straturi tăiate ca grup + Transparency Shapes Layer Strat de forme de transparență + Layer Mask Hides Effects Masca de strat ascunde efectele + Vector Mask Hides Effects Masca vectorială ascunde efectele + General Blending Fuziune generală + Underlying Layer: Strat subiacent: + Nothing to paste: the clipboard holds no image Nimic de inserat: clipboard-ul nu conține nicio imagine + Preferences saved Preferințe salvate + Invalid panel layout; restored the default dock Aranjament de panouri nevalid; s-a restaurat acoplarea implicită + Preferences were reset: {error} Preferințele au fost resetate: {error} + Recovered {name} S-a recuperat {name} + Couldn't save preferences: {error}. Retrying… Nu s-au putut salva preferințele: {error}. Se reîncearcă… + Autosave failed: {error} Salvarea automată a eșuat: {error} + Exported presets to {path} S-au exportat presetările în {path} + Ran script {name} S-a executat scriptul {name} + Sent to the printer ({spooler}) S-a trimis la imprimantă ({spooler}) + Printed to {path} S-a imprimat în {path} + Exported {path} ({size}) S-a exportat {path} ({size}) + Exported {path} S-a exportat {path} + Added swatch {name} S-a adăugat mostra {name} + Step {step} ({id}) failed: {error} Pasul {step} ({id}) a eșuat: {error} + Could not rename the action: {error} Nu s-a putut redenumi acțiunea: {error} + Action playback failed: {error} Redarea acțiunii a eșuat: {error} + Clone source set at {x}, {y} Sursă de clonare stabilită la {x}, {y} + Color management: {error} Gestionare culoare: {error} + Opened {url} S-a deschis {url} + No custom shape "{name}": pick one in the options bar or Window › Shapes Nu există formă personalizată „{name}”: alegeți una din bara de opțiuni sau Fereastră › Forme + Saved a copy as {path} S-a salvat o copie ca {path} + Exported contents to {path} S-a exportat conținutul în {path} + {label} is not available: {reason} {label} nu este disponibil: {reason} + Saved {path}; image assets: {n} in {dir} S-a salvat {path}; resurse imagine: {n} în {dir} + {message} (notes: {n}; {warning}) {message} (note: {n}; {warning}) + Preferences can't be saved Preferințele nu pot fi salvate + PhotoCraft keeps retrying; until a save succeeds, preference changes are lost when it closes. PhotoCraft va continua să încerce; până când o salvare are succes, modificările preferințelor se vor pierde la închidere. + GPU retry scheduled Reîncercare GPU programată + Save your work and restart PhotoCraft to retry GPU acceleration. CPU rendering remains active for this session. Salvați-vă munca și reporniți PhotoCraft pentru a reîncerca accelerarea GPU. Randarea pe CPU rămâne activă pentru această sesiune. + GPU device was lost; using the CPU renderer. Dispozitivul GPU s-a pierdut; se va folosi randorul CPU. + GPU error; using the CPU renderer. Eroare GPU; se va folosi randorul CPU. + Couldn't open {name}: {error} Nu s-a putut deschide {name}: {error} + Toggle the Brush Settings panel Afișare sau ascundere panou Setări pensulă + New Brush Preset Presetare de pensulă nouă + Grid view Vizualizare grilă + List view Vizualizare listă + {verb} {mask} {layer} {verb} {mask} {layer} + Unlink Deconectare + Link Conectare + Commit transform Confirmare transformare + Cancel transform Anulare transformare + Scroll menu up Derulare meniu sus + Scroll menu down Derulare meniu jos + This type layer must be rasterized before proceeding. Its text will no longer be editable. Rasterize the type? Acest strat de text trebuie rasterizat înainte de a continua. Textul său nu va mai fi editabil. Rasterizați textul? + This shape layer must be rasterized before proceeding. It will no longer be editable as a shape. Rasterize the shape? Acest strat de formă trebuie rasterizat înainte de a continua. Nu va mai fi editabil ca formă. Rasterizați forma? + This Smart Object must be rasterized before proceeding. Its contents will no longer be editable. Rasterize the Smart Object? Acest obiect inteligent trebuie rasterizat înainte de a continua. Conținutul său nu va mai fi editabil. Rasterizați obiectul inteligent? + This fill layer must be rasterized before proceeding. Its fill content will no longer be editable. Rasterize the layer? Acest strat de umplere trebuie rasterizat înainte de a continua. Conținutul său de umplere nu va mai fi editabil. Rasterizați stratul? + This layer must be rasterized before proceeding. Acest strat trebuie rasterizat înainte de a continua. + Color Picker (Background Color) Selector de culoare (culoare de fundal) + Color Picker (Foreground Color) Selector de culoare (culoare frontală) + Adwaita (Light) Adwaita (clar) + Adwaita (Dark) Adwaita (întunecat) + Open Recent is unavailable on the web Deschidere recente nu este disponibilă pe web + Graphics adapter: {adapter} Adaptor grafic: {adapter} + Backend: {backend} ({type}) Backend: {backend} ({type}) + Driver: {driver} Driver: {driver} + GPU backend preference: {backend} Preferință backend GPU: {backend} + Selected at launch: {backend} Selectat la pornire: {backend} + Image compositor: {processor} Compozitor imagini: {processor} + Fallback: {reason} Alternativă: {reason} + This session: {reason} Această sesiune: {reason} + Window renderer: {renderer} Randor fereastră: {renderer} + Software adapter Adaptor software + Graphics adapter Adaptor grafic + unknown type tip necunoscut + Platform: {os} {arch} Platformă: {os} {arch} + previous reading kept; the last re-read failed: {reason} s-a păstrat citirea anterioară; ultima recitire a eșuat: {reason} + Monitor profile: {profile} Profil monitor: {profile} + Display profiles: {reason} Profiluri afișaj: {reason} + Monitor profile in use on {display}: {profile} Profil monitor în uz pe {display}: {profile} + Monitor profile in use: {profile} Profil monitor în uz: {profile} + The canvas is shown as sRGB. Choose a monitor profile in Edit › Color Settings. Pânza este afișată ca sRGB. Alegeți un profil de monitor în Editare › Setări de culoare. + The canvas on {display} is shown as sRGB. Choose a monitor profile in Edit › Color Settings. Pânza de pe {display} este afișată ca sRGB. Alegeți un profil de monitor în Editare › Setări de culoare. + Display profile not used Profil de afișaj neutilizat + Monitor profile on {display} (main window): {profile} Profil monitor pe {display} (fereastra principală): {profile} + Monitor profile on {display}: {profile} Profil monitor pe {display}: {profile} + fallback alternativă + The document does not have an embedded colour profile. Working space: {working}. Documentul nu are un profil de culoare încorporat. Spațiu de lucru: {working}. + The document has an embedded colour profile that does not match the working space.\nEmbedded: {embedded}\nWorking: {working} Documentul are un profil de culoare încorporat care nu corespunde cu spațiul de lucru.\nÎncorporat: {embedded}\nLucru: {working} + Importing {what} from {file}… Se importă {what} din {file}… +@plural Imported {n} brush from {file}|Imported {n} brushes from {file} S-a importat {n} pensulă din {file}|S-au importat {n} pensule din {file}|S-au importat {n} de pensule din {file} +@plural Imported {n} gradient from {file}|Imported {n} gradients from {file} S-a importat {n} degrade din {file}|S-au importat {n} degradeuri din {file}|S-au importat {n} de degradeuri din {file} +@plural Imported {n} pattern from {file}|Imported {n} patterns from {file} S-a importat {n} model din {file}|S-au importat {n} modele din {file}|S-au importat {n} de modele din {file} + Data Set: {name} ({index}/{total}) Set de date: {name} ({index}/{total}) + (none) (niciunul) +navigator Zoom Zoom + Apply {option}: {state} Aplicare {option}: {state} + This adjustment ({key}) is kept as imported and can't be edited yet. Acest ajustaj ({key}) este conservat ca a fost importat și nu poate fi editat încă. + Join the ArtCraft Discord ({url}) Alăturare la Discord-ul ArtCraft ({url}) + {index} of {total} {index} din {total} + {shortcut} assigned. {shortcut} asignat. + {shortcut} is already in use by {commands} and will be removed from it when you click OK. {shortcut} este deja folosit de {commands} și va fi eliminat de acolo când faceți clic pe OK. + The current gradient (pick one in Window › Gradients) Degradeul curent (alegeți unul în Fereastră › Degradeuri) + auto automat + Baseline Shift Deplasare linie de bază + Breeze Dark Breeze întunecat + Breeze Light Breeze clar + brushes pensule + Color Picker Selector de culoare + Current Curent + Dark Gray Gri întunecat + Fill Color Culoare umplere + gradients degradeuri + Graphic and web Grafică și web + layer mask mască de strat + Lock All Blocare tot + Lock Image Pixels Blocare pixeli imagine + Lock Position Blocare poziție + Lock Transparent Pixels Blocare pixeli transparenți + manual manual + Medium Gray Gri mediu + New document Document nou + New Selection Selecție nouă + No Document Fără document + Note tool Instrument Notă + off dezactivat + on activat + Recent Files Fișiere recente + Rgb RGB + Shortcut Comandă rapidă + Show Rulers Afișare rigle + Solarized Dark Solarized întunecat + sRGB sRGB + Stroke Color Culoare trasou + unknown necunoscut + Unsaved Changes Modificări nesalvate + vector mask mască vectorială + ZigZag Zigzag + Show home recent files Afișare fișiere recente la pornire + Clear Brush Controls Ștergere controale pensulă + Reset All Locked Settings Restaurare toate setările blocate + Copy Texture to Other Tools Copiere textură în alte instrumente + Load Actions… Încărcare acțiuni… + Save Actions… Salvare acțiuni… + New Action… Acțiune nouă… + Start Recording Pornire înregistrare + Stop Recording Oprire înregistrare + {name} (Photoshop) {name} (Photoshop) + {message} ({note}) {message} ({note}) +@plural Loaded {n} action from {file}|Loaded {n} actions from {file} S-a încărcat {n} acțiune din {file}|S-au încărcat {n} acțiuni din {file}|S-au încărcat {n} de acțiuni din {file} +@plural {n} step has no PhotoCraft equivalent yet|{n} steps have no PhotoCraft equivalent yet {n} pas nu are încă echivalent în PhotoCraft|{n} pași nu au încă echivalent în PhotoCraft|{n} de pași nu au încă echivalent în PhotoCraft +@plural Saved {n} action to {file}|Saved {n} actions to {file} S-a salvat {n} acțiune în {file}|S-au salvat {n} acțiuni în {file}|S-au salvat {n} de acțiuni în {file} +@plural {n} step with no Photoshop equivalent left out|{n} steps with no Photoshop equivalent left out {n} pas fără echivalent în Photoshop a fost omis|{n} pași fără echivalent în Photoshop au fost omiși|{n} de pași fără echivalent în Photoshop au fost omiși + Starting serial Număr de serie inițial + Insert Stop… Inserare oprire… + Save Set… Salvare set… + Message: Mesaj: + Allow Continue Permitere continuare + Show dialog during playback Afișare dialog în timpul redării + Select an action first Selectați mai întâi o acțiune + Action playback stopped Redarea acțiunii s-a oprit + Step {step} is waiting for its dialog Pasul {step} își așteaptă dialogul +@plural {n} action|{n} actions {n} acțiune|{n} acțiuni|{n} de acțiuni + Background (Default) Fundal (implicit) + Include All Subfolders Includere toate subfolderele + Auto Add/Delete Adăugare/ștergere automată + Don't also tick Mirror Image in Print Settings…: the two flips cancel out. Nu activați și Imagine în oglindă în Setări de imprimare…: cele două răsturnări se anulează. + Print Settings… Setări de imprimare… + Remember to turn off the printer's own colour management in Print Settings… Nu uitați să dezactivați gestionarea culorii proprie a imprimantei în Setări de imprimare… + Sent to {printer} Trimis la {printer} + set in Print Settings… se stabilește în Setări de imprimare… + ICO is limited to 256 × 256 pixels ICO este limitat la 256 × 256 pixeli + Show Favorite Fonts Afișare fonturi favorite + No favorite fonts yet: click the star beside a font to add it. Nicio fontă favorită încă: faceți clic pe steaua de lângă o fontă pentru a o adăuga. + Favorite fonts Fonturi favorite + Add to Favorites Adăugare la favorite + Remove from Favorites Eliminare din favorite + Show All Fonts Afișare toate fonturile + All Classes Toate clasele + Blackletter Gotică + Decorative Decorativă + Font preview: Previzualizare fontă: + Handwritten Manuscrisă + Hide Font Classes Ascundere clase de fonturi + Hide Styles Ascundere stiluri + Monospace Monospațiată + No fonts match these filters. Niciun font nu corespunde acestor filtre. + No similar fonts: the current font doesn't say what it looks like. Niciun font similar: fontul curent nu descrie cum arată. + OpenType font Font OpenType + Sans Serif Sans serif + Script Caligrafică + Serif Serif + Show Font Classes Afișare clase de fonturi + Show Similar Fonts Afișare fonturi similare + Show Styles Afișare stiluri + Show Variable Fonts Afișare fonturi variabile + Slab Serif Serif egipteană + TrueType font Font TrueType + Variable font Font variabil + Calibration Calibrare + Red Primary Primar roșu + Green Primary Primar verde + Blue Primary Primar albastru + Write xmp sidecars Scriere fișiere XMP auxiliare + Set the tone sliders from the image Stabilire glisoarele de ton din imagine + Settings from {name} Setări din {name} + Settings from {name}; {count} not supported: {names} Setări din {name}; {count} nesuportate: {names} + Could not write {name}: {error} Nu s-a putut scrie {name}: {error} + Kept {name}: written by another application S-a păstrat {name}: a fost scris de altă aplicație + Shadow Tint Tentă umbre + Check for Updates… Căutare actualizări… + PhotoCraft Updates Actualizări PhotoCraft + Checking for updates… Se caută actualizări… + Open the release page to choose an installer for your system. Deschideți pagina versiunii pentru a alege un instalator pentru sistemul dvs. + Open Download Page Deschidere pagină de descărcare + PhotoCraft is up to date. PhotoCraft este actualizat. + Could not check for updates. Nu s-au putut căuta actualizări. + Updates have not been checked yet. Actualizările nu au fost încă căutate. + Check Again Căutare din nou + Automatically Check for Updates Căutare automată a actualizărilor + Installed version: {version} Versiune instalată: {version} + PhotoCraft {version} is available. PhotoCraft {version} este disponibil. + Paints from the History panel's source state Pictează pe baza stării sursă din panoul Istoric + Sets the source for the history brush Stabilește sursa pentru pensula istoric + Highlight Mode Mod luminile + Highlight Color Culoare luminile + Highlight Opacity Opacitate luminile + Shadow Mode Mod umbre + Shadow Color Culoare umbre + Shadow Opacity Opacitate umbre + Use the embedded profile ({profile}) Utilizare profil încorporat ({profile}) + Convert to the working space ({profile}) Conversie la spațiul de lucru ({profile}) + Remember this choice for future images Reținere această opțiune pentru imaginile viitoare + Turn the prompt back on with Ask On Mismatch in Edit › Color Settings. Reactivați solicitarea cu Ask On Mismatch în Editare › Setări de culoare. + Button Mode Mod buton + Button Mode On Mod buton activat + Darken Interface Întunecare interfață + Lighten Interface Luminare interfață + Technique Tehnică + Chisel Hard Cioplire dură + Chisel Soft Cioplire moale + Open color-less EXR as ACEScg Deschidere EXR fără spațiu de culoare ca ACEScg + Do not append "copy" to filename when saving a copy Nu adăugați „copy” la numele fișierului la salvarea unei copii + Edit Selected Guides Editare ghidaje selectate + Clear Selected Guides Ștergere ghidaje selectate + Bicubic Automatic Bicubică automată + Bicubic Smoother Bicubică mai netedă + Bicubic Sharper Bicubică mai clară + Pasting from other apps is unavailable Inserarea din alte aplicații nu este disponibilă + PhotoCraft can't reach the system clipboard in this session. On Wayland, a Flatpak sandbox hides the protocol that images from other apps are read through. PhotoCraft nu poate accesa clipboard-ul sistemului în această sesiune. Pe Wayland, un sandbox Flatpak ascunde protocolul prin care se citesc imaginile din alte aplicații. + To paste from other apps, start PhotoCraft under XWayland: `{command}` Pentru a insera din alte aplicații, porniți PhotoCraft sub XWayland: `{command}` + Nothing to paste: PhotoCraft can't read the system clipboard here Nimic de inserat: PhotoCraft nu poate citi aici clipboard-ul sistemului + Delete this set Ștergere acest set + New Set… Set nou… + PhotoCraft Defaults Valori implicite PhotoCraft + Save a list of these shortcuts as a web page Salvare o listă a acestor comenzi rapide ca pagină web + Save the changes to this set Salvare modificările în acest set + Save these shortcuts as a .kys file Salvare aceste comenzi rapide ca fișier .kys + Save these shortcuts as a new set Salvare aceste comenzi rapide ca set nou + Set deleted. Set șters. + Set saved. Set salvat. + Set: Set: + Summarize… Rezumare… + There are too many sets: delete one first. Există prea multe seturi: ștergeți unul mai întâi. + set name nume set + {set} (modified) {set} (modificat) + Show file name in title Afișare nume fișier în titlu + 50% Threshold Prag 50% + Pattern Dither Tramă model + Diffusion Dither Tramă difuzie + Halftone Screen Trama de semitonuri + Custom Pattern Model personalizat + Frequency: Frecvență: + Lines/Inch Linii/inch + Lines/Centimeter Linii/centimetru + Ellipse Elipsă + Accept and Go to Conflict Acceptare și salt la conflict + Changes undone. Modificări anulate. + Choose a new shortcut for this command, or leave it without one. Alegeți o comandă rapidă nouă pentru această comandă, sau lăsați-o fără una. + Put this command's shortcuts back as they were Restaurare comenzile rapide ale acestei comenzi cum erau + Take the shortcut from the other command and select it Preluare comanda rapidă de la cealaltă comandă și selectarea ei + Undo Changes Anulare modificări + {shortcut} is reserved by the system and can't be assigned. {shortcut} este rezervat de sistem și nu poate fi asignat. + Low-Latency Drawing (vsync off, applies at next launch) Desenare cu latență redusă (fără sincronizare verticală, se aplică la următoarea pornire) + Free Transform is still being applied; try again when it has finished. Transformarea liberă încă se aplică; încercați din nou când se termină. + The transform couldn't be applied. Transformarea nu a putut fi aplicată. + Its layers need {needed} of GPU memory; the budget leaves them {budget}. Straturile sale necesită {needed} de memorie GPU; bugetul le lasă {budget}. + Set GPU Memory in Preferences › Performance to what your graphics card can hold, at most 3/8 of its memory. Automatic follows Memory Usage, within a quarter of this computer's memory and 3/8 of the card's, and doesn't count the document against a card whose memory is known. The status bar shows GPU Memory Full while they don't fit. Setați Memorie GPU în Preferințe › Performanță la ce poate aloca placa dvs. grafică, cel mult 3/8 din memoria ei. Automat urmează Utilizarea memoriei, în limita unui sfert din memoria acestui computer și 3/8 din cea a plăcii, și nu contorizează documentul pe o placă a cărei memorie este cunoscută. Bara de stare arată Memorie GPU plină cât timp nu încap. + GPU Memory Full Memorie GPU plină + The layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. Straturile necesită {needed} de memorie GPU și pot ocupa {budget}, așa că editările care redesenează tot documentul se fac pe CPU. Faceți clic pentru a stabili Memoria GPU. + GPU memory budget: {budget} Buget memorie GPU: {budget} + Graphics memory: {size} Memorie grafică: {size} + This document's layers: {needed} of {budget} for layers Straturile acestui document: {needed} din {budget} pentru straturi + This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Straturile acestui document necesită {needed} dar pot ocupa {budget}: redesenările întregului document folosesc CPU + GPU Memory (MB, 0 = Automatic) Memorie GPU (MB, 0 = Automat) + {path}: the path is not valid Unicode; save under another name. {path}: calea nu este Unicode valid; salvați sub alt nume. + {name} was changed by another app after it was opened or saved here. {name} a fost modificat de o altă aplicație după ce a fost deschis sau salvat aici. + Replace it with this document, or cancel and use File › Save As to keep both. Înlocuiți-l cu acest document, sau anulați și utilizați Fișier › Salvare ca pentru a păstra ambele. + Decrease Brush Size Reducere dimensiune pensulă + Increase Brush Size Creștere dimensiune pensulă + Decrease Brush Hardness Reducere duritate pensulă + Increase Brush Hardness Creștere duritate pensulă + Demosaic Demozaicare + 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. Cum este completat mozaicul filtrului de culoare al camerei. Se aplică la deschiderea fișierului; previzualizarea arată metoda cu care a fost deschis. + AHD (adaptive homogeneity) AHD (omogenitate adaptivă) + Malvar–He–Cutler Malvar–He–Cutler + Hirakawa–Parks: the cleanest edges and the least colour fringing, the slowest. Hirakawa–Parks: marginile cele mai curate și cea mai mică franjare de culoare; cea mai lentă. + Gradient-corrected interpolation: sharp and fast, with some colour fringing on fine detail. Interpolare cu corecție de gradient: clară și rapidă, cu o anumită franjare de culoare pe detalii fine. + The fastest and the softest, with colour fringing on fine detail. Cea mai rapidă și cea mai moale, cu franjare de culoare pe detalii fine. + “{name}” already exists. Replace it? „{name}” există deja. Îl înlocuiți? + The name in the save dialog was “{name}”. Numele din dialogul de salvare a fost „{name}”. + Previous Brush Pensula anterioară + Next Brush Pensula următoare + First Brush Prima pensulă + Last Brush Ultima pensulă + Preview size Dimensiune previzualizare + Memory Usage Utilizare memorie + Per-document RAM limit (MB) Limită RAM per document (MB) + Installed RAM: {ram} MB; this limit: {percent}% RAM instalată: {ram} MB; această limită: {percent}% + Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. Limitează pixelii fiecărui document deschis plus Istoricul. Cele mai vechi stări de anulare sunt eliminate la depășirea limitei. + Applies immediately when saved. Memory is not reserved in advance. Se aplică imediat la salvare. Memoria nu este rezervată în avans. + With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. Cu Memoria GPU pe Automat, aceasta limitează și bugetul de strat GPU. Acel buget este plafonat la un sfert din RAM-ul instalat și, când se cunoaște, trei optimi din memoria plăcii grafice, cu un minim de 512 MB. Mărirea acestei limite dincolo de aceste plafoane nu crește bugetul GPU. + Use Utilizare + In Front În față + Behind În spate + DDS Options Opțiuni DDS + Generate Mipmaps Generare mipmap-uri + There is no color table to save. Nu există o tabelă de culori de salvat. +@plural Saved {n} color to {file}|Saved {n} colors to {file} S-a salvat {n} culoare în {file}|S-au salvat {n} culori în {file}|S-au salvat {n} de culori în {file} + GPU adapter Adaptor GPU + Import Styles… Import stiluri… + Export Selected Styles… Export stiluri selectate… + Export Styles… Export stiluri… + {file} is not a style library (.asl) {file} nu este o bibliotecă de stiluri (.asl) +@plural Imported {n} style from {file}|Imported {n} styles from {file} S-a importat {n} stil din {file}|S-au importat {n} stiluri din {file}|S-au importat {n} de stiluri din {file} +@plural Exported {n} style to {file}|Exported {n} styles to {file} S-a exportat {n} stil în {file}|S-au exportat {n} stiluri în {file}|S-au exportat {n} de stiluri în {file} + Confirm or cancel the open action step dialog first Confirmați sau anulați mai întâi dialogul deschis al pasului de acțiune + Pro Medium Gray Pro (gri mediu) + Solarized Solarized + Breeze Breeze + Pro Light Gray Pro (gri clar) + Pro Light Pro (clar) + Resize Windows to Fit Redimensionare ferestre pentru încadrare + EXR EXR + Automatic paragraph direction Direcție paragraf automată + Left-to-right paragraph direction Direcție paragraf de la stânga la dreapta + Right-to-left paragraph direction Direcție paragraf de la dreapta la stânga + Not rendered: this adjustment ({key}) is kept as imported. Nu este randat: acest ajustaj ({key}) este conservat cum a fost importat. + Print preview image Previzualizare imagine de imprimare + Hue Cube Cub de nuanță + Brightness Cube Cub de luminozitate + Color Wheel Roată de culoare + RGB Sliders Regulatoare RGB + HSB Sliders Regulatoare HSB + CMYK Sliders Regulatoare CMYK + Lab Sliders Regulatoare Lab + Web Color Sliders Regulatoare de culori web + Copy Color as HTML Copiere culoare ca HTML + Copy Color's Hex Code Copiere cod hexadecimal al culorii + RGB Spectrum Spectru RGB + CMYK Spectrum Spectru CMYK + Grayscale Ramp Rampă de tonuri de gri + Current Colors Culori curente + Make Ramp Web Safe Transformare rampă în sigură pentru web + The path was kept as the Work Path Traseul a fost conservat ca Traseu de lucru + The path was discarded Traseul a fost abandonat + Art History Brush Tool Instrument Pensulă istoric artistic + Tight Short Scurt strâns + Tight Medium Mediu strâns + Tight Long Lung strâns + Loose Medium Mediu lejer + Loose Long Lung lejer + Dab Tamponare + Tight Curl Buclă strânsă + Loose Curl Buclă lejeră + Stylized dabs from a history state Tușe stilizate dintr-o stare din istoric + Font size presets Presetări dimensiune font + Leading presets Presetări interlinie + Tracking presets Presetări spațiere + Color Aware Sensibil la culoare + Decontaminate Colors Decontaminare culori + Edge Detection Detecție margini + Global Refinements Perfecționări globale + High Quality Preview Previzualizare de înaltă calitate + Object Aware Sensibil la obiect + Real-Time Refinement Perfecționare în timp real + Refine Edge Brush Tool Instrument Pensulă de perfecționare margine + Refine Hair Perfecționare păr + Refine Mode Mod perfecționare + Remember Settings Reținere setări + View Mode Mod de vizualizare + Object Aware needs a segmentation model, which isn't available yet Sensibil la obiect necesită un model de segmentare, care nu este încă disponibil + Refine Hair needs hair detection, which isn't available yet Perfecționare păr necesită detecție de păr, care nu este încă disponibilă + Select and Mask was closed: its document is no longer the active one S-a închis Selecție și mască: documentul său nu mai este cel activ + Select and Mask was closed: another layer was selected S-a închis Selecție și mască: a fost selectat alt strat + Select Layer Under Cursor Selectare strat sub cursor + Drag to move the selected path Trageți pentru a deplasa traseul selectat + A: A: + Adobe-rgb-compat Compatibil Adobe RGB + Any Oricare + Arc Lower Arc inferior + Arc Upper Arc superior + Author Title Titlu autor + Based On Bazat pe + Bend Curbură + Bpc Bpc + CPU Rendering Randare pe CPU + Calculating… Se calculează… + Case Sensitive Sensibil la majuscule + Ccw Anti-orar + Change Find Comutare căutare + Checkerboard Tablă de șah + Click to refresh histogram with uncached data Faceți clic pentru a reîmprospăta histograma cu date neutilizate din cache + Cmyk CMYK + Coated-cmyk CMYK pentru hârtie cretată + Color Sampler Tool Instrument Eșantionator de culoare + Copyright Url URL drepturi de autor + Count: Numărare: + Cw Orar + Decrease Type Size Reducere dimensiune text + Decrease Type Size by 10 Reducere dimensiune text cu 10 + Display-p3 Display P3 + Dont Enlarge Fără mărire + Drag to move the active shape's path or the Work Path Trageți pentru a deplasa traseul formei active sau Traseul de lucru + Drawn on the CPU: {reason}. Click for System Info. Desenat pe CPU: {reason}. Faceți clic pentru informații despre sistem. + Erase with Brush or Pencil (hold) Ștergere cu Pensula sau Creionul (țineți apăsat) + Export As: {name} Export ca: {name} + Fill with Background Color Umplere cu culoarea de fundal + Fill with Background Color, Preserve Transparency Umplere cu culoarea de fundal, conservare transparență + Fill with Foreground Color Umplere cu culoarea frontală + Fill with Foreground Color, Preserve Transparency Umplere cu culoarea frontală, conservare transparență + Forward Înainte + Gray-gamma-2.2 Gri gamma 2,2 + Hand Tool (hold) Instrument Mână (țineți apăsat) + Horizontal Distortion Distorsiune orizontală + Increase Type Size Creștere dimensiune text + Increase Type Size by 10 Creștere dimensiune text cu 10 + Intent Intenție + Level: Nivel: + Linear-srgb sRGB liniar + Make Selection from Path Creare selecție din traseu + Mask Channel Canal mască + Move Down Deplasare jos + Move Up Deplasare sus + Nearest Cel mai apropiat + Pattern Fill… Umplere cu model… + Percentile: Percentilă: + Proof Setup… Configurare probă… + Prophoto-compat Compatibil ProPhoto + R G B R G B + Release Notes Note de lansare + Show Channels in Color Afișare canale în culoare + Show Statistics Afișare statistici + Simulate Paper Simulare hârtie + Source Channel Canal sursă + Source Invert Inversare sursă + Source1 Channel Canal sursă 1 + Source1 Invert Inversare sursă 1 + Source2 Channel Canal sursă 2 + Source2 Invert Inversare sursă 2 + Source: Sursă: + Space Spațiu + Target Channel 3 Canal destinație 3 + Target Channel 4 Canal destinație 4 + Target Channel 5 Canal destinație 5 + Target Channel 6 Canal destinație 6 + Target Channel 7 Canal destinație 7 + Target Channel 8 Canal destinație 8 + Target Channel 9 Canal destinație 9 + Target Composite Channel Canal compus destinație + Temporary Temporar + This Layer: Acest strat: + Title Titlu + Toggle Layer Mask Overlay Comutare suprapunere mască de strat + Uncached Refresh Reîmprospătare fără cache + Update and Restart Actualizare și repornire + Vertical Distortion Distorsiune verticală + W: L: + Warming Filter (85) Filtru de încălzire (85) + Whole Word Cuvânt întreg + Working-cmyk CMYK de lucru + Zoom In (hold, drag to scrub) Mărire (țineți apăsat, trageți pentru a derula) + Zoom Out (hold) Micșorare (țineți apăsat) + +# Color picker, gradient map and font list strings added on main + No matching fonts Niciun font corespunzător + Recently Used Colors Culori utilizate recent + Shapes can't use patterns yet Formele nu pot folosi încă modele + Stop Color Culoarea marcajului + +# Strings added on main after the catalog was completed (2026-11-06) + A command was cancelled or stopped during batch processing. Continue with the next file or stop? O comandă a fost anulată sau oprită în timpul procesării în lot. Continuați cu următorul fișier sau opriți? + A file is still being placed; try again when it has finished. Un fișier este încă în curs de plasare; încercați din nou după ce s-a terminat. + A frame supports affine transforms; select its image for perspective transforms Un cadru acceptă transformări afine; selectați imaginea acestuia pentru transformări de perspectivă + A frame supports affine transforms; select its image to warp it Un cadru acceptă transformări afine; selectați imaginea acestuia pentru a o deforma + Accelerated Accelerat + Answer the open import question first, then import this file again. Răspundeți mai întâi la întrebarea de import deschisă, apoi importați din nou acest fișier. + Arrowhead options Opțiuni vârfuri de săgeată + Arrowheads Vârfuri de săgeată + Attribute Atribut + Background (default) Fundal (implicit) + Batch preview Previzualizare lot + Cancelled placing {name} Plasarea {name} a fost anulată + Channel Options… Opțiuni canal… + Concavity Concavitate + Convert to Frame… Conversie în cadru… + Create a new custom frame Creare cadru personalizat nou + Create a new polygonal frame Creare cadru poligonal nou + Create a new triangular frame Creare cadru triunghiular nou + Create a single history state Creare o singură stare de istoric + Data Sets as Files is unavailable on the web Seturi de date ca fișiere nu este disponibil pe web + Dropped files weren't placed: their document was closed. Fișierele plasate prin tragere nu au fost plasate: documentul lor a fost închis. + Dropped files weren't placed: too many are waiting for their document. Fișierele plasate prin tragere nu au fost plasate: prea multe așteaptă după documentul lor. + Effect Efect + Empty Gol + End Sfârșit + Filter for embedded smart objects Filtrare după obiecte inteligente încorporate + Filter for linked smart objects that are missing Filtrare după obiecte inteligente conectate care lipsesc + Filter for smart objects linked locally Filtrare după obiecte inteligente conectate local + Fit Content to Frame Încadrare conținut în cadru + Fit Frame to Content Încadrare cadru la conținut + Frame coordinates must be finite and within 600000 pixels Coordonatele cadrului trebuie să fie finite și în limita a 600000 de pixeli + High Memory Photoshop Document Document Photoshop cu memorie mare + Image Compression Compresie imagine + Import Image… Import imagine… + Import as New Group Import ca grup nou + Import as New Group keeps “{group}” and adds the file as a new group beside it. Import ca grup nou păstrează „{group}” și adaugă fișierul ca grup nou alături de acesta. + Invalid frame transform Transformare de cadru nevalidă + Invalid nested file drop Plasare imbricată de fișiere nevalidă + LZW LZW + Layer Effects Efecte de strat + Learn Învățare + Lining Aliniate + Linked Conectat + New Frame Cadru nou + New file Fișier nou + No Adv. Blending Fără fuziune avansată + No Layer Effects Fără efecte de strat + No Layer Mask Fără mască de strat + No Vector Mask Fără mască vectorială + No import is waiting. Import the file again. Niciun import nu este în așteptare. Importați din nou fișierul. + Not Clipped Netăiat + Not Empty Nu este gol + Not Linked Neconectat + Not Locked Neblocat + Not Visible Invizibil + Numerals Cifre + On your computer Pe computerul dvs. + Open anyway Deschidere oricum + Opening this document uses more memory and may slow down your computer or other running applications. Deschiderea acestui document folosește mai multă memorie și poate încetini computerul sau alte aplicații în execuție. + Opening “{name}” requires an estimated {est} GiB of memory ({avail} GiB available). Deschiderea „{name}” necesită aproximativ {est} GiB de memorie ({avail} GiB disponibili). + Opening “{name}” requires an estimated {est} GiB of memory. The available memory could not be measured. Deschiderea „{name}” necesită aproximativ {est} GiB de memorie. Memoria disponibilă nu a putut fi măsurată. + Pause For Pauză de + Pause For: Pauză de: + Playback Options… Opțiuni de redare… + Proportional Proporționale + Proportional Lining Proporționale aliniate + Proportional Oldstyle Proporționale stil vechi + Replace Image… Înlocuire imagine… + Replace deletes everything in “{group}” first, including presets you edited or moved there. This can't be undone. Înlocuirea șterge mai întâi tot conținutul din „{group}”, inclusiv presetările pe care le-ați editat sau mutat acolo. Această acțiune nu poate fi anulată. + Save Image Pyramid Salvare piramidă de imagini + Save Transparency Salvare transparență + Set Set + Set 1 Set 1 + Set 10 Set 10 + Set 11 Set 11 + Set 12 Set 12 + Set 13 Set 13 + Set 14 Set 14 + Set 15 Set 15 + Set 16 Set 16 + Set 17 Set 17 + Set 18 Set 18 + Set 19 Set 19 + Set 2 Set 2 + Set 20 Set 20 + Set 3 Set 3 + Set 4 Set 4 + Set 5 Set 5 + Set 6 Set 6 + Set 7 Set 7 + Set 8 Set 8 + Set 9 Set 9 + Set as default Setare ca implicit + Source: {name} Sursă: {name} + Specify Channels: Specificare canale: + Start Început + Step by Step Pas cu pas + Stylistic Sets Seturi stilistice + Tabular Tabelare + Tabular Lining Tabelare aliniate + Tabular Oldstyle Tabelare stil vechi + The GPU compositor is still being prepared Compozitorul GPU este încă în curs de pregătire + The History Brush source was deleted: set a new source in the History panel Sursa Pensulei istoric a fost ștearsă: setați o sursă nouă în panoul Istoric + The frame is locked Cadrul este blocat + The frame is unavailable Cadrul nu este disponibil + Transparent (default) Transparent (implicit) + Use these settings for new arrows Utilizare aceste setări pentru săgețile noi + Website Site web + ZIP ZIP + seconds secunde + {message} into “{group}” {message} în „{group}” + {ok} written to {dir} {ok} scrise în {dir} + {set} from {file} replaced the one from {earlier} Setul {set} din {file} l-a înlocuit pe cel din {earlier} +@plural The brush group “{group}” already has {n} brush of yours.|The brush group “{group}” already has {n} brushes of yours. Grupul de pensule „{group}” are deja {n} pensulă de-a dvs.|Grupul de pensule „{group}” are deja {n} pensule de-ale dvs.|Grupul de pensule „{group}” are deja {n} de pensule de-ale dvs. +@plural The gradient group “{group}” already exists ({n} gradient).|The gradient group “{group}” already exists ({n} gradients). Grupul de degradeuri „{group}” există deja ({n} degrade).|Grupul de degradeuri „{group}” există deja ({n} degradeuri).|Grupul de degradeuri „{group}” există deja ({n} de degradeuri). +@plural {n} action file loaded|{n} action files loaded {n} fișier de acțiuni încărcat|{n} fișiere de acțiuni încărcate|{n} de fișiere de acțiuni încărcate +@plural {n} file could not be loaded: {errors}|{n} files could not be loaded: {errors} {n} fișier nu a putut fi încărcat: {errors}|{n} fișiere nu au putut fi încărcate: {errors}|{n} de fișiere nu au putut fi încărcate: {errors} +@plural {what}: {n} Image Assets output failed|{what}: {n} Image Assets outputs failed {what}: {n} ieșire Resurse imagine a eșuat|{what}: {n} ieșiri Resurse imagine au eșuat|{what}: {n} de ieșiri Resurse imagine au eșuat diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsv index a9daa9c8f4..d5e7196046 100644 --- a/crates/ui-egui/src/i18n/ru.tsv +++ b/crates/ui-egui/src/i18n/ru.tsv @@ -710,6 +710,12 @@ Timeline Шкала времени Tool Presets Наборы инструментов Tools Инструменты + Contextual Task Bar Контекстная панель задач + Hide bar Скрыть панель + Reset bar position Сбросить положение панели + Pin bar position Закрепить положение панели + Move bar Переместить панель + More options Другие параметры Libraries Библиотеки 3D 3D Toolbars Панели инструментов @@ -1346,6 +1352,7 @@ Path to Illustrator… Контур в Illustrator… Make Work Path Создать рабочий контур Make Selection Создать выделение + Make Shape Создать фигуру Fill Path Залить контур Stroke Path Обвести контур Clipping Path Обтравочный контур @@ -2159,7 +2166,7 @@ Vertical Centers Центры по вертикали Video Frames to Layers… Видеокадры в слои… WIA Support… Поддержка WIA… - Working CMY Plates Рабочая голубая форма + Working CMY Plates Рабочие формы CMY Absolute Абсолютный Action Операция Adaptive Адаптивный @@ -2571,7 +2578,6 @@ Show only crosshair while painting Только перекрестье при рисовании Show slice numbers Показывать номера фрагментов Show tooltips Показывать подсказки - Enable animations Включить анимацию Show highlight on rollover Показывать подсветку при наведении Show bounding box when dragging layer Показывать рамку при перетаскивании слоя System title bar Системная строка заголовка diff --git a/crates/ui-egui/src/i18n/sr.tsv b/crates/ui-egui/src/i18n/sr.tsv index 4ff32db75a..89f25357a3 100644 --- a/crates/ui-egui/src/i18n/sr.tsv +++ b/crates/ui-egui/src/i18n/sr.tsv @@ -756,7 +756,7 @@ Working Magenta Plate Radna magenta ploča Working Yellow Plate Radna žuta ploča Working Black Plate Radna crna ploča - Working CMY Plates Radna CMY ploča + Working CMY Plates Radne CMY ploče Legacy Macintosh RGB (Gamma 1.8) Stari Macintosh RGB (Gamma 1.8) Internet Standard RGB (sRGB) Internet standard RGB (sRGB) Monitor RGB RGB monitora @@ -911,6 +911,12 @@ Timeline Vremenska linija Tool Presets Šabloni alatki Tools Alatke + Contextual Task Bar Kontekstualna traka zadataka + Hide bar Sakrij traku + Reset bar position Vrati položaj trake + Pin bar position Zakači položaj trake + Move bar Pomeri traku + More options Više opcija About PhotoCraft O programu PhotoCraft PhotoCraft Website Veb-sajt PhotoCraft-a PhotoCraft on GitHub PhotoCraft na GitHub-u @@ -2120,7 +2126,6 @@ Show only crosshair while painting Prikaži samo krstić tokom slikanja Show slice numbers Prikaži brojeve isečaka Show tooltips Prikaži opise alatki - Enable animations Omogući animacije Show highlight on rollover Istakni pri prelasku pokazivačem Show transformation values Prikaži vrednosti transformacije Slice color Boja isečka @@ -2510,6 +2515,7 @@ Path to Illustrator… Putanja u Illustrator… Make Work Path Napravi radnu putanju Make Selection Napravi selekciju + Make Shape Napravi oblik Fill Path Popuni putanju Stroke Path Ocrtaj putanju Clipping Path Putanja isecanja diff --git a/crates/ui-egui/src/i18n/sv.tsv b/crates/ui-egui/src/i18n/sv.tsv index 4c9e6a12f6..1bb78aede7 100644 --- a/crates/ui-egui/src/i18n/sv.tsv +++ b/crates/ui-egui/src/i18n/sv.tsv @@ -540,6 +540,12 @@ Timeline Tidslinje Tool Presets Verktygsförinställningar Tools Verktyg + Contextual Task Bar Kontextuellt aktivitetsfält + Hide bar Dölj fältet + Reset bar position Återställ fältets position + Pin bar position Fäst fältets position + Move bar Flytta fältet + More options Fler alternativ Libraries Bibliotek 3D 3D Toolbars Verktygsfält @@ -1212,6 +1218,7 @@ Path to Illustrator… Bana till Illustrator… Make Work Path Skapa arbetsbana Make Selection Skapa markering + Make Shape Skapa form Fill Path Fyll bana Stroke Path Linje på bana Clipping Path Urklippsbana @@ -2059,7 +2066,7 @@ Vertical Centers Lodräta mittpunkter Video Frames to Layers… Videobildrutor till lager… WIA Support… WIA-stöd… - Working CMY Plates CMY-arbetsplåt + Working CMY Plates CMY-arbetsplåtar # tl! literals (third pass) Absolute Absolut @@ -2476,7 +2483,6 @@ Show only crosshair while painting Visa bara hårkors vid målning Show slice numbers Visa skivnummer Show tooltips Visa verktygstips - Enable animations Aktivera animeringar Show highlight on rollover Visa framhävning när pekaren förs över Show bounding box when dragging layer Visa begränsningsram när lager dras System title bar Systemets namnlist diff --git a/crates/ui-egui/src/i18n/ta.tsv b/crates/ui-egui/src/i18n/ta.tsv new file mode 100644 index 0000000000..3c45b9a218 --- /dev/null +++ b/crates/ui-egui/src/i18n/ta.tsv @@ -0,0 +1,4275 @@ +# Tamil (ta) catalog. Columns, separated by a TAB: context source translation +# Clean-room: every entry was written from the plain meaning of the English label using ordinary +# Tamil computing vocabulary. No proprietary localisation resource, string table or product UI +# was consulted or copied; add entries the same way. +# Product and technology names (OpenType, CMYK, Lab ...) stay in Latin letters; +# the trailing "…" of dialog commands is kept. + + Mask Options… மறைப்பு விருப்பங்கள்… + Layer Mask Display Options… அடுக்கு மறைப்பு காட்சி விருப்பங்கள்… + Channel Color சேனல் நிறம் + Color Indicates: நிறம் குறிப்பது: + Solidity: திண்மை: + Masked Areas மறைக்கப்பட்ட பகுதிகள் + Selected Areas தேர்ந்தெடுக்கப்பட்ட பகுதிகள் + Ink Characteristics மை பண்புகள் + Paper Width காகித அகலம் + Paper Height காகித உயரம் + Columns நெடுவரிசைகள் + Rows வரிசைகள் + Number எண் + Margin ஓரம் + Top: மேல்: + Left: இடது: + Bottom: கீழ்: + Right: வலது: + Target: இலக்கு: + Selected Artboards தேர்ந்தெடுக்கப்பட்ட ஆர்ட்போர்டுகள் + Center Columns நெடுவரிசைகளை மையப்படுத்து + Clear Existing Guides இருக்கும் அளவுகோட்டு வரிகளை அழி + Invalid guide layout தவறான அளவுகோட்டு வரி அமைப்பு + Leave empty for automatic size தானியங்கி அளவுக்கு காலியாக விடவும் + 5 Columns, 3 Rows 5 நெடுவரிசைகள், 3 வரிசைகள் + 8 Columns 8 நெடுவரிசைகள் + 12 Columns 12 நெடுவரிசைகள் + File கோப்பு + Edit திருத்து + Image படம் + Layer அடுக்கு + Type உரை + Select தேர்வு + Selected தேர்ந்தெடுக்கப்பட்டவை + Scope நோக்கம் + Top Left மேல் இடது + Top Right மேல் வலது + Bottom Left கீழ் இடது + Bottom Right கீழ் வலது + Filter வடிகட்டி + View காட்சி + Window சாளரம் + Help உதவி + (coming soon) (விரைவில்) + New… புதியது… + New from Clipboard கிளிப்போர்டிலிருந்து புதியது + Open… திற… + Open As… இவ்வாறு திற… + Open EXR Parts… EXR பகுதிகளைத் திற… + Add beauty precomp from the AOVs AOV-களிலிருந்து பியூட்டி ப்ரீகாம்ப் சேர் + Both இரண்டும் + Left இடது + Right வலது + Open Recent சமீபத்தியவற்றைத் திற + Clear Recent Files சமீபத்திய கோப்புகளை அழி + Remove from Recent சமீபத்தியவற்றிலிருந்து நீக்கு + Remove {name} from Recent {name} ஐ சமீபத்தியவற்றிலிருந்து நீக்கு + Close மூடு + Minimize சிறிதாக்கு + Minimize Panel பலகத்தை சிறிதாக்கு + Maximize பெரிதாக்கு + Restore மீட்டமை + Close All அனைத்தையும் மூடு + Close Others மற்றவற்றை மூடு + Close Other Panels in Group குழுவில் உள்ள மற்ற பலகங்களை மூடு + Open Panel in Own Window தனிச் சாளரத்தில் பலகத்தைத் திற + Arrange Panels பலகத்தை வரிசைப்படுத்து + Save சேமி + Save As… இவ்வாறு சேமி… + Save a Copy… நகலைச் சேமி… + {name} can't keep everything in this document இந்த ஆவணத்தில் உள்ள அனைத்தையும் {name} ஆல் தக்கவைக்க முடியாது + Choose a format that keeps it, such as Photoshop (PSD), or save a copy. அனைத்தையும் தக்கவைக்கும் Photoshop (PSD) போன்ற வடிவமைப்பைத் தேர்ந்தெடுக்கவும், அல்லது நகலைச் சேமிக்கவும். + Revert முந்தைய நிலைக்குத் திரும்பு + Export ஏற்றுமதி செய் + Quick Export as PNG PNG ஆக விரைவு ஏற்றுமதி + Export As… இவ்வாறு ஏற்றுமதி செய்… + Export Preferences… ஏற்றுமதி விருப்பத்தேர்வுகள்… + Save for Web (Legacy)… வலைக்காகச் சேமி (பழையது)… + Artboards to Files… ஆர்ட்போர்டுகளைக் கோப்புகளாக… + Artboards to PDF… ஆர்ட்போர்டுகளை PDF ஆக… + Layers to Files… அடுக்குகளைக் கோப்புகளாக… + Layer Comps to Files… அடுக்கு அமைப்புகளைக் கோப்புகளாக… + Color Lookup Tables… நிறத் தேடல் அட்டவணைகள்… + Data Sets as Files… தரவுத் தொகுப்புகளைக் கோப்புகளாக… + Paths to Illustrator… பாதைகளை Illustrator-க்கு… + Render Video… வீடியோவை ரெண்டர் செய்… + Generate உருவாக்கு + Image Assets பட சொத்துகள் + Place Embedded… உட்பொதிந்து வை… + Place Linked… இணைத்து வை… + Package… தொகுப்பாக்கு… + Automate தானியக்கு + Batch… தொகுதி… + Create Droplet… ட்ராப்லெட் உருவாக்கு… + Crop and Straighten Photos புகைப்படங்களை வெட்டி நேராக்கு + Contact Sheet II… காண்டாக்ட் ஷீட் II… + Conditional Mode Change… நிபந்தனை முறை மாற்றம்… + Fit Image… படத்தைப் பொருத்து… + Lens Correction… லென்ஸ் திருத்தம்… + Merge to HDR Pro… HDR Pro ஆக இணை… + Photomerge… புகைப்பட ஒருங்கிணைப்பு… + Scripts ஸ்கிரிப்டுகள் + Image Processor… பட செயலி… + Delete All Empty Layers காலியான அனைத்து அடுக்குகளையும் நீக்கு + Flatten All Layer Effects அனைத்து அடுக்கு விளைவுகளையும் தட்டையாக்கு + Flatten All Masks அனைத்து மறைப்புகளையும் தட்டையாக்கு + Script Events Manager… ஸ்கிரிப்ட் நிகழ்வு மேலாளர்… + Import இறக்குமதி செய் + Browse… உலாவு… + Source Files மூலக் கோப்புகள் + Use: பயன்படுத்து: + Files கோப்புகள் + Folder கோப்புறை + Add Open Files திறந்த கோப்புகளைச் சேர் + Sort By Name பெயரால் வரிசைப்படுத்து + Attempt to Automatically Align Source Images மூலப் படங்களைத் தானாக சீரமைக்க முயற்சி + Create Smart Object after Loading Layers அடுக்குகளை ஏற்றிய பின் திறன்மிகு பொருளை உருவாக்கு + Reveal in Finder Finder-இல் காண்பி + Show in Explorer Explorer-இல் காண்பி + Show in Folder கோப்புறையில் காண்பி + File Info… கோப்பு தகவல்… + Print… அச்சிடு… + Print One Copy ஒரு நகலை அச்சிடு + Exit வெளியேறு + Undo செயல்தவிர் + Redo மீண்டும் செய் + Toggle Last State கடைசி நிலையை மாற்று + Fade… மங்கலாக்கு… + Cut வெட்டு + Copy நகலெடு + Copy Merged இணைத்து நகலெடு + Paste ஒட்டு + Paste Special சிறப்பு ஒட்டு + Paste in Place அதே இடத்தில் ஒட்டு + Paste Into உள்ளே ஒட்டு + Paste Outside வெளியே ஒட்டு + Paste Lorem Ipsum Lorem Ipsum ஒட்டு + Clear அழி + Search… தேடு… + Check Spelling… எழுத்துப்பிழை சரிபார்… + Find and Replace Text… உரையைத் தேடி மாற்று… + Add to Dictionary அகராதியில் சேர் + No Spelling Suggestions எழுத்துப்பிழை பரிந்துரைகள் இல்லை + Fill… நிரப்பு… + Stroke… கோடிடு… + Fill with Foreground Color முன்னணி நிறத்தால் நிரப்பு + Fill with Background Color பின்னணி நிறத்தால் நிரப்பு + Fill with Foreground Color, Preserve Transparency முன்னணி நிறத்தால் நிரப்பு, ஒளிஊடுருவும் தன்மையைப் பாதுகாக்கவும் + Fill with Background Color, Preserve Transparency பின்னணி நிறத்தால் நிரப்பு, ஒளிஊடுருவும் தன்மையைப் பாதுகாக்கவும் + Fill from History வரலாற்று நிலையிலிருந்து நிரப்பு + Content-Aware Fill… உள்ளடக்கம் அறிந்த நிரப்பு… + Delete and Fill Selection தேர்வை நீக்கி நிரப்பு + Content-Aware Scale உள்ளடக்கம் அறிந்த அளவீடு + Puppet Warp உருவ வளைப்பு + Perspective Warp பார்வைக்கோண வளைப்பு + Free Transform தன்னிச்சை உருமாற்றம் + Free Transform a Copy நகலைத் தன்னிச்சையாக உருமாற்று + Transform உருமாற்று + Again மீண்டும் + Transform Again on a Copy நகலை மீண்டும் உருமாற்று + Scale அளவு மாற்று + Rotate சுழற்று + Set horizontal skew கிடைமட்ட சாய்வை அமை + Set vertical skew செங்குத்து சாய்வை அமை + Skew சாய் + Distort திரிபாக்கு + Perspective பார்வைக்கோணம் + Warp வளைப்பு + Flip Horizontal கிடைமட்டமாகப் புரட்டு + Flip Vertical செங்குத்தாகப் புரட்டு + Rotate 180° 180° சுழற்று + Rotate 90° Clockwise 90° வலஞ்சுழியாகச் சுழற்று + Rotate 90° Counter Clockwise 90° இடஞ்சுழியாகச் சுழற்று + 180° 180° + 90° Clockwise 90° வலஞ்சுழி + 90° Counter Clockwise 90° இடஞ்சுழி + Arbitrary… விருப்பம்போல்… + Auto-Align Layers… அடுக்குகளைத் தானாக சீரமை… + Auto-Blend Layers… அடுக்குகளைத் தானாகக் கலக்கு… + Define Brush Preset… தூரிகை முன்னமைவை வரையறு… + Define Pattern… வடிவமைப்பை வரையறு… + Define Custom Shape… தனிப்பயன் வடிவத்தை வரையறு… + Purge தூய்மையாக்கு + Clipboard கிளிப்போர்டு + Histories வரலாறுகள் + Video Cache வீடியோ தற்காலிக சேமிப்பு + All அனைத்தும் + Presets முன்னமைவுகள் + Preset Manager… முன்னமைவு மேலாளர்… + Migrate Presets முன்னமைவுகளை இடம்பெயர் + Export/Import Presets… முன்னமைவுகளை ஏற்றுமதி/இறக்குமதி செய்… + Color Settings… நிற அமைப்புகள்… + Assign Profile… சுயவிவரத்தை ஒதுக்கு… + Convert to Profile… சுயவிவரமாக மாற்று… + Keyboard Shortcuts… விசைப்பலகை குறுக்குவழிகள்… + Menus… பட்டிகள்… + Toolbar… கருவிப்பட்டி… + Preferences விருப்பத்தேர்வுகள் + General… பொது… + Interface… இடைமுகம்… + Workspace… பணியிடம்… + Tools… கருவிகள்… + History Log… வரலாற்றுப் பதிவு… + File Handling… கோப்பு கையாளுதல்… + Export… ஏற்றுமதி… + Performance… செயல்திறன்… + Scratch Disks… நினைவக வட்டுகள்… + Cursors… சுட்டிகள்… + Transparency & Gamut… ஒளிஊடுருவல் & நிற வரம்பு… + Units & Rulers… அலகுகள் & அளவுகோல்கள்… + Guides, Grid & Slices… அளவுகோட்டு வரிகள், கட்டம் & துண்டுகள்… + Plug-ins… செருகுநிரல்கள்… + Type… உரை… + Enhanced Controls… மேம்படுத்தப்பட்ட கட்டுப்பாடுகள்… + Camera Raw… கேமரா Raw… + Raw Defaults… Raw இயல்புநிலைகள்… + Integrations… ஒருங்கிணைப்புகள்… + AI Integrations… AI ஒருங்கிணைப்புகள்… + Install Plug-in… செருகுநிரலை நிறுவு… + Language Options மொழி விருப்பங்கள் + Settings… அமைப்புகள்… + Mode முறை + Bitmap பிட்மேப் + Grayscale சாம்பல் அளவு + Duotone இருநிறம் + Indexed Color குறியீட்டு நிறம் + RGB Color RGB நிறம் + CMYK Color CMYK நிறம் + Lab Color Lab நிறம் + Multichannel பல்சேனல் + 8 Bits/Channel 8 பிட்/சேனல் + 8 bit 8 பிட் + Integer முழுஎண் + 16 Bits/Channel 16 பிட்/சேனல் + 16 bit 16 பிட் + 32 Bits/Channel 32 பிட்/சேனல் + 32 bit (float) 32 பிட் (மிதவை) + Floating point மிதவைப் புள்ளி + Color Table… நிற அட்டவணை… + Bitmap… பிட்மேப்… + Duotone… இருநிறம்… + Indexed Color… குறியீட்டு நிறம்… + Adjustments சரிசெய்தல்கள் + Brightness/Contrast… ஒளிர்வு/மாறுபாடு… + Levels… நிலைகள்… + Curves… வளைவுகள்… + Exposure… வெளிப்பாடு… + Vibrance… துடிப்பு… + Hue/Saturation… சாயல்/செறிவு… + Color Balance… நிறச் சமநிலை… + Black & White… கருப்பு & வெள்ளை… + Photo Filter… புகைப்பட வடிகட்டி… + Channel Mixer… சேனல் கலப்பி… + Color Lookup… நிறத் தேடல்… + Invert தலைகீழாக்கு + Posterize… போஸ்டரைஸ்… + Threshold… வாசல் மதிப்பு… + Gradient Map… நிறப் படித்திறன் வரைபடம்… + Selective Color… தேர்ந்தெடுத்த நிறம்… + Shadows/Highlights… நிழல்கள்/ஒளிர்வுகள்… + HDR Toning… HDR டோனிங்… + Desaturate செறிவைக் குறை + Match Color… நிறத்தைப் பொருத்து… + Replace Color… நிறத்தை மாற்று… + Equalize சமப்படுத்து + Auto Tone தானியங்கி தொனி + Auto Contrast தானியங்கி மாறுபாடு + Auto Color தானியங்கி நிறம் + Image Size… பட அளவு… + Canvas Size… படச்சட்ட அளவு… + Image Rotation பட சுழற்சி + Flip Canvas Horizontal படச்சட்டத்தை கிடைமட்டமாகப் புரட்டு + Flip Canvas Vertical படச்சட்டத்தை செங்குத்தாகப் புரட்டு + Crop வெட்டு + Trim… ஒதுக்கு… + Reveal All அனைத்தையும் வெளிப்படுத்து + Duplicate… நகல் உருவாக்கு… + Apply Image… படத்தைப் பயன்படுத்து… + Calculations… கணக்கீடுகள்… + Variables மாறிகள் + Define… வரையறு… + Data Sets… தரவுத் தொகுப்புகள்… + Apply Data Set… தரவுத் தொகுப்பைப் பயன்படுத்து… + Variable Data Sets… மாறி தரவுத் தொகுப்புகள்… + Trap… பிடிப்பு… + Analysis பகுப்பாய்வு + Set Measurement Scale… அளவீட்டு அளவுகோலை அமை… + Select Data Points… தரவுப் புள்ளிகளைத் தேர்ந்தெடு… + Record Measurements அளவீடுகளைப் பதிவு செய் + Ruler Tool அளவுகோல் கருவி + Count Tool எண்ணிக்கைக் கருவி + Place Scale Marker… அளவுகோல் குறியை வை… + Custom… தனிப்பயன்… + New புதியது + Layer… அடுக்கு… + Group… குழு… + Group from Layers… அடுக்குகளிலிருந்து குழு… + Artboard… ஆர்ட்போர்டு… + Artboard from Group… குழுவிலிருந்து ஆர்ட்போர்டு… + Artboard from Layers… அடுக்குகளிலிருந்து ஆர்ட்போர்டு… + Layer via Copy நகல் வழியாக அடுக்கு + Layer via Cut வெட்டு வழியாக அடுக்கு + Layer From Background… பின்னணியிலிருந்து அடுக்கு… + Layer from Background… பின்னணியிலிருந்து அடுக்கு… + Background from Layer அடுக்கிலிருந்து பின்னணி + Background From Layer அடுக்கிலிருந்து பின்னணி + New Shape Layer புதிய வடிவ அடுக்கு + New Type Layer புதிய உரை அடுக்கு + New Fill Layer புதிய நிரப்பு அடுக்கு + New Adjustment Layer புதிய சரிசெய்தல் அடுக்கு + New Layer Based Slice புதிய அடுக்கு அடிப்படையிலான துண்டு + New Smart Object via Copy நகல் வழியாகப் புதிய திறன்மிகு பொருள் + New Blank Video Layer புதிய வெற்று வீடியோ அடுக்கு + New Video Layer from File… கோப்பிலிருந்து புதிய வீடியோ அடுக்கு… + Duplicate Layer… அடுக்கை நகலெடு… + Delete Layer அடுக்கை நீக்கு + Delete நீக்கு + Rename Layer அடுக்கின் பெயரை மாற்று + Create Layer அடுக்கை உருவாக்கு + Layer Style அடுக்கு பாணி + Blending Options… கலப்பு விருப்பங்கள்… + Bevel & Emboss… சரிவு & புடைப்பு… + Use Global Light பொது ஒளியைப் பயன்படுத்து + Overprint மேல் அச்சிடு + Inner Shadow… உள் நிழல்… + Inner Glow… உள் பிரகாசம்… + Satin… சாடின்… + Color Overlay… நிற மேலடுக்கு… + Gradient Overlay… நிறப் படித்திறன் மேலடுக்கு… + Pattern Overlay… வடிவ மேலடுக்கு… + Outer Glow… வெளிப் பிரகாசம்… + Drop Shadow… விழும் நிழல்… + Copy Layer Style அடுக்கு பாணியை நகலெடு + Paste Layer Style அடுக்கு பாணியை ஒட்டு + Clear Layer Style அடுக்கு பாணியை அழி + Global Light… பொது ஒளி… + Hide All Effects அனைத்து விளைவுகளையும் மறை + Scale Effects… விளைவுகளை அளவு மாற்று… + Smart Filter திறன்மிகு வடிகட்டி + Convert for Smart Filters திறன்மிகு வடிகட்டிகளுக்கு மாற்று + Clear Smart Filters திறன்மிகு வடிகட்டிகளை அழி + Disable Smart Filters திறன்மிகு வடிகட்டிகளை முடக்கு + Delete Filter Mask வடிகட்டி மறைப்பை நீக்கு + Disable Filter Mask வடிகட்டி மறைப்பை முடக்கு + Solid Color… திட நிறம்… + Gradient… நிறப் படித்திறன்… + Pattern… வடிவமைப்பு… + Layer Mask அடுக்கு மறைப்பு + Vector Mask திசையன் மறைப்பு + Reveal Selection தேர்வை வெளிப்படுத்து + Hide Selection தேர்வை மறை + Hide All அனைத்தையும் மறை + From Transparency ஒளிஊடுருவலிலிருந்து + Delete Vector Mask திசையன் மறைப்பை நீக்கு + Enable Layer Mask அடுக்கு மறைப்பை இயக்கு + Disable Layer Mask அடுக்கு மறைப்பை முடக்கு + Enable Vector Mask திசையன் மறைப்பை இயக்கு + Link Layer Mask அடுக்கு மறைப்பை இணை + Unlink Layer Mask அடுக்கு மறைப்பு இணைப்பை நீக்கு + Toggle Layer Mask Overlay அடுக்கு மறைப்பு மேலடுக்கை மாற்று + Link Vector Mask திசையன் மறைப்பை இணை + Add Vector Mask வெக்டர் மறைப்பைச் சேர் + Vector Mask from Current Path தற்போதைய பாதையிலிருந்து திசையன் மறைப்பு + Create Clipping Mask கிளிப்பிங் மறைப்பை உருவாக்கு + Release Clipping Mask கிளிப்பிங் மறைப்பை விடுவி + Smart Objects திறன்மிகு பொருட்கள் + Smart Object திறன்மிகு பொருள் + Convert to Smart Object திறன்மிகு பொருளாக மாற்று + Convert to Embedded உட்பொதிந்ததாக மாற்று + Convert to Layers அடுக்குகளாக மாற்று + Convert to Linked… இணைக்கப்பட்டதாக மாற்று… + Edit Contents உள்ளடக்கத்தைத் திருத்து + Replace Contents… உள்ளடக்கத்தை மாற்று… + Relink to File… கோப்புடன் மீண்டும் இணை… + Export Contents… உள்ளடக்கத்தை ஏற்றுமதி செய்… + Update Modified Content மாற்றிய உள்ளடக்கத்தைப் புதுப்பி + Update All Modified Content மாற்றிய அனைத்து உள்ளடக்கத்தையும் புதுப்பி + Stack Mode குவியல் முறை + Choose Stack Mode: குவியல் முறையைத் தேர்ந்தெடு: + Entropy என்ட்ரோபி + Kurtosis குர்டோசிஸ் + Maximum அதிகபட்சம் + Mean சராசரி + Median இடைநிலை + Minimum குறைந்தபட்சம் + Range வீச்சு + Skewness ஸ்கீவ்னெஸ் + Standard Deviation திட்ட விலகல் + Summation கூட்டுத்தொகை + Variance மாறுபடுதிறன் + Video Layers வீடியோ அடுக்குகள் + Interpret Footage… காட்சிப்பதிவை விளக்கு… + Replace Footage… காட்சிப்பதிவை மாற்று… + Reload Frame சட்டத்தை மீண்டும் ஏற்று + Show Altered Video மாற்றப்பட்ட வீடியோவைக் காண்பி + Restore Frame சட்டத்தை மீட்டமை + Restore All Frames அனைத்து சட்டங்களையும் மீட்டமை + Insert Blank Frame வெற்று சட்டத்தைச் செருகு + Delete Frame சட்டத்தை நீக்கு + Duplicate Frame சட்டத்தை நகலெடு + Frame from Layers அடுக்குகளிலிருந்து சட்டம் + Video Frames to Layers… வீடியோ சட்டங்களை அடுக்குகளாக… + Rasterize ராஸ்டராக்கு + Rasterize Type உரையை ராஸ்டராக்கு + Rasterize Type Layer உரை அடுக்கை ராஸ்டராக்கு + Rasterize Shape வடிவத்தை ராஸ்டராக்கு + New Guide Layout… புதிய அளவுகோட்டு வரி அமைப்பு… + New Guides From Shape வடிவத்திலிருந்து புதிய அளவுகோட்டு வரிகள் + Lock Layers… அடுக்குகளைப் பூட்டு… + Link Layers அடுக்குகளை இணை + Select Linked Layers இணைக்கப்பட்ட அடுக்குகளைத் தேர்ந்தெடு + Merge Layers அடுக்குகளை இணை + Merge Down கீழே இணை + Merge Group குழுவை இணை + Merge Visible தெரிவதை இணை + Stamp Visible தெரிவதை முத்திரையிடு + Select Layer Above மேலே உள்ள அடுக்கைத் தேர்ந்தெடு + Select Layer Below கீழே உள்ள அடுக்கைத் தேர்ந்தெடு + Select Top Layer மேல் அடுக்கைத் தேர்ந்தெடு + Select Bottom Layer கீழ் அடுக்கைத் தேர்ந்தெடு + Add Layer Above to Selection மேலே உள்ள அடுக்கைத் தேர்வில் சேர் + Add Layer Below to Selection கீழே உள்ள அடுக்கைத் தேர்வில் சேர் + Stamp Down கீழே முத்திரையிடு + Flatten Image படத்தைத் தட்டையாக்கு + Matting மேட்டிங் + Color Decontaminate… நிறத் தூய்மையாக்கு… + Remove Black Matte கருப்பு ஒளிமறுப்பை நீக்கு + Remove White Matte வெள்ளை ஒளிமறுப்பை நீக்கு + Defringe… விளிம்பு நீக்கு… + Group Layers அடுக்குகளைக் குழுவாக்கு + Ungroup Layers அடுக்குகளின் குழுவை நீக்கு + Hide Layers அடுக்குகளை மறை + Arrange ஒழுங்குபடுத்து + Bring to Front முன்னே கொண்டுவா + Bring Forward முன்னோக்கி கொண்டுவா + Send Backward பின்னோக்கி அனுப்பு + Send to Back பின்னே அனுப்பு + Reverse தலைகீழ் + Combine Shapes வடிவங்களை இணை + Unite Shapes வடிவங்களை ஒன்றிணை + Subtract Front Shape முன் வடிவத்தைக் கழி + Intersect Shape Areas வடிவப் பகுதிகளின் வெட்டுப்பகுதி + Exclude Overlapping Shapes ஒன்றுக்கொன்று மேலேறும் வடிவங்களை நீக்கு + Merge Shape Components வடிவக் கூறுகளை இணை + Align சீரமை + Top Edges மேல் விளிம்புகள் + Vertical Centers செங்குத்து மையங்கள் + Bottom Edges கீழ் விளிம்புகள் + Left Edges இடது விளிம்புகள் + Horizontal Centers கிடைமட்ட மையங்கள் + Right Edges வலது விளிம்புகள் + Distribute பகிர் + Vertically செங்குத்தாக + Horizontally கிடைமட்டமாக + Layer Edges அடுக்கு விளிம்புகள் + Isolate Layers அடுக்குகளைத் தனிமைப்படுத்து + Layer Content Options… அடுக்கு உள்ளடக்க விருப்பங்கள்… + Fill Content நிரப்பு உள்ளடக்கம் + Deselect Layers அடுக்குகளின் தேர்வை நீக்கு + Find Layers அடுக்குகளைத் தேடு + Layer Comps அடுக்கு அமைப்புகள் + Layers அடுக்குகள் + All Layers அனைத்து அடுக்குகள் + Hidden Layers மறைந்த அடுக்குகள் + Mask All Objects அனைத்துப் பொருட்களையும் மறையச் செய் + Subject பொருள் + Sky வானம் + Panels பலகங்கள் + Character Panel எழுத்துப் பலகம் + Paragraph Panel பத்திப் பலகம் + Character Styles Panel எழுத்துப் பாணிகள் பலகம் + Paragraph Styles Panel பத்திப் பாணிகள் பலகம் + Glyphs Panel குறியுருப் பலகம் + Anti-Alias விளிம்பு மென்மையாக்கு + Sharp கூர்மை + Crisp துல்லியம் + Strong வலிமை + Smooth மென்மை + Windows LCD விண்டோஸ் எல்.சி.டி + Windows Windows + Orientation திசையமைவு + Horizontal கிடைமட்டம் + Vertical செங்குத்து + OpenType ஓபன் டைப் + Standard Ligatures நிலையான இணைப்பெழுத்துகள் + Contextual Alternates சூழல் மாற்றுகள் + Discretionary Ligatures விருப்ப இணைப்பெழுத்துகள் + Swash அலங்கார எழுத்து + Oldstyle பழைய பாணி + Stylistic Alternates பாணி மாற்றுகள் + Titling Alternates தலைப்பு மாற்றுகள் + Ornaments அலங்காரங்கள் + Ordinals வரிசை எண்கள் + Fractions பின்னங்கள் + Create Work Path பணிப் பாதையை உருவாக்கு + Convert to Shape வடிவமாக மாற்று + Warp Text… உரை வளைப்பு… + Convert to Point Text புள்ளி உரையாக மாற்று + Convert to Paragraph Text பத்தி உரையாக மாற்று + Default Features இயல்புநிலை அம்சங்கள் + East Asian Features கிழக்கு ஆசிய அம்சங்கள் + Middle Eastern Features மத்திய கிழக்கு அம்சங்கள் + Middle Eastern & South Asian Composer மத்திய கிழக்கு & தெற்காசிய அமைப்பி + Update All Text Layers அனைத்து உரை அடுக்குகளையும் புதுப்பி + Replace All Missing Fonts காணாமல்போன அனைத்து எழுத்துருக்களையும் மாற்று + Resolve Missing Fonts… காணாமல்போன எழுத்துருக்களைத் தீர்… + Font Preview Size எழுத்துரு முன்னோட்ட அளவு + None எதுவுமில்லை + Small சிறியது + Medium நடுத்தரம் + Large பெரியது + Extra Large மிகப் பெரியது + Huge பிரம்மாண்டம் + Load Default Type Styles இயல்புநிலை உரைப் பாணிகளை ஏற்று + Save Default Type Styles இயல்புநிலை உரைப் பாணிகளைச் சேமி + Deselect தேர்வை நீக்கு + Reselect மீண்டும் தேர்ந்தெடு + Inverse தலைகீழ் + Inverse Selection தேர்வைத் தலைகீழாக்கு + Similar ஒத்தவை + Color Range… நிற வரம்பு… + Focus Area… கவனப் பகுதி… + Select and Mask… தேர்ந்தெடுத்து மறையச் செய்… + Smart Radius திறன்மிகு ஆரம் + Shift Edge விளிம்பை நகர்த்து + Decontaminate தூய்மையாக்கு + Output வெளியீடு + Refine Edge விளிம்பைச் செம்மைப்படுத்து + Modify மாற்றியமை + Border… எல்லை… + Smooth… மென்மையாக்கு… + Expand… விரிவாக்கு… + Contract… சுருக்கு… + Feather… இறகாக்கு… + Grow வளர் + Transform Selection தேர்வை உருமாற்று + Edit in Quick Mask Mode விரைவு மறைப்பு முறையில் திருத்து + Load Selection… தேர்வை ஏற்று… + Save Selection… தேர்வைச் சேமி… + Match All அனைத்தையும் பொருத்து + Last Filter கடைசி வடிகட்டி + Filter Gallery… வடிகட்டி காட்சியகம்… + Adaptive Wide Angle… தகவமைக்கும் அகலக் கோணம்… + Camera Raw Filter… கேமரா Raw வடிகட்டி… + Liquify… திரவமாக்கு… + Vanishing Point… மறையும் புள்ளி… + Blur மங்கலாக்கு + Blur Gallery மங்கல் காட்சியகம் + Field Blur… புல மங்கல்… + No pin selected பின் எதுவும் தேர்ந்தெடுக்கப்படவில்லை + Click the image to add a pin; drag a pin to move it, or its ring to change its blur. Delete removes the selected pin. பின்னைச் சேர்க்க படத்தில் கிளிக் செய்யவும்; நகர்த்த பின்னை இழுக்கவும், மங்கலை மாற்ற அதன் வளையத்தை இழுக்கவும். Delete தேர்ந்தெடுத்த பின்னை நீக்கும். + Drag the handles on the outline to resize and turn it, the square to round its corners, and the dots inside to set where the blur starts. அளவை மாற்றவும் சுழற்றவும் வெளிக்கோட்டிலுள்ள கைப்பிடிகளையும், மூலைகளை வளைக்க சதுரத்தையும், மங்கல் தொடங்கும் இடத்தை அமைக்க உள்ளே உள்ள புள்ளிகளையும் இழுக்கவும். + Drag the pin to move the band, or its ring to change its blur. Drag the solid lines to widen the sharp band, the dashed lines to set the transition, and the dots to turn it. பட்டையை நகர்த்த பின்னையும், மங்கலை மாற்ற அதன் வளையத்தையும் இழுக்கவும். கூர்மையான பட்டையை அகலமாக்க தொடர் கோடுகளையும், மாற்றத்தை அமைக்க புள்ளிக்கோடுகளையும், சுழற்ற புள்ளிகளையும் இழுக்கவும். + Drag the handles on the outline to resize and turn it; the ring sets the blur angle. அளவை மாற்றவும் சுழற்றவும் வெளிக்கோட்டிலுள்ள கைப்பிடிகளை இழுக்கவும்; வளையம் மங்கல் கோணத்தை அமைக்கிறது. + Blur Angle மங்கல் கோணம் + Iris Blur… கருவிழி மங்கல்… + Tilt-Shift… டில்ட்-ஷிப்ட்… + Path Blur… பாதை மங்கல்… + Spin Blur… சுழல் மங்கல்… + Blur More மேலும் மங்கலாக்கு + Box Blur… பெட்டி மங்கல்… + Gaussian Blur… காசியன் மங்கல்… + Lens Blur… லென்ஸ் மங்கல்… + Motion Blur… இயக்க மங்கல்… + Radial Blur… ஆரை மங்கல்… + Shape Blur… வடிவ மங்கல்… + Smart Blur… திறன்மிகு மங்கல்… + Surface Blur… மேற்பரப்பு மங்கல்… + Average சராசரி + Displace… இடம்பெயர்… + Pinch… கிள்ளு… + Polar Coordinates… துருவ ஆயத்தொலைவுகள்… + Ripple… அலைவளையம்… + Shear… ஷியர்… + Spherize… கோளமாக்கு… + Twirl… சுழலச்செய்… + Wave… அலை… + ZigZag… ஜிக்ஜாக்… + Noise இரைச்சல் + Add Noise… இரைச்சலைச் சேர்… + Despeckle புள்ளிகளை நீக்கு + Dust & Scratches… தூசு & கீறல்கள்… + Median… இடைநிலை… + Reduce Noise… இரைச்சலைக் குறை… + Pixelate பிக்சலாக்கு + Color Halftone… நிற அரைத்தொனி… + Crystallize… படிகமாக்கு… + Facet முகப்பு + Fragment துண்டம் + Mezzotint… மெசோடின்ட்… + Mosaic… மொசைக்… + Pointillize… புள்ளிப்படுத்து… + Render ரெண்டர் + Clouds மேகங்கள் + Difference Clouds வேறுபாட்டு மேகங்கள் + Fibers… இழைகள்… + Flame… தீச்சுடர்… + Lens Flare… லென்ஸ் ஒளிப்பிழம்பு… + Lighting Effects… ஒளி விளைவுகள்… + Relight… மறுஒளியூட்டு… + Picture Frame… படச் சட்டகம்… + Tree… மரம்… + Sharpen கூர்மையாக்கு + Sharpen Edges விளிம்புகளைக் கூர்மையாக்கு + Sharpen More மேலும் கூர்மையாக்கு + Smart Sharpen… திறன்மிகு கூர்மையாக்கல்… + Unsharp Mask… கூர்மைப்படுத்துதல் மறைப்பு… + High Pass… உயர் அனுமதி… + Stylize பாணியாக்கு + Diffuse… பரப்பு… + Emboss… புடைப்பு… + Extrude… நீட்டு… + Find Edges விளிம்புகளைக் கண்டறி + Oil Paint… எண்ணெய் ஓவியம்… + Solarize சோலரைஸ் + Tiles… ஓடுகள்… + Trace Contour… வெளிக்கோட்டைத் தடமிடு… + Wind… காற்று… + Video வீடியோ + De-Interlace… இடைப்பின்னலை நீக்கு… + NTSC Colors NTSC நிறங்கள் + Other மற்றவை + Maximum… அதிகபட்சம்… + Minimum… குறைந்தபட்சம்… + Offset… நகர்வு… + Plug-ins செருகுநிரல்கள் + Proof Setup சரிபார்ப்பு அமைப்பு + Proof Colors சரிபார்ப்பு நிறங்கள் + Gamut Warning நிற வரம்பு எச்சரிக்கை + Working CMYK பணி CMYK + Working Cyan Plate பணி நீலப்பச்சை தட்டு + Working Magenta Plate பணி கருஞ்சிவப்பு தட்டு + Working Yellow Plate பணி மஞ்சள் தட்டு + Working Black Plate பணி கருப்பு தட்டு + Working CMY Plate பணி CMY தட்டு + Legacy Macintosh RGB பழைய மேகிண்டோஷ் RGB + Internet Standard RGB இணைய நிலையான RGB + Monitor RGB திரை RGB + Color Blindness — Protanopia-type சிவப்பு நிறக்குருடு + Color Blindness — Deuteranopia-type பச்சை நிறக்குருடு + Zoom In பெரிதாக்கு + Zoom In (hold, drag to scrub) பெரிதாக்கு (அழுத்திப் பிடித்து, நகர்த்தித் தேடவும்) + Zoom Out சிறிதாக்கு + Zoom Out (hold) சிறிதாக்கு (அழுத்திப் பிடிக்கவும்) + Fit on Screen திரைக்குப் பொருத்து + Fit Layer(s) on Screen அடுக்குகளைத் திரைக்குப் பொருத்து + Fit Artboard on Screen ஆர்ட்போர்டைத் திரைக்குப் பொருத்து + 100% 100% + 200% 200% + 75% 75% + 80% 80% + 85% 85% + 90% 90% + 95% 95% + 125% 125% + 150% 150% + 175% 175% + 250% 250% + 300% 300% + Print Size அச்சு அளவு + Pixel Aspect Ratio பிக்சல் விகிதம் + Pixel Aspect Ratio Correction பிக்சல் விகிதத் திருத்தம் + Custom Pixel Aspect Ratio… தனிப்பயன் பிக்சல் விகிதம்… + Square சதுரம் + D1/DV NTSC (0.91) D1/DV NTSC (0.91) + D1/DV NTSC Widescreen (1.21) D1/DV NTSC அகலத்திரை (1.21) + D1/DV PAL (1.09) D1/DV PAL (1.09) + D1/DV PAL Widescreen (1.46) D1/DV PAL அகலத்திரை (1.46) + Anamorphic 2:1 (2) அனாமார்பிக் 2:1 (2) + HDV 1080/DVCPRO HD 720 (1.33) HDV 1080/DVCPRO HD 720 (1.33) + DVCPRO HD 1080/HDV 1080 (1.5) DVCPRO HD 1080/HDV 1080 (1.5) + 32-bit Preview Options… 32 பிட் முன்னோட்ட விருப்பங்கள்… + Screen Mode திரை முறை + Standard Screen Mode நிலையான திரை முறை + Full Screen Mode With Menu Bar பட்டிப்பட்டையுடன் முழுத்திரை முறை + Full Screen Mode முழுத்திரை முறை + Cycle Screen Mode திரை முறைகளை மாற்றி மாற்று + Show காண்பி + Extras கூடுதல்கள் + Selection Edges தேர்வு விளிம்புகள் + Target Path இலக்குப் பாதை + Current Path தற்போதைய பாதை + Grid கட்டம் + Guides அளவுகோட்டு வரிகள் + Canvas Guides படச்சட்ட அளவுகோட்டு வரிகள் + Artboard Guides ஆர்ட்போர்டு அளவுகோட்டு வரிகள் + Count எண்ணிக்கை + Smart Guides திறன்மிகு அளவுகோட்டு வரிகள் + Slices துண்டுகள் + Notes குறிப்புகள் + Pixel Grid பிக்சல் கட்டம் + Pixel Art பிக்சல் கலை + Pixel Art Preview பிக்சல் கலை முன்னோட்டம் + Pattern Preview வடிவமைப்பு முன்னோட்டம் + Brush Preview தூரிகை முன்னோட்டம் + Mesh வலை + Edit Pins பின்களைத் திருத்து + Document Bounds ஆவண எல்லைகள் + Show Extras Options… கூடுதல் விருப்பங்களைக் காண்பி… + Rulers அளவுகோல்கள் + Snap ஒட்டு + Snap To இதனுடன் ஒட்டு + Lock Guides அளவுகோட்டு வரிகளை நிலைநிறுத்து + Clear Guides அளவுகோட்டு வரிகளை அழி + Clear Selected Artboard Guides தேர்ந்தெடுத்த ஆர்ட்போர்டு அளவுகோட்டு வரிகளை அழி + Clear Canvas Guides படச்சட்ட அளவுகோட்டு வரிகளை அழி + New Guide… புதிய அளவுகோட்டு வரி… + Lock Slices துண்டுகளைப் பூட்டு + Clear Slices துண்டுகளை அழி + Match Zoom பெரிதாக்கலைப் பொருத்து + Match Location இடத்தைப் பொருத்து + Match Rotation சுழற்சியைப் பொருத்து + Cascade அடுக்கு அடுக்காக + Tile ஓடுகளாக + Tile All Horizontally அனைத்தையும் கிடைமட்டமாக ஓடுகளாக்கு + Tile All Vertically அனைத்தையும் செங்குத்தாக ஓடுகளாக்கு + 2-up Horizontal 2-சாளரம் கிடைமட்டம் + 2-up Vertical 2-சாளரம் செங்குத்து + 3-up Horizontal 3-சாளரம் கிடைமட்டம் + 3-up Stacked 3-சாளரம் அடுக்கு + 3-up Vertical 3-சாளரம் செங்குத்து + 4-up 4-சாளரம் + 6-up 6-சாளரம் + Consolidate All to Tabs அனைத்தையும் தாவல்களாக ஒருங்கிணை + Float in Window சாளரத்தில் மிதக்கவிடு + Float All in Windows அனைத்தையும் சாளரங்களில் மிதக்கவிடு + New Window for Document ஆவணத்துக்குப் புதிய சாளரம் + Workspace பணியிடம் + Essentials அடிப்படைகள் + Graphic and Web வரைகலை & வலை + Painting ஓவியம் + Photography புகைப்படக்கலை + New Workspace… புதிய பணியிடம்… + Delete Workspace… பணியிடத்தை நீக்கு… + Reset Workspace பணியிடத்தை மீட்டமை + Reset Tool கருவியை மீட்டமை + Reset All Tools அனைத்து கருவிகளையும் மீட்டமை + Reset all tools to their default settings? அனைத்து கருவிகளையும் இயல்புநிலை அமைப்புகளுக்கு மீட்டமைக்கவா? + Lock Workspace பணியிடத்தைப் பூட்டு + Theme தோற்றம் + Pro Theme புரோ தோற்றம் + Pro Medium Gray Theme புரோ நடுத்தர சாம்பல் தோற்றம் + Pro Light Gray Theme புரோ வெளிர் சாம்பல் தோற்றம் + Pro Light Theme புரோ வெளிர் தோற்றம் + Studio Theme ஸ்டுடியோ தோற்றம் + Studio Light Theme ஸ்டுடியோ வெளிர் தோற்றம் + Adwaita Light Theme அத்வைதா வெளிர் தோற்றம் + Adwaita Dark Theme அத்வைதா கருமை தோற்றம் + Classic Theme கிளாசிக் தோற்றம் + Solarized dark சோலரைஸ்டு கருமை + Solarized Dark Theme சோலரைஸ்டு கருமை தோற்றம் + Breeze dark பிரீஸ் கருமை + Breeze Dark Theme பிரீஸ் கருமை தோற்றம் + Breeze light பிரீஸ் வெளிர் + Breeze Light Theme பிரீஸ் வெளிர் தோற்றம் + Soft dark மென் கருமை + Soft light மென் வெளிர் + Soft Dark Theme மென் கருமை தோற்றம் + Soft Light Theme மென் வெளிர் தோற்றம் + Next Theme அடுத்த தோற்றம் + Actions செயல்கள் + Brush Settings தூரிகை அமைப்புகள் + Brushes தூரிகைகள் + Channels சேனல்கள் + Character எழுத்து + Character Styles எழுத்துப் பாணிகள் + Clone Source நகலெடுப்பு மூலம் + Color நிறம் + Glyphs குறியுருக்கள் + Gradients நிறப் படித்திறன்கள் + Histogram ஹிஸ்டோகிராம் + History வரலாறு + Info தகவல் + Measurement Log அளவீட்டுப் பதிவு + Modifier Keys மாற்றி விசைகள் + Navigator வழிகாட்டி + Options விருப்பங்கள் + Paragraph பத்தி + Paragraph Styles பத்திப் பாணிகள் + Paths பாதைகள் + Patterns வடிவமைப்புகள் + Properties பண்புகள் + Shapes வடிவங்கள் + Styles பாணிகள் + Swatches நிற மாதிரிகள் + Timeline காலவரிசை + Tool Presets கருவி முன்னமைவுகள் + Tools கருவிகள் + About PhotoCraft போட்டோகிராப்ட் பற்றி + PhotoCraft Website போட்டோகிராப்ட் இணையதளம் + PhotoCraft on GitHub கிட்ஹப்பில் போட்டோகிராப்ட் + ArtCraft Website ஆர்ட்கிராப்ட் இணையதளம் + Join the ArtCraft Discord… ஆர்ட்கிராப்ட் டிஸ்கார்டில் சேர்… + Report an Issue… சிக்கலைப் புகாரளி… + WIA Support… WIA ஆதரவு… + Apply பயன்படுத்து + HSB/HSL HSB/HSL + Invert… தலைகீழாக்கு… + Load Files into Stack… கோப்புகளைக் குவியலில் ஏற்று… + Motion இயக்கம் + Notes… குறிப்புகள்… + Other… மற்றவை… + Remove Warp Split வளைப்பு பிரிவை நீக்கு + Shape வடிவம் + Split Warp Crosswise வளைப்பைக் குறுக்காகப் பிரி + Split Warp Horizontally வளைப்பைக் கிடைமட்டமாகப் பிரி + Split Warp Vertically வளைப்பைச் செங்குத்தாகப் பிரி + Statistics… புள்ளிவிவரங்கள்… + Refine Strokes செம்மைப்படுத்தும் கோடுகள் + Edits திருத்தங்கள் +@plural {n} item|{n} items {n} உருப்படி|{n} உருப்படிகள் + Auto தானியங்கி + (print to the printer) (அச்சுப்பொறியில் அச்சிடு) + + Add variable + மாறியைச் சேர் + 30 frames @ 30 fps 30 சட்டங்கள் @ 30 fps + 3D LUT File 3D LUT கோப்பு + Absolute முழுமையான + Absolute Colorimetric முழுமையான நிற அளவியல் + Action செயல் + Adaptive தகவமைவு + Adaptive Wide Angle isn't open தகவமைக்கும் அகலக் கோணம் திறக்கப்படவில்லை + Add சேர் + Add Layer Mask அடுக்கு மறைப்பைச் சேர் + Add Stop நிறுத்தத்தைச் சேர் + Add a layer style அடுக்கு பாணியைச் சேர் + Add a mask (from the selection; {key} inverts) மறைப்பைச் சேர் (தேர்விலிருந்து; {key} தலைகீழாக்கும்) + Add an adjustment சரிசெய்தலைச் சேர் + Add disk வட்டைச் சேர் + Add space after paragraph பத்திக்குப் பின் இடைவெளியைச் சேர் + Add space before paragraph பத்திக்கு முன் இடைவெளியைச் சேர் + Add to Sample மாதிரியில் சேர் + Add to selection ({key}) தேர்வில் சேர் ({key}) + Adjust for Zoom பெரிதாக்கலுக்கேற்ப சரிசெய் + Adjustment visible சரிசெய்தல் தெரிகிறது + Adobe RGB (1998) compatible Adobe RGB (1998) இணக்கமானது + Align and Distribute சீரமை & பகிர் + Align and distribute சீரமை & பகிர் + Align horizontal centers கிடைமட்ட மையங்களைச் சீரமை + Align left edges இடது விளிம்புகளைச் சீரமை + Align right edges வலது விளிம்புகளைச் சீரமை + Aligned சீரமைக்கப்பட்டது + All Caps அனைத்தும் பெரிய எழுத்து + All Slices அனைத்து துண்டுகள் + All User Slices அனைத்து பயனர் துண்டுகள் + All shortcuts reset to PhotoCraft defaults. அனைத்து குறுக்குவழிகளும் போட்டோகிராப்ட் இயல்புநிலைகளுக்கு மீட்டமைக்கப்பட்டன. + Alt Alt + Always use pressure for opacity ஒளிபுகாமைக்கு எப்போதும் அழுத்தத்தைப் பயன்படுத்து + Always use pressure for size அளவுக்கு எப்போதும் அழுத்தத்தைப் பயன்படுத்து + Amount அளவு + Anchor: நங்கூரம்: + Angle கோணம் + Angle Gradient கோண நிறப் படித்திறன் + Angle Jitter கோண அதிர்வு + Answer the unsaved-changes prompt first முதலில் சேமிக்கப்படாத மாற்றங்கள் குறித்த கேள்விக்குப் பதிலளிக்கவும் + Anti-alias விளிம்பு மென்மையாக்கு + Appearance தோற்றம் + Appearance (Layer Style) தோற்றம் (அடுக்கு பாணி) + Apply Layer Mask அடுக்கு மறைப்பைப் பயன்படுத்து + Add Mask to Selection மறைப்பைத் தேர்வில் சேர் + Subtract Mask from Selection தேர்விலிருந்து மறைப்பைக் கழி + Intersect Mask with Selection மறைப்புடன் தேர்வை வெட்டிக்கொள் + Apply Per Tip ஒவ்வொரு முனைக்கும் பயன்படுத்து + Apply next selected layer comp தேர்ந்தெடுத்த அடுத்த அடுக்கு அமைப்பைப் பயன்படுத்து + Apply previous selected layer comp தேர்ந்தெடுத்த முந்தைய அடுக்கு அமைப்பைப் பயன்படுத்து + Artboard ஆர்ட்போர்டு + Artboard Background Color ஆர்ட்போர்டு பின்னணி நிறம் + Assign working space பணி வெளியை ஒதுக்கு + Author: ஆசிரியர்: + Auto Hide தானாக மறை + Auto-Select: தானாகத் தேர்ந்தெடு: + Automatically level near-horizontal line segments கிட்டத்தட்ட கிடைமட்டமான கோடுகளைத் தானாக சமப்படுத்து + Automatically straighten and level தானாக நேராக்கி சமப்படுத்து + Automatically straighten near-vertical line segments கிட்டத்தட்ட செங்குத்தான கோடுகளைத் தானாக நேராக்கு + Background பின்னணி + Background Color பின்னணி நிறம் + Background Contents பின்னணி உள்ளடக்கம் + Custom background color தனிப்பயன் பின்னணி நிறம் + Balance சமநிலை + Baseline அடிப்படைக் கோடு + Baseline shift அடிப்படைக் கோடு மாற்றம் + Basic அடிப்படை + Before (Y) முன் (Y) + Save Settings… அமைப்புகளைச் சேமி… + Load Settings… அமைப்புகளை ஏற்று… + Save these settings as a Camera Raw .xmp file இந்த அமைப்புகளை கேமரா Raw .xmp கோப்பாகச் சேமி + Load settings from a Camera Raw .xmp file கேமரா Raw .xmp கோப்பிலிருந்து அமைப்புகளை ஏற்று + Loaded Camera Raw settings from {file} {file} இலிருந்து கேமரா Raw அமைப்புகள் ஏற்றப்பட்டன + Loaded Camera Raw settings from {file} ({n} not supported) {file} இலிருந்து கேமரா Raw அமைப்புகள் ஏற்றப்பட்டன ({n} ஆதரிக்கப்படவில்லை) + Begin recording பதிவைத் தொடங்கு + Bend: வளைவு: + Bicubic இருபக்கக் கனச்சதுர + Bicubic (smooth gradients) இருபக்கக் கனச்சதுர (மென்மையான நிறப் படித்திறன்கள்) + Automatic தானியங்கி + Bicubic Smoother (enlargement) இருபக்கக் கனச்சதுர மென்மையாக்கல் (பெரிதாக்குதல்) + Bicubic Sharper (reduction) இருபக்கக் கனச்சதுர கூர்மையாக்கல் (சிறிதாக்குதல்) + Bilinear பைலீனியர் + Black கருப்பு + Black & White கருப்பு & வெள்ளை + Black Point Compensation கருப்புப் புள்ளி ஈடுசெய்தல் + Black, White கருப்பு, வெள்ளை + Blacks கருப்புகள் + Blending கலத்தல் + Blending Options கலப்பு விருப்பங்கள் + Blue நீலம் + Blue, Red, Yellow நீலம், சிவப்பு, மஞ்சள் + Both Axes இரு அச்சுகளும் + Bottom கீழ் + Brightness ஒளிர்வு + Brightness Jitter ஒளிர்வு அதிர்வு + Brightness/Contrast ஒளிர்வு/மாறுபாடு + Bring the selected pin forward தேர்ந்தெடுத்த பின்னை முன்னே கொண்டுவா + Brush Preset picker தூரிகை முன்னமைவு தேர்வி + Brush Reconstruct Options தூரிகை மறுகட்டமைப்பு விருப்பங்கள் + Brush Tool Options தூரிகைக் கருவி விருப்பங்கள் + Cache Level: தற்காலிக சேமிப்பு நிலை: + Camera Raw isn't open கேமரா Raw திறக்கப்படவில்லை + Cancel ரத்துசெய் + Cancel (Esc) ரத்துசெய் (Esc) + Manage submitted jobs in the system print queue சமர்ப்பித்த வேலைகளைக் கணினி அச்சு வரிசையில் நிர்வகி + Cancel any current edits (Esc) தற்போதைய திருத்தங்களை ரத்துசெய் (Esc) + Cancel current crop operation (Esc) தற்போதைய வெட்டுச் செயலை ரத்துசெய் (Esc) + Cancel transform (Esc) உருமாற்றத்தை ரத்துசெய் (Esc) + Cancel warp (Esc) வளைப்பை ரத்துசெய் (Esc) + Canvas படச்சட்டம் + Canvas extension color: படச்சட்ட நீட்டிப்பு நிறம்: + Capture பதிவுசெய் + Capture the visibility, position and style of every layer with + below, then switch between versions. கீழே உள்ள + மூலம் ஒவ்வொரு அடுக்கின் தெரிவுநிலை, நிலை, பாணியைப் பதிவுசெய்து, பின்னர் பதிப்புகளுக்கு இடையே மாறவும். + Catch-up on Stroke End கோடு முடிவில் ஈடுசெய் + Center மையம் + Center Crop Marks மைய வெட்டுக் குறிகள் + Center text உரையை மையப்படுத்து + Change மாற்று + Change All அனைத்தையும் மாற்று + Change Screen Mode (F) திரை முறையை மாற்று (F) + Change To: இதற்கு மாற்று: + Channel Mixer சேனல் கலப்பி + Channel: சேனல்: + Check All Layers அனைத்து அடுக்குகளையும் சரிபார் + Check Spelling எழுத்துப்பிழை சரிபார் + Clarity தெளிவு + Clear All அனைத்தையும் அழி + Clear Override மேலெழுதலை அழி + Clear Samples மாதிரிகளை அழி + Click sets foreground · right-click sets background கிளிக் முன்புறத்தை அமைக்கும் · வலது கிளிக் பின்னணியை அமைக்கும் + Click the first point or press {key} to close · Esc cancels மூட முதல் புள்ளியைக் கிளிக் செய்யவும் அல்லது {key} அழுத்தவும் · Esc ரத்துசெய்யும் + Click to add a point · drag off or {key}-click or Delete to remove புள்ளியைச் சேர்க்க கிளிக் செய்யவும் · நீக்க வெளியே இழுக்கவும் அல்லது {key}-கிளிக் அல்லது Delete + Click to apply, {key}-click to clear overrides, double-click for Style Options பயன்படுத்த கிளிக், மேலெழுதல்களை அழிக்க {key}-கிளிக், பாணி விருப்பங்களுக்கு இருமுறை கிளிக் + Click to edit the gradient நிறப் படித்திறனைத் திருத்த கிளிக் செய்யவும் + Click to restore the current colour தற்போதைய நிறத்தை மீட்டமைக்க கிளிக் செய்யவும் + Click to zoom in · {key}-click to zoom out · drag right/left to zoom in/out பெரிதாக்க கிளிக் · சிறிதாக்க {key}-கிளிக் · பெரிதாக்க/சிறிதாக்க வலது/இடதுபுறம் இழுக்கவும் + Click with the Note tool to add a note. குறிப்பைச் சேர்க்க குறிப்புக் கருவியால் கிளிக் செய்யவும். + Click: corner · Drag: smooth · Click first point: close · {key} finish · Esc cancel கிளிக்: மூலை · இழு: மென்மை · முதல் புள்ளி கிளிக்: மூடு · {key} முடி · Esc ரத்து + Click: corner · Drag: smooth · {alt}-drag: break handle · Click or drag first point: close · {key} finish · Esc cancel கிளிக்: மூலை · இழு: மென்மை · {alt}-இழு: கைப்பிடியை உடை · முதல் புள்ளியைக் கிளிக்/இழு: மூடு · {key} முடி · Esc ரத்து + Clip to layer below கீழ் அடுக்குக்கு வெட்டு + Clipped வெட்டப்பட்டது + Close Style Options பாணி விருப்பங்களை மூடு + Cmd Cmd + Coated CMYK பூசிய CMYK + Color & Swatches நிறம் & நிற மாதிரிகள் + Color Balance நிறச் சமநிலை + Color Detail நிற விவரம் + Color Grading நிற தரப்படுத்தல் + Color Lookup நிறத் தேடல் + Color Management நிற மேலாண்மை + Color Mixer நிறக் கலப்பி + Color Mode நிற முறை + Color Priority நிற முன்னுரிமை + Color Range preview நிற வரம்பு முன்னோட்டம் + Color: நிறம்: + Colorize நிறமூட்டு + Colors நிறங்கள் + Commit Perspective Warp ({key}) பார்வைக்கோண வளைப்பை உறுதிசெய் ({key}) + Commit Puppet Warp ({key}) உருவ வளைப்பை உறுதிசெய் ({key}) + Commit any current edits ({key}) தற்போதைய திருத்தங்களை உறுதிசெய் ({key}) + Commit current crop operation ({key}) தற்போதைய வெட்டுச் செயலை உறுதிசெய் ({key}) + Commit transform ({key}) உருமாற்றத்தை உறுதிசெய் ({key}) + Commit warp ({key}) வளைப்பை உறுதிசெய் ({key}) + Constant மாறிலி + Constrain proportions விகிதங்களைக் கட்டுப்படுத்து + Contact Sheet II காண்டாக்ட் ஷீட் II + Content-Aware உள்ளடக்கம் அறிந்த + Contiguous தொடர்ச்சியான + Contrast மாறுபாடு + Control: கட்டுப்பாடு: + Convert to sRGB sRGB ஆக மாற்று + Copies நகல்கள் + Copper செம்பு + Copyright பதிப்புரிமை + Copyright and Contact Info பதிப்புரிமை & தொடர்புத் தகவல் + Corner Crop Marks மூலை வெட்டுக் குறிகள் + Corner radius மூலை ஆரம் + Correction திருத்தம் + Count Jitter எண்ணிக்கை அதிர்வு + Create உருவாக்கு + Create Droplet ட்ராப்லெட் உருவாக்கு + Create Texture பரப்பமைப்பை உருவாக்கு + Create Video Timeline வீடியோ காலவரிசையை உருவாக்கு + Create a new count group புதிய எண்ணிக்கைக் குழுவை உருவாக்கு + Create a new document or open an existing file. புதிய ஆவணத்தை உருவாக்கவும் அல்லது இருக்கும் கோப்பைத் திறக்கவும். + Create a new group புதிய குழுவை உருவாக்கு + Create a new layer புதிய அடுக்கை உருவாக்கு + Create new action புதிய செயலை உருவாக்கு + Create new channel புதிய சேனலை உருவாக்கு + Create new document from current state தற்போதைய நிலையிலிருந்து புதிய ஆவணத்தை உருவாக்கு + Create new fill or adjustment layer புதிய நிரப்பு அல்லது சரிசெய்தல் அடுக்கை உருவாக்கு + Create new gradient புதிய நிறப் படித்திறன் உருவாக்கு + Create new group புதிய குழுவை உருவாக்கு + Create new layer comp புதிய அடுக்கு அமைப்பை உருவாக்கு + Create new pattern from the selection தேர்விலிருந்து புதிய வடிவமைப்பை உருவாக்கு + Create new shape from the current path தற்போதைய பாதையிலிருந்து புதிய வடிவத்தை உருவாக்கு + Create new snapshot புதிய ஸ்னாப்ஷாட்டை உருவாக்கு + Create new tool preset புதிய கருவி முன்னமைவை உருவாக்கு + Crop Factor வெட்டுக் காரணி + Ctrl Ctrl + Current & Below தற்போதையது & கீழுள்ளவை + Current Layer தற்போதைய அடுக்கு + Current Size தற்போதைய அளவு + Current Tool Only தற்போதைய கருவி மட்டும் + Curve வளைவு + Curves வளைவுகள் + Custom தனிப்பயன் + Custom Shapes தனிப்பயன் வடிவங்கள் + Cyan நீலப்பச்சை + Cyan · Red நீலப்பச்சை · சிவப்பு + Darken கருமையாக்கு + Darks கருமைகள் + Data Sets தரவுத் தொகுப்புகள் + Default இயல்புநிலை + Default colours (D) இயல்புநிலை நிறங்கள் (D) + Default printer இயல்புநிலை அச்சுப்பொறி + Default restored. இயல்புநிலை மீட்டமைக்கப்பட்டது. + Define வரையறு + Define at least one variable first. முதலில் குறைந்தது ஒரு மாறியை வரையறுக்கவும். + Dehaze மூடுபனி நீக்கு + Delete Cropped Pixels வெட்டப்பட்ட பிக்சல்களை நீக்கு + Delete Group குழுவை நீக்கு + Delete Layer Mask அடுக்கு மறைப்பை நீக்கு + Delete Layers அடுக்குகளை நீக்கு + Add Shortcut குறுக்குவழியைச் சேர் + Delete Shortcut குறுக்குவழியை நீக்கு + Delete Timeline காலவரிசையை நீக்கு + Delete Tool Preset கருவி முன்னமைவை நீக்கு + Delete count group எண்ணிக்கைக் குழுவை நீக்கு + Delete current channel தற்போதைய சேனலை நீக்கு + Delete current state தற்போதைய நிலையை நீக்கு + Delete effect layer விளைவு அடுக்கை நீக்கு + Delete layer ‘{name}’? அடுக்கு ‘{name}’ ஐ நீக்கவா? + Delete {count} layers? {names} {count} அடுக்குகளை நீக்கவா? {names} + Delete layer? அடுக்கை நீக்கவா? + The document is closed ஆவணம் மூடப்பட்டுள்ளது + The document or selected layers changed. Please request deletion again. ஆவணம் அல்லது தேர்ந்தெடுத்த அடுக்குகள் மாறிவிட்டன. நீக்குதலை மீண்டும் கோரவும். + Missing delete command நீக்கு கட்டளை இல்லை + Invalid delete command தவறான நீக்கு கட்டளை + Layer deleted, but confirmation preference could not be saved: {error} அடுக்கு நீக்கப்பட்டது, ஆனால் உறுதிப்படுத்தல் விருப்பத்தைச் சேமிக்க முடியவில்லை: {error} + Delete layer அடுக்கை நீக்கு + Delete layer comp அடுக்கு அமைப்பை நீக்கு + Delete note குறிப்பை நீக்கு + Delete selected measurements தேர்ந்தெடுத்த அளவீடுகளை நீக்கு + Delete style பாணியை நீக்கு + Delete tool preset கருவி முன்னமைவை நீக்கு + Density அடர்த்தி + Density: அடர்த்தி: + Depth ஆழம் + Depth Jitter ஆழ அதிர்வு + Description விளக்கம் + Deselect All அனைத்தின் தேர்வையும் நீக்கு + Detail விவரம் + Diamond Gradient வைரச் நிறப் படித்திறன் + Difference வேறுபாடு + Diffusion பரவல் + Discard the embedded profile (don't color manage) உட்பொதிந்த சுயவிவரத்தை நிராகரி (நிற மேலாண்மை வேண்டாம்) + Discontiguous தொடர்ச்சியற்றது + Discord Discord + Dismiss விலக்கு + Display P3 Display P3 + Display Text உரையைக் காண்பி + Dither நிறக் கலப்பு + Divide… வகு… + Document ஆவணம் + Don't Save சேமிக்க வேண்டாம் + No இல்லை + Yes ஆம் + Done முடிந்தது + Dots புள்ளிகள் + Drag a rectangle around the object பொருளைச் சுற்றி ஒரு செவ்வகத்தை இழுக்கவும் + Drag on the image to add a constraint; Shift for horizontal/vertical; right-click a constraint to change or delete it. கட்டுப்பாட்டைச் சேர்க்க படத்தின் மீது இழுக்கவும்; கிடைமட்டம்/செங்குத்துக்கு Shift; மாற்ற அல்லது நீக்க கட்டுப்பாட்டை வலது கிளிக் செய்யவும். + Drag to move the active shape's path or the Work Path செயலில் உள்ள வடிவத்தின் பாதையை அல்லது பணிப் பாதையை நகர்த்த இழுக்கவும் + Click: select anchor · Drag: move anchor, handle or segment · {shift}-click: add · {alt}-click: whole subpath கிளிக்: நங்கூரத்தைத் தேர்ந்தெடு · இழு: நங்கூரம், கைப்பிடி அல்லது பகுதியை நகர்த்து · {shift}-கிளிக்: சேர் · {alt}-கிளிக்: முழு துணைப்பாதை + Draw with the Pen tool (P) or make a work path from a selection. பேனா கருவியால் (P) வரையவும் அல்லது தேர்விலிருந்து பணிப் பாதையை உருவாக்கவும். + Drop an image or PSD anywhere to open it. படத்தையோ PSD-யையோ எங்கு வேண்டுமானாலும் இட்டு திறக்கவும். + Native file drag-and-drop is unavailable சொந்த கோப்பு இழுத்துவிடுதல் கிடைக்கவில்லை + Native file drag-and-drop is not supported on Wayland yet. Use File › Open, or copy the image in your file manager and paste it with {paste}. Wayland-இல் சொந்த கோப்பு இழுத்துவிடுதல் இன்னும் ஆதரிக்கப்படவில்லை. கோப்பு › திற என்பதைப் பயன்படுத்தவும், அல்லது கோப்பு மேலாளரில் படத்தை நகலெடுத்து {paste} மூலம் ஒட்டவும். + To drop files, start PhotoCraft under XWayland: `{command}` கோப்புகளை இட, போட்டோகிராப்டை XWayland-இல் தொடங்கவும்: `{command}` + Or set Preferences › Performance › Linux display server to X11: PhotoCraft then always starts under XWayland. அல்லது விருப்பத்தேர்வுகள் › செயல்திறன் › லினக்ஸ் காட்சி சேவையகத்தை X11 ஆக அமைக்கவும்: அப்போது போட்டோகிராப்ட் எப்போதும் XWayland-இல் தொடங்கும். + Edit › Paste திருத்து › ஒட்டு + Duplicate Layers… அடுக்குகளை நகலெடு… + Duplicate style பாணியை நகலெடு + Edit Toolbar… கருவிப்பட்டியைத் திருத்து… + Use File › Open, or paste a copied image with {paste}. கோப்பு › திற என்பதைப் பயன்படுத்தவும், அல்லது நகலெடுத்த படத்தை {paste} மூலம் ஒட்டவும். + Edit in Quick Mask Mode (Q) விரைவு மறைப்பு முறையில் திருத்து (Q) + Edit in Standard Mode (Q) நிலையான முறையில் திருத்து (Q) + Effects விளைவுகள் + Embed Color Profile நிறச் சுயவிவரத்தை உட்பொதி + Embedded Profile Mismatch உட்பொதிந்த சுயவிவரம் பொருந்தவில்லை + Enable airbrush-style build-up effects ஏர்பிரஷ் பாணி குவிப்பு விளைவுகளை இயக்கு + Enhance Edge விளிம்பை மேம்படுத்து + Entire Font முழு எழுத்துரு + Exact துல்லியம் + Expansion: விரிவாக்கம்: + Export Presets முன்னமைவுகளை ஏற்றுமதி செய் + Export selected measurements (CSV) தேர்ந்தெடுத்த அளவீடுகளை ஏற்றுமதி செய் (CSV) + Exposure வெளிப்பாடு + Exposure and Gamma வெளிப்பாடு & காமா + Exposure: வெளிப்பாடு: + Eyedropper நிறத் தேர்வி + Factor: காரணி: + Faux Bold போலி தடித்த எழுத்து + Faux Italic போலி சாய்வெழுத்து + Feather இறகாக்கு + Fewer Points குறைவான புள்ளிகள் + File Settings கோப்பு அமைப்புகள் + Fill நிரப்பு + Fill: நிரப்பு: + Filter for adjustment layers சரிசெய்தல் அடுக்குகளுக்கான வடிகட்டி + Filter for pixel layers பிக்சல் அடுக்குகளுக்கான வடிகட்டி + Filter for shape layers வடிவ அடுக்குகளுக்கான வடிகட்டி + Filter for smart objects திறன்மிகு பொருட்களுக்கான வடிகட்டி + Filter for type layers உரை அடுக்குகளுக்கான வடிகட்டி + Filter: வடிகட்டி: + Finger Painting விரல் ஓவியம் + Fisheye மீன்கண் + Fit பொருத்து + Fit Screen திரைக்குப் பொருத்து + Fill Screen திரையை நிரப்பு + Fit in View காட்சிக்குள் பொருத்து + Fixed நிலையானது + Fixed Ratio நிலையான விகிதம் + Fixed Size நிலையான அளவு + Flip புரட்டு + Flip X X புரட்டு + Flip X Jitter X புரட்டல் அதிர்வு + Flip Y Y புரட்டு + Flip Y Jitter Y புரட்டல் அதிர்வு + Flow ஓட்டம் + Flow Jitter ஓட்ட அதிர்வு + Focal Length குவிய நீளம் + Font எழுத்துரு + Font Size: எழுத்துரு அளவு: + Font size எழுத்துரு அளவு + Foreground முன்புறம் + Foreground to Background முன்புறத்திலிருந்து பின்னணிக்கு + Foreground/Background Jitter முன்புறம்/பின்னணி அதிர்வு + Format வடிவமைப்பு + Frame from Layers… அடுக்குகளிலிருந்து சட்டம்… + Free தன்னிச்சை + Full Spherical முழு கோளம் + Fuzziness: மங்கலான தன்மை: + GPU GPU + Gamma Correction காமா திருத்தம் + Gamma: காமா: + Global பொது + Glow Color பிரகாச நிறம் + Gradient Map நிறப் படித்திறன் வரைபடம் + Grain தானியம் + Gray சாம்பல் + Gray Gamma 2.2 சாம்பல் காமா 2.2 + Green பச்சை + Group குழு + Hardness கடினத்தன்மை + Heart இதயம் + Height உயரம் + Height: உயரம்: + Hide Auto Slices தானியங்கி துண்டுகளை மறை + Hide Properties பண்புகளை மறை + Highlight Compression ஒளிர்வு அழுத்தம் + Highlight Priority ஒளிர்வு முன்னுரிமை + Highlights ஒளிர்வுகள் + Home முகப்பு + Horizontal scale கிடைமட்ட அளவீடு + Hue சாயல் + Hue Jitter சாயல் அதிர்வு + Hue/Saturation சாயல்/செறிவு + Hyphenate இணைப்புக்கோடிடு + Ignore புறக்கணி + Ignore All அனைத்தையும் புறக்கணி + Image Size பட அளவு + Import Brushes… தூரிகைகளை இறக்குமதி செய்… + Gradient Preset Options நிறப் படித்திறன் முன்னமைவு விருப்பங்கள் + Import .GRD .GRD ஐ இறக்குமதி செய் + Choose a gradient file (.grd). நிறப் படித்திறன் கோப்பைத் (.grd) தேர்ந்தெடுக்கவும். + Import brushes (.abr) தூரிகைகளை இறக்குமதி செய் (.abr) + Import Presets முன்னமைவுகளை இறக்குமதி செய் + Imported இறக்குமதி செய்யப்பட்டது + Increase Type Size எழுத்துரு அளவை அதிகரி + Decrease Type Size எழுத்துரு அளவைக் குறை + Increase Type Size by 10 எழுத்துரு அளவை 10 புள்ளிகளால் அதிகரி + Decrease Type Size by 10 எழுத்துரு அளவை 10 புள்ளிகளால் குறை + Indent First முதல் வரி உள்தள்ளல் + Indent Left இடது உள்தள்ளல் + Indent Right வலது உள்தள்ளல் + Indent first line முதல் வரியை உள்தள்ளு + Indent left margin இடது ஓரத்தை உள்தள்ளு + Indent right margin வலது ஓரத்தை உள்தள்ளு + Input: உள்ளீடு: + Inside உள்ளே + Interlaced இடைப்பின்னல் + Interpolation: இடைக்கணிப்பு: + Intersect with selection ({key}) தேர்வுடன் வெட்டிக்கொள் ({key}) + Invert All அனைத்தையும் தலைகீழாக்கு + Invert has no settings. தலைகீழாக்கலுக்கு அமைப்புகள் இல்லை. + Italic சாய்வு + Join us on Discord Discord-இல் எங்களுடன் இணையுங்கள் + Justify all அனைத்தையும் இருபுறமும் சமப்படுத்து + Justify last centered கடைசி வரியை மையப்படுத்தி சமப்படுத்து + Justify last left கடைசி வரியை இடதுபுறம் சமப்படுத்து + Justify last right கடைசி வரியை வலதுபுறம் சமப்படுத்து + Kerning எழுத்திடைவெளி + Keyboard Shortcuts விசைப்பலகை குறுக்குவழிகள் + Keyboard Shortcuts and Menus விசைப்பலகை குறுக்குவழிகள் & பட்டிகள் + Kind வகை + Label Size குறியீட்டு அளவு + Labels குறியீடுகள் + Lanczos (sharp) Lanczos (கூர்மை) + Landscape கிடைமட்டம் + Last Document State கடைசி ஆவண நிலை + Layout அமைப்பு + Leading வரியிடைவெளி + Leading (set to the font size × auto-leading when Auto) வரியிடைவெளி (தானியங்கி எனில் எழுத்துரு அளவு × தானியங்கி வரியிடைவெளி) + Leave as is (don't color manage) அப்படியே விடு (நிற மேலாண்மை வேண்டாம்) + Left align text உரையை இடதுபுறம் சீரமை + Length: நீளம்: + Level நிலை + Levels நிலைகள் + Lighten ஒளிரச்செய் + Lightness வெளிர்மை + Lights ஒளிகள் + Limits: வரம்புகள்: + Linear Gradient நேர்கோட்டுச் நிறப் படித்திறன் + Link layers அடுக்குகளை இணை + Link width and height அகலத்தையும் உயரத்தையும் இணை + Liquify is not open Liquify திறக்கப்படவில்லை + Load ஏற்று + Load 3D LUT… 3D LUT ஐ ஏற்று… + Load channel as selection சேனலைத் தேர்வாக ஏற்று + Load… ஏற்று… + Localized Color Clusters உள்ளூர் நிறக் கொத்துகள் + Lock பூட்டு + Lock all அனைத்தையும் பூட்டு + Lock image pixels பட பிக்சல்களைப் பூட்டு + Lock layer அடுக்கைப் பூட்டு + Lock position நிலையைப் பூட்டு + Lock transparent pixels ஒளிஊடுருவும் பிக்சல்களைப் பூட்டு + Lock: பூட்டு: + Logical Length: தருக்க நீளம்: + Logical Units: தருக்க அலகுகள்: + Luminance ஒளிர்வுத்திறன் + Luminance Detail ஒளிர்வுத்திறன் விவரம் + Magenta கருஞ்சிவப்பு + Magenta · Green கருஞ்சிவப்பு · பச்சை + Maintain aspect ratio விகிதத்தைப் பேணு + Marker Size குறி அளவு + Mask All அனைத்தையும் மறை + Mask Options மறைப்புத் தேர்வுகள் + Masking மறைப்புருவாக்கம் + Master முதன்மை + Matte ஒளிமறுப்பு + Median: இடைநிலை: + Menus பட்டிகள் + Mesh Size வலை அளவு + Metadata மெட்டாடேட்டா + Metrics அளவீடுகள் + Midpoint நடுப்புள்ளி + Midtones நடுத்தொனிகள் + Midtones from: நடுத்தொனிகள் இதிலிருந்து: + Midtones to: நடுத்தொனிகள் இதுவரை: + Minimum Depth குறைந்தபட்ச ஆழம் + Minimum Diameter குறைந்தபட்ச விட்டம் + Minimum Roundness குறைந்தபட்ச வட்டத்தன்மை + Mode: முறை: + Monochrome ஒற்றைநிறம் + More Points மேலும் புள்ளிகள் + Move effect layer down விளைவு அடுக்கைக் கீழே நகர்த்து + Move effect layer up விளைவு அடுக்கை மேலே நகர்த்து + Move to இங்கு நகர்த்து + Name பெயர் + Name: பெயர்: + Nearest Neighbor அருகிலுள்ள அண்டை + Nearest Neighbor (hard edges) அருகிலுள்ள அண்டை (கடின விளிம்புகள்) + New Size புதிய அளவு + New document… புதிய ஆவணம்… + New effect layer புதிய விளைவு அடுக்கு + New selection புதிய தேர்வு + Next frame அடுத்த சட்டம் + Next note அடுத்த குறிப்பு + No Color நிறம் இல்லை + No Color Management நிற மேலாண்மை இல்லை + No Dither நிறக் கலப்பு இல்லை + No author ஆசிரியர் இல்லை + No character style எழுத்துப் பாணி இல்லை + No document ஆவணம் இல்லை + No matching commands பொருந்தும் கட்டளைகள் இல்லை + No presets for the current tool. தற்போதைய கருவிக்கு முன்னமைவுகள் இல்லை. + No presets of this type. இந்த வகைக்கு முன்னமைவுகள் இல்லை. + No properties பண்புகள் இல்லை + No tool presets. கருவி முன்னமைவுகள் இல்லை. + Noise Reduction இரைச்சல் குறைப்பு + Normal இயல்பு + Not in Dictionary: அகராதியில் இல்லை: + OK சரி + Offset நகர்வு + Only Web Colors வலை நிறங்கள் மட்டும் + Opacity ஒளிபுகாமை + Opacity Jitter ஒளிபுகாமை அதிர்வு + Opacity: ஒளிபுகாமை: + Open a document to define variables. மாறிகளை வரையறுக்க ஆவணத்தைத் திறக்கவும். + Open a document to select a colour range. நிற வரம்பைத் தேர்ந்தெடுக்க ஆவணத்தைத் திறக்கவும். + Open a document to use the timeline. காலவரிசையைப் பயன்படுத்த ஆவணத்தைத் திறக்கவும். + Optical ஒளியியல் + Optimized மேம்படுத்தப்பட்டது + Option-click to define a source point to clone from நகலெடுக்கும் மூலப் புள்ளியை வரையறுக்க Option-கிளிக் செய்யவும் + Original அசல் + Output Channel: வெளியீட்டுச் சேனல்: + Output Levels: வெளியீட்டு நிலைகள்: + Output: வெளியீடு: + Outside வெளியே + Overlay Color மேலடுக்கு நிறம் + Overlay Opacity மேலடுக்கு ஒளிபுகாமை + Overlay: Rule of Thirds மேலடுக்கு: மூன்றில் ஒரு பங்கு விதி + Override Pressure அழுத்தத்தை மேலெழுது + Override Rotation சுழற்சியை மேலெழுது + Override Tilt சாய்வை மேலெழுது + Override Tilt X X சாய்வை மேலெழுது + Override Tilt Y Y சாய்வை மேலெழுது + PRESET DETAILS முன்னமைவு விவரங்கள் + PSD PSD + Paint Overlay வண்ண மேலடுக்கு + Panel locations are saved in the workspace. Keyboard shortcuts, menus and toolbar are optional. பலகங்களின் இடங்கள் பணியிடத்தில் சேமிக்கப்படுகின்றன. விசைப்பலகை குறுக்குவழிகள், பட்டிகள், கருவிப்பட்டி விருப்பத்திற்குரியவை. + Paper காகிதம் + Path பாதை + Pattern வடிவமைப்பு + Pattern Size வடிவமைப்பு அளவு + Pause இடைநிறுத்து + Percent சதவீதம் + Perceptual உணர்வுசார் + Perspective Warp is not active கோண வளைப்பு செயலில் இல்லை + Perspective Warp: draw planes along the image's perspective, then switch to Warp கோண வளைப்பு: படத்தின் பார்வைக்கோணத்தில் தளங்களை வரைந்து, பின்னர் வளைப்புக்கு மாறவும் + Photo Filter புகைப்பட வடிகட்டி + PhotoCraft போட்டோகிராப்ட் + PhotoCraft Manages Colors போட்டோகிராப்ட் நிறங்களை நிர்வகிக்கிறது + PhotoCraft — an open-source, native image editor written in Rust. போட்டோகிராப்ட் — ரஸ்டில் எழுதப்பட்ட திறந்த மூல, சொந்த பட எடிட்டர். + Pin Depth: பின் ஆழம்: + Pixel Length: பிக்சல் நீளம்: + Pixels/Centimeter பிக்சல்/சென்டிமீட்டர் + Pixels/Inch பிக்சல்/அங்குலம் + Pixels: பிக்சல்கள்: + Play இயக்கு + Play selection தேர்வை இயக்கு + Portrait செங்குத்து + Position நிலை + Position and Size நிலை & அளவு + Posterize வண்ணக் குறைப்பு + Preserve Details விவரங்களைப் பேணு + Preserve Luminosity ஒளிர்வுத்திறனைப் பேணு + Preset முன்னமைவு + Preset Type முன்னமைவு வகை + Preset: முன்னமைவு: + Presets: முன்னமைவுகள்: + Press keys… விசைகளை அழுத்தவும்… + Pressure அழுத்தம் + Pressure for Opacity ஒளிபுகாமைக்கான அழுத்தம் + Pressure for Size அளவுக்கான அழுத்தம் + Prevent auto-nesting in and out of Artboards and Frames ஆர்ட்போர்டுகள் மற்றும் சட்டங்களுக்குள்/வெளியே தானியங்கி உட்பொதிவைத் தடு + Preview முன்னோட்டம் + Previous frame முந்தைய சட்டம் + Previous note முந்தைய குறிப்பு + Print அச்சிடு + Printer அச்சுப்பொறி + Printer Manages Colors அச்சுப்பொறி நிறங்களை நிர்வகிக்கிறது + Printer Setup அச்சுப்பொறி அமைப்பு + Printing Marks அச்சுக் குறிகள் + Progressive படிப்படியானது + Promote உயர்த்து + Protect Detail விவரத்தைப் பாதுகாக்கவும் + Protect Foreground Color முன்புற நிறத்தைப் பாதுகாக்கவும் + Protect Tones தொனிகளைப் பாதுகாக்கவும் + Proximity Match அண்மைப் பொருத்தம் + Pulled String Mode இழுத்த கயிறு முறை + Puppet Warp is not active உருவ வளைப்பு செயலில் இல்லை + Purity தூய்மை + Quality தரம் + Quick Actions விரைவு செயல்கள் + Quick Export As PNG PNG ஆக விரைவு ஏற்றுமதி + Radial Gradient ஆரை நிறப் படித்திறன் + Radius ஆரம் + Radius: ஆரம்: + Range: வீச்சு: + Rate வேகம் + Recently Used சமீபத்தில் பயன்படுத்தியவை + Reconstruct மறுகட்டமை + Record ● a sequence of edits, then play ▶ it on any document. திருத்தங்களின் வரிசையை ● பதிவுசெய்து, பின்னர் எந்த ஆவணத்திலும் ▶ இயக்கவும். + Red சிவப்பு + Redefine style by current selection தற்போதைய தேர்வின்படி பாணியை மறுவரையறு + Refine செம்மைப்படுத்து + Reflected Gradient பிரதிபலித்த நிறப் படித்திறன் + Registration Marks பதிவுக் குறிகள் + Regular வழக்கமானது + Relative சார்புடைய + Relative Colorimetric சார்பு நிற அளவியல் + Remove நீக்கு + Remove All Pins அனைத்து பின்களையும் நீக்கு + Remove Background பின்னணியை நீக்கு + Remove Planes தளங்களை நீக்கு + Remove Tool கருவியை நீக்கு + Remove stop நிறுத்தத்தை நீக்கு + Remove variable மாறியை நீக்கு + Rename பெயர்மாற்று + Rename Group… குழுவின் பெயரை மாற்று… + Rename Layer… அடுக்கின் பெயரை மாற்று… + Rename Tool Preset… கருவி முன்னமைவின் பெயரை மாற்று… + Rename… பெயர்மாற்று… + Resample மறுமாதிரியெடு + Reset All to Defaults அனைத்தையும் இயல்புநிலைக்கு மீட்டமை + Import Shortcuts… குறுக்குவழிகளை இறக்குமதி செய்… + Load a keyboard shortcut set saved as .kys .kys ஆகச் சேமித்த விசைப்பலகை குறுக்குவழித் தொகுப்பை ஏற்று + Imported {n} shortcuts from {file}. Click OK to keep them. {file} இலிருந்து {n} குறுக்குவழிகள் இறக்குமதி செய்யப்பட்டன. அவற்றை வைத்திருக்க சரி என்பதைக் கிளிக் செய்யவும். + {n} commands are not in PhotoCraft. {n} கட்டளைகள் போட்டோகிராப்டில் இல்லை. + Keyboard shortcuts imported விசைப்பலகை குறுக்குவழிகள் இறக்குமதி செய்யப்பட்டன + Your keyboard shortcut set {set} is in use here: {n} shortcuts differ from the defaults. Edit › Keyboard Shortcuts shows them; Reset All to Defaults undoes this. உங்கள் விசைப்பலகை குறுக்குவழித் தொகுப்பு {set} இங்கு பயன்பாட்டில் உள்ளது: {n} குறுக்குவழிகள் இயல்புநிலையிலிருந்து வேறுபடுகின்றன. திருத்து › விசைப்பலகை குறுக்குவழிகள் அவற்றைக் காட்டும்; அனைத்தையும் இயல்புநிலைக்கு மீட்டமை இதைச் செயல்தவிர்க்கும். + Import keyboard shortcuts? விசைப்பலகை குறுக்குவழிகளை இறக்குமதி செய்யவா? + PhotoCraft found your keyboard shortcut set {set} from another image editor on this computer: {n} of its shortcuts differ from PhotoCraft's. Import it? இந்தக் கணினியில் மற்றொரு பட எடிட்டரிலிருந்து உங்கள் விசைப்பலகை குறுக்குவழித் தொகுப்பு {set} ஐ போட்டோகிராப்ட் கண்டறிந்தது: அதன் {n} குறுக்குவழிகள் போட்டோகிராப்டின் குறுக்குவழிகளிலிருந்து வேறுபடுகின்றன. இறக்குமதி செய்யவா? + Edit › Keyboard Shortcuts › Reset All to Defaults undoes an import. திருத்து › விசைப்பலகை குறுக்குவழிகள் › அனைத்தையும் இயல்புநிலைக்கு மீட்டமை என்பது இறக்குமதியைச் செயல்தவிர்க்கும். + Don't Import இறக்குமதி செய்யாதே + The keyboard shortcut set was not imported: {error} விசைப்பலகை குறுக்குவழித் தொகுப்பு இறக்குமதி செய்யப்படவில்லை: {error} + Reset Section பகுதியை மீட்டமை + Reset Transform உருமாற்றத்தை மீட்டமை + Reset to defaults இயல்புநிலைக்கு மீட்டமை + Resolution தெளிவுத்திறன் + Resolution: தெளிவுத்திறன்: + Restore All அனைத்தையும் மீட்டமை + Restore Defaults இயல்புநிலைகளை மீட்டமை + Restrictive (Web) கட்டுப்பாடான (வலை) + Right align text உரையை வலதுபுறம் சீரமை + Rigid உறுதியான + Rotate: சுழற்று: + Rotation சுழற்சி + Roughness கரடுமுரடு + Roundness வட்டத்தன்மை + Roundness Jitter வட்டத்தன்மை அதிர்வு + Rulers & Grids அளவுகோல்கள் & கட்டங்கள் + Sample All Layers அனைத்து அடுக்குகளையும் மாதிரியெடு + Sample: மாதிரி: + Sampling: Background Swatch மாதிரியெடுப்பு: பின்னணி நிற மாதிரி + Sampling: Continuous மாதிரியெடுப்பு: தொடர்ச்சியானது + Sampling: Once மாதிரியெடுப்பு: ஒருமுறை + Saturate செறிவூட்டு + Saturation செறிவு + Saturation Jitter செறிவு அதிர்வு + Save HTML and Images HTML & படங்களைச் சேமி + Save as PDF PDF ஆகச் சேமி + Save selection as channel தேர்வைச் சேனலாகச் சேமி + Save… சேமி… + Scale to Fit Media ஊடகத்துக்குப் பொருத்த அளவு மாற்று + Scatter சிதறல் + Scratch disks நினைவக வட்டுகள் + Search தேடு + Search commands கட்டளைகளைத் தேடு + Search commands, tools and panels… கட்டளைகள், கருவிகள், பலகங்களைத் தேடு… + Search fonts எழுத்துருக்களைத் தேடு + Select All அனைத்தையும் தேர்ந்தெடு + Select Subject பொருளைத் தேர்ந்தெடு + Select a type layer or click into text to insert glyphs குறியுருக்களைச் செருக உரை அடுக்கைத் தேர்ந்தெடுக்கவும் அல்லது உரையில் கிளிக் செய்யவும் + Select text to apply a character style எழுத்துப் பாணியைப் பயன்படுத்த உரையைத் தேர்ந்தெடுக்கவும் + Select: தேர்வு: + Selections தேர்வுகள் + Selective தேர்ந்தெடுத்தது + Selective Color தேர்ந்தெடுத்த நிறம் + Send the selected pin backward தேர்ந்தெடுத்த பின்னைப் பின்னே அனுப்பு + Set additional smoothing options கூடுதல் மென்மையாக்கல் விருப்பங்களை அமை + Set background color பின்னணி நிறத்தை அமை + Set foreground color முன்புற நிறத்தை அமை + Set painting symmetry options ஓவிய சமச்சீர் விருப்பங்களை அமை + Symmetry Off சமச்சீர் அணைப்பு + Set shape fill type வடிவ நிரப்பு வகையை அமை + Set shape stroke type வடிவக் கோடு வகையை அமை + Set the text color உரை நிறத்தை அமை + Create warped text வளைப்பு செய்த உரையை உருவாக்கு + Shadows நிழல்கள் + Shape: வடிவம்: + Sharpening கூர்மையாக்கல் + Shift Shift + Shortcut removed. குறுக்குவழி நீக்கப்பட்டது. + Show All Menu Items அனைத்து பட்டி உருப்படிகளையும் காண்பி + Show Backdrop பின்புலத்தைக் காண்பி + Show Guides அளவுகோட்டு வரிகளை காண்பி + Show Mask மறைப்பைக் காண்பி + Show Mesh வலையைக் காண்பி + Show Overlay மேலடுக்கைக் காண்பி + Show Transform Controls உருமாற்றக் கட்டுப்பாடுகளைக் காண்பி + Show or hide the Notes panel குறிப்புகள் பலகத்தைக் காண்பி அல்லது மறை + Show: காண்பி: + Sides பக்கங்கள் + Sides: பக்கங்கள்: + Size அளவு + Size Jitter அளவு அதிர்வு + Size: அளவு: + Slice Options… துண்டு விருப்பங்கள்… + Slices From Guides அளவுகோட்டு வரிகளிலிருந்து துண்டுகள் + Slices are locked (View › Lock Slices) துண்டுகள் பூட்டப்பட்டுள்ளன (காட்சி › துண்டுகளைப் பூட்டு) + Small Caps சிறிய பெரிய எழுத்துகள் + Smoothing மென்மையாக்கல் + Space After பின் இடைவெளி + Space Before முன் இடைவெளி + Spacing இடைவெளி + Spell check complete. எழுத்துப்பிழை சரிபார்ப்பு முடிந்தது. + Split: பிரி: + Star ratio நட்சத்திர விகிதம் + Stop playing/recording இயக்கம்/பதிவை நிறுத்து + Straighten நேராக்கு + Straighten Layer அடுக்கை நேராக்கு + Strength: வலிமை: + Strikethrough குறுக்குக்கோடு + Stroke கோடு + Stroke Catch-up கோடு ஈடுசெய்தல் + Stroke: கோடு: + Location இடம் + Location: இடம்: + Style பாணி + Style Options பாணி விருப்பங்கள் + Style Options… பாணி விருப்பங்கள்… + Style: Normal பாணி: இயல்பு + Subtract from Sample மாதிரியிலிருந்து கழி + Subtract from selection ({key}) தேர்விலிருந்து கழி ({key}) + Suggestions: பரிந்துரைகள்: + Swap colours (X) நிறங்களை மாற்றிக்கொள் (X) + Swaps height and width உயரத்தையும் அகலத்தையும் மாற்றிக்கொள்கிறது + Switch between free transform and warp modes தன்னிச்சை உருமாற்றம் மற்றும் வளைப்பு முறைகளுக்கு இடையே மாறு + Switch theme தோற்றத்தை மாற்று + Temperature வெப்பநிலை + Tetrahedral நான்முகம் + Text Position: உரை நிலை: + Texture பரப்பமைப்பு + Texture Each Tip ஒவ்வொரு முனைக்கும் பரப்பமைப்பு + Threshold வாசல் மதிப்பு + Threshold Level வாசல் நிலை + Thumbnail size (smallest: list) சிறுபடம் அளவு (மிகச் சிறியது: பட்டியல்) + Tilt X X சாய்வு + Tilt Y Y சாய்வு + Tint சாயம் + Toggle count group visibility எண்ணிக்கைக் குழுவின் தெரிவுநிலையை மாற்று + Toggle text orientation உரைத் திசையமைவை மாற்று + Tolerance சகிப்புத்தன்மை + Tolerance: சகிப்புத்தன்மை: + Tone: தொனி: + Toolbar கருவிப்பட்டி + Top மேல் + Total: மொத்தம்: + Tracking எழுத்து இடைவெளி + Tracking (1/1000 em) எழுத்து இடைவெளி (1/1000 em) + Transparency ஒளிஊடுருவல் + Transparent ஒளிஊடுருவும் + Trilinear மும்மடி நேரிய + Type Styles உரைப் பாணிகள் + Type: வகை: + Underline அடிக்கோடு + Untitled பெயரிடப்படாதது + Untitled-1 பெயரிடப்படாதது-1 + Update layer comp (visibility, position and appearance) அடுக்கு அமைப்பைப் புதுப்பி (தெரிவுநிலை, நிலை, தோற்றம்) + Use Default இயல்புநிலையைப் பயன்படுத்து + Use Legacy பழையதைப் பயன்படுத்து + Use Measurement Scale அளவீட்டு அளவுகோலைப் பயன்படுத்து + Variables bind a layer's visibility, text or pixels to a named data slot. மாறிகள் ஒரு அடுக்கின் தோற்றநிலை, உரை அல்லது பிக்சல்களை பெயரிடப்பட்ட தரவு இடைவெளியுடன் இணைக்கின்றன. + Vertical scale செங்குத்து அளவீடு + Vibrance துடிப்பு + View Options காட்சி விருப்பங்கள் + Vignetting ஓரங்கள் மங்குதல் + Violet, Orange ஊதா, ஆரஞ்சு + Visibility தெரிவுநிலை + Visible தெரிவது + Warp: வளைப்பு: + Web Snap வலை ஒட்டு + Weight எடை + Weight: எடை: + White வெள்ளை + White Balance: As Shot வெள்ளைச் சமநிலை: படமெடுத்தபடி + Whites வெள்ளைகள் + Width அகலம் + Slant சாய்வு + Width: அகலம்: + Work Path பணிப் பாதை + Yellow மஞ்சள் + Yellow · Blue மஞ்சள் · நீலம் + Zoom பெரிதாக்கு + Zoom in பெரிதாக்கு + Zoom out சிறிதாக்கு + command or shortcut கட்டளை அல்லது குறுக்குவழி + current தற்போதையது + image file path பட கோப்புப் பாதை + modified மாற்றப்பட்டது + name பெயர் + new புதியது + {name} options {name} விருப்பங்கள் + ↑↓ navigate {key} run esc close ↑↓ வழிசெல் {key} இயக்கு esc மூடு + Version {version} பதிப்பு {version} + New Document புதிய ஆவணம் + New Document With Mask மறைப்புடன் புதிய ஆவணம் + New Layer With Mask மறைப்புடன் புதிய அடுக்கு + New Layer புதிய அடுக்கு + Save Preset… முன்னமைவைச் சேமி… + Preset Name முன்னமைவு பெயர் + No saved presets yet. சேமித்த முன்னமைவுகள் இன்னும் இல்லை. + Error பிழை + Command கட்டளை + Adjustment layers have nothing to transform சரிசெய்தல் அடுக்குகளில் உருமாற்ற எதுவும் இல்லை + Altitude உயரக்கோணம் + Android 1080p Android 1080p + Apple Watch 45mm Apple Watch 45mm + Aqua அக்வா + Art & Illustration கலை & விளக்கப்படம் + ArtCraft ஆர்ட்கிராப்ட் + Art History Brush Tool கலை வரலாற்றுத் தூரிகைக் கருவி + Background Eraser Tool பின்னணி அழிப்புக் கருவி + Bevel & Emboss சரிவு & புடைப்பு + Blend Mode கலப்பு முறை + Blues நீலங்கள் + Blur Tool மங்கல் கருவி + Bold தடித்த + Brush தூரிகை + Block தொகுதி + Brush Pose தூரிகை நிலை + Brush Tip Shape தூரிகை முனை வடிவம் + Brush Tool தூரிகைக் கருவி + Build-up குவிப்பு + Burn Tool கருமையாக்கு கருவி + Centimeters சென்டிமீட்டர் + Choke நெருக்கு + Classic கிளாசிக் + Click to add text உரையைச் சேர்க்க கிளிக் செய்யவும் + Click to fill similar colours ஒத்த நிறங்களை நிரப்ப கிளிக் செய்யவும் + Clone Stamp Tool நகலெடுப்பு முத்திரைக் கருவி + Color Burn நிறக் கருமையாக்கு + Color Dodge நிற ஒளிர்வு + Color Dynamics நிற இயக்கவியல் + Color Overlay நிற மேலடுக்கு + Color Sampler Tool நிற மாதிரி கருவி + Comic Book காமிக் புத்தகம் + Conform இணங்கு + Content-Aware Fill needs a selection on a pixel layer உள்ளடக்கம் அறிந்த நிரப்புக்கு பிக்சல் அடுக்கில் தேர்வு தேவை + Couldn't place {name}: {error} {name} ஐ வைக்க முடியவில்லை: {error} + Could not transform: the layer is empty உருமாற்ற முடியவில்லை: அடுக்கு காலியாக உள்ளது + Could not use Perspective Warp: the layer is empty கோண வளைப்பைப் பயன்படுத்த முடியவில்லை: அடுக்கு காலியாக உள்ளது + Could not use Puppet Warp: no opaque pixels உருவ வளைப்பைப் பயன்படுத்த முடியவில்லை: ஒளிபுகா பிக்சல்கள் இல்லை + Could not use Puppet Warp: the layer is empty உருவ வளைப்பைப் பயன்படுத்த முடியவில்லை: அடுக்கு காலியாக உள்ளது + Crop Tool வெட்டுக் கருவி + Crosswise குறுக்காக + Current Tool தற்போதைய கருவி + Custom Shape Tool தனிப்பயன் வடிவக் கருவி + Cyans நீலப்பச்சைகள் + Default PhotoCraft Size இயல்புநிலை போட்டோகிராப்ட் அளவு + Delete Workspace பணியிடத்தை நீக்கு + Diamond வைரம் + Dimensions: பரிமாணங்கள்: + Direction திசை + Distance தூரம் + Document Dimensions ஆவணப் பரிமாணங்கள் + Document Profile ஆவணச் சுயவிவரம் + Document Sizes ஆவண அளவுகள் + Dodge Tool ஒளிர்வுக் கருவி + Down கீழ் + Drag to draw a gradient நிறப் படித்திறனை வரைய இழுக்கவும் + Drag to move the active layer செயலில் உள்ள அடுக்கை நகர்த்த இழுக்கவும் + Drag to pan · hold Space with any tool நகர்த்திப் பார்க்க இழுக்கவும் · எந்தக் கருவியிலும் Space ஐ அழுத்திப் பிடிக்கவும் + Drop Shadow விழும் நிழல் + Dual Brush இரட்டைத் தூரிகை + Edge விளிம்பு + Efficiency திறன் + Efficiency: 100% திறன்: 100% + Ellipse Tool நீள்வட்டக் கருவி + Elliptical Marquee Tool நீள்வட்டத் தேர்வுக் கருவி + Single Row Marquee Tool ஒற்றை வரிசைத் தேர்வுக் கருவி + Single Column Marquee Tool ஒற்றை நெடுவரிசைத் தேர்வுக் கருவி + Emboss புடைப்பு + Eraser அழிப்பான் + Eraser Tool அழிப்பான் கருவி + ExtraBold மிகத் தடித்த + ExtraLight மிக மெல்லிய + Eyedropper Tool நிறத் தேர்வி கருவி + Fade மங்கச்செய் + Fill Opacity நிரப்பு ஒளிபுகாமை + Film & Video திரைப்படம் & வீடியோ + From இதிலிருந்து + General பொது + GitHub GitHub + Gradient Overlay நிறப் படித்திறன் மேலடுக்கு + Gradient Tool நிறப் படித்திறன் கருவி + Greens பச்சைகள் + Hand Tool கை கருவி + Hand Tool (hold) கை கருவி (அழுத்திப் பிடிக்கவும்) + Hard கடினம் + Hard Mix கடின கலவை + Healing Brush Tool குணப்படுத்தும் தூரிகைக் கருவி + Highlights from: ஒளிர்வுகள் இதிலிருந்து: + History Brush Tool வரலாற்றுத் தூரிகைக் கருவி + Horizontal Type Tool கிடைமட்ட உரைக் கருவி + Horizontal Type Mask Tool கிடைமட்ட உரை மறைப்புக் கருவி + Vertical Type Mask Tool செங்குத்து உரை மறைப்புக் கருவி + Image Size: பட அளவு: + Inches அங்குலங்கள் + Indexed குறியீட்டுடையது + Initial Direction தொடக்கத் திசை + Inner Bevel உள் சரிவு + Inner Glow உள் பிரகாசம் + Inner Shadow உள் நிழல் + Lab Lab + Landscape, 10 x 8 கிடைமட்டம், 10 x 8 + Landscape, 6 x 4 கிடைமட்டம், 6 x 4 + Landscape, 7 x 5 கிடைமட்டம், 7 x 5 + Lasso லாஸ்ஸோ + Lasso Tool லாஸ்ஸோ கருவி + Layer Count அடுக்கு எண்ணிக்கை + Layer Knocks Out Drop Shadow அடுக்கு விழும் நிழலை நீக்குகிறது + Legal Legal + Letter Letter + Light வெளிர் + Line Tool கோட்டுக் கருவி + Linear நேர்கோட்டு + Linear Burn நேர்கோட்டு எரிப்பு + Linear Height நேர்கோட்டு உயரம் + Link with Layer அடுக்குடன் இணை + Lorem Ipsum தமிழ் வாழ்க + Magentas கருஞ்சிவப்புகள் + Magic Eraser Tool மாய அழிப்பான் கருவி + Magic Wand Tool மாயக்கோல் கருவி + Marquee தேர்வுச்சட்டம் + Mean: சராசரி: + Measurement Scale அளவீட்டு அளவுகோல் + Measurement Scale Marker அளவீட்டு அளவுகோல் குறி + Millimeters மில்லிமீட்டர் + Mobile மொபைல் + Move Tool நகர்த்தும் கருவி + Could not use the move tool because the layer is locked. அடுக்கு பூட்டப்பட்டிருப்பதால் நகர்த்தும் கருவியைப் பயன்படுத்த முடியவில்லை. + Could not complete the Free Transform command because the layer is locked. அடுக்கு பூட்டப்பட்டிருப்பதால் தன்னிச்சை உருமாற்றக் கட்டளையை முடிக்க முடியவில்லை. + Multiply பெருக்கு + My Brushes என் தூரிகைகள் + Neutrals நடுநிலைகள் + New Workspace புதிய பணியிடம் + Note Tool குறிப்புக் கருவி + Object Selection Tool பொருள் தேர்வுக் கருவி + Off அணை + Open திற + Orange ஆரஞ்சு + Original Ratio அசல் விகிதம் + Out Of Gamut நிற வரம்புக்கு வெளியே + Outer Bevel வெளிச் சரிவு + Outer Glow வெளிப் பிரகாசம் + Overlay மேலடுக்கு + Paint Bucket Tool வண்ண வாளிக் கருவி + Paints from the document's opening state ஆவணம் திறந்த நிலையிலிருந்து வண்ணமிடுகிறது + Path Selection Tool பாதைத் தேர்வுக் கருவி + Direct Selection Tool நேரடித் தேர்வுக் கருவி + Add Anchor Point Tool நங்கூரப் புள்ளி சேர்க்கும் கருவி + Delete Anchor Point Tool நங்கூரப் புள்ளி நீக்கும் கருவி + Click a segment to add an anchor point · {alt}-click an anchor to delete it தொகுதியைச் சொடுக்கி ஒரு நங்கூரப் புள்ளியைச் சேர்க்கவும் · நங்கூரப் புள்ளியை நீக்க {alt}-சொடுக்கவும் + Click an anchor point to delete it · {alt}-click a segment to add one நங்கூரப் புள்ளியை நீக்க அதைச் சொடுக்கவும் · புதிய புள்ளியைச் சேர்க்க தொகுதியை {alt}-சொடுக்கவும் + Pattern Overlay வடிவ மேலடுக்கு + Pen Pressure பேனா அழுத்தம் + Pen Tilt பேனா சாய்வு + Pen Tool பேனா கருவி + Convert Point Tool புள்ளி மாற்றும் கருவி + Photo புகைப்படம் + PhotoCraft website போட்டோகிராப்ட் இணையதளம் + Picas பிகாக்கள் + Pillow Emboss தலையணைப் புடைப்பு + Pixel Replacement பிக்சல் மாற்றீடு + Pixels பிக்சல்கள் + Points புள்ளிகள் + Polygon Tool பலகோணக் கருவி + Polygonal Lasso Tool பலகோண லாஸ்ஸோ கருவி + Portrait, 4 x 6 செங்குத்து, 4 x 6 + Portrait, 5 x 7 செங்குத்து, 5 x 7 + PostScript (72 points/inch) PostScript (72 புள்ளிகள்/அங்குலம்) + Postcard அஞ்சல் அட்டை + Poster சுவரொட்டி + Pro (Dark) புரோ (கருமை) + Pro (Light) புரோ (வெளிர்) + Pro (Light Gray) புரோ (வெளிர் சாம்பல்) + Pro (Medium Gray) புரோ (நடுத்தர சாம்பல்) + Protect Texture பரப்பமைப்பைப் பாதுகாக்கவும் + Purple ஊதா + Quick Mask விரைவு மறைப்பு + Quick Selection Tool விரைவுத் தேர்வுக் கருவி + Radial ஆரை + Rasterize Layer அடுக்கை ராஸ்டராக்கு + Rasterize Layers அடுக்குகளை ராஸ்டராக்கு + Ratio விகிதம் + Recent சமீபத்தியவை + Rectangle Tool செவ்வகக் கருவி + Rectangular Marquee Tool செவ்வகத் தேர்வுக் கருவி + Reds சிவப்புகள் + Reflected பிரதிபலித்தது + Sample: foreground colour மாதிரி: முன்புற நிறம் + Sampled Colors மாதிரியெடுத்த நிறங்கள் + Satin சாடின் + Save Pixel Aspect Ratio பிக்சல் விகிதத்தைச் சேமி + Scattering சிதறல் + Scratch Sizes நினைவக அளவுகள் + Select Data Points தரவுப் புள்ளிகளைத் தேர்ந்தெடு + Selection தேர்வு + SemiBold அரைத் தடித்த + Shadows up to: நிழல்கள் இதுவரை: + Shape Dynamics வடிவ இயக்கவியல் + Sharpen Tool கூர்மையாக்கும் கருவி + Show Extras Options கூடுதல் விருப்பங்களைக் காண்பி + Slice Select Tool துண்டுத் தேர்வுக் கருவி + Slice Tool துண்டுக் கருவி + Smart Filters திறன்மிகு வடிகட்டிகள் + Smudge Tool தேய்க்கும் கருவி + Soft மென்மை + Soften மென்மையாக்கு + Source மூலம் + Source: set மூலம்: அமை + Sponge Tool உறிஞ்சிக் கருவி + Spot Healing Brush Tool புள்ளி குணப்படுத்தும் தூரிகைக் கருவி + Spread பரவல் + Square, 12 x 12 சதுரம், 12 x 12 + Square, 5 x 5 சதுரம், 5 x 5 + Std Dev: திட்ட விலகல்: + Studio (Dark) ஸ்டுடியோ (கருமை) + Studio (Light) ஸ்டுடியோ (வெளிர்) + Stylus Wheel தொடுபேனா சக்கரம் + Subtract கழி + Tabloid டேப்ளாய்ட் + Text Replacement உரை மாற்றீடு + Thin மெல்லிய + Traditional (72.27 points/inch) பாரம்பரிய (72.27 புள்ளிகள்/அங்குலம்) + Transfer பரிமாற்றம் + Triangle Tool முக்கோணக் கருவி + Unsaved changes சேமிக்கப்படாத மாற்றங்கள் + Uses the foreground and background colours. முன்புற மற்றும் பின்னணி நிறங்களைப் பயன்படுத்துகிறது. + Web வலை + Web Large வலை பெரியது + Web Minimum வலை குறைந்தபட்சம் + Web Most Common வலை மிகவும் பொதுவானது + WebP (lossless) WebP (இழப்பற்றது) + Wet Edges ஈர விளிம்புகள் + Yellows மஞ்சள்கள் + Zoom Tool பெரிதாக்கும் கருவி + {name} Properties {name} பண்புகள் + Revert “{name}” to the last saved version? Your changes will be lost. “{name}” ஐ கடைசியாகச் சேமித்த பதிப்புக்குத் திருப்பவா? உங்கள் மாற்றங்கள் இழக்கப்படும். + Do you want to save the changes you made to “{name}” before quitting? வெளியேறும் முன் “{name}” இல் செய்த மாற்றங்களைச் சேமிக்க விரும்புகிறீர்களா? + Do you want to save the changes you made to “{name}” before closing? மூடும் முன் “{name}” இல் செய்த மாற்றங்களைச் சேமிக்க விரும்புகிறீர்களா? + Doc: {flat}/{layered} ஆவணம்: {flat}/{layered} + Scratch: {size} நினைவக: {size} + Untagged {mode} குறிச்சொல்லிடப்படாத {mode} + Invalid {mode} profile தவறான {mode} சுயவிவரம் + Unnamed {mode} profile பெயரிடப்படாத {mode} சுயவிவரம் + {w} px x {h} px ({ppi} ppi) {w} px x {h} px ({ppi} ppi) + {w} {unit} x {h} {unit} ({ppi} ppi) {w} {unit} x {h} {unit} ({ppi} ppi) + Resolution: {dpi} pixels/inch தெளிவுத்திறன்: {dpi} பிக்சல்/அங்குலம் + Doc: {w} × {h} px ஆவணம்: {w} × {h} px + Frame {current} / {total} சட்டம் {current} / {total} + Count: {n} எண்ணிக்கை: {n} + BLANK DOCUMENT PRESETS ({n}) வெற்று ஆவண முன்னமைவுகள் ({n}) + Constraints ({n}) கட்டுப்பாடுகள் ({n}) + Align {what} {what} ஐ சீரமை +@plural {n} Layer|{n} Layers {n} அடுக்கு|{n} அடுக்குகள் +@plural {n} layer|{n} layers {n} அடுக்கு|{n} அடுக்குகள் +@plural Group · {n} layer|Group · {n} layers குழு · {n} அடுக்கு|குழு · {n} அடுக்குகள் + Additional plugins folder கூடுதல் செருகுநிரல் கோப்புறை + Adobe Adobe + Adobe rgb Adobe RGB + Allow agent control முகவர் கட்டுப்பாட்டை அனுமதி + Allow scripts to connect ஸ்கிரிப்டுகள் இணைய அனுமதி + Always எப்போதும் + Always create smart objects when placing வைக்கும்போது எப்போதும் திறன்மிகு பொருட்களை உருவாக்கு + Animated zoom அனிமேஷன் பெரிதாக்கல் + Apply auto tone தானியங்கி தொனியைப் பயன்படுத்து + Ask கேள் + Ask before saving layered tiff அடுக்கு TIFF ஐச் சேமிக்கும் முன் கேள் + Auto collapse icon panels ஐகான் பலகங்களைத் தானாகச் சுருக்கு + Auto show hidden panels மறைந்த பலகங்களைத் தானாகக் காண்பி + Auto show home screen முகப்புத் திரையைத் தானாகக் காண்பி + Autosave தானியங்கிச் சேமிப்பு + Autosave minutes தானியங்கிச் சேமிப்பு நிமிடங்கள் + Beep when done முடிந்ததும் ஒலி எழுப்பு + Bicubic automatic இருபக்கக் கனச்சதுர தானியங்கி + Bicubic sharper இருபக்கக் கனச்சதுர கூர்மை + Bicubic smoother இருபக்கக் கனச்சதுர மென்மை + Bit depth பிட் ஆழம் + Brush preview color தூரிகை முன்னோட்ட நிறம் + Cache levels தற்காலிக சேமிப்பு நிலைகள் + Cache tile size தற்காலிக சேமிப்பு ஓடு அளவு + Camera Raw Defaults கேமரா Raw இயல்புநிலைகள் + Canvas border படச்சட்ட விளிம்பு + Show canvas dots படச்சட்ட புள்ளிகளைக் காண்பி + Clip thumbnails to layer bounds சிறுபடங்களை அடுக்கு எல்லைக்கு வெட்டு + Clip Thumbnails to Layer Bounds சிறுபடங்களை அடுக்கு எல்லைக்கு வெட்டு + Canvas color படச்சட்ட நிறம் + Canvas custom color விருப்பமான படச்சட்ட நிறம் + Color picker நிறத் தேர்வி + Color space நிற வெளி + Column width நெடுவரிசை அகலம் + Concise சுருக்கமான + Control port கட்டுப்பாட்டு முனையம் + Convert to srgb sRGB ஆக மாற்று + Cursors சுட்டிகள் + Custom dark தனிப்பயன் கருமை + Custom light தனிப்பயன் வெளிர் + Dark கருமை + Dark gray கருஞ்சாம்பல் + Dashed lines கீற்றுக் கோடுகள் + Destination இலக்கு + Detailed விரிவான + Disks வட்டுகள் + Display p3 Display P3 + Double click layer mask launches select and mask அடுக்கு மறைப்பை இருமுறை சொடுக்கும்போது தேர்ந்தெடுத்து மறைப்புச் செய் திறக்கும் + Drop shadow விழும் நிழல் + Dynamic color sliders இயங்குநிலை நிற நழுவிகள் + East asian கிழக்கு ஆசிய + Effect cache mb விளைவு தற்காலிக சேமிப்பு MB + Enable flick panning தட்டி நகர்த்துதலை இயக்கு + Enable floating document window docking மிதக்கும் ஆவணச் சாளர இணைப்பை இயக்கு + Enable narrow options bar குறுகிய விருப்பப் பட்டையை இயக்கு + Enabled இயக்கப்பட்டது + Enhanced Controls மேம்படுத்தப்பட்ட கட்டுப்பாடுகள் + Export clipboard கிளிப்போர்டை ஏற்றுமதி செய் + Extra large மிகப் பெரியது + File Handling கோப்பு கையாளுதல் + File path கோப்புப் பாதை + Fill new type layers with placeholder புதிய உரை அடுக்குகளை இடஒதுக்கீட்டு உரையால் நிரப்பு + Font preview எழுத்துரு முன்னோட்டம் + Full size tip முழு அளவு முனை + Gamut warning color நிற வரம்பு எச்சரிக்கை நிறம் + Gamut warning opacity நிற வரம்பு எச்சரிக்கை ஒளிபுகாமை + Generator enabled உருவாக்கி இயக்கப்பட்டது + Gif GIF + Glossy பளபளப்பான + Grid color கட்ட நிறம் + Grid colors கட்ட நிறங்கள் + Grid size கட்ட அளவு + Grid style கட்ட பாணி + Grid unit கட்ட அலகு + Gridline every கட்டக்கோடு ஒவ்வொரு + Guide color அளவுகோட்டு வரிகள் நிறம் + Guide style அளவுகோட்டு வரிகள் பாணி + Guides, Grid & Slices அளவுகோட்டு வரிகள், கட்டம் & துண்டுகள் + Gutter இடைவெளிப்பட்டை + History Log வரலாற்றுப் பதிவு + History states வரலாற்று நிலைகள் + Ignore exif profile tag exif சுயவிவரக் குறிச்சொல்லைப் புறக்கணி + Image interpolation பட இடைக்கணிப்பு + Image previews பட முன்னோட்டங்கள் + Integrations ஒருங்கிணைப்புகள் + Interface இடைமுகம் + Jpeg quality JPEG தரம் + Jpg JPG + Language மொழி + Large tabs பெரிய தாவல்கள் + Legacy compositing பழைய கூட்டிணைப்பு + Light gray வெளிர் சாம்பல் + Line கோடு + Lines கோடுகள் + Lossless இழப்பற்றது + Lowercase extension சிறிய எழுத்து நீட்டிப்பு + Maximize psd compatibility PSD இணக்கத்தன்மையை அதிகப்படுத்து + Medium gray நடுத்தர சாம்பல் + Memory usage mb நினைவகப் பயன்பாடு MB + Low resolution previews குறைந்த தெளிவுத்திறன் முன்னோட்டங்கள் + Missing glyph protection காணாமல்போன குறியுரு பாதுகாப்பு + Modern நவீன + Nearest neighbor அருகிலுள்ள அண்டை + Never ஒருபோதும் இல்லை + Normal tip இயல்பான முனை + Open as smart object திறன்மிகு பொருளாகத் திற + Open in camera raw கேமரா Raw இல் திற + Open documents as tabs ஆவணங்களைத் தாவல்களாகத் திற + Overscroll மிகைஉருட்டல் + Performance செயல்திறன் + Png PNG + Point size புள்ளி அளவு + Precise துல்லியமான + Preserve details விவரங்களைப் பேணு + Print resolution அச்சுத் தெளிவுத்திறன் + Pro புரோ + Pro light புரோ வெளிர் + Pro light gray புரோ வெளிர் சாம்பல் + Pro medium புரோ நடுத்தரம் + Pro photo புரோ போட்டோ + Quick export format விரைவு ஏற்றுமதி வடிவம் + Quick export location விரைவு ஏற்றுமதி இடம் + Recent file count சமீபத்திய கோப்பு எண்ணிக்கை + LUT folder LUT கோப்புறை + Recent files சமீபத்திய கோப்புகள் + Recent fonts சமீபத்திய எழுத்துருக்கள் + Recover on launch தொடங்கும்போது மீட்டெடு + Remember workspace changes பணியிட மாற்றங்களை நினைவில் வை + Resize image during place வைக்கும்போது படத்தின் அளவை மாற்று + Rotate view with trackpad டிராக்பேடால் காட்சியைச் சுழற்று + Same folder அதே கோப்புறை + Save in background பின்னணியில் சேமி + Scratch Disks நினைவக வட்டுகள் + Screen திரை + Screen resolution திரைத் தெளிவுத்திறன் + Scrubby slider acceleration ஸ்க்ரப்பி நழுவி முடுக்கம் + Sessions only அமர்வுகள் மட்டும் + Sharpen for இதற்காகக் கூர்மையாக்கு + Show channels in color சேனல்களை நிறத்தில் காண்பி + Show crosshair in brush tip தூரிகை முனையில் குறுக்குக்கோடு காண்பி + Show extension panels நீட்டிப்புப் பலகங்களைக் காண்பி + Show font names in english எழுத்துரு பெயர்களை ஆங்கிலத்தில் காண்பி + Show menu colors பட்டி நிறங்களைக் காண்பி + Show only crosshair while painting வண்ணமிடும்போது குறுக்குக்கோடு மட்டும் காண்பி + Show slice numbers துண்டு எண்களைக் காண்பி + Show tooltips கருவிக்குறிப்புகளைக் காண்பி + Enable animations அனிமேஷன்களை இயக்கு + Show highlight on rollover சுட்டி மேலே செல்லும்போது ஒளிர்வைக் காண்பி + Show bounding box when dragging layer அடுக்கை இழுக்கும்போது எல்லைப் பெட்டியைக் காண்பி + System title bar கணினி தலைப்புப் பட்டை + Show transformation values உருமாற்ற மதிப்புகளைக் காண்பி + Slice color துண்டு நிறம் + Smart guide color திறன்மிகு அளவுகோட்டு வரி நிறம் + Smart quotes திறன்மிகு மேற்கோள்கள் + Snap vector tools and transforms to pixel grid திசையன் கருவிகளையும் உருமாற்றங்களையும் பிக்சல் கட்டத்துடன் ஒட்டு + Srgb sRGB + Standard நிலையான + Studio ஸ்டுடியோ + Studio light ஸ்டுடியோ வெளிர் + Adwaita அத்வைதா + Adwaita dark அத்வைதா கருமை + Subdivisions உட்பிரிவுகள் + System கணினி + Text engine உரை இயந்திரம் + Text file உரைக் கோப்பு + Tiny மிகச் சிறியது + Touch gestures தொடு சைகைகள் + Transparency & Gamut ஒளிஊடுருவல் & நிற வரம்பு + Type units உரை அலகுகள் + UI font size UI எழுத்துரு அளவு + UI scale UI அளவு + Units & Rulers அலகுகள் & அளவுகோல்கள் + Use additional plugins folder கூடுதல் செருகுநிரல் கோப்புறையைப் பயன்படுத்து + Use esc to commit உறுதிசெய்ய Esc ஐப் பயன்படுத்து + Use gpu GPU ஐப் பயன்படுத்து + Use legacy free transform பழைய தன்னிச்சை உருமாற்றத்தைப் பயன்படுத்து + Use shift key for tool switch கருவி மாற்ற Shift விசையைப் பயன்படுத்து + Vary round brush hardness on hud HUD இல் வட்டத் தூரிகை கடினத்தன்மையை மாற்று + Webp WebP + World ready உலகளாவிய ஆதரவு + Zoom clicked point to center கிளிக் செய்த புள்ளியை மையத்துக்குப் பெரிதாக்கு + Zoom resizes windows பெரிதாக்கல் சாளர அளவை மாற்றும் + Zoom with scroll wheel உருள் சக்கரத்தால் பெரிதாக்கு + Zoom with trackpad pinch டிராக்பேட் கிள்ளலால் பெரிதாக்கு + Pass Through கடந்துசெல் + Dissolve கரை + Darker Color கருமையான நிறம் + Linear Dodge (Add) நேர்கோட்டு ஒளிர்வு (சேர்) + Lighter Color வெளிர்ந்த நிறம் + Soft Light மென் ஒளி + Hard Light கடின ஒளி + Vivid Light துடிப்பான ஒளி + Linear Light நேர்கோட்டு ஒளி + Pin Light பின் ஒளி + Exclusion விலக்கு + Divide வகு + Luminosity ஒளிர்வுத்திறன் +@plural {n} sample|{n} samples {n} மாதிரி|{n} மாதிரிகள் + {added}, {removed} subtracted {added}, {removed} கழிக்கப்பட்டது + Adjustment Preview சரிசெய்தல் முன்னோட்டம் + Airbrush: keeps depositing paint while the pointer rests. ஏர்பிரஷ்: சுட்டி நிற்கும் போதும் வண்ணத்தைத் தொடர்ந்து படியவைக்கிறது. + Angle: கோணம்: + Blend If கலப்பு நிபந்தனை + Close Tab Group தாவல் குழுவை மூடு + Collapse சுருக்கு + Collapse All Groups அனைத்துக் குழுக்களையும் சுருக்கு + Collapse Panel Group பலகக் குழுவைச் சுருக்கு + Collapse group ({key}-click: all groups) குழுவைச் சுருக்கு ({key}-கிளிக்: அனைத்துக் குழுக்கள்) + Create new brush from the current settings தற்போதைய அமைப்புகளிலிருந்து புதிய தூரிகையை உருவாக்கு + Create new brush from these settings இந்த அமைப்புகளிலிருந்து புதிய தூரிகையை உருவாக்கு + Update the current brush with these settings தற்போதைய தூரிகையை இந்த அமைப்புகளால் புதுப்பி + Delete brush தூரிகையை நீக்கு + Drag the arrow to set the angle, the dots to set the roundness கோணத்தை அமைக்க அம்புக்குறியையும், வட்டத்தன்மையை அமைக்க புள்ளிகளையும் இழுக்கவும் + Expand விரிவாக்கு + Expand Panel Group பலகக் குழுவை விரிவாக்கு + Expand group ({key}-click: all groups) குழுவை விரிவாக்கு ({key}-கிளிக்: அனைத்துக் குழுக்கள்) + Fade steps மங்கல் படிகள் + Hide the layer's effects ({key}-click: all layers) அடுக்கின் விளைவுகளை மறை ({key}-கிளிக்: அனைத்து அடுக்குகள்) + Import Brushes… (.abr or image) தூரிகைகளை இறக்குமதி செய்… (.abr அல்லது படம்) + Import Brush from Image… படத்திலிருந்து தூரிகையை இறக்குமதி செய்… + Move Group Down குழுவைக் கீழே நகர்த்து + Move Group Up குழுவை மேலே நகர்த்து + Reset the brush to the defaults தூரிகையை இயல்புநிலைக்கு மீட்டமை + Restore original size அசல் அளவை மீட்டமை + Roundness: வட்டத்தன்மை: + Search Brushes தூரிகைகளைத் தேடு + Show the layer's effects ({key}-click: all layers) அடுக்கின் விளைவுகளைக் காண்பி ({key}-கிளிக்: அனைத்து அடுக்குகள்) + Brush picker தூரிகைத் தேர்வி + Erase அழி + Erase with Brush or Pencil (hold) தூரிகை அல்லது பென்சிலைக் கொண்டு அழி (அழுத்திப் பிடி) + Right click with painting tools ஓவியக் கருவிகளுடன் வலது கிளிக் + System Info… கணினித் தகவல்… + System Info கணினித் தகவல் + More panels மேலும் பலகங்கள் + More documents மேலும் ஆவணங்கள் + These settings aren't available in PhotoCraft yet. இந்த அமைப்புகள் போட்டோகிராப்டில் இன்னும் கிடைக்கவில்லை. + Graphics வரைகலை + Reset GPU Backend GPU பின்புலத்தை மீட்டமை + Applies at next launch. அடுத்த தொடக்கத்தில் பொருந்தும். + Click to sample the foreground colour · {key}-click for background முன்புற நிறத்தை மாதிரியெடுக்க கிளிக் செய்யவும் · பின்னணிக்கு {key}-கிளிக் + {key}-click to set the source மூலத்தை அமைக்க {key}-கிளிக் செய்யவும் + {key} to subtract கழிக்க {key} + Clone source {n} ({key}-click with Clone Stamp to set) நகலெடுப்பு மூலம் {n} (அமைக்க நகலெடுப்பு முத்திரையுடன் {key}-கிளிக்) + Source: not set ({key}-click with Clone Stamp) மூலம்: அமைக்கப்படவில்லை (நகலெடுப்பு முத்திரையுடன் {key}-கிளிக்) + Pixel Layer பிக்சல் அடுக்கு + Type Layer உரை அடுக்கு + Shape Layer வடிவ அடுக்கு + Group Layer குழு அடுக்கு + Fill Layer நிரப்பு அடுக்கு + Smart Object Layer திறன்மிகு பொருள் அடுக்கு + Create Warped Text உரை வளைவை உருவாக்கு + Rasterize Smart Object திறன்மிகு பொருளை ராஸ்டராக்கு + Rasterize Fill Content நிரப்பு உள்ளடக்கத்தை ராஸ்டராக்கு + Rasterize Layer Style அடுக்கு பாணியை ராஸ்டராக்கு + Unlock: picking a preset replaces these settings பூட்டைத் திற: முன்னமைவைத் தேர்ந்தெடுத்தால் இந்த அமைப்புகள் மாற்றப்படும் + Lock: keep these settings when picking another preset பூட்டு: மற்றொரு முன்னமைவைத் தேர்ந்தெடுக்கும்போது இந்த அமைப்புகளைத் தக்கவை + Diameter: விட்டம்: + Hardness: கடினத்தன்மை: + No brush presets தூரிகை முன்னமைவுகள் இல்லை + Toggle the Brush Settings panel (F5) தூரிகை அமைப்புகள் பலகத்தை மாற்று (F5) + Create new brush preset from the current settings தற்போதைய அமைப்புகளிலிருந்து புதிய தூரிகை முன்னமைவை உருவாக்கு + Brush Settings… (F5): every option of this brush தூரிகை அமைப்புகள்… (F5): இந்தத் தூரிகையின் அனைத்து விருப்பங்களும் + Rename Brush… தூரிகையின் பெயரை மாற்று… + Delete Brush தூரிகையை நீக்கு + New Brush Preset… புதிய தூரிகை முன்னமைவு… + Capture Brush Size in Preset முன்னமைவில் தூரிகை அளவைப் பதிவுசெய் + Include Tool Settings கருவி அமைப்புகளைச் சேர் + Include Color நிறத்தைச் சேர் + Enter a name for the brush preset தூரிகை முன்னமைவுக்குப் பெயரை உள்ளிடவும் + A brush preset with this name already exists இந்தப் பெயரில் ஒரு தூரிகை முன்னமைவு ஏற்கனவே உள்ளது + Brush Preset Options தூரிகை முன்னமைவு விருப்பங்கள் + Group name குழுவின் பெயர் + Brush name தூரிகையின் பெயர் + Brush Name தூரிகையின் பெயர் + Brush Stroke தூரிகைக் கோடு + Brush Tip தூரிகை முனை + Off: the speed of the pointer sets the spacing அணை: சுட்டியின் வேகம் இடைவெளியை அமைக்கும் + Tilt Scale சாய்வு அளவு + Brush Projection தூரிகை எறிவு + Apply the pen's tilt and rotation to the tip shape பேனாவின் சாய்வையும் சுழற்சியையும் முனை வடிவத்துக்குப் பயன்படுத்து + Mixer Brush கலப்புத் தூரிகை + Mixer Brush Tool கலப்புத் தூரிகைக் கருவி + Color Replacement Tool நிறம் மாற்றும் கருவி + Wet ஈரம் + Current Brush Load தற்போதைய தூரிகை ஏற்றம் + Load Brush தூரிகையை ஏற்று + Clean Brush தூரிகையைச் சுத்தம்செய் + Load the brush after each stroke ஒவ்வொரு கோட்டிற்கும் பிறகு தூரிகையை ஏற்று + Clean the brush after each stroke ஒவ்வொரு கோட்டிற்கும் பிறகு தூரிகையைச் சுத்தம்செய் + Mix கலவை + Wetness Jitter ஈரப்பத அதிர்வு + Mix Jitter கலவை அதிர்வு + Show the layer mask as an overlay அடுக்கு மறைப்பை மேலடுக்காகக் காண்பி + Toggle visibility தெரிவுநிலையை மாற்று + Unlink the mask from the layer மறைப்பு இணைப்பை அடுக்கிலிருந்து நீக்கு + Link the mask to the layer மறைப்பை அடுக்குடன் இணை + Gradient நிறப் படித்திறன் + Gradient Options நிறப் படித்திறன் விருப்பங்கள் + Align with layer அடுக்குடன் சீரமை + Reset Alignment சீரமைப்பை மீட்டமை + Centre the gradient (offset 0, 0) நிறப் படித்திறனை மையப்படுத்து (நகர்வு 0, 0) + Gradient Editor நிறப் படித்திறன் திருத்தி + Gradient picker நிறப் படித்திறன் தேர்வி + Save As Preset முன்னமைவாகச் சேமி + The gradient the Gradient tool paints with நிறப் படித்திறன் கருவி வண்ணமிடப் பயன்படுத்தும் நிறப் படித்திறன் + Adds the current gradient to the Gradients panel தற்போதைய நிறப் படித்திறனை நிறப் படித்திறன்கள் பலகத்தில் சேர்க்கிறது + Gradient stops நிறப் படித்திறன் நிறுத்தங்கள் + Select a type layer to edit its character and paragraph settings. எழுத்து மற்றும் பத்தி அமைப்புகளைத் திருத்த உரை அடுக்கைத் தேர்ந்தெடுக்கவும். + Text color உரை நிறம் + Type Options உரை விருப்பங்கள் + Anti-aliasing method விளிம்பு மென்மையாக்கல் முறை + Horizontal type கிடைமட்ட உரை + Vertical type செங்குத்து உரை + Fill path with foreground color பாதையை முன்புற நிறத்தால் நிரப்பு + Stroke path with brush பாதையைத் தூரிகையால் கோடிடு + Load path as a selection பாதையைத் தேர்வாக ஏற்று + Make work path from selection தேர்விலிருந்து பணிப் பாதையை உருவாக்கு + Add vector mask திசையன் மறைப்பைச் சேர் + Create new path புதிய பாதையை உருவாக்கு + Delete path பாதையை நீக்கு + Delete vector mask திசையன் மறைப்பை நீக்கு + CPU (no GPU acceleration) CPU (GPU முடுக்கம் இல்லை) + DirectX 12 DirectX 12 + GPU backend GPU பின்புலம் + Linux display server Linux காட்சி சேவையகம் + X11 X11 + Metal Metal + OpenGL OpenGL + Use tablet pressure டேப்லெட் அழுத்தத்தைப் பயன்படுத்து + Vulkan Vulkan + Alt-click to define a source point to clone from நகலெடுக்கும் மூலப் புள்ளியை வரையறுக்க Alt-கிளிக் செய்யவும் + No path to make a selection from: draw one with the Pen tool or select one in the Paths panel. தேர்வை உருவாக்க பாதை இல்லை: பேனா கருவியால் ஒன்றை வரையவும் அல்லது பாதைகள் பலகத்தில் ஒன்றைத் தேர்ந்தெடுக்கவும். + Cancel opening திறப்பதை ரத்துசெய் + Cancelled opening {name} {name} ஐத் திறப்பது ரத்துசெய்யப்பட்டது + The document “{name}” does not have an embedded {mode} profile. ஆவணம் “{name}” இல் உட்பொதிந்த {mode} சுயவிவரம் இல்லை. + The document “{name}” has an embedded color profile that does not match the current {mode} working space. ஆவணம் “{name}” இல் உள்ள உட்பொதிந்த நிறச் சுயவிவரம் தற்போதைய {mode} பணி வெளியுடன் பொருந்தவில்லை. + Working: {working} பணி: {working} + Developing {name} {name} ஐ டெவலப் செய்கிறது + Cancelled {label} {label} ரத்துசெய்யப்பட்டது + Esc to cancel ரத்துசெய்ய Esc + Opened {name} {name} திறக்கப்பட்டது + Opening {name} {name} ஐத் திறக்கிறது + Saved {name} {name} சேமிக்கப்பட்டது + Saving {name} {name} ஐச் சேமிக்கிறது + Saving {percent} சேமிக்கிறது {percent} + A save to {name} is still running; try again when it finishes {name} க்கான சேமிப்பு இன்னும் நடைபெறுகிறது; முடிந்ததும் மீண்டும் முயலவும் + {label} is writing the file and can no longer be cancelled {label} கோப்பை எழுதுகிறது; இனி ரத்துசெய்ய முடியாது + Opening {name}… {name} ஐத் திறக்கிறது… + Opening… திறக்கிறது… + Reading… படிக்கிறது… + Working… செயல்படுகிறது… + 3 x 3 3 x 3 + 4 x 4 4 x 4 + 5 x 5 5 x 5 + Grid: கட்டம்: + Color Range நிற வரம்பு + Adaptive Wide Angle தகவமைக்கும் அகலக் கோணம் + Chalk & Charcoal சுண்ணாம்பு & கரி + Charcoal கரி + Chrome குரோம் + Conté Crayon கோன்டே க்ரேயான் + Graphic Pen வரைகலைப் பேனா + Halftone Pattern அரைத்தொனி வடிவம் + Note Paper குறிப்புத் தாள் + Photocopy ஒளிநகல் + Plaster சாந்து + Reticulation வலைப்பின்னல் + Stamp முத்திரை + Torn Edges கிழிந்த விளிம்புகள் + Water Paper நீர்த் தாள் + Move நகர்த்து + Pencil பென்சில் + Clone Stamp நகலெடுப்பு முத்திரை + Dodge ஒளிர்வு + Burn எரிப்பு + Quick Selection விரைவுத் தேர்வு + History Brush வரலாற்றுத் தூரிகை + Color Replacement நிற மாற்றீடு + New Group புதிய குழு + Layer Comp அடுக்கு அமைப்பு + Alpha ஆல்பா + Make தயாரிப்பாளர் + Model மாதிரி + F F + Artist கலைஞர் + Spot Color புள்ளி நிறம் + Roman ரோமன் + Bold Italic தடித்த சாய்வு + Justification இருபுறச் சீரமைப்பு + Symbols குறியீடுகள் + Punctuation நிறுத்தற்குறிகள் + Make Work Path பணிப் பாதையை உருவாக்கு + Make Selection தேர்வை உருவாக்கு + Fill Path பாதையை நிரப்பு + Stroke Path பாதையைக் கோடிடு + Delete Path பாதையை நீக்கு + W அ + H உ + Ruler அளவுகோல் + New Layer Comp புதிய அடுக்கு அமைப்பு + Duplicate Layer Comp அடுக்கு அமைப்பை நகலெடு + Rename Layer Comp அடுக்கு அமைப்பின் பெயரை மாற்று + Apply Layer Comp அடுக்கு அமைப்பைப் பயன்படுத்து + Update Layer Comp அடுக்கு அமைப்பைப் புதுப்பி + Method முறை + Author ஆசிரியர் + Software மென்பொருள் + Pencil Tool பென்சில் கருவி + Pixel பிக்சல் + Adjustment சரிசெய்தல் + Drag (lasso) or click points (polygonal) · {add} add · {sub} subtract இழு (லாஸ்ஸோ) அல்லது புள்ளிகளைக் கிளிக் செய் (பலகோணம்) · {add} சேர் · {sub} கழி + Drag a crop box · drag inside to move · edges resize ({ratio} ratio, {centre} centre) · Space moves while drawing · arrows nudge · X swaps orientation · {commit} commits · Esc cancels வெட்டுப் பெட்டியை இழுக்கவும் · நகர்த்த உள்ளே இழுக்கவும் · விளிம்புகள் அளவை மாற்றும் ({ratio} விகிதம், {centre} மையம்) · வரையும்போது Space நகர்த்தும் · அம்புகள் சிறிதாக நகர்த்தும் · X திசையமைவை மாற்றும் · {commit} உறுதிசெய்யும் · Esc ரத்துசெய்யும் + {mode} Color · {bits} bit {mode} நிறம் · {bits} பிட் + Scrubby Zoom ஸ்க்ரப்பி பெரிதாக்கல் + Auto Erase தானியங்கி அழிப்பு + Color Adaptation நிறத் தகவமைப்பு + Preserve Transparency ஒளிஊடுருவலைப் பேணு + shortcut குறுக்குவழி + Saved சேமிக்கப்பட்டது + Arc வில் + Arch வில்வளைவு + Bulge வீக்கம் + Shell Lower கீழ் ஓடு + Shell Upper மேல் ஓடு + Flag கொடி + Fish மீன் + Wave அலை + Rise உயர்வு + Inflate ஊதிப்பெருக்கு + Twist முறுக்கு + Squeeze அழுத்து + Mask மறைப்பு + Channel சேனல் + Rectangle செவ்வகம் + New Channel புதிய சேனல் + Save Selection தேர்வைச் சேமி + Load Selection தேர்வை ஏற்று +@id edit.purge.undo செயல்தவிர் வரலாறு + Rendering Mode ரெண்டரிங் முறை + Automatic (recommended) தானியங்கி (பரிந்துரைக்கப்படுகிறது) + CPU / Compatibility CPU / இணக்கத்தன்மை + Automatic uses GPU acceleration when available and falls back to CPU rendering on errors. தானியங்கி முறை கிடைக்கும்போது GPU முடுக்கத்தைப் பயன்படுத்தும்; பிழைகளின்போது CPU ரெண்டரிங்குக்கு மாறும். + Switched to CPU rendering CPU ரெண்டரிங்குக்கு மாறியது + GPU acceleration could not continue. Your documents are unchanged. GPU முடுக்கம் தொடர முடியவில்லை. உங்கள் ஆவணங்கள் மாறவில்லை. + PhotoCraft is using the CPU image compositor. The window may still use your graphics adapter. போட்டோகிராப்ட் CPU பட இணைப்பியைப் பயன்படுத்துகிறது. சாளரம் இன்னும் உங்கள் வரைகலை அடாப்டரைப் பயன்படுத்தலாம். + Retry GPU requires a restart. Save your work first. GPU ஐ மீண்டும் முயல மறுதொடக்கம் தேவை. முதலில் உங்கள் பணியைச் சேமிக்கவும். + Retry GPU tries the graphics processor again now. GPU ஐ மீண்டும் முயல் இப்போது வரைகலைச் செயலியை மீண்டும் முயற்சிக்கும். + GPU acceleration resumed. GPU முடுக்கம் மீண்டும் தொடங்கியது. + Keep Using CPU CPU ஐத் தொடர்ந்து பயன்படுத்து + Retry GPU GPU ஐ மீண்டும் முயல் + Advanced மேம்பட்டவை + GPU Backend GPU பின்புலம் + Details விவரங்கள் + Rendering mode ரெண்டரிங் முறை + Freeze Lasso: drag to freeze an area, Alt-drag to thaw it (L) உறைய வைக்கும் லாஸ்ஸோ: பகுதியை உறைய வைக்க இழுக்கவும், உருக்க Alt-இழு (L) + Shadow Clipping Warning (U) நிழல் வெட்டு எச்சரிக்கை (U) + Highlight Clipping Warning (O) ஒளிர்வு வெட்டு எச்சரிக்கை (O) + Show Lab Color Readouts Lab நிற அளவீடுகளைக் காண்பி + Show Vectorscope வண்ணத் திசையன் காட்டியைக் காண்பி + Show Red at 3 o'clock சிவப்பை 3 மணி நிலையில் காண்பி + Show Skin Tone Indicator தோல் நிறக் குறிகாட்டியைக் காண்பி + Tone Histogram தொனி ஹிஸ்டோகிராம் + Show Selected Region தேர்ந்தெடுத்த பகுதியைக் காண்பி +cameraRaw Light ஒளி + Camera Raw Filter ({layer}) கேமரா Raw வடிகட்டி ({layer}) + Camera Raw ({name}) கேமரா Raw ({name}) +cameraRaw Lights ஒளிகள் +cameraRaw Darks கருமைகள் +cameraRaw Red சிவப்பு +cameraRaw Orange ஆரஞ்சு +cameraRaw Yellow மஞ்சள் +cameraRaw Green பச்சை +cameraRaw Aqua அக்வா +cameraRaw Blue நீலம் +cameraRaw Purple ஊதா +cameraRaw Magenta கருஞ்சிவப்பு +cameraRaw Blending கலத்தல் +cameraRaw Tint சாயம் +cameraRaw Temperature வெப்பநிலை +cameraRaw Amount அளவு + Patch Tool ஒட்டுக் கருவி + Patch: ஒட்டு: + Lasso around an area, then drag the selection ஒரு பகுதியைச் சுற்றி லாஸ்ஸோ செய்து, பின்னர் தேர்வை இழுக்கவும் + Transform On Drop இடும்போது உருமாற்று + Scale or rotate the moved area, then press {key} நகர்த்திய பகுதியின் அளவை மாற்றவும் அல்லது சுழற்றவும், பின்னர் {key} ஐ அழுத்தவும் + Now drag the selection onto another area இப்போது தேர்வை மற்றொரு பகுதிக்கு இழுக்கவும் + Edit Type உரையைத் திருத்து + New Style… புதிய பாணி… + Style {name} saved பாணி {name} சேமிக்கப்பட்டது + Create new style (from the selected type) புதிய பாணியை உருவாக்கு (தேர்ந்தெடுத்த உரையிலிருந்து) + Create new style from the selected layer தேர்ந்தெடுத்த அடுக்கிலிருந்து புதிய பாணியை உருவாக்கு + Make Default இயல்புநிலையாக்கு + Reset to Default இயல்புநிலைக்கு மீட்டமை + Full-resolution preview unavailable முழுத் தெளிவுத்திறன் முன்னோட்டம் கிடைக்கவில்லை + No patterns வடிவமைப்புகள் இல்லை + Enable {name} {name} ஐ இயக்கு + Hold Alt while drawing for straight segments நேரான பகுதிகளுக்கு வரையும்போது Alt ஐ அழுத்திப் பிடிக்கவும் + Drag or click polygon points · hold Alt during lasso for straight segments · {add} add · {sub} before drawing subtracts பலகோணப் புள்ளிகளை இழுக்கவும் அல்லது கிளிக் செய்யவும் · நேரான பகுதிகளுக்கு லாஸ்ஸோவின்போது Alt ஐ அழுத்திப் பிடிக்கவும் · {add} சேர் · வரையும் முன் {sub} கழிக்கும் + Extend நீட்டி + Structure: கட்டமைப்பு: + Content-Aware Move Tool உள்ளடக்கம் அறிந்த நகர்த்தும் கருவி + TIFF Options TIFF விருப்பங்கள் + Targa Options Targa விருப்பங்கள் + JPEG Options JPEG விருப்பங்கள் + Image Options பட விருப்பங்கள் + Format Options வடிவமைப்பு விருப்பங்கள் + Baseline ("Standard") அடிப்படை ("நிலையானது") + Baseline Optimized அடிப்படை மேம்படுத்தப்பட்டது + 24 bits/pixel 24 பிட்/பிக்சல் + 32 bits/pixel 32 பிட்/பிக்சல் + Including layers will increase file size. அடுக்குகளைச் சேர்ப்பது கோப்பு அளவை அதிகரிக்கும். + Discard Layers and Save a Copy அடுக்குகளை நிராகரித்து நகலைச் சேமி + Don't show again மீண்டும் காட்டாதே + Save failed: {error} சேமிப்பு தோல்வியடைந்தது: {error} + Save cancelled சேமிப்பு ரத்துசெய்யப்பட்டது + Magnetic Lasso Tool காந்த லாஸ்ஸோ கருவி + Frequency அதிர்வெண் + Use tablet pressure to change pen width பேனா அகலத்தை மாற்ற டேப்லெட் அழுத்தத்தைப் பயன்படுத்து + About பற்றி + Contributors பங்களிப்பாளர்கள் + Models மாதிரிகள் + Sort வரிசைப்படுத்து + Username பயனர்பெயர் + Display name காட்சிப் பெயர் + Real name உண்மைப் பெயர் + Reverse the order வரிசையைத் தலைகீழாக்கு + Grab bag கலவைப் பை + Table அட்டவணை + Name (A–Z) பெயர் (A–Z) + Merged PRs இணைக்கப்பட்ட PRகள் + Commits கமிட்கள் + Lines added சேர்த்த வரிகள் + Lines deleted நீக்கிய வரிகள் + Line delta வரி வேறுபாடு + Binary assets added சேர்த்த பைனரி சொத்துகள் + Binary assets removed நீக்கிய பைனரி சொத்துகள் + First commit முதல் கமிட் + First முதல் + Last commit கடைசி கமிட் + Last கடைசி + Contributors: {contributors} · Commits: {commits} பங்களிப்பாளர்கள்: {contributors} · சமர்ப்பிப்புகள்: {commits} + No contributor data was built into this copy. இந்த நகலில் பங்களிப்பாளர் தரவு சேர்க்கப்படவில்லை. + No model credits were built into this copy. இந்த நகலில் மாதிரி நன்றிகள் சேர்க்கப்படவில்லை. + Company நிறுவனம் + Version பதிப்பு + % of all commits அனைத்து சமர்ப்பிப்புகளில் % + Lines +/− வரிகள் +/− + @{login}: {prs} PRs, {commits} commits, +{added} / −{deleted} lines (Δ {delta}), +{binAdded} / −{binDeleted} binary assets, {first} – {last} @{login}: {prs} PRகள், {commits} கமிட்கள், +{added} / −{deleted} வரிகள் (Δ {delta}), +{binAdded} / −{binDeleted} பைனரி சொத்துகள், {first} – {last} + Create new swatch புதிய நிற மாதிரியை உருவாக்கு + New Swatch… புதிய நிற மாதிரி… + New Swatch Group… புதிய நிற மாதிரிக் குழு… + Import Swatches… நிற மாதிரிகளை இறக்குமதி செய்… + Replace Swatches… நிற மாதிரிகளை மாற்று… + Export Swatches… நிற மாதிரிகளை ஏற்றுமதி செய்… + Export Swatches for Exchange… பரிமாற்றத்துக்கு நிற மாதிரிகளை ஏற்றுமதி செய்… + Reset Swatches நிற மாதிரிகளை மீட்டமை + Add to Swatches நிற மாதிரிகளில் சேர் + Blend If: கலப்பு நிபந்தனை: + Channels: சேனல்கள்: + Knockout நாக்அவுட் + Apply At Canvas Bounds படச்சட்ட எல்லைகளில் பயன்படுத்து + Color Picker (Text Color) நிறத் தேர்வி (உரை நிறம்) + Color Picker ({name}) நிறத் தேர்வி ({name}) + Color Picker (Fill Color) நிறத் தேர்வி (நிரப்பு நிறம்) + Fill color நிரப்பு நிறம் + Color Picker (Stroke Color) நிறத் தேர்வி (கோடு நிறம்) + Stroke color கோடு நிறம் + Pick screen color திரை நிறத்தைத் தேர்ந்தெடு + Sample a pixel anywhere on the screen திரையில் எங்கும் ஒரு பிக்சலை மாதிரியெடு + Click to pick · Esc to cancel தேர்ந்தெடுக்க கிளிக் · ரத்துசெய்ய Esc + Pick a screen pixel or press Esc to cancel திரை பிக்சலைத் தேர்ந்தெடுக்கவும் அல்லது ரத்துசெய்ய Esc அழுத்தவும் + Scroll to zoom பெரிதாக்க உருட்டவும் + Drag to pan · Scroll to zoom · Double-click to fit நகர்த்த இழுக்கவும் · பெரிதாக்க உருட்டவும் · பொருத்த இருமுறை கிளிக் செய்யவும் + Show/Hide All Panels அனைத்துப் பலகங்களையும் காண்பி/மறை + Show/Hide Panels பலகங்களைக் காண்பி/மறை + Could not open திறக்க முடியவில்லை + {path}: the path is not valid Unicode; rename the file and open it again. {path}: பாதை சரியான யூனிகோட் அல்ல; கோப்பின் பெயரை மாற்றி மீண்டும் திறக்கவும். + Contents: உள்ளடக்கம்: + Custom Pattern: தனிப்பயன் வடிவமைப்பு: + Foreground Color முன்புற நிறம் + Color… நிறம்… + 50% Gray 50% சாம்பல் + {size} (was {old}) {size} (முன்பு {old}) + Cone கூம்பு + Cone (Inverted) கூம்பு (தலைகீழ்) + Domed குவிமாடம் + Domed (Inverted) குவிமாடம் (தலைகீழ்) + Diagonal (Descending) மூலைவிட்டம் (இறங்குமுகம்) + Contour Editor வெளிக்கோடு திருத்தி + Anti-aliased விளிம்பு மென்மையாக்கப்பட்டது + Corner மூலை + Gloss Contour பளபளப்பு வெளிக்கோடு + Contour வெளிக்கோடு + Cone - Inverted கூம்பு - தலைகீழ் + Cove - Deep குடைவு - ஆழம் + Cove - Shallow குடைவு - ஆழமற்றது + Half Round அரை வட்டம் + Ring வளையம் + Ring - Double வளையம் - இரட்டை + Rolling Slope - Descending உருளும் சரிவு - இறங்குமுகம் + Rounded Steps வட்டப் படிகள் + Sawtooth 1 ரம்பப் பல் 1 + Red Eye Tool சிவப்புக் கண் கருவி + Red Eye சிவப்புக் கண் + Pupil Size பாவை அளவு + Darken Amount கருமையாக்கும் அளவு + Click a red pupil to neutralize it சிவப்புப் பாவையைச் சரிசெய்ய அதைக் கிளிக் செய்யவும் + open source திறந்த மூலம் + …and {n} more …மேலும் {n} + Eyedroppers: நிறத் தேர்விகள்: + Set Black Point கருப்புப் புள்ளியை அமை + Set Neutral Gray Point நடுநிலைச் சாம்பல் புள்ளியை அமை + Set White Point வெள்ளைப் புள்ளியை அமை + Unavailable in this color mode இந்த நிற முறையில் கிடைக்காது + Selection Preview: தேர்வு முன்னோட்டம்: + Black Matte கருப்பு ஒளிமறுப்பு + White Matte வெள்ளை ஒளிமறுப்பு + Seafoam கடல்நுரை + Indigo அவுரி + Fuchsia ஃபுக்சியா + Violet ஊதா + Reset மீட்டமை + Large document: redrawing on the CPU பெரிய ஆவணம்: CPU இல் மறுவரைவு செய்கிறது + Redrawing மறுவரைவு + This redraw took {seconds} s on the CPU. இந்த மறுவரைவு CPU இல் {seconds} வி எடுத்தது. + Edits that change the whole document, such as a layer's blend mode, opacity or visibility, redraw all of it. ஒரு அடுக்கின் கலப்பு முறை, ஒளிபுகாமை அல்லது தெரிவுநிலை போன்ற முழு ஆவணத்தையும் மாற்றும் திருத்தங்கள் அனைத்தையும் மறுவரைவு செய்கின்றன. + The GPU compositor wasn't used: {reason} GPU இணைப்பி பயன்படுத்தப்படவில்லை: {reason} +fontWeight Thin மெல்லிய +fontWeight ExtraLight மிக மெல்லிய +fontWeight Light இலேசான +fontWeight Regular வழக்கமான +fontWeight Medium நடுத்தரம் +fontWeight SemiBold அரைத் தடித்த +fontWeight Bold தடித்த +fontWeight ExtraBold மிகத் தடித்த +fontWeight Black அடர் +fontWeight Italic சாய்வு + Pattern Stamp Tool வடிவ முத்திரைக் கருவி + Pattern Stamp வடிவ முத்திரை + Impressionist இம்ப்ரெஷனிஸ்ட் + Rotate View காட்சியைச் சுழற்று + Rotate View Tool காட்சி சுழற்றும் கருவி + Reset View காட்சியை மீட்டமை + Drag around the centre to rotate the view · Shift constrains to 15° காட்சியைச் சுழற்ற மையத்தைச் சுற்றி இழுக்கவும் · Shift 15° க்குக் கட்டுப்படுத்தும் + Dual Axis இரட்டை அச்சு + Diagonal மூலைவிட்டம் + Transform Symmetry சமச்சீரை உருமாற்று + Point Sample புள்ளி மாதிரி + 3 by 3 Average 3 x 3 சராசரி + 5 by 5 Average 5 x 5 சராசரி + 11 by 11 Average 11 x 11 சராசரி + 31 by 31 Average 31 x 31 சராசரி + 51 by 51 Average 51 x 51 சராசரி + 101 by 101 Average 101 x 101 சராசரி + Sample Size: மாதிரி அளவு: + All Layers No Adjustments அனைத்து அடுக்குகள், சரிசெய்தல்கள் இல்லாமல் + Current & Below No Adjustments தற்போதையது & கீழுள்ளவை, சரிசெய்தல்கள் இல்லாமல் + Show Sampling Ring மாதிரியெடுப்பு வளையத்தைக் காண்பி + Out of gamut for printing: click for the nearest printable colour அச்சிடுவதற்கான நிற வரம்புக்கு வெளியே: அருகிலுள்ள அச்சிடக்கூடிய நிறத்துக்கு கிளிக் செய்யவும் + Not a web colour: click for the nearest web colour வலை நிறம் அல்ல: அருகிலுள்ள வலை நிறத்துக்கு கிளிக் செய்யவும் + Color to Alpha… நிறத்தை ஆல்பாவாக… + Transparency Threshold ஒளிஊடுருவல் வாசல் + Opacity Threshold ஒளிபுகாமை வாசல் + PhotoCraft — Screen Color Picker போட்டோகிராப்ட் — திரை நிறத் தேர்வி + Rasterize svg groups deeper than இதைவிட ஆழமான svg குழுக்களை ராஸ்டராக்கு + 0 turns this threshold off; SVG groups nested deeper than 100 levels are always rasterized. 0 இந்த வாசலை அணைக்கும்; 100 நிலைகளுக்கு மேல் ஆழமாக உள்ள SVG குழுக்கள் எப்போதும் ராஸ்டராக்கப்படும். + Rule of Thirds மூன்றில் ஒரு பங்கு விதி + Triangle முக்கோணம் + Golden Ratio தங்க விகிதம் + Golden Spiral தங்கச் சுருள் + Auto Show Overlay மேலடுக்கைத் தானாகக் காண்பி + Always Show Overlay மேலடுக்கை எப்போதும் காண்பி + Never Show Overlay மேலடுக்கை ஒருபோதும் காட்டாதே + Cycle Overlay மேலடுக்கை மாற்றி மாற்று + Cycle Orientation திசையமைவை மாற்றி மாற்று + Set the overlay options for the Crop tool வெட்டுக் கருவிக்கான மேலடுக்கு விருப்பங்களை அமை + Alt-click went to the desktop, which moves windows with Alt-drag. Set its window-move key to Super, or latch Alt in Window › Modifier Keys. Alt-கிளிக் டெஸ்க்டாப்புக்குச் சென்றது; அது Alt-இழுப்பால் சாளரங்களை நகர்த்துகிறது. அதன் சாளர நகர்த்தும் விசையை Super ஆக அமைக்கவும், அல்லது சாளரம் › மாற்றி விசைகளில் Alt ஐப் பூட்டவும். + Color Picker (Layer Style Color) நிறத் தேர்வி (அடுக்கு பாணி நிறம்) + Auto Hide Notifications அறிவிப்புகளைத் தானாக மறை + Notification Duration (seconds) அறிவிப்பு கால அளவு (விநாடிகள்) + Bundle Arrow-Key Nudges அம்புக்குறி விசை நகர்வுகளைத் தொகுத்திடு + Nudge Bundle Pause (ms) நகர்வுத் தொகுப்பு இடைநிறுத்தம் (ms) + Appearance Mode தோற்ற முறை + Dark Theme கருமை தோற்றம் + Light Theme வெளிர் தோற்றம் + Pro Medium புரோ நடுத்தரம் + Studio Light ஸ்டுடியோ வெளிர் + Next Appearance Mode அடுத்த தோற்ற முறை + Sync with system கணினியுடன் ஒத்திசை + Active செயலில் + Color Picker (Solid Color) நிறத் தேர்வி (திட நிறம்) + Straighten the image by drawing a line on it படத்தின் மீது கோடு வரைந்து நேராக்கு + Set additional Crop options கூடுதல் வெட்டு விருப்பங்களை அமை + Show Cropped Area வெட்டப்பட்ட பகுதியைக் காண்பி + Enable Crop Shield வெட்டுக் கவசத்தை இயக்கு + Match Canvas படச்சட்டத்துடன் பொருத்து + Auto Adjust Opacity ஒளிபுகாமையைத் தானாகச் சரிசெய் + Crop Shield color வெட்டுக் கவச நிறம் + Color Picker (Crop Shield Color) நிறத் தேர்வி (வெட்டுக் கவச நிறம்) + From Center மையத்திலிருந்து + Link radii ஆரங்களை இணை + Star Ratio: நட்சத்திர விகிதம்: + Create Rectangle செவ்வகத்தை உருவாக்கு + Create Ellipse நீள்வட்டத்தை உருவாக்கு + Create Triangle முக்கோணத்தை உருவாக்கு + Create Polygon பலகோணத்தை உருவாக்கு + Pressure curve அழுத்த வளைவு + Click to add a point, right-click to remove புள்ளியைச் சேர்க்க கிளிக், நீக்க வலது கிளிக் + Some brush presets could not be loaded சில தூரிகை முன்னமைவுகளை ஏற்ற முடியவில்லை + Retry saving presets முன்னமைவுகளைச் சேமிக்க மீண்டும் முயல் + Brush preset changes are not saved: {error} தூரிகை முன்னமைவு மாற்றங்கள் சேமிக்கப்படவில்லை: {error} + Keep this tab open to retain your brushes. உங்கள் தூரிகைகளைத் தக்கவைக்க இந்தத் தாவலைத் திறந்து வைக்கவும். + Browser storage is unavailable; brushes are session-only. Keep this tab open to retain them. உலாவி சேமிப்பகம் கிடைக்கவில்லை; தூரிகைகள் இந்த அமர்வில் மட்டுமே இருக்கும். அவற்றைத் தக்கவைக்க இந்தத் தாவலைத் திறந்து வைக்கவும். + Saving brush presets… Keep this tab open until saving finishes. தூரிகை முன்னமைவுகளைச் சேமிக்கிறது… சேமிப்பு முடியும் வரை இந்தத் தாவலைத் திறந்து வைக்கவும். + Reflect பிரதிபலி + Glow பிரகாசம் + Negation மறுப்பு + XOR XOR + Color Burn (Paint.NET) நிற எரிப்பு (Paint.NET) + Color Dodge (Paint.NET) நிற ஒளிர்வு (Paint.NET) + Stroke Options கோடு விருப்பங்கள் + Solid திடம் + Dashed கீற்றுக்கோடு + Dotted புள்ளிக்கோடு + Alignment சீரமைப்பு + Caps முனைகள் + Butt / Flat தட்டை / சமதளம் + Corners மூலைகள் + Miter மிட்டர் + Round வட்டம் + Bevel சரிவு + Miter limit மிட்டர் வரம்பு + Dashed line கீற்றுக் கோடு + Dash கீற்று + Gap இடைவெளி + Dash / gap lengths × stroke width கீற்று / இடைவெளி நீளங்கள் × கோடு அகலம் + Add pair இணையைச் சேர் + Remove pair இணையை நீக்கு + Dash offset கீற்று நகர்வு + Open paths use centered strokes திறந்த பாதைகள் மையக் கோடுகளைப் பயன்படுத்தும் + Use finite lengths and a positive pattern total வரையறுத்த நீளங்களையும் நேர்மறை வடிவ மொத்தத்தையும் பயன்படுத்தவும் + No subject found — try Object Selection or the Lasso பொருள் எதுவும் கிடைக்கவில்லை — பொருள் தேர்வு அல்லது லாஸ்ஸோவை முயலவும் + Quick Selection found nothing there விரைவுத் தேர்வு அங்கு எதையும் கண்டறியவில்லை + Object Selection found nothing there — try a tighter rectangle பொருள் தேர்வு அங்கு எதையும் கண்டறியவில்லை — இறுக்கமான செவ்வகத்தை முயலவும் + No subject found — try a rectangle around the object பொருள் எதுவும் கிடைக்கவில்லை — பொருளைச் சுற்றி செவ்வகத்தை முயலவும் + Click the first point or press {key} to close · {del} removes a point · Esc cancels மூட முதல் புள்ளியைக் கிளிக் செய்யவும் அல்லது {key} அழுத்தவும் · {del} ஒரு புள்ளியை நீக்கும் · Esc ரத்துசெய்யும் + Click, then move along an edge · click to fasten a point · {alt}-click for a straight segment · double-click to close கிளிக் செய்து, விளிம்பில் நகர்த்தவும் · புள்ளியை இணைக்க கிளிக் · நேரான பகுதிக்கு {alt}-கிளிக் · மூட இருமுறை கிளிக் + Follows only edges this close to the pointer ([ and ] change it) சுட்டிக்கு இவ்வளவு அருகிலுள்ள விளிம்புகளை மட்டும் பின்தொடரும் ([ மற்றும் ] இதை மாற்றும்) + Higher values follow only edges that contrast sharply with their surroundings அதிக மதிப்புகள் சுற்றுப்புறத்துடன் கூர்மையாக மாறுபடும் விளிம்புகளை மட்டும் பின்தொடரும் + How often fastening points are placed by themselves இணைப்புப் புள்ளிகள் தானாக எவ்வளவு அடிக்கடி வைக்கப்படுகின்றன + Appearance Settings… தோற்ற அமைப்புகள்… + Add to favorites பிடித்தவற்றில் சேர் + Remove from favorites பிடித்தவற்றிலிருந்து நீக்கு + Camera Data கேமரா தரவு +cameraData Make தயாரிப்பாளர் +cameraData Model மாதிரி +cameraData Date Taken எடுத்த தேதி +cameraData Exposure வெளிப்பாடு +cameraData F-Stop F-நிறுத்தம் +cameraData ISO Speed ISO வேகம் +cameraData Focal Length குவிய நீளம் +cameraData Focal Length (35 mm) குவிய நீளம் (35 மிமீ) +cameraData Lens லென்ஸ் + Activate Panel பலகத்தைச் செயல்படுத்து + Change Panel Group பலகக் குழுவை மாற்று + Change Panel Layout பலக அமைப்பை மாற்று + Close Panel பலகத்தை மூடு + Dock Panel பலகத்தை இணை + Float Panel பலகத்தை மிதக்கவிடு + Move Panel பலகத்தை நகர்த்து + Group with இதனுடன் குழுவாக்கு + Panel menu பலகப் பட்டி + Resize panel window பலகச் சாளர அளவை மாற்று + Resize panels பலகங்களின் அளவை மாற்று + Distribution பகிர்வு + Uniform சீரான + Gaussian காசியன் + Monochromatic ஒற்றைநிறமான + Seed விதை + Strength வலிமை + Reduce Color Noise நிற இரைச்சலைக் குறை + Remove Jpeg Artifact JPEG குறைபாட்டை நீக்கு + Sharpen Details விவரங்களைக் கூர்மையாக்கு + Reduce Noise இரைச்சலைக் குறை + Use Classic Mode கிளாசிக் முறையைப் பயன்படுத்து + Auto Center Preview முன்னோட்டத்தைத் தானாக மையப்படுத்து + Next Document அடுத்த ஆவணம் + Previous Document முந்தைய ஆவணம் + W x H x Resolution அ x உ x தெளிவுத்திறன் + Front Image முன் படம் + Frame Tool சட்டக் கருவி + Create a new rectangular frame புதிய செவ்வகச் சட்டத்தை உருவாக்கு + Create a new elliptical frame புதிய நீள்வட்டச் சட்டத்தை உருவாக்கு + Include in playback இயக்கத்தில் சேர் + Perspective Crop Tool பார்வைக்கோண வெட்டுக் கருவி + Show Grid கட்டத்தைக் காண்பி + Drag a box or click four corners · drag the corners onto the edges of a skewed shape · {commit} commits · Esc cancels பெட்டியை இழுக்கவும் அல்லது நான்கு மூலைகளைக் கிளிக் செய்யவும் · மூலைகளை சாய்ந்த வடிவத்தின் விளிம்புகளுக்கு இழுக்கவும் · {commit} உறுதிசெய்யும் · Esc ரத்துசெய்யும் + Artboard Tool ஆர்ட்போர்டு கருவி + Make Portrait செங்குத்தாக்கு + Make Landscape கிடைமட்டமாக்கு + Add New Artboard புதிய ஆர்ட்போர்டைச் சேர் + Freeform Pen Tool தன்வடிவப் பேனா கருவி + Curvature Pen Tool வளைவுப் பேனா கருவி + Curve Fit: வளைவுப் பொருத்தம்: + Drag: draw freehand · {alt}-click: straight segment · Release on the start point: close இழு: கையால் வரை · {alt}-கிளிக்: நேரான பகுதி · தொடக்கப் புள்ளியில் விடு: மூடு + Click: smooth point · Double-click: corner · Drag a point: move · Click first point: close · {key} finish கிளிக்: மென்மையான புள்ளி · இருமுறை கிளிக்: மூலை · புள்ளியை இழு: நகர்த்து · முதல் புள்ளி கிளிக்: மூடு · {key} முடி + New Crop Preset… புதிய வெட்டு முன்னமைவு… + Delete Crop Preset… வெட்டு முன்னமைவை நீக்கு… + Select the crop presets to delete: நீக்க வேண்டிய வெட்டு முன்னமைவுகளைத் தேர்ந்தெடுக்கவும்: + Select the crop presets to delete நீக்க வேண்டிய வெட்டு முன்னமைவுகளைத் தேர்ந்தெடுக்கவும் + Enter a name for the crop preset வெட்டு முன்னமைவுக்குப் பெயரை உள்ளிடவும் + There is no crop size or ratio to save சேமிக்க வெட்டு அளவோ விகிதமோ இல்லை + Scale: அளவு: + Snap to Origin தோற்றத்துடன் ஒட்டு + Search settings… அமைப்புகளைத் தேடு… + No matching settings பொருந்தும் அமைப்புகள் இல்லை + Sampling Brush Tool மாதிரியெடுப்புத் தூரிகைக் கருவி + Sampling Area Overlay மாதிரியெடுப்புப் பகுதி மேலடுக்கு + Show Sampling Area மாதிரியெடுப்புப் பகுதியைக் காண்பி + Indicates குறிப்பது + Sampling Area மாதிரியெடுப்புப் பகுதி + Excluded Area விலக்கப்பட்ட பகுதி + Sampling Area Options மாதிரியெடுப்புப் பகுதி விருப்பங்கள் + Rectangular செவ்வக + Fill Settings நிரப்பு அமைப்புகள் + Rotation Adaptation சுழற்சித் தகவமைப்பு + Very High மிக உயர் + Full முழு + Mirror கண்ணாடி + Output Settings வெளியீட்டு அமைப்புகள் + Output To வெளியீட்டு இடம் + Animation Options அனிமேஷன் விருப்பங்கள் + Entire Document முழு ஆவணம் + Filter Options வடிகட்டி விருப்பங்கள் + Layer Bounds அடுக்கு எல்லைகள் + Layers Panel Options அடுக்குகள் பலக விருப்பங்கள் + Lock Layers அடுக்குகளைப் பூட்டு + New Artboard… புதிய ஆர்ட்போர்டு… + New Group… புதிய குழு… + New Layer… புதிய அடுக்கு… + Panel Options… பலக விருப்பங்கள்… + Prevent Auto-Nesting தானியங்கி உட்பொதிவைத் தடு + Show Layers அடுக்குகளைக் காண்பி + Thumbnail Contents சிறுபட உள்ளடக்கம் + Thumbnail Size சிறுபட அளவு + Use Default Masks on Fill Layers நிரப்பு அடுக்குகளில் இயல்புநிலை மறைப்புகளைப் பயன்படுத்து + Expand New Effects புதிய விளைவுகளை விரிவாக்கு + Add “copy” to Copied Layers and Groups நகலெடுத்த அடுக்குகள் மற்றும் குழுக்களில் “நகல்” ஐச் சேர் + Preview on canvas when reordering layers அடுக்குகளை மறுவரிசைப்படுத்தும்போது படச்சட்டத்தில் முன்னோட்டம் காண்பி + Show layer mask badges அடுக்கு மறைப்பு அடையாளங்களைக் காண்பி + Blending Options ({filter}) கலப்பு விருப்பங்கள் ({filter}) + Hide the layer's effects and Smart Filters ({key}-click: all layers) அடுக்கின் விளைவுகளையும் திறன்மிகு வடிகட்டிகளையும் மறை ({key}-கிளிக்: அனைத்து அடுக்குகள்) + Show the layer's effects and Smart Filters ({key}-click: all layers) அடுக்கின் விளைவுகளையும் திறன்மிகு வடிகட்டிகளையும் காண்பி ({key}-கிளிக்: அனைத்து அடுக்குகள்) + Wait for the current job to finish. தற்போதைய வேலை முடியும் வரை காத்திருக்கவும். + The document or Smart Filter changed. Reopen its dialog. ஆவணம் அல்லது திறன்மிகு வடிகட்டி மாறிவிட்டது. அதன் உரையாடலை மீண்டும் திறக்கவும். + Opacity must be between 0% and 100%. ஒளிபுகாமை 0% முதல் 100% வரை இருக்க வேண்டும். + Dissolve is approximated: it blends without Photoshop's dither. கரைவு தோராயமாக்கப்பட்டுள்ளது: இது Photoshop இன் நிறக் கலப்பு இல்லாமல் கலக்கிறது. + Loading fonts… எழுத்துருக்களை ஏற்றுகிறது… + Response curve பதில் வளைவு + Tool கருவி + Simulate Pressure அழுத்தத்தை உருவகப்படுத்து + Stroke Path… பாதையைக் கோடிடு… + Background Eraser பின்னணி அழிப்பான் + Healing Brush குணப்படுத்தும் தூரிகை + Spot Healing Brush புள்ளி குணப்படுத்தும் தூரிகை + Smudge தேய்ப்பு + Sponge கடற்பாசி + Amount: அளவு: + Protect: பாதுகாப்பு: + Protect skin tones தோல் நிறங்களைப் பாதுகாக்கவும் + Edit points to modify the curve வளைவை மாற்ற புள்ளிகளைத் திருத்தவும் + Draw to modify the curve வளைவை மாற்ற வரையவும் +curves Smooth மென்மையாக்கு + Smooth the curve values வளைவு மதிப்புகளை மென்மையாக்கு + Drag to draw the curve · {key}-click draws a straight line வளைவை வரைய இழுக்கவும் · {key}-கிளிக் நேர்கோடு வரையும் + Edit Plane தளத்தைத் திருத்து + Create Plane தளத்தை உருவாக்கு + Grid Size: கட்ட அளவு: + Vanishing Point: click four corners to create a plane மறையும் புள்ளி: தளத்தை உருவாக்க நான்கு மூலைகளைக் கிளிக் செய்யவும் + Vanishing Point is not active மறையும் புள்ளி செயலில் இல்லை + Apply Vanishing Point ({key}) மறையும் புள்ளியைப் பயன்படுத்து ({key}) + Fix the red plane first: its corners must form a convex quad முதலில் சிவப்புத் தளத்தைச் சரிசெய்யவும்: அதன் மூலைகள் குவிந்த நாற்கரத்தை உருவாக்க வேண்டும் + Onion Skin வெங்காயத் தோல் + Marching Ants அணிவகுக்கும் எறும்புகள் + On Black கருப்பின் மேல் + On White வெள்ளையின் மேல் + On Layers அடுக்குகளின் மேல் + Show Edge விளிம்பைக் காண்பி + Show Original அசலைக் காண்பி + F cycles the views; hold X to see the image F காட்சிகளை மாற்றி மாற்றும்; படத்தைக் காண X ஐ அழுத்திப் பிடிக்கவும் + Refine Edge Brush (R) விளிம்பு செம்மைத் தூரிகை (R) + Expand Detection Area கண்டறியும் பகுதியை விரிவாக்கு + Restore Original Edge அசல் விளிம்பை மீட்டமை + Paint over hair or fur on the image; Alt paints the other mode படத்தில் முடி அல்லது ரோமத்தின் மேல் வண்ணமிடவும்; Alt மற்ற முறையில் வண்ணமிடும் + Clear Brush Strokes தூரிகைக் கோடுகளை அழி + Show rulers அளவுகோல்களைக் காண்பி + Presentation விளக்கக்காட்சி + Click to place · Alt-click or drag off-canvas to remove வைக்க கிளிக் · நீக்க Alt-கிளிக் அல்லது படச்சட்டத்துக்கு வெளியே இழுக்கவும் + No document open திறந்த ஆவணம் இல்லை + {n} of {max} sample points {max} மாதிரிப் புள்ளிகளில் {n} + New Snapshot… புதிய ஸ்னாப்ஷாட்… + History Options… வரலாற்று விருப்பங்கள்… + Emulsion Down குழம்பு கீழ்நோக்கி + Functions செயல்பாடுகள் + Print Resolution: அச்சுத் தெளிவுத்திறன்: + Use Previous Layer to Create Clipping Mask கிளிப்பிங் மறைப்பை உருவாக்க முந்தைய அடுக்கைப் பயன்படுத்து + Fill with {mode}-neutral color (white) {mode}-நடுநிலை நிறத்தால் நிரப்பு (வெள்ளை) + Fill with {mode}-neutral color (black) {mode}-நடுநிலை நிறத்தால் நிரப்பு (கருப்பு) + Fill with {mode}-neutral color (50% gray) {mode}-நடுநிலை நிறத்தால் நிரப்பு (50% சாம்பல்) + (No neutral color exists for {mode} mode.) ({mode} முறைக்கு நடுநிலை நிறம் இல்லை.) + Apply mask to layer before removing? நீக்கும் முன் மறைப்பை அடுக்கில் பயன்படுத்தவா? + The layer or its mask changed. Drag the mask onto the Trash again. அடுக்கு அல்லது அதன் மறைப்பு மாறிவிட்டது. மறைப்பை மீண்டும் குப்பைக்கு இழுக்கவும். + Delete the vector mask? திசையன் மறைப்பை நீக்கவா? +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} {file} க்கு {n} நிற மாதிரி ஏற்றுமதி செய்யப்பட்டது|{file} க்கு {n} நிற மாதிரிகள் ஏற்றுமதி செய்யப்பட்டன +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} {group} இலிருந்து {n} தூரிகை இறக்குமதி செய்யப்பட்டது|{group} இலிருந்து {n} தூரிகைகள் இறக்குமதி செய்யப்பட்டன +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} {file} இலிருந்து {n} நிற மாதிரி இறக்குமதி செய்யப்பட்டது|{file} இலிருந்து {n} நிற மாதிரிகள் இறக்குமதி செய்யப்பட்டன +@plural Played {n} step|Played {n} steps {n} படி இயக்கப்பட்டது|{n} படிகள் இயக்கப்பட்டன +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk வட்டில் மாறிய {n} இணைக்கப்பட்ட திறன்மிகு பொருள் புதுப்பிக்கப்பட்டது|வட்டில் மாறிய {n} இணைக்கப்பட்ட திறன்மிகு பொருட்கள் புதுப்பிக்கப்பட்டன +@plural Saved for Web: {n} file|Saved for Web: {n} files வலைக்காகச் சேமித்தது: {n} கோப்பு|வலைக்காகச் சேமித்தது: {n} கோப்புகள் +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. இந்த அமைப்பில் பதிவான {n} அடுக்கு நீக்கப்பட்டது. அமைப்பைப் புதுப்பிக்கவும், அல்லது எச்சரிக்கையை அழிக்கவும்.|இந்த அமைப்பில் பதிவான {n} அடுக்குகள் நீக்கப்பட்டன. அமைப்பைப் புதுப்பிக்கவும், அல்லது எச்சரிக்கையை அழிக்கவும். +@plural {n} plane|{n} planes {n} தளம்|{n} தளங்கள் +@plural {n} preset|{n} presets {n} முன்னமைவு|{n} முன்னமைவுகள் +@plural {n} sample point removed|{n} sample points removed {n} மாதிரிப் புள்ளி நீக்கப்பட்டது|{n} மாதிரிப் புள்ளிகள் நீக்கப்பட்டன +@plural {n} slice|{n} slices {n} துண்டு|{n} துண்டுகள் +@plural {n} step|{n} steps {n} படி|{n} படிகள் +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} மேலும் தூரிகை முன்னமைவு எச்சரிக்கை)|{warning} (+{n} மேலும் தூரிகை முன்னமைவு எச்சரிக்கைகள்) +@plural {what} with {n} warning|{what} with {n} warnings {what} {n} எச்சரிக்கையுடன்|{what} {n} எச்சரிக்கைகளுடன் + Light Blue வெளிர் நீலம் + Light Red வெளிர் சிவப்பு + Medium Blue நடுத்தர நீலம் + Light Gray வெளிர் சாம்பல் + Object Finder பொருள் தேடி + No object found there — drag a rectangle around it அங்கு பொருள் கிடைக்கவில்லை — அதைச் சுற்றி செவ்வகத்தை இழுக்கவும் + The active layer has no pixels here — turn on Sample All Layers or select a layer with pixels செயலில் உள்ள அடுக்கில் இங்கு பிக்சல்கள் இல்லை — அனைத்து அடுக்குகளையும் மாதிரியெடு என்பதை இயக்கவும் அல்லது பிக்சல்கள் உள்ள அடுக்கைத் தேர்ந்தெடுக்கவும் + Remove after each stroke ஒவ்வொரு கோட்டிற்கும் பிறகு நீக்கு + Apply the removal ({key}) நீக்கத்தைப் பயன்படுத்து ({key}) + Strokes to remove: {n} (Enter applies, Esc cancels) நீக்க வேண்டிய கோடுகள்: {n} (Enter பயன்படுத்தும், Esc ரத்துசெய்யும்) + Load Contours… வெளிக்கோடுகளை ஏற்று… + Replace Contours… வெளிக்கோடுகளை மாற்று… + Save Contours… வெளிக்கோடுகளைச் சேமி… + Delete Contour வெளிக்கோட்டை நீக்கு + Loaded contours from {file} {file} இலிருந்து வெளிக்கோடுகள் ஏற்றப்பட்டன + Saved contours to {file} {file} க்கு வெளிக்கோடுகள் சேமிக்கப்பட்டன +@id select.all அனைத்தையும் தேர்ந்தெடு + Delete Smart Filters திறன்மிகு வடிகட்டிகளை நீக்கு + Enable Smart Filters திறன்மிகு வடிகட்டிகளை இயக்கு + Delete Layer… அடுக்கை நீக்கு… + Select Similar Colors ஒத்த நிறங்களைத் தேர்ந்தெடு + Canvas rotation படச்சட்ட சுழற்சி + Extensions நீட்டிப்புகள் + Libraries நூலகங்கள் + 3D 3D + Toolbars கருவிப்பட்டிகள் + Wand மாயக்கோல் + Healing குணப்படுத்தல் + Pen பேனா + Hand கை + Sampler மாதிரியெடுப்பி + Magnetic Lasso காந்த லாஸ்ஸோ + Art History Brush கலை வரலாற்றுத் தூரிகை + Spot Healing புள்ளி குணப்படுத்தல் + Patch ஒட்டு + Content-Aware Move உள்ளடக்கம் அறிந்த நகர்த்தல் + Perspective Crop பார்வைக்கோண வெட்டு + Dodge/Burn ஒளிர்வு/எரிப்பு + Dynamics இயக்கவியல் + Tilt சாய்வு + Defaults restored. இயல்புநிலைகள் மீட்டமைக்கப்பட்டன. + Stop நிறுத்து + Create new set புதிய தொகுப்பை உருவாக்கு + Technology Previews தொழில்நுட்ப முன்னோட்டங்கள் + Create new layer புதிய அடுக்கை உருவாக்கு + Group · {n} layer குழு · {n} அடுக்கு + General Blend பொதுக் கலப்பு + Advanced Blending மேம்பட்ட கலப்பு + RGB RGB + Spot Channel புள்ளிச் சேனல் + Working Gray Plate பணிச் சாம்பல் தட்டு + HSL/Grayscale HSL/சாம்பல் அளவு + Tone Curve தொனி வளைவு + Split Toning பிளவு தொனியாக்கம் + Lens Corrections லென்ஸ் திருத்தங்கள் + Camera Calibration கேமரா அளவுதிருத்தம் + Snapshots ஸ்னாப்ஷாட்கள் + Recovery மீட்பு + Fill Light நிரப்பு ஒளி + Convert to Grayscale சாம்பல் அளவாக மாற்று + Sharpness கூர்மை + Color Noise Reduction நிற இரைச்சல் குறைப்பு + Luminance Smoothness ஒளிர்வுத்திறன் மென்மை + Lens லென்ஸ் + ISO ISO + Focal Length35mm குவிய நீளம் 35மிமீ + Aspect Ratio விகிதம் + Time நேரம் + Enter description… விளக்கத்தை உள்ளிடவும்… + ColorSync ColorSync + ProPhoto ProPhoto + ACES ACES + Industry Standard தொழில்துறை நிலையானது + Uncoated CMYK பூசாத CMYK + Newspaper செய்தித்தாள் + Working Spaces பணி வெளிகள் + Color Management Policies நிற மேலாண்மைக் கொள்கைகள் + Detect Faces முகங்களைக் கண்டறி + Localize Color Clusters நிறக் கொத்துகளை உள்ளூராக்கு + Duplicated selection name நகலெடுக்கப்பட்ட தேர்வுப் பெயர் + Operation செயல்பாடு + New channel only புதிய சேனல் மட்டும் + Color indicates நிறம் குறிப்பது + Create Snapshot ஸ்னாப்ஷாட்டை உருவாக்கு + Delete Snapshot ஸ்னாப்ஷாட்டை நீக்கு + New Snapshot புதிய ஸ்னாப்ஷாட் + Snapshot 1 ஸ்னாப்ஷாட் 1 + Step Forward முன்னோக்கிச் செல் + Step Backward பின்னோக்கிச் செல் + Nonlinear History நேர்கோட்டற்ற வரலாறு + Set New Snapshot as Default புதிய ஸ்னாப்ஷாட்டை இயல்புநிலையாக அமை + Automatically Create First Snapshot முதல் ஸ்னாப்ஷாட்டைத் தானாக உருவாக்கு + Automatically Create New Snapshot When Saving சேமிக்கும்போது புதிய ஸ்னாப்ஷாட்டைத் தானாக உருவாக்கு + Show New Snapshot Dialog by Default புதிய ஸ்னாப்ஷாட் உரையாடலை இயல்பாகக் காண்பி + Clear History வரலாற்றை அழி + View menu காட்சிப் பட்டி + Keep view in sync காட்சியை ஒத்திசைவாக வை + {zoom}% {zoom}% + Mouse Controls சுட்டிக் கட்டுப்பாடுகள் + Initial Direction of Stroke கோட்டின் தொடக்கத் திசை + Direction of Stroke கோட்டின் திசை + Humidity ஈரப்பதம் + Auto Clean Brush தூரிகையைத் தானாகச் சுத்தம்செய் + Spacing: இடைவெளி: + New Layer from Brush தூரிகையிலிருந்து புதிய அடுக்கு + New Brush புதிய தூரிகை + New Tool Preset புதிய கருவி முன்னமைவு + Auto-Leading தானியங்கி வரியிடைவெளி + Scale Horizontally கிடைமட்டமாக அளவு மாற்று + Scale Vertically செங்குத்தாக அளவு மாற்று + Mac LCD Mac LCD + Mac Sharp Mac கூர்மை + Mac Crisp Mac துல்லியம் + Mac Strong Mac வலிமை + Mac Smooth Mac மென்மை + Superscript மேலொட்டு + Subscript கீழொட்டு + Ligature இணைப்பெழுத்து + Alternative மாற்று + Ultra Light மிக மிக மெல்லிய + Extra Light மிக மெல்லிய + Semi Bold அரைத் தடித்த + Extra Bold மிகத் தடித்த + Ultra Bold மிக மிகத் தடித்த + Condensed நெருக்கமான + First Line Indent முதல் வரி உள்தள்ளல் + Hanging Punctuation தொங்கும் நிறுத்தற்குறிகள் + Roman Hanging Punctuation ரோமன் தொங்கும் நிறுத்தற்குறிகள் + Avoid Widows/Orphans தனித்த வரிகளைத் தவிர் + Compose அமை + Adobe Single-line Composer Adobe ஒற்றை வரி அமைப்பி + Adobe Every-line Composer Adobe ஒவ்வொரு வரி அமைப்பி + Word Spacing சொல் இடைவெளி + Letter Spacing எழுத்து இடைவெளி + Glyph Scaling குறியுரு அளவீடு + Auto-leading % தானியங்கி வரியிடைவெளி % + Single Word Justification ஒற்றைச் சொல் சீரமைப்பு + Justify இருபுறமும் சமப்படுத்து + Glyph குறியுரு + Alternates for Current Selection தற்போதைய தேர்வுக்கான மாற்றுகள் + Digits இலக்கங்கள் + Path: பாதை: + Path to Illustrator… பாதையை Illustrator-க்கு… + Clipping Path வெட்டுப் பாதை + New Path புதிய பாதை + Duplicate Path பாதையை நகலெடு + Rename Path… பாதையின் பெயரை மாற்று… + Auto-Hide தானாக மறை + X X + Y Y + Frame Sync சட்ட ஒத்திசைவு + Quick Sync விரைவு ஒத்திசைவு + Audio ஒலி + Frame Duration சட்ட கால அளவு + Loop மீளியக்கம் + Split at Playhead இயக்கத்தலையில் பிரி + Flatten Frames Into Clips சட்டங்களைக் கிளிப்களாகத் தட்டையாக்கு + Flatten Frames Into Layers சட்டங்களை அடுக்குகளாகத் தட்டையாக்கு + Convert Frames > Video Layers சட்டங்களை > வீடியோ அடுக்குகளாக மாற்று + New Video Layer புதிய வீடியோ அடுக்கு + New Video Group புதிய வீடியோ குழு + Limit Playback இயக்கத்தை வரம்பிடு + Enable Timeline Quick Config காலவரிசை விரைவு உள்ளமைவை இயக்கு + Set Start Timecode… தொடக்க நேரக்குறியீட்டை அமை… + Timecode நேரக்குறியீடு + 30 fps 30 fps + 25 fps 25 fps + 24 fps 24 fps + 15 fps 15 fps + 10 fps 10 fps + Current Time தற்போதைய நேரம் + Out வெளியே + In உள்ளே + Duration கால அளவு + Repeat திரும்பச்செய் + Play Once ஒருமுறை இயக்கு + Info Options… தகவல் விருப்பங்கள்… + First Color Readout முதல் நிற அளவீடு + Second Color Readout இரண்டாம் நிற அளவீடு + Actual Color உண்மை நிறம் + Grayscale Slider சாம்பல் அளவு நழுவி + Web Color வலை நிறம் + HSB Color HSB நிறம் + Total Ink மொத்த மை + Opacity Mask ஒளிபுகா மறைப்பு + Document Size ஆவண அளவு + Timing நேரக்கணிப்பு + Status Information நிலைத் தகவல் + Saved Multichannel சேமித்த பல்சேனல் + Mouse Coordinates சுட்டி ஆயத்தொலைவுகள் + Ruler Units அளவுகோல் அலகுகள் + Hide மறை + Restore last viewed comp கடைசியாகப் பார்த்த அமைப்பை மீட்டமை + Select All Layers அனைத்து அடுக்குகளையும் தேர்ந்தெடு + Keep proportions விகிதங்களைப் பேணு + Interpolation இடைக்கணிப்பு + Caption தலைப்புரை + Caption Credits தலைப்புரை நன்றி + Keywords முக்கிய சொற்கள் + Copyright Info URL பதிப்புரிமைத் தகவல் URL + Copyright Status பதிப்புரிமை நிலை + Copyright Notice பதிப்புரிமை அறிவிப்பு + Document Title ஆவணத் தலைப்பு + Copyrighted பதிப்புரிமை உள்ளது + Public Domain பொதுப் பயன்பாடு + Unknown தெரியாதது + Credit நன்றி + Transmission Reference பரிமாற்றக் குறிப்பு + Urgency அவசரம் + High உயர் + Low குறைவு + Category வகைப்பாடு + Supplemental Categories துணை வகைப்பாடுகள் + Object Name / Title பொருள் பெயர் / தலைப்பு + Date Created உருவாக்கிய தேதி + City நகரம் + Province / State மாகாணம் / மாநிலம் + Country நாடு + Byline ஆக்குநர் பெயர் + Byline Title ஆக்குநர் தலைப்பு + Phone தொலைபேசி + Email மின்னஞ்சல் + URLs URLகள் + Last Modified கடைசியாக மாற்றியது + EXIF EXIF + GPS GPS + Camera Model கேமரா மாதிரி + Camera Make கேமரா தயாரிப்பாளர் + EXIF Version EXIF பதிப்பு + Exposure Program வெளிப்பாட்டு நிரல் + Aperture துளை + Shutter Speed ஷட்டர் வேகம் + Metering Mode அளவீட்டு முறை + Light Source ஒளி மூலம் + Flash ஃபிளாஷ் + Lens Info லென்ஸ் தகவல் + ISO Speed ISO வேகம் + Subject Distance பொருள் தூரம் + DateTime Original அசல் தேதிநேரம் + Create Date உருவாக்கிய தேதி + Modify Date மாற்றிய தேதி + Raw Data மூலத் தரவு + Import… இறக்குமதி செய்… + PDF Presentation… PDF விளக்கக்காட்சி… + Create Multiple Picture Packages பல பட தொகுப்புகளை உருவாக்கு + Picture Package… பட தொகுப்பு… + Web Photo Gallery… வலைப் புகைப்படக் காட்சியகம்… + Choose… தேர்ந்தெடு… + Select Folder… கோப்புறையைத் தேர்ந்தெடு… + Override Action "Save" Commands செயல் "சேமி" கட்டளைகளை மேலெழுது + File Naming கோப்புப் பெயரிடல் + Compatibility இணக்கத்தன்மை + Mac OS Mac OS + Unix Unix + Include ICC Profile ICC சுயவிவரத்தைச் சேர் + Error File பிழைக் கோப்பு + Stop For Errors பிழைகளுக்கு நிறுத்து + Log Errors To File பிழைகளைக் கோப்பில் பதிவுசெய் + Errors பிழைகள் + Settings அமைப்புகள் + Settings: அமைப்புகள்: + Working Space பணி வெளி + RGB: RGB: + CMYK: CMYK: + Gray: சாம்பல்: + Spot: புள்ளி: + Advanced Controls மேம்பட்ட கட்டுப்பாடுகள் + Desaturate Monitor Colors By திரை நிறங்களின் செறிவைக் குறை + Blend RGB Colors Using Gamma 1.0 காமா 1.0 மூலம் RGB நிறங்களைக் கலக்கு + Profile Mismatches: Ask When Opening சுயவிவரப் பொருத்தமின்மை: திறக்கும்போது கேள் + Ask When Pasting ஒட்டும்போது கேள் + Missing Profiles: Ask When Opening காணாமல்போன சுயவிவரங்கள்: திறக்கும்போது கேள் + Embed profiles சுயவிவரங்களை உட்பொதி + Ask Before Saving Saved Embedded சேமித்த உட்பொதிவைச் சேமிக்கும் முன் கேள் + Coerce to sRGB sRGB ஆக வலியுறுத்து + sRGB IEC61966-2.1 sRGB IEC61966-2.1 + Adobe RGB (1998) Adobe RGB (1998) + ProPhoto RGB ProPhoto RGB + ColorMatch RGB ColorMatch RGB + Wide Gamut RGB Wide Gamut RGB + Apple RGB Apple RGB + NTSC (1953) NTSC (1953) + PAL/SECAM PAL/SECAM + SMPTE C SMPTE C + HDTV (Rec. 709) HDTV (Rec. 709) + CIE RGB CIE RGB + Minimalistic குறைந்தபட்ச வடிவம் + Expand All Groups அனைத்துக் குழுக்களையும் விரிவாக்கு + Photo (2 × 3 in) புகைப்படம் (2 × 3 அங்.) + Photo (4 × 6 in) புகைப்படம் (4 × 6 அங்.) + Photo (5 × 7 in) புகைப்படம் (5 × 7 அங்.) + Photo (8 × 10 in) புகைப்படம் (8 × 10 அங்.) + Recent Items சமீபத்திய உருப்படிகள் + Delete Preset… முன்னமைவை நீக்கு… + Preset Name: முன்னமைவு பெயர்: + Width and Height அகலமும் உயரமும் + Color Profile நிறச் சுயவிவரம் + Units அலகுகள் + Create new count group புதிய எண்ணிக்கைக் குழுவை உருவாக்கு + Adjustment Layer சரிசெய்தல் அடுக்கு + Drag to move the layer அடுக்கை நகர்த்த இழுக்கவும் + Go to Layer அடுக்குக்குச் செல் + After (X) பின் (X) + Reference point location குறிப்புப் புள்ளி இடம் + Toggle reference point குறிப்புப் புள்ளியை மாற்று + Add Pins பின்களைச் சேர் + Delete Pins பின்களை நீக்கு + Rotate Auto சுழற்சி தானியங்கி + Rotate Fixed சுழற்சி நிலையானது + Select Plane தளத்தைத் தேர்ந்தெடு + Measure அளவிடு + Heal குணப்படுத்து + Heal Off குணப்படுத்தல் அணை + Heal On குணப்படுத்தல் இயக்கு + Heal Auto குணப்படுத்தல் தானியங்கி + Blend கலப்பு + Brush Size தூரிகை அளவு + Heal Color குணப்படுத்தும் நிறம் + Result முடிவு + Duplicate நகலெடு + Fast வேகமான + Accurate துல்லியமான + Add to இதில் சேர் + Subtract from இதிலிருந்து கழி + Intersect with இதனுடன் வெட்டிக்கொள் + Capture Comp அமைப்பைப் பதிவுசெய் + No Layer Comps அடுக்கு அமைப்புகள் இல்லை + Adobe PDF Presets… Adobe PDF முன்னமைவுகள்… + 3D… 3D… + Technology Previews… தொழில்நுட்ப முன்னோட்டங்கள்… + Add a mask (from the selection; ⌥ inverts) மறைப்பை சேர் (தேர்விலிருந்து; ⌥ தலைகீழாக்கும்) + Add to selection (⇧) தேர்வில் சேர் (⇧) + Airbrush: keeps painting while the pointer rests. ஏர்பிரஷ்: சுட்டி நிற்கும் போதும் வண்ணமிடுவதைத் தொடரும். + Click the first point or press ↵ to close · Esc cancels மூட முதல் புள்ளியைக் கிளிக் செய்யவும் அல்லது ↵ அழுத்தவும் · Esc ரத்துசெய்யும் + Click to add a point · drag off or ⌘/Ctrl-click or Delete to remove புள்ளியைச் சேர்க்க கிளிக் செய்யவும் · நீக்க வெளியே இழுக்கவும் அல்லது ⌘/Ctrl-கிளிக் அல்லது Delete + Click to apply, ⌥-click to clear overrides, double-click for Style Options பயன்படுத்த கிளிக், மேலெழுதல்களை அழிக்க ⌥-கிளிக், பாணி விருப்பங்களுக்கு இருமுறை கிளிக் + Click to zoom in · ⌥-click to zoom out பெரிதாக்க கிளிக் · சிறிதாக்க ⌥-கிளிக் + Click: corner · Drag: smooth · Click first point: close · ↩ finish · Esc cancel கிளிக்: மூலை · இழு: மென்மை · முதல் புள்ளி கிளிக்: மூடு · ↩ முடி · Esc ரத்து + Commit Perspective Warp (↩) கோண வளைப்பை உறுதிசெய் (↩) + Commit Puppet Warp (↩) உருவ வளைப்பை உறுதிசெய் (↩) + Commit any current edits (⌘↩) தற்போதைய திருத்தங்களை உறுதிசெய் (⌘↩) + Commit current crop operation (↵) தற்போதைய வெட்டுச் செயலை உறுதிசெய் (↵) + Commit transform (↩) உருமாற்றத்தை உறுதிசெய் (↩) + Commit warp (↩) வளைப்பை உறுதிசெய் (↩) + Create a new layer (⇧⌘N) புதிய அடுக்கை உருவாக்கு (⇧⌘N) + Custom pattern தனிப்பயன் வடிவமைப்பு + General Brushes பொதுத் தூரிகைகள் + Grid (⌘') கட்டம் (⌘') + Intersect with selection (⇧⌥) தேர்வுடன் வெட்டிக்கொள் (⇧⌥) + New document… ⌘N புதிய ஆவணம்… ⌘N + Open… ⌘O திற… ⌘O + Rulers (⌘R) அளவுகோல்கள் (⌘R) + Search commands (⌘K) கட்டளைகளைத் தேடு (⌘K) + Show Guides (⌘;) அளவுகோட்டு வரிகளைக் காண்பி (⌘;) + Subtract from selection (⌥) தேர்விலிருந்து கழி (⌥) + Uses the foreground and background colors. முன்புற மற்றும் பின்னணி நிறங்களைப் பயன்படுத்துகிறது. + ↑↓ navigate ↵ run esc close ↑↓ வழிசெல் ↵ இயக்கு esc மூடு + Adds grain to the soft edges of the brush tip. தூரிகை முனையின் மென்மையான விளிம்புகளில் தானியத்தைச் சேர்க்கிறது. + Keeps the current texture when switching presets. முன்னமைவுகளை மாற்றும்போது தற்போதைய பரப்பமைப்பைத் தக்கவைக்கிறது. + Watercolour look: lighter interior, darker rims. நீர்வண்ணத் தோற்றம்: வெளிர்ந்த உட்பகுதி, கருமையான விளிம்புகள். + Collapse group (⌥-click: all groups) குழுவைச் சுருக்கு (⌥-கிளிக்: அனைத்துக் குழுக்கள்) + Expand group (⌥-click: all groups) குழுவை விரிவாக்கு (⌥-கிளிக்: அனைத்துக் குழுக்கள்) + Hide the layer's effects (⌥-click: all layers) அடுக்கின் விளைவுகளை மறை (⌥-கிளிக்: அனைத்து அடுக்குகள்) + Show the layer's effects (⌥-click: all layers) அடுக்கின் விளைவுகளைக் காண்பி (⌥-கிளிக்: அனைத்து அடுக்குகள்) +cameraRaw Blacks கருப்புகள் +cameraRaw Masking மறைப்புருவாக்கம் +@id edit.stroke கோடிடு +@id edit.transform.scale அளவு மாற்று +cameraRaw Luminance ஒளிர்வுத்திறன் +cameraRaw Color நிறம் +cameraRaw Vibrance துடிப்பு +cameraRaw Color Grading நிற தரப்படுத்தல் +cameraRaw Global பொது +cameraRaw Hue சாயல் +cameraRaw Luminance Detail ஒளிர்வுத்திறன் விவரம் +cameraRaw Color Detail நிற விவரம் +cameraRaw Roughness கரடுமுரடு +cameraRaw Whites வெள்ளைகள் +layerLabel No Color நிறம் இல்லை + Preferences… விருப்பத்தேர்வுகள்… + Actual Pixels உண்மை பிக்சல்கள் + Clipping Mask வெட்டு மறைப்பு + Tool Options கருவி விருப்பங்கள் + Color Swatches நிற மாதிரிகள் + Linear Dodge நேர்கோட்டு ஒளிர்வு + Preview Image முன்னோட்டப் படம் + Save As இவ்வாறு சேமி + Remove All அனைத்தையும் நீக்கு + Unlock பூட்டைத் திற + Enable இயக்கு + Disable முடக்கு + On இயக்கத்தில் + Clear Selection தேர்வை அழி + Invert Selection தேர்வைத் தலைகீழாக்கு + Select Inverse தலைகீழைத் தேர்ந்தெடு + Contract சுருக்கு + Sample Size மாதிரி அளவு + Gamma காமா + Input உள்ளீடு + Input Levels உள்ளீட்டு நிலைகள் + Output Levels வெளியீட்டு நிலைகள் + Layer Styles அடுக்கு பாணிகள் + Blending Mode கலப்பு முறை + Stroke Width கோடு அகலம் + Shadow நிழல் + Adjustment Layers சரிசெய்தல் அடுக்குகள் + Text Layer உரை அடுக்கு + Documents ஆவணங்கள் + File Name கோப்புப் பெயர் + File Format கோப்பு வடிவம் + Compression சுருக்கம் + Artboards ஆர்ட்போர்டுகள் + Snap to Grid கட்டத்துடன் ஒட்டு + Full Screen முழுத்திரை + Fullscreen முழுத்திரை + Workspaces பணியிடங்கள் + Show All அனைத்தையும் காண்பி + Hidden மறைந்தது + Duplicate Layer அடுக்கை நகலெடு + Ungroup குழுவை நீக்கு + Guide Layout… அளவுகோட்டு வரி அமைப்பு… + Page Setup… பக்க அமைப்பு… + Reset Preferences விருப்பத்தேர்வுகளை மீட்டமை + Documentation ஆவணப்படுத்தல் + Check for Updates புதுப்பிப்புகளைச் சரிபார் + Check for Updates… புதுப்பிப்புகளைச் சரிபார்… + Loading… ஏற்றுகிறது… + Processing… செயலாக்குகிறது… + Saving… சேமிக்கிறது… + Exporting… ஏற்றுமதி செய்கிறது… + Please wait… காத்திருக்கவும்… + No selection தேர்வு இல்லை + No layers அடுக்குகள் இல்லை + No recent files சமீபத்திய கோப்புகள் இல்லை + Unsupported file format ஆதரிக்கப்படாத கோப்பு வடிவம் + Failed to open file கோப்பைத் திறக்க முடியவில்லை + Failed to save file கோப்பைச் சேமிக்க முடியவில்லை + Operation canceled செயல் ரத்துசெய்யப்பட்டது + Changes have not been saved. மாற்றங்கள் சேமிக்கப்படவில்லை. + Are you sure? உறுதியா? + Discard Changes மாற்றங்களை நிராகரி + Open File கோப்பைத் திற + Save File கோப்பைச் சேமி + Save Changes மாற்றங்களைச் சேமி + Rendering… ரெண்டர் செய்கிறது… + Importing… இறக்குமதி செய்கிறது… + Ready தயார் + Failed தோல்வி + Warning எச்சரிக்கை + Information தகவல் + Retry மீண்டும் முயல் + Continue தொடர் + Skip தவிர் + Resume மீண்டும் தொடங்கு + Reset All அனைத்தையும் மீட்டமை + Defaults இயல்புநிலைகள் + Apply to All அனைத்திற்கும் பயன்படுத்து + Confirm உறுதிசெய் + Finish முடி + Back பின் + Next அடுத்து + Previous முந்தைய + More மேலும் + Less குறைவு + Manual கைமுறை + Disabled முடக்கப்பட்டது + Locked பூட்டப்பட்டது + Unlocked பூட்டு நீக்கப்பட்டது + Delete… நீக்கு… + Create… உருவாக்கு… + Edit… திருத்து… + Change… மாற்று… + Transformation உருமாற்றம் + Scaling அளவு மாற்றம் + Canvas Size படச்சட்ட அளவு + Percentage சதவீதம் + Degrees பாகைகள் + Middle நடு + Diameter விட்டம் + Intensity தீவிரம் + Sensitivity உணர்திறன் + Softness மென்மை + Feather Radius இறகு ஆரம் + Library நூலகம் + Layer Properties அடுக்குப் பண்புகள் + Groups குழுக்கள் + Masks மறைப்புகள் + Add Mask மறைப்பைச் சேர் + Delete Mask மறைப்பை நீக்கு + Invert Mask மறைப்பைத் தலைகீழாக்கு + Enable Mask மறைப்பை இயக்கு + Disable Mask மறைப்பை முடக்கு + Apply Mask மறைப்பைப் பயன்படுத்து + Import Settings அமைப்புகளை இறக்குமதி செய் + Export Settings அமைப்புகளை ஏற்றுமதி செய் + Shortcuts குறுக்குவழிகள் + Keyboard விசைப்பலகை + Mouse சுட்டி + Tablet டேப்லெட் + Display காட்சி + Panel பலகம் + Hide Grid கட்டத்தை மறை + Fit to Window சாளரத்துக்குப் பொருத்து + Live Preview நேரலை முன்னோட்டம் + Before முன் + After பின் + Compare ஒப்பிடு + File Size கோப்பு அளவு + Filename கோப்புப் பெயர் + Open Folder கோப்புறையைத் திற + Choose Folder கோப்புறையைத் தேர்ந்தெடு + Browse உலாவு + Find தேடு + Replace மாற்று + Date தேதி + Learn More மேலும் அறிக + Report a Bug பிழையைப் புகாரளி + Updates புதுப்பிப்புகள் + Update புதுப்பி + Restart Required மறுதொடக்கம் தேவை + Restart மறுதொடக்கம் + Quit வெளியேறு + Quit PhotoCraft போட்டோகிராப்டிலிருந்து வெளியேறு + Close Window சாளரத்தை மூடு + New Window புதிய சாளரம் + Open Image படத்தைத் திற + Save Image படத்தைச் சேமி + Export Image படத்தை ஏற்றுமதி செய் + Import Image படத்தை இறக்குமதி செய் + Export As இவ்வாறு ஏற்றுமதி செய் + Export to இதற்கு ஏற்றுமதி செய் + Export Options ஏற்றுமதி விருப்பங்கள் + Import Options இறக்குமதி விருப்பங்கள் + No Selection தேர்வு இல்லை + No Image படம் இல்லை + No Layers அடுக்குகள் இல்லை + No Results முடிவுகள் இல்லை + No Results Found முடிவுகள் கிடைக்கவில்லை + Nothing to Undo செயல்தவிர்க்க எதுவும் இல்லை + Nothing to Redo மீண்டும் செய்ய எதுவும் இல்லை + Changes Saved மாற்றங்கள் சேமிக்கப்பட்டன + Save before closing? மூடும் முன் சேமிக்கவா? + Are you sure you want to quit? வெளியேற விரும்புவது உறுதியா? + The file could not be opened. கோப்பைத் திறக்க முடியவில்லை. + The file could not be saved. கோப்பைச் சேமிக்க முடியவில்லை. + Unsupported format ஆதரிக்கப்படாத வடிவம் + Out of memory நினைவகம் போதவில்லை + Permission denied அனுமதி மறுக்கப்பட்டது + File not found கோப்பு கிடைக்கவில்லை + Operation failed செயல் தோல்வியடைந்தது + Operation completed செயல் முடிந்தது + Operation cancelled செயல் ரத்துசெய்யப்பட்டது + Sharpen Amount கூர்மையாக்கும் அளவு + Sharpen Radius கூர்மையாக்கும் ஆரம் + Sharpen Detail கூர்மையாக்கும் விவரம் + Sharpen Masking கூர்மையாக்கும் மறைப்பு + Noise Luminance இரைச்சல் ஒளிர்வுத்திறன் + Noise Luminance Detail இரைச்சல் ஒளிர்வுத்திறன் விவரம் + Noise Color இரைச்சல் நிறம் + Noise Color Detail இரைச்சல் நிற விவரம் + Grain Amount தானிய அளவு + Grain Size தானியப் பருமன் + Grain Roughness தானியக் கரடுமுரடு + Vignette Roundness ஓர மங்கல் வட்டத்தன்மை + Vignette Feather ஓர மங்கல் இறகு + Vignette Highlights ஓர மங்கல் ஒளிர்வுகள் + Vignette Style ஓர மங்கல் பாணி + Planes தளங்கள் + Plane தளம் + Shadow Amount நிழல் அளவு + Shadow Tone நிழல் தொனி + Shadow Radius நிழல் ஆரம் + Highlight Amount ஒளிர்வு அளவு + Highlight Tone ஒளிர்வு தொனி + Highlight Radius ஒளிர்வு ஆரம் + Midtone நடுத்தொனி + Black Clip கருப்பு வெட்டு + White Clip வெள்ளை வெட்டு + Fuzziness மங்கலான தன்மை + Source Layer மூல அடுக்கு + Neutralize நடுநிலையாக்கு + Use Selection In Source மூலத்தில் தேர்வைப் பயன்படுத்து + Use Selection In Target இலக்கில் தேர்வைப் பயன்படுத்து + Flame Type தீச்சுடர் வகை + Randomize Length நீளத்தை சீரற்றதாக்கு + Interval கால இடைவெளி + Adjust Interval For Loops சுழல்களுக்கு இடைவெளியைச் சரிசெய் + Use Custom Color தனிப்பயன் நிறத்தைப் பயன்படுத்து + Flame Lines தீச்சுடர் கோடுகள் + Flame Bottom Alignment தீச்சுடர் அடிப்பகுதி சீரமைப்பு + Flame Style தீச்சுடர் பாணி + Flame Shape தீச்சுடர் வடிவம் + Randomize Shapes வடிவங்களை சீரற்றதாக்கு + Frame சட்டம் + Arrangement ஒழுங்கமைவு + Thickness தடிமன் + Vine Color கொடி நிறம் + Flower Color பூ நிறம் + Leaf Color இலை நிறம் + Base Tree Type அடிப்படை மர வகை + Light Direction ஒளித் திசை + Leaves Amount இலைகளின் அளவு + Leaves Size இலைகளின் பருமன் + Branches Height கிளைகளின் உயரம் + Branches Thickness கிளைகளின் தடிமன் + Default Leaves இயல்புநிலை இலைகள் + Leaves Color இலைகளின் நிறம் + Custom Branch Color தனிப்பயன் கிளை நிறம் + Branches Color கிளைகளின் நிறம் + Flat Shading தட்டையான நிழலிடல் + Date and Time தேதி & நேரம் + Scale Units அளவுகோல் அலகுகள் + Scale Factor அளவுக் காரணி + Area பரப்பளவு + Perimeter சுற்றளவு + Circularity வட்ட நிலை + Gray Value (Minimum) சாம்பல் மதிப்பு (குறைந்தபட்சம்) + Gray Value (Maximum) சாம்பல் மதிப்பு (அதிகபட்சம்) + Gray Value (Mean) சாம்பல் மதிப்பு (சராசரி) + Gray Value (Median) சாம்பல் மதிப்பு (இடைநிலை) + Integrated Density ஒருங்கிணைந்த அடர்த்தி + Length நீளம் + In Black உள் கருப்பு + In White உள் வெள்ளை + Out Black வெளி கருப்பு + Out White வெளி வெள்ளை + Tint Color சாய நிறம் + Stops நிறுத்தங்கள் + Center X மையம் X + Center Y மையம் Y + Cell Size செல் அளவு + Generators ஜெனரேட்டர்கள் + Wavelength Min அலைநீளம் குறைந்தபட்சம் + Wavelength Max அலைநீளம் அதிகபட்சம் + Amplitude Min வீச்சு குறைந்தபட்சம் + Amplitude Max வீச்சு அதிகபட்சம் + Undefined Areas வரையறுக்கப்படாத பகுதிகள் + Preserve பேணு + Max Radius அதிகபட்ச ஆரம் + Depth Mode ஆழ முறை + Solid Front Faces திட முன் முகங்கள் + Mask Incomplete Blocks முழுமையற்ற தொகுதிகளை மறையச் செய் + Stylization பாணியாக்கம் + Cleanliness தூய்மை + Bristle Detail முட்கள் விவரம் + Lighting ஒளியூட்டல் + Shine பளபளப்பு + Max Offset அதிகபட்ச நகர்வு + Map Document வரைபட ஆவணம் + Map Path வரைபடப் பாதை + Map Layer வரைபட அடுக்கு + Ridges முகடுகள் + Light Type ஒளி வகை + Light X ஒளி X + Light Y ஒளி Y + Light Z ஒளி Z + Target X இலக்கு X + Target Y இலக்கு Y + Hotspot ஹாட்ஸ்பாட் + Elevation ஏற்றம் + Ambient சுற்றுப்புறம் + Warmth வெப்பம் + Gloss மினுமினுப்பு + Metallic உலோகம் + Ambience சூழல் + White Is High வெள்ளை உயரம் + Blade Curvature கத்தி வளைவு + Depth Map ஆழ வரைபடம் + Focal Distance குவிய தூரம் + Focus குவியம் + Transition மாற்றம் + Radius X ஆரம் X + Radius Y ஆரம் Y + Pins பின்கள் + Speed வேகம் + Taper குறுகல் + Start X தொடக்கம் X + Start Y தொடக்கம் Y + End X முடிவு X + End Y முடிவு Y + Kernel கெர்னல் + Input Mode உள்ளீட்டு முறை + Row Order வரிசை ஒழுங்கு + Eliminate அகற்று + Create By இதன்படி உருவாக்கு + List பட்டியல் + Pencil Width பென்சில் அகலம் + Stroke Pressure கோட்டு அழுத்தம் + Paper Brightness காகித ஒளிர்வு + Number Of Levels நிலைகளின் எண்ணிக்கை + Edge Simplicity விளிம்பு எளிமை + Edge Fidelity விளிம்பு துல்லியம் + Brush Detail தூரிகை விவரம் + Highlight Area ஒளிர்வுப் பகுதி + Glow Size பிரகாச அளவு + Glow Brightness பிரகாச ஒளிர்வு + Brush Type தூரிகை வகை + Stroke Size கோட்டு அளவு + Stroke Detail கோட்டு விவரம் + Highlight Strength ஒளிர்வு வலிமை + Smoothness மென்மை + Edge Thickness விளிம்பு தடிமன் + Edge Intensity விளிம்பு தீவிரம் + Posterization போஸ்டரைசேஷன் + Stroke Length கோட்டு நீளம் + Relief புடைப்பு + Definition தெளிவுநிலை + Texture Coverage பரப்பமைப்பு மூடல் + Shadow Intensity நிழல் தீவிரம் + Edge Width விளிம்பு அகலம் + Edge Brightness விளிம்பு ஒளிர்வு + Direction Balance திசைச் சமநிலை + Black Intensity கருப்பு தீவிரம் + White Intensity வெள்ளை தீவிரம் + Dark Intensity கருமை தீவிரம் + Custom Pixel Aspect Ratio தனிப்பயன் பிக்சல் விகிதம் + 32-bit Preview Options 32 பிட் முன்னோட்ட விருப்பங்கள் + New Guide புதிய அளவுகோட்டு வரி + Join the ArtCraft Discord ArtCraft Discord-இல் சேர் + Report an Issue சிக்கலைப் புகாரளி + Load Files into Stack கோப்புகளைக் குவியலில் ஏற்று + Statistics புள்ளிவிவரங்கள் + Duplicate Layers அடுக்குகளை நகலெடு + Edit Toolbar கருவிப்பட்டியைத் திருத்து + Import Brushes தூரிகைகளை இறக்குமதி செய் + Load 3D LUT 3D LUT ஐ ஏற்று + Press keys விசைகளை அழுத்தவும் + Rename Group குழுவின் பெயரை மாற்று + Rename Tool Preset கருவி முன்னமைவின் பெயரை மாற்று + Search commands, tools and panels கட்டளைகள், கருவிகள், பலகங்களைத் தேடு + Slice Options துண்டு விருப்பங்கள் + Rename Brush தூரிகையின் பெயரை மாற்று + Opening திறக்கிறது + Reading படிக்கிறது + Working செயல்படுகிறது + Accented Edges அழுத்தமான விளிம்புகள் + Angled Strokes கோணக் கோடுகள் + Anisotropic அனிசோட்ரோபிக் + Around Center மையத்தைச் சுற்றி + Artistic கலைநயம் + Bamboo மூங்கில் + Bas Relief தாழ் புடைப்புச் சிற்பம் + Berries பெர்ரிகள் + Blast வெடிப்பு + Bleach Bypass ப்ளீச் பைபாஸ் + Blocks தொகுதிகள் + Brick செங்கல் + Brush Strokes தூரிகைக் கோடுகள் + Burlap சாக்குத்துணி + Candle Light மெழுகுவர்த்தி ஒளி + Circle வட்டம் + Clumped கொத்தாக + Coarse Dots பருமனான புள்ளிகள் + Colored Pencil வண்ணப் பென்சில் + Contrasty மாறுபாடு மிக்க + Cool குளிர் + Craquelure விரிசல் அமைப்பு + Cross குறுக்கு + Cross Process குறுக்குச் செயலாக்கம் + Crosshatch குறுக்குப் பொறிப்பு + Cutout வெட்டுருவம் + Daisies டெய்சிகள் + Dark Rough கருமை கரடுமுரடு + Dark Strokes கருமைக் கோடுகள் + Darken Only கருமையாக்கு மட்டும் + Day For Night பகலை இரவாக்கு + Deep Blue ஆழ் நீலம் + Deep Emerald ஆழ் மரகதம் + Deep Red ஆழ் சிவப்பு + Deep Yellow ஆழ் மஞ்சள் + Dot புள்ளி + Double Line இரட்டைக் கோடு + Draft வரைவு + Dry Brush உலர் தூரிகை + Duplication நகலாக்கம் + Edge Extension விளிம்பு நீட்டிப்பு + Edge Only விளிம்பு மட்டும் + Enlarged பெரிதாக்கப்பட்டது + Even Fields இரட்டைப் புலங்கள் + Faded Film மங்கிய படச்சுருள் + Film Grain படச்சுருள் தானியம் + Fine நுண் + Fine Dots நுண் புள்ளிகள் + Flat தட்டை + Fresco ஃப்ரெஸ்கோ + From Left இடமிருந்து + From Right வலமிருந்து + Frosted பனிபடர்ந்த + Generic பொது + Glass கண்ணாடி + Glowing Edges ஒளிரும் விளிம்புகள் + Grainy Dots தானியப் புள்ளிகள் + Hearts இதயங்கள் + Heptagon ஏழுகோணம் + Hexagon அறுகோணம் + Horizontal Only கிடைமட்டம் மட்டும் + Infinite முடிவிலி + Ink Outlines மை வெளிக்கோடுகள் + Ivy ஐவி கொடி + Left Diagonal இடது மூலைவிட்டம் + Level Based நிலை அடிப்படையிலான + Light Rough வெளிர் கரடுமுரடு + Lighten Only ஒளிரச்செய் மட்டும் + Long Lines நீண்ட கோடுகள் + Long Strokes நீண்ட தூரிகைக் கோடுகள் + Lower கீழ் + Medium Dots நடுத்தரப் புள்ளிகள் + Medium Lines நடுத்தரக் கோடுகள் + Medium Strokes நடுத்தரத் தூரிகைக் கோடுகள் + Mono Contrast ஒற்றை மாறுபாடு + Mosaic Tiles மொசைக் ஓடுகள் + Multiple Flames Along Path பாதையில் பல தீச்சுடர்கள் + Multiple Flames One Direction ஒரே திசையில் பல தீச்சுடர்கள் + Multiple Flames Path Directions பாதைத் திசைகளில் பல தீச்சுடர்கள் + Multiple Flames Various Length பல்வேறு நீளங்களில் பல தீச்சுடர்கள் + Numerals எண்கள் + Lining நேர்கோட்டு எண்கள் + Proportional விகிதாசார எண்கள் + Proportional Lining விகிதாசார நேர்கோட்டு எண்கள் + Proportional Oldstyle விகிதாசார பழைய பாணி எண்கள் + Tabular அட்டவணை வடிவ எண்கள் + Tabular Lining அட்டவணை நேர்கோட்டு எண்கள் + Tabular Oldstyle அட்டவணைப் பழைய பாணி எண்கள் + Octagon எண்கோணம் + Odd Fields ஒற்றைப் புலங்கள் + One Flame Along Path பாதையில் ஒரு தீச்சுடர் + Out From Center மையத்திலிருந்து வெளியே + Oval முட்டைவடிவம் + Overlay Edge மேலடுக்கு விளிம்பு + Palette Knife வண்ணக் கத்தி + Parallel இணை + Patchwork ஒட்டுவேலை + Pentagon ஐங்கோணம் + Point புள்ளி + Pointed கூர்மையான + Pond Ripples குள அலைகள் + Pyramids பிரமிடுகள் + Random சீரற்ற + Right Diagonal வலது மூலைவிட்டம் + Rope கயிறு + Roses ரோஜாக்கள் + Sandstone மணற்கல் + Scallops சிப்பி விளிம்புகள் + Sepia செபியா + Short Lines குறுகிய கோடுகள் + Short Strokes குறுகிய தூரிகைக் கோடுகள் + Simple எளிய + Light Intensity ஒளித் தீவிரம் + Spray Radius தெளிப்பு ஆரம் + Stroke Direction கோட்டுத் திசை + Graininess தானியத்தன்மை + Glow Amount பிரகாச அளவு + Clear Amount தெளிவு அளவு + Distortion திரிபு + Ripple Size அலை அளவு + Ripple Magnitude அலை பருமை + Charcoal Area கரிப் பகுதி + Chalk Area சுண்ணாம்புப் பகுதி + Charcoal Thickness கரி தடிமன் + Light Dark Balance ஒளி-கருமை சமநிலை + Foreground Level முன்புற நிலை + Background Level பின்னணி நிலை + Pattern Type வடிவ வகை + Image Balance பட சமநிலை + Darkness கருமை + Fiber Length இழை நீளம் + Crack Spacing விரிசல் இடைவெளி + Crack Depth விரிசல் ஆழம் + Crack Brightness விரிசல் ஒளிர்வு + Grain Type தானிய வகை + Tile Size ஓடு அளவு + Grout Width சாந்து அகலம் + Lighten Grout சாந்தை ஒளிரச்செய் + Square Size சதுர அளவு + Border Thickness எல்லை தடிமன் + Correct Distortion திரிபைத் திருத்து + Correct Vignette ஓர மங்கலைத் திருத்து + Correct C A C A ஐத் திருத்து + Auto Scale தானியங்கி அளவு + Red Cyan சிவப்பு நீலப்பச்சை + Blue Yellow நீலம் மஞ்சள் + Vignette Amount ஓர மங்கல் அளவு + Vignette Midpoint ஓர மங்கல் நடுப்புள்ளி + Constraints கட்டுப்பாடுகள் + Curve Highlights வளைவு ஒளிர்வுகள் + Curve Lights வளைவு ஒளிகள் + Curve Darks வளைவு கருமைகள் + Curve Shadows வளைவு நிழல்கள் + Curve Splits வளைவுப் பிளவுகள் + Point Curve புள்ளி வளைவு + Point Curve Red புள்ளி வளைவு சிவப்பு + Point Curve Green புள்ளி வளைவு பச்சை + Point Curve Blue புள்ளி வளைவு நீலம் + Hsl Hue HSL சாயல் + Hsl Sat HSL செறிவு + Hsl Lum HSL ஒளிர்வுத்திறன் + Grade Shadows தரப்படுத்து நிழல்கள் + Grade Midtones தரப்படுத்து நடுத்தொனிகள் + Grade Highlights தரப்படுத்து ஒளிர்வுகள் + Grade Global தரப்படுத்து பொது + Grade Blending தரப்படுத்து கலத்தல் + Grade Balance தரப்படுத்து சமநிலை + Sine சைன் + Sketch ஓவியக்கோடு + Snowflakes பனித்துகள்கள் + Sparkle மின்னல் + Spatter தெறிப்பு + Speckle புள்ளிப்பொடி + Spin சுழற்சி + Sprinkles தூவல்கள் + Squareness சதுரத்தன்மை + Stagger தடுமாற்றம் + Stained Glass வண்ணக் கண்ணாடி + Star நட்சத்திரம் + Stars நட்சத்திரங்கள் + Stippled புள்ளியிட்ட + Stretch நீட்டு + Teal Orange டீல் ஆரஞ்சு + Tiny Lens சிறு லென்ஸ் + To Center மையத்தை நோக்கி + Unaltered மாற்றப்படாதது + Underpainting அடிவண்ணம் + Underwater நீருக்கடியில் + Upper மேல் + Vertical Only செங்குத்து மட்டும் + Vine With Flowers பூக்களுடன் கொடி + Vine With Leaves இலைகளுடன் கொடி + Violent தீவிரமான + Warm வெப்பம் + Watercolor நீர்வண்ணம் + Waves அலைகள் + Wide Blurry அகலமான மங்கல் + Wide Sharp அகலமான கூர்மை + Wrap சுற்று + Zigzag ஜிக்ஜாக் + Wetness ஈரத்தன்மை + AI Integrations AI ஒருங்கிணைப்புகள் + Add Noise இரைச்சலைச் சேர் + Apply Data Set தரவுத் தொகுப்பைப் பயன்படுத்து + Apply Image படத்தைப் பயன்படுத்து + Arbitrary விருப்பம்போல் + Artboard from Group குழுவிலிருந்து ஆர்ட்போர்டு + Artboard from Layers அடுக்குகளிலிருந்து ஆர்ட்போர்டு + Artboards to Files ஆர்ட்போர்டுகளைக் கோப்புகளாக + Artboards to PDF ஆர்ட்போர்டுகளை PDF ஆக + Assign Profile சுயவிவரத்தை ஒதுக்கு + At இடத்தில் + Auto-Align Layers அடுக்குகளைத் தானாக சீரமை + Auto-Blend Layers அடுக்குகளைத் தானாகக் கலக்கு + Batch தொகுதி + Border எல்லை + Box Blur பெட்டி மங்கல் + Calculations கணக்கீடுகள் + Camera Raw கேமரா ரா + Camera Raw Filter கேமரா ரா வடிகட்டி + Channel1 சேனல்1 + Channel2 சேனல்2 + Channel3 சேனல்3 + Channel4 சேனல்4 + Clone நகலெடு + Color Decontaminate நிறத் தூய்மையாக்கு + Color Halftone நிற அரைத்தொனி + Color Lookup Tables நிறத் தேடல் அட்டவணைகள் + Color Settings நிற அமைப்புகள் + Color Table நிற அட்டவணை + Conditional Mode Change நிபந்தனை முறை மாற்றம் + Content-Aware Fill உள்ளடக்கம் அறிந்த நிரப்பு + Convert to Linked இணைக்கப்பட்டதாக மாற்று + Convert to Profile சுயவிவரமாக மாற்று + Crystallize படிகமாக்கு + Data தரவு + Data Sets as Files தரவுத் தொகுப்புகளைக் கோப்புகளாக + De-Interlace இடைப்பின்னலை நீக்கு + Define Brush Preset தூரிகை முன்னமைவை வரையறு + Define Custom Shape தனிப்பயன் வடிவத்தை வரையறு + Define Pattern வடிவமைப்பை வரையறு + Defringe விளிம்பு நீக்கு + Diffuse பரப்பு + Diffuse Glow பரவிய பிரகாசம் + Displace இடம்பெயர் + Do you want to save you made to “{name}” before quitting? வெளியேறும் முன் “{name}” இல் செய்த மாற்றங்களைச் சேமிக்க விரும்புகிறீர்களா? + Dust & Scratches தூசு & கீறல்கள் + Export Contents உள்ளடக்கத்தை ஏற்றுமதி செய் + Export Preferences ஏற்றுமதி விருப்பத்தேர்வுகள் + Export/Import Presets முன்னமைவுகளை ஏற்றுமதி/இறக்குமதி செய் + Extrude நீட்டு + Fibers இழைகள் + Field Blur புல மங்கல் + File Info கோப்பு தகவல் + Filter Gallery வடிகட்டி காட்சியகம் + Find and Replace Text உரையைத் தேடி மாற்று + Fit Image படத்தைப் பொருத்து + Flame தீச்சுடர் + Focus Area கவனப் பகுதி + Gaussian Blur காசியன் மங்கல் + Global Light பொது ஒளி + Group from Layers அடுக்குகளிலிருந்து குழு + HDR Toning HDR டோனிங் + High Pass உயர் அனுமதி + Highlight ஒளிர்வு + Image Processor பட செயலி + Install Plug-in செருகுநிரலை நிறுவு + Interpret Footage காட்சிப்பதிவை விளக்கு + Iris Blur கருவிழி மங்கல் + Jag ஜாக் + Label குறியீடு + Layer Comps to Files அடுக்கு அமைப்புகளைக் கோப்புகளாக + Layer Content Options அடுக்கு உள்ளடக்க விருப்பங்கள் + Layer From Background பின்னணியிலிருந்து அடுக்கு + Layer from Background பின்னணியிலிருந்து அடுக்கு + Layers to Files அடுக்குகளைக் கோப்புகளாக + Legacy பழையது + Lens Blur லென்ஸ் மங்கல் + Lens Correction லென்ஸ் திருத்தம் + Lens Flare லென்ஸ் ஒளிப்பிழம்பு + Lighting Effects ஒளி விளைவுகள் + Liquify திரவமாக்கு + Lum ஒளிர் + Match Color நிறத்தைப் பொருத்து + Merge to HDR Pro HDR Pro ஆக இணை + Mezzotint மெசோடின்ட் + Mosaic மொசைக் + Motion Blur இயக்க மங்கல் + Native file drag-and-drop is not supported on Wayland yet. Use File › Open, or run PhotoCraft under XWayland with `WAYLAND_DISPLAY= photocraft`. Wayland-இல் சொந்த கோப்பு இழுத்துவிடுதல் இன்னும் ஆதரிக்கப்படவில்லை. கோப்பு › திற என்பதைப் பயன்படுத்தவும், அல்லது `WAYLAND_DISPLAY= photocraft` உடன் போட்டோகிராப்டை XWayland-இல் இயக்கவும். + Neon Glow நியான் பிரகாசம் + New Guide Layout புதிய அளவுகோட்டு வரி அமைப்பு + New Video Layer from File கோப்பிலிருந்து புதிய வீடியோ அடுக்கு + Ocean Ripple கடல் அலை + Oil Paint எண்ணெய் ஓவியம் + Open As இவ்வாறு திற + Package தொகுப்பாக்கு + Paint Daubs வண்ணத் தீற்றல்கள் + Path Blur பாதை மங்கல் + Paths to Illustrator பாதைகளை Illustrator-க்கு + Photomerge புகைப்பட ஒருங்கிணைப்பு + Picture Frame படச் சட்டகம் + Pinch கிள்ளு + Place Embedded உட்பொதிந்து வை + Place Linked இணைத்து வை + Place Scale Marker அளவுகோல் குறியை வை + Plastic Wrap பிளாஸ்டிக் உறை + Pointillize புள்ளிப்படுத்து + Polar Coordinates துருவ ஆயத்தொலைவுகள் + Polar To Rectangular துருவத்திலிருந்து செவ்வகத்துக்கு + Poster Edges சுவரொட்டி விளிம்புகள் + Preset Manager முன்னமைவு மேலாளர் + Profile சுயவிவரம் + Radial Blur ஆரை மங்கல் + Raw Defaults Raw இயல்புநிலைகள் + Rectangular To Polar செவ்வகத்திலிருந்து துருவத்துக்கு + Relink to File கோப்புடன் மீண்டும் இணை + Render Video வீடியோவை ரெண்டர் செய் + Replace Color நிறத்தை மாற்று + Replace Contents உள்ளடக்கத்தை மாற்று + Replace Footage காட்சிப்பதிவை மாற்று + Resolve Missing Fonts காணாமல்போன எழுத்துருக்களைத் தீர் + Ripple அலைவளையம் + Rough Pastels கரடுமுரடான பேஸ்டல்கள் + Sat செறிவு + Save a Copy நகலைச் சேமி + Save for Web (Legacy) வலைக்காகச் சேமி (பழையது) + Scale Effects விளைவுகளை அளவு மாற்று + Script Events Manager ஸ்கிரிப்ட் நிகழ்வு மேலாளர் + Search menus பட்டிகளைத் தேடு + Select and Mask தேர்ந்தெடுத்து மறையச் செய் + Set Measurement Scale அளவீட்டு அளவுகோலை அமை + Shadows/Highlights நிழல்கள்/ஒளிர்வுகள் + Shape Blur வடிவ மங்கல் + Shear ஷியர் + Smart Blur திறன்மிகு மங்கல் + Smart Sharpen திறன்மிகு கூர்மையாக்கல் + Smudge Stick தேய்ப்புக் குச்சி + Solid Color திட நிறம் + Spherize கோளமாக்கு + Spin Blur சுழல் மங்கல் + Spot புள்ளி + Sprayed Strokes தெளித்த கோடுகள் + Strokes கோடுகள் + Sumi-e சுமி-இ + Surface Blur மேற்பரப்பு மங்கல் + Texturizer பரப்பமைப்பாக்கி + Tiles ஓடுகள் + Tilt-Shift சாய்வு-இடமாற்றம் + Trace Contour வெளிக்கோட்டைத் தடமிடு + Trap பிடிப்பு + Tree மரம் + Trim ஒதுக்கு + Turbulent கொந்தளிப்பான + Twirl சுழலச்செய் + Unsharp Mask கூர்மைப்படுத்துதல் மறைப்பு + Use File › Open to open an image. படத்தைத் திறக்க கோப்பு › திற என்பதைப் பயன்படுத்தவும். + Vanishing Point மறையும் புள்ளி + Variable Data Sets மாறி தரவுத் தொகுப்புகள் + Video Frames to Layers வீடியோ சட்டங்களை அடுக்குகளாக + WIA Support WIA ஆதரவு + Warp Text உரை வளைப்பு + Wind காற்று + Vertical Type Tool செங்குத்து உரைக் கருவி + About {app} {app} பற்றி + Hide {app} {app} மறை + Quit {app} {app} வெளியேறு + Services சேவைகள் + Hide Others மற்றவற்றை மறை + Lut LUT + Cooling L B B குளிர்வித்தல் LBB + Cooling80 குளிர்வித்தல்80 + Cooling82 குளிர்வித்தல்82 + Hsb HSB + Hsl HSL + Movie Prime Movie Prime + Prime105 Prime105 + Prime35 Prime35 + Warming L B A வெப்பமூட்டல் LBA + Warming81 வெப்பமூட்டல்81 + Warming85 வெப்பமூட்டல்85 +@id filter.sharpen.sharpen கூர்மையாக்கு + Good நன்று + Best சிறந்தது + Adjustment Properties சரிசெய்தல் பண்புகள் + Default Foreground and Background Colors இயல்புநிலை முன்புற & பின்னணி நிறங்கள் + Move Layer அடுக்கை நகர்த்து + Rectangular Selection செவ்வகத் தேர்வு + Reorder Layer அடுக்கை மறுவரிசைப்படுத்து + Select Layer அடுக்கைத் தேர்ந்தெடு + Set Colors நிறங்களை அமை + Switch Foreground and Background Colors முன்புற & பின்னணி நிறங்களை மாற்றிக்கொள் + Target இலக்கு + Target Composite Channel கூட்டுக் சேனலை இலக்காக்கு + Target Layer Mask அடுக்கு மறைப்பை இலக்காக்கு + Target Channel 3 சேனல் 3 ஐ இலக்காக்கு + Target Channel 4 சேனல் 4 ஐ இலக்காக்கு + Target Channel 5 சேனல் 5 ஐ இலக்காக்கு + Target Channel 6 சேனல் 6 ஐ இலக்காக்கு + Target Channel 7 சேனல் 7 ஐ இலக்காக்கு + Target Channel 8 சேனல் 8 ஐ இலக்காக்கு + Target Channel 9 சேனல் 9 ஐ இலக்காக்கு + Load Luminosity ஒளிர்வுத்திறனை ஏற்று + Make Work Path… பணிப் பாதையை உருவாக்கு… + Create Vector Mask திசையன் மறைப்பை உருவாக்கு + Make Selection… தேர்வை உருவாக்கு… + Make Selection from Path பாதையிலிருந்து தேர்வு செய் + Add Path to Selection தேர்வுடன் பாதையைச் சேர் + Subtract Path from Selection தேர்விலிருந்து பாதையைக் கழி + Fill Path… பாதையை நிரப்பு… + Clipping Path… வெட்டுப் பாதை… + Free Transform Path பாதையைத் தன்னிச்சையாக உருமாற்று + Unite Shapes at Overlap மேலேறுமிடத்தில் வடிவங்களை ஒன்றிணை + Subtract Shapes at Overlap மேலேறுமிடத்தில் வடிவங்களைக் கழி + Copy Fill நிரப்பை நகலெடு + Copy Complete Stroke முழுக் கோட்டை நகலெடு + Paste Fill நிரப்பை ஒட்டு + Paste Complete Stroke முழுக் கோட்டை ஒட்டு + Make Symmetry Path சமச்சீர்ப் பாதையை உருவாக்கு + Disable Symmetry Path சமச்சீர்ப் பாதையை முடக்கு + Select Custom Color… தனிப்பயன் நிறத்தைத் தேர்ந்தெடு… + Color Picker (Custom Canvas Color) நிறத் தேர்வி (தனிப்பயன் படச்சட்ட நிறம்) + Duplicate Channel சேனலை நகலெடு + Delete Channel சேனலை நீக்கு + Rename Channel… சேனலின் பெயரை மாற்று… + Merge Spot Channel புள்ளிச் சேனலை இணை + Convert to Alpha Channel ஆல்பா சேனலாக மாற்று + Exit Quick Mask விரைவு மறைப்பிலிருந்து வெளியேறு + New Channel… புதிய சேனல்… + New Spot Channel… புதிய புள்ளிச் சேனல்… + Split Channels சேனல்களைப் பிரி + Merge Channels… சேனல்களை இணை… + Color Indicates Masked Areas நிறம் மறைக்கப்பட்ட பகுதிகளைக் குறிக்கிறது + Color Indicates Selected Areas நிறம் தேர்ந்தெடுத்த பகுதிகளைக் குறிக்கிறது + ✓ Color Indicates Masked Areas ✓ நிறம் மறைக்கப்பட்ட பகுதிகளைக் குறிக்கிறது + ✓ Color Indicates Selected Areas ✓ நிறம் தேர்ந்தெடுத்த பகுதிகளைக் குறிக்கிறது + Up மேலே + To வரை + Shallow ஆழமற்ற + Deep ஆழமான + Blend Interior Effects as Group உள் விளைவுகளைக் குழுவாகக் கலக்கு + Blend Clipped Layers as Group வெட்டிய அடுக்குகளைக் குழுவாகக் கலக்கு + Transparency Shapes Layer ஒளிஊடுருவல் வடிவங்கள் அடுக்கு + Layer Mask Hides Effects அடுக்கு மறைப்பு விளைவுகளை மறைக்கிறது + Vector Mask Hides Effects திசையன் மறைப்பு விளைவுகளை மறைக்கிறது + General Blending பொதுக் கலப்பு + This Layer: இந்த அடுக்கு: + Underlying Layer: அடியிலுள்ள அடுக்கு: + Nothing to paste: the clipboard holds no image ஒட்ட எதுவும் இல்லை: கிளிப்போர்டில் படம் இல்லை + Preferences saved விருப்பத்தேர்வுகள் சேமிக்கப்பட்டன + Invalid panel layout; restored the default dock தவறான பலக அமைப்பு; இயல்புநிலை டாக் மீட்டமைக்கப்பட்டது + Preferences were reset: {error} விருப்பத்தேர்வுகள் மீட்டமைக்கப்பட்டன: {error} + Recovered {name} {name} மீட்டெடுக்கப்பட்டது + Couldn't save preferences: {error}. Retrying… விருப்பத்தேர்வுகளைச் சேமிக்க முடியவில்லை: {error}. மீண்டும் முயல்கிறது… + Autosave failed: {error} தானியங்கிச் சேமிப்பு தோல்வியடைந்தது: {error} + Exported presets to {path} முன்னமைவுகள் {path} க்கு ஏற்றுமதி செய்யப்பட்டன + Ran script {name} ஸ்கிரிப்ட் {name} இயக்கப்பட்டது + Sent to the printer ({spooler}) அச்சுப்பொறிக்கு அனுப்பப்பட்டது ({spooler}) + Printed to {path} {path} க்கு அச்சிடப்பட்டது + Exported {path} ({size}) {path} ஏற்றுமதி செய்யப்பட்டது ({size}) + Exported {path} {path} ஏற்றுமதி செய்யப்பட்டது + Added swatch {name} நிற மாதிரி {name} சேர்க்கப்பட்டது + Step {step} ({id}) failed: {error} படி {step} ({id}) தோல்வியடைந்தது: {error} + Could not rename the action: {error} செயலின் பெயரை மாற்ற முடியவில்லை: {error} + Action playback failed: {error} செயல் இயக்கம் தோல்வியடைந்தது: {error} + Clone source set at {x}, {y} நகலெடுப்பு மூலம் {x}, {y} இல் அமைக்கப்பட்டது + Color management: {error} நிற மேலாண்மை: {error} + Opened {url} {url} திறக்கப்பட்டது + No custom shape "{name}": pick one in the options bar or Window › Shapes தனிப்பயன் வடிவம் "{name}" இல்லை: விருப்பப் பட்டையில் அல்லது சாளரம் › வடிவங்களில் ஒன்றைத் தேர்ந்தெடுக்கவும் + Saved a copy as {path} நகல் {path} ஆகச் சேமிக்கப்பட்டது + Exported contents to {path} உள்ளடக்கம் {path} க்கு ஏற்றுமதி செய்யப்பட்டது + {label} is not available: {reason} {label} கிடைக்கவில்லை: {reason} + Saved {path}; image assets: {n} in {dir} {path} சேமிக்கப்பட்டது; பட சொத்துகள்: {dir} இல் {n} + {message} (notes: {n}; {warning}) {message} (குறிப்புகள்: {n}; {warning}) + Preferences can't be saved விருப்பத்தேர்வுகளைச் சேமிக்க முடியவில்லை + PhotoCraft keeps retrying; until a save succeeds, preference changes are lost when it closes. போட்டோகிராப்ட் தொடர்ந்து முயல்கிறது; சேமிப்பு வெற்றிபெறும் வரை, மூடும்போது விருப்பத்தேர்வு மாற்றங்கள் இழக்கப்படும். + GPU retry scheduled GPU மறுமுயற்சி திட்டமிடப்பட்டது + Save your work and restart PhotoCraft to retry GPU acceleration. CPU rendering remains active for this session. GPU முடுக்கத்தை மீண்டும் முயல உங்கள் பணியைச் சேமித்து போட்டோகிராப்டை மறுதொடக்கம் செய்யவும். இந்த அமர்வில் CPU ரெண்டரிங் தொடர்ந்து செயலில் இருக்கும். + GPU device was lost; using the CPU renderer. GPU சாதனம் இழக்கப்பட்டது; CPU ரெண்டரரைப் பயன்படுத்துகிறது. + GPU error; using the CPU renderer. GPU பிழை; CPU ரெண்டரரைப் பயன்படுத்துகிறது. + Couldn't open {name}: {error} {name} ஐத் திறக்க முடியவில்லை: {error} + Toggle the Brush Settings panel தூரிகை அமைப்புகள் பலகத்தை மாற்று + New Brush Preset புதிய தூரிகை முன்னமைவு + Grid view கட்டக் காட்சி + List view பட்டியல் காட்சி + {verb} {mask} {layer} {verb} {mask} {layer} + Unlink இணைப்பை நீக்கு + Link இணை + Commit transform உருமாற்றத்தை உறுதிசெய் + Cancel transform உருமாற்றத்தை ரத்துசெய் + Scroll menu up பட்டியை மேலே உருட்டு + Scroll menu down பட்டியைக் கீழே உருட்டு + This type layer must be rasterized before proceeding. Its text will no longer be editable. Rasterize the type? தொடர்வதற்கு முன் இந்த உரை அடுக்கு ராஸ்டராக்கப்பட வேண்டும். அதன் உரையை இனி திருத்த முடியாது. உரையை ராஸ்டராக்கவா? + This shape layer must be rasterized before proceeding. It will no longer be editable as a shape. Rasterize the shape? தொடர்வதற்கு முன் இந்த வடிவ அடுக்கு ராஸ்டராக்கப்பட வேண்டும். இதை இனி வடிவமாகத் திருத்த முடியாது. வடிவத்தை ராஸ்டராக்கவா? + This Smart Object must be rasterized before proceeding. Its contents will no longer be editable. Rasterize the Smart Object? தொடர்வதற்கு முன் இந்த திறன்மிகு பொருள் ராஸ்டராக்கப்பட வேண்டும். அதன் உள்ளடக்கத்தை இனி திருத்த முடியாது. திறன்மிகு பொருளை ராஸ்டராக்கவா? + This fill layer must be rasterized before proceeding. Its fill content will no longer be editable. Rasterize the layer? தொடர்வதற்கு முன் இந்த நிரப்பு அடுக்கு ராஸ்டராக்கப்பட வேண்டும். அதன் நிரப்பு உள்ளடக்கத்தை இனி திருத்த முடியாது. அடுக்கை ராஸ்டராக்கவா? + This layer must be rasterized before proceeding. தொடர்வதற்கு முன் இந்த அடுக்கு ராஸ்டராக்கப்பட வேண்டும். + Color Picker (Background Color) நிறத் தேர்வி (பின்னணி நிறம்) + Color Picker (Foreground Color) நிறத் தேர்வி (முன்புற நிறம்) + Adwaita (Light) அத்வைதா (வெளிர்) + Adwaita (Dark) அத்வைதா (கருமை) + Open Recent is unavailable on the web வலையில் சமீபத்தியவற்றைத் திற கிடைக்காது + Graphics adapter: {adapter} வரைகலை அடாப்டர்: {adapter} + Backend: {backend} ({type}) பின்புலம்: {backend} ({type}) + Driver: {driver} இயக்கி: {driver} + GPU backend preference: {backend} GPU பின்புல விருப்பம்: {backend} + Selected at launch: {backend} தொடக்கத்தில் தேர்ந்தெடுத்தது: {backend} + Image compositor: {processor} பட இணைப்பி: {processor} + Fallback: {reason} மாற்று: {reason} + This session: {reason} இந்த அமர்வு: {reason} + Window renderer: {renderer} சாளர ரெண்டரர்: {renderer} + Software adapter மென்பொருள் அடாப்டர் + Graphics adapter வரைகலை அடாப்டர் + unknown type தெரியாத வகை + Platform: {os} {arch} தளம்: {os} {arch} + previous reading kept; the last re-read failed: {reason} முந்தைய அளவீடு தக்கவைக்கப்பட்டது; கடைசி மறுவாசிப்பு தோல்வியடைந்தது: {reason} + Monitor profile: {profile} திரை சுயவிவரம்: {profile} + Display profiles: {reason} காட்சிச் சுயவிவரங்கள்: {reason} + Monitor profile in use on {display}: {profile} {display} இல் பயன்பாட்டில் உள்ள திரை சுயவிவரம்: {profile} + Monitor profile in use: {profile} பயன்பாட்டில் உள்ள திரை சுயவிவரம்: {profile} + The canvas is shown as sRGB. Choose a monitor profile in Edit › Color Settings. படச்சட்டம் sRGB ஆகக் காட்டப்படுகிறது. திருத்து › நிற அமைப்புகளில் திரை சுயவிவரத்தைத் தேர்ந்தெடுக்கவும். + The canvas on {display} is shown as sRGB. Choose a monitor profile in Edit › Color Settings. {display} இல் உள்ள படச்சட்டம் sRGB ஆகக் காட்டப்படுகிறது. திருத்து › நிற அமைப்புகளில் திரை சுயவிவரத்தைத் தேர்ந்தெடுக்கவும். + Display profile not used காட்சிச் சுயவிவரம் பயன்படுத்தப்படவில்லை + Monitor profile on {display} (main window): {profile} {display} இல் திரை சுயவிவரம் (main window): {profile} + Monitor profile on {display}: {profile} {display} இல் திரை சுயவிவரம்: {profile} + fallback மாற்று + The document does not have an embedded colour profile. Working space: {working}. ஆவணத்தில் உட்பொதிந்த நிறச் சுயவிவரம் இல்லை. பணி வெளி: {working}. + The document has an embedded colour profile that does not match the working space.\nEmbedded: {embedded}\nWorking: {working} ஆவணத்தில் உள்ள உட்பொதிந்த நிறச் சுயவிவரம் பணி வெளியுடன் பொருந்தவில்லை.\nஉட்பொதிந்தது: {embedded}\nபணி: {working} + Importing {what} from {file}… {file} இலிருந்து {what} ஐ இறக்குமதி செய்கிறது… +@plural Imported {n} brush from {file}|Imported {n} brushes from {file} {file} இலிருந்து {n} தூரிகை இறக்குமதி செய்யப்பட்டது|{file} இலிருந்து {n} தூரிகைகள் இறக்குமதி செய்யப்பட்டன +@plural Imported {n} gradient from {file}|Imported {n} gradients from {file} {file} இலிருந்து {n} நிறப் படித்திறன் இறக்குமதி செய்யப்பட்டது|{file} இலிருந்து {n} நிறப் படித்திறன்கள் இறக்குமதி செய்யப்பட்டன +@plural Imported {n} pattern from {file}|Imported {n} patterns from {file} {file} இலிருந்து {n} வடிவமைப்பு இறக்குமதி செய்யப்பட்டது|{file} இலிருந்து {n} வடிவமைப்புகள் இறக்குமதி செய்யப்பட்டன + Data Set: {name} ({index}/{total}) தரவுத் தொகுப்பு: {name} ({index}/{total}) + (none) (எதுவுமில்லை) +navigator Zoom பெரிதாக்கல் + Apply {option}: {state} {option} ஐப் பயன்படுத்து: {state} + This adjustment ({key}) is kept as imported and can't be edited yet. இந்தச் சரிசெய்தல் ({key}) இறக்குமதி செய்தபடியே வைக்கப்பட்டுள்ளது; இன்னும் திருத்த முடியாது. + Join the ArtCraft Discord ({url}) ArtCraft Discord-இல் சேர் ({url}) + {index} of {total} {total} இல் {index} + {shortcut} assigned. {shortcut} ஒதுக்கப்பட்டது. + {shortcut} is already in use by {commands} and will be removed from it when you click OK. {shortcut} ஏற்கனவே {commands} ஆல் பயன்படுத்தப்படுகிறது; சரி என்பதைக் கிளிக் செய்தால் அதிலிருந்து நீக்கப்படும். + The current gradient (pick one in Window › Gradients) தற்போதைய நிறப் படித்திறன் (சாளரம் › நிறப் படித்திறன்களில் ஒன்றைத் தேர்ந்தெடுக்கவும்) + auto தானியங்கி + Baseline Shift அடிப்படைக் கோடு மாற்றம் + Breeze Dark பிரீஸ் கருமை + Breeze Light பிரீஸ் வெளிர் + brushes தூரிகைகள் + Color Picker நிறத் தேர்வி + Current தற்போதையது + Dark Gray கருஞ்சாம்பல் + Fill Color நிரப்பு நிறம் + gradients நிறப் படித்திறன்கள் + Graphic and web வரைகலை & வலை + layer mask அடுக்கு மறைப்பு + Lock All அனைத்தையும் பூட்டு + Lock Image Pixels பட பிக்சல்களைப் பூட்டு + Lock Position நிலையைப் பூட்டு + Lock Transparent Pixels ஒளிஊடுருவும் பிக்சல்களைப் பூட்டு + manual கைமுறை + Medium Gray நடுத்தர சாம்பல் + New document புதிய ஆவணம் + New Selection புதிய தேர்வு + No Document ஆவணம் இல்லை + Note tool குறிப்புக் கருவி + off அணை + on இயக்கம் + Recent Files சமீபத்திய கோப்புகள் + Rgb RGB + Shortcut குறுக்குவழி + Show Rulers அளவுகோல்களைக் காண்பி + Solarized Dark சோலரைஸ்டு கருமை + sRGB sRGB + Stroke Color கோடு நிறம் + unknown தெரியாதது + Unsaved Changes சேமிக்கப்படாத மாற்றங்கள் + vector mask திசையன் மறைப்பு + ZigZag ஜிக்ஜாக் + Show home recent files முகப்பில் சமீபத்திய கோப்புகளைக் காண்பி + Clear Brush Controls தூரிகைக் கட்டுப்பாடுகளை அழி + Reset All Locked Settings பூட்டிய அனைத்து அமைப்புகளையும் மீட்டமை + Copy Texture to Other Tools பரப்பமைப்பை மற்ற கருவிகளுக்கு நகலெடு + Load Actions… செயல்களை ஏற்று… + Save Actions… செயல்களைச் சேமி… + New Action… புதிய செயல்… + Start Recording பதிவைத் தொடங்கு + Stop Recording பதிவை நிறுத்து + {name} (Photoshop) {name} (Photoshop) + {message} ({note}) {message} ({note}) +@plural Loaded {n} action from {file}|Loaded {n} actions from {file} {file} இலிருந்து {n} செயல் ஏற்றப்பட்டது|{file} இலிருந்து {n} செயல்கள் ஏற்றப்பட்டன +@plural {n} step has no PhotoCraft equivalent yet|{n} steps have no PhotoCraft equivalent yet {n} படிக்கு இன்னும் போட்டோகிராப்ட் சமமானது இல்லை|{n} படிகளுக்கு இன்னும் போட்டோகிராப்ட் சமமானது இல்லை +@plural Saved {n} action to {file}|Saved {n} actions to {file} {file} க்கு {n} செயல் சேமிக்கப்பட்டது|{file} க்கு {n} செயல்கள் சேமிக்கப்பட்டன +@plural {n} step with no Photoshop equivalent left out|{n} steps with no Photoshop equivalent left out Photoshop இணை எதுவும் விடுபடாத {n} படிநிலை|Photoshop இணை எதுவும் விடுபடாத {n} படிநிலைகள் + Starting serial தொடர் எண் தொடக்கம் + Insert Stop… நிறுத்தத்தைச் செருகு… + Save Set… தொகுப்பைச் சேமி… + Message: செய்தி: + Allow Continue தொடர அனுமதி + Show dialog during playback இயக்கத்தின்போது உரையாடலைக் காண்பி + Select an action first முதலில் ஒரு செயலைத் தேர்ந்தெடுக்கவும் + Action playback stopped செயல் இயக்கம் நிறுத்தப்பட்டது + Step {step} is waiting for its dialog படி {step} அதன் உரையாடலுக்காகக் காத்திருக்கிறது +@plural {n} action|{n} actions {n} செயல்|{n} செயல்கள் + Background (Default) பின்னணி (இயல்புநிலை) + Include All Subfolders அனைத்து உட்கோப்புறைகளையும் சேர் + Auto Add/Delete தானாகச் சேர்/நீக்கு + Don't also tick Mirror Image in Print Settings…: the two flips cancel out. அச்சு அமைப்புகளில்… எதிரொளிப் படத்தையும் தேர்ந்தெடுக்க வேண்டாம்: இரண்டு புரட்டல்களும் ஒன்றையொன்று ரத்துசெய்யும். + Print Settings… அச்சு அமைப்புகள்… + Remember to turn off the printer's own colour management in Print Settings… அச்சு அமைப்புகளில் அச்சுப்பொறியின் சொந்த வண்ண மேலாண்மையை அணைக்க நினைவில் கொள்ளவும்… + Sent to {printer} {printer} க்கு அனுப்பப்பட்டது + set in Print Settings… அச்சு அமைப்புகளில் அமைக்கப்பட்டுள்ளது… + ICO is limited to 256 × 256 pixels ICO 256 × 256 பிக்சல்களுக்கு வரையறுக்கப்பட்டுள்ளது + Paints from the History panel's source state வரலாற்றுப் பலகத்தின் மூல நிலையிலிருந்து வண்ணமிடுகிறது + Sets the source for the history brush வரலாற்றுத் தூரிகைக்கான மூலத்தை அமைக்கிறது + Highlight Mode ஒளிர்வு முறை + Highlight Color ஒளிர்வு நிறம் + Highlight Opacity ஒளிர்வு ஒளிபுகாமை + Shadow Mode நிழல் முறை + Shadow Color நிழல் நிறம் + Shadow Opacity நிழல் ஒளிபுகாமை + Use the embedded profile ({profile}) உட்பொதிந்த சுயவிவரத்தைப் பயன்படுத்து ({profile}) + Convert to the working space ({profile}) பணி வெளிக்கு மாற்று ({profile}) + Remember this choice for future images எதிர்காலப் படங்களுக்கு இந்தத் தேர்வை நினைவில் வை + Turn the prompt back on with Ask On Mismatch in Edit › Color Settings. திருத்து › நிற அமைப்புகளில் "Ask On Mismatch" மூலம் அறிவுறுத்தலை மீண்டும் இயக்கவும். + Button Mode பொத்தான் முறை + Button Mode On பொத்தான் முறை இயக்கம் + Darken Interface இடைமுகத்தைக் கருமையாக்கு + Lighten Interface இடைமுகத்தை ஒளிரச்செய் + Technique நுட்பம் + Chisel Hard உளி கடினம் + Chisel Soft உளி மென்மை + Open color-less EXR as ACEScg நிறமற்ற EXR ஐ ACEScg ஆகத் திற + Do not append "copy" to filename when saving a copy நகலைச் சேமிக்கும்போது கோப்புப் பெயருடன் "copy" ஐச் சேர்க்க வேண்டாம் + Edit Selected Guides தேர்ந்தெடுத்த அளவுகோட்டு வரிகளைத் திருத்து + Clear Selected Guides தேர்ந்தெடுத்த அளவுகோட்டு வரிகளை அழி + Bicubic Automatic இருபக்கக் கனச்சதுர தானியங்கி + Bicubic Smoother இருபக்கக் கனச்சதுர மென்மை + Bicubic Sharper இருபக்கக் கனச்சதுர கூர்மை + Pasting from other apps is unavailable மற்ற பயன்பாடுகளிலிருந்து ஒட்டுவது கிடைக்கவில்லை + PhotoCraft can't reach the system clipboard in this session. On Wayland, a Flatpak sandbox hides the protocol that images from other apps are read through. இந்த அமர்வில் போட்டோகிராப்டால் கணினி கிளிப்போர்டை அணுக முடியவில்லை. Wayland-இல், Flatpak சாண்ட்பாக்ஸ் மற்ற பயன்பாடுகளிலிருந்து படங்களைப் படிக்கும் நெறிமுறையை மறைக்கிறது. + To paste from other apps, start PhotoCraft under XWayland: `{command}` மற்ற பயன்பாடுகளிலிருந்து ஒட்ட, போட்டோகிராப்டை XWayland-இல் தொடங்கவும்: `{command}` + Nothing to paste: PhotoCraft can't read the system clipboard here ஒட்ட எதுவும் இல்லை: இங்கு போட்டோகிராப்டால் கணினி கிளிப்போர்டைப் படிக்க முடியவில்லை + Delete this set இந்தத் தொகுப்பை நீக்கு + New Set… புதிய தொகுப்பு… + PhotoCraft Defaults போட்டோகிராப்ட் இயல்புநிலைகள் + Save a list of these shortcuts as a web page இந்தக் குறுக்குவழிகளின் பட்டியலை வலைப்பக்கமாகச் சேமி + Save the changes to this set இந்தத் தொகுப்பின் மாற்றங்களைச் சேமி + Save these shortcuts as a .kys file இந்தக் குறுக்குவழிகளை .kys கோப்பாகச் சேமி + Save these shortcuts as a new set இந்தக் குறுக்குவழிகளை புதிய தொகுப்பாகச் சேமி + Set deleted. தொகுப்பு நீக்கப்பட்டது. + Set saved. தொகுப்பு சேமிக்கப்பட்டது. + Set: தொகுப்பு: + Summarize… சுருக்கமாகக் காண்பி… + There are too many sets: delete one first. மிக அதிகமான தொகுப்புகள் உள்ளன: முதலில் ஒன்றை நீக்கவும். + set name தொகுப்பின் பெயர் + {set} (modified) {set} (மாற்றப்பட்டது) + Show file name in title தலைப்பில் கோப்புப் பெயரைக் காண்பி + 50% Threshold 50% வாசல் மதிப்பு + Pattern Dither வடிவ நிறக் கலப்பு + Diffusion Dither பரவல் நிறக் கலப்பு + Halftone Screen அரைத்தொனித் திரை + Custom Pattern தனிப்பயன் வடிவமைப்பு + Frequency: அதிர்வெண்: + Lines/Inch கோடுகள்/அங்குலம் + Lines/Centimeter கோடுகள்/சென்டிமீட்டர் + Ellipse நீள்வட்டம் + Accept and Go to Conflict ஏற்று, முரண்பாட்டுக்குச் செல் + Changes undone. மாற்றங்கள் செயல்தவிர்க்கப்பட்டன. + Choose a new shortcut for this command, or leave it without one. இந்தக் கட்டளைக்குப் புதிய குறுக்குவழியைத் தேர்ந்தெடுக்கவும், அல்லது ஒன்றும் இல்லாமல் விடவும். + Put this command's shortcuts back as they were இந்தக் கட்டளையின் குறுக்குவழிகளை முன்பிருந்தபடி மீட்டமை + Take the shortcut from the other command and select it மற்றக் கட்டளையிலிருந்து குறுக்குவழியை எடுத்து அதைத் தேர்ந்தெடு + Undo Changes மாற்றங்களைச் செயல்தவிர் + {shortcut} is reserved by the system and can't be assigned. {shortcut} கணினியால் ஒதுக்கப்பட்டுள்ளது; ஒதுக்க முடியாது. + Low-Latency Drawing (vsync off, applies at next launch) குறைந்த தாமத வரைதல் (vsync அணை, அடுத்த தொடக்கத்தில் பொருந்தும்) + Free Transform is still being applied; try again when it has finished. தன்னிச்சை உருமாற்றம் இன்னும் பயன்படுத்தப்படுகிறது; முடிந்ததும் மீண்டும் முயலவும். + The transform couldn't be applied. உருமாற்றத்தைப் பயன்படுத்த முடியவில்லை. + Its layers need {needed} of GPU memory; the budget leaves them {budget}. அதன் அடுக்குகளுக்கு {needed} GPU நினைவகம் தேவை; ஒதுக்கீடு அவற்றுக்கு {budget} மட்டுமே விடுகிறது. + Set GPU Memory in Preferences › Performance to what your graphics card can hold, at most 3/8 of its memory. Automatic follows Memory Usage, within a quarter of this computer's memory and 3/8 of the card's, and doesn't count the document against a card whose memory is known. The status bar shows GPU Memory Full while they don't fit. விருப்பத்தேர்வுகள் › செயல்திறனில் வரைகலை செயலி நினைவகத்தை உங்கள் வரைகலை அட்டை தாங்கக்கூடிய அளவுக்கு, அதிகபட்சம் அதன் நினைவகத்தின் 3/8, என அமைக்கவும். தானியங்கி முறை நினைவகப் பயன்பாட்டைப் பின்பற்றும்; இந்தக் கணினியின் நினைவகத்தின் கால் பங்கு மற்றும் அட்டையின் 3/8 க்குள், நினைவகம் அறியப்பட்ட அட்டைக்கு எதிராக ஆவணத்தைக் கணக்கிடாது. அவை பொருந்தாதபோது நிலைப் பட்டை "வரைகலை செயலி நினைவகம் நிரம்பியது" எனக் காட்டும். + GPU Memory Full GPU நினைவகம் நிரம்பியது + The layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. அடுக்குகளுக்கு {needed} வரைகலை செயலி நினைவகம் தேவை, ஆனால் {budget} மட்டுமே உள்ளது; எனவே முழு ஆவணத்தையும் மறுவரையும் திருத்தங்கள் கணினிச் செயலியில் மூலம் செய்யப்படும். வரைகலை செயலி நினைவகத்தை அமைக்கக் கிளிக் செய்யவும். + GPU memory budget: {budget} வரைகலை செயலி நினைவக ஒதுக்கீடு: {budget} + Graphics memory: {size} வரைகலை நினைவகம்: {size} + This document's layers: {needed} of {budget} for layers இந்த ஆவணத்தின் அடுக்குகள்: அடுக்குகளுக்கான {budget} இல் {needed} + This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU இந்த ஆவணத்தின் அடுக்குகளுக்கு {needed} தேவை, ஆனால் {budget} மட்டுமே வைத்திருக்க முடியும்: முழு ஆவண மறுவரைவுகள் கணினிச் செயலியைப் பயன்படுத்துகின்றன + GPU Memory (MB, 0 = Automatic) வரைகலை செயலி நினைவகம் (எம்பி, 0 = தானியங்கி) + {path}: the path is not valid Unicode; save under another name. {path}: பாதை சரியான யூனிகோட் அல்ல; வேறு பெயரில் சேமிக்கவும். + {name} was changed by another app after it was opened or saved here. இங்கு திறந்த அல்லது சேமித்த பிறகு {name} மற்றொரு பயன்பாட்டால் மாற்றப்பட்டுள்ளது. + Replace it with this document, or cancel and use File › Save As to keep both. இந்த ஆவணத்தால் அதை மாற்றவும், அல்லது ரத்துசெய்து இரண்டையும் வைத்திருக்க கோப்பு › இவ்வாறு சேமி என்பதைப் பயன்படுத்தவும். + Decrease Brush Size தூரிகை அளவைக் குறை + Increase Brush Size தூரிகை அளவை அதிகரி + Decrease Brush Hardness தூரிகை கடினத்தன்மையைக் குறை + Increase Brush Hardness தூரிகை கடினத்தன்மையை அதிகரி + Demosaic டிமொசைக் + 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. கேமராவின் நிற வடிகட்டி மொசைக் எவ்வாறு நிரப்பப்படுகிறது. கோப்பு திறக்கும்போது இது பயன்படுத்தப்படும்; முன்னோட்டம் அது திறக்கப்பட்ட முறையைக் காட்டும். + AHD (adaptive homogeneity) AHD (தகவமைவு ஒருபடித்தன்மை) + Malvar–He–Cutler மல்வார்–ஹே–கட்லர் + Hirakawa–Parks: the cleanest edges and the least colour fringing, the slowest. ஹிரகாவா-பார்க்ஸ்: மிகத் தூய்மையான விளிம்புகள், மிகக் குறைந்த நிற ஓரங்கள், மிக மெதுவானது. + Gradient-corrected interpolation: sharp and fast, with some colour fringing on fine detail. நிறப் படித்திறன்-திருத்திய இடைக்கணிப்பு: கூர்மையும் வேகமும், நுண் விவரங்களில் சிறிது நிற ஓரங்களுடன். + The fastest and the softest, with colour fringing on fine detail. மிக வேகமானது, மிக மென்மையானது, நுண் விவரங்களில் நிற ஓரங்களுடன். + “{name}” already exists. Replace it? “{name}” ஏற்கனவே உள்ளது. அதை மாற்றவா? + The name in the save dialog was “{name}”. சேமிப்பு உரையாடலில் உள்ள பெயர் “{name}”. + Move Up மேலே நகர்த்து + Move Down கீழே நகர்த்து + Previous Brush முந்தைய தூரிகை + Next Brush அடுத்த தூரிகை + First Brush முதல் தூரிகை + Last Brush கடைசி தூரிகை + Preview size முன்னோட்ட அளவு + Memory Usage நினைவகப் பயன்பாடு + Per-document RAM limit (MB) ஆவணத்துக்கான நினைவக வரம்பு (எம்பி) + Installed RAM: {ram} MB; this limit: {percent}% பொருத்தப்பட்டுள்ள நினைவகம்: {ram} எம்பி; இந்த வரம்பு: {percent}% + Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. ஒவ்வொரு திறந்த ஆவணத்தின் பிக்சல்களையும் வரலாற்றையும் வரம்பிடுகிறது. வரம்பு மீறும்போது பழைய செயல்தவிர் நிலைகள் நிராகரிக்கப்படும். + Applies immediately when saved. Memory is not reserved in advance. சேமித்ததும் உடனே பொருந்தும். நினைவகம் முன்கூட்டியே ஒதுக்கப்படுவதில்லை. + With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. GPU நினைவகம் தானியங்கி என அமைக்கப்பட்டிருந்தால், இது GPU அடுக்கு ஒதுக்கீட்டையும் வரம்பிடுகிறது. அந்த ஒதுக்கீடு நிறுவிய RAM இன் கால் பங்கு, மற்றும் அறியப்பட்டால் வரைகலை அட்டை நினைவகத்தின் மூன்றில் எட்டு பங்கு, குறைந்தபட்சம் 512 MB என வரம்பிடப்படுகிறது. இந்த வரம்பை அவற்றைத் தாண்டி உயர்த்தினாலும் GPU ஒதுக்கீடு அதிகரிக்காது. + Use பயன்படுத்து + In Front முன்னால் + Behind பின்னால் + DDS Options DDS விருப்பங்கள் + Generate Mipmaps Mipmap-களை உருவாக்கு + There is no color table to save. சேமிக்க நிற அட்டவணை இல்லை. +@plural Saved {n} color to {file}|Saved {n} colors to {file} {file} க்கு {n} நிறம் சேமிக்கப்பட்டது|{file} க்கு {n} நிறங்கள் சேமிக்கப்பட்டன + GPU adapter வரைகலைச் செயலி பொருத்தி + Confirm or cancel the open action step dialog first முதலில் திறந்துள்ள செயல் படி உரையாடலை உறுதிசெய்யவும் அல்லது ரத்துசெய்யவும் + Pro Medium Gray புரோ நடுத்தர சாம்பல் + Solarized கதிர்மாற்றம் + Breeze பிரீஸ் + Pro Light Gray புரோ வெளிர் சாம்பல் + Pro Light புரோ வெளிர் + Resize Windows to Fit சாளரங்களைப் பொருத்த அளவு மாற்று + EXR EXR + Automatic paragraph direction தானியங்கிப் பத்தித் திசை + Left-to-right paragraph direction இடமிருந்து வலமாக பத்தித் திசை + Right-to-left paragraph direction வலமிருந்து இடமாக பத்தித் திசை + Not rendered: this adjustment ({key}) is kept as imported. ரெண்டர் செய்யப்படவில்லை: இந்தச் சரிசெய்தல் ({key}) இறக்குமதி செய்தபடியே வைக்கப்பட்டுள்ளது. + Print preview image அச்சு முன்னோட்டப் படம் + +# Strings main added after this catalog was written (integration batch 20). + Background (default) பின்னணி (இயல்புநிலை) + Transparent (default) ஒளிஊடுருவும் (இயல்புநிலை) + The path was kept as the Work Path பாதை பணிப் பாதையாக வைக்கப்பட்டது + The path was discarded பாதை நிராகரிக்கப்பட்டது diff --git a/crates/ui-egui/src/i18n/tests.rs b/crates/ui-egui/src/i18n/tests.rs index e29a3f6899..d511884a04 100644 --- a/crates/ui-egui/src/i18n/tests.rs +++ b/crates/ui-egui/src/i18n/tests.rs @@ -8,6 +8,16 @@ const ID: fn() -> Lang = || Lang::from_code("id").expect("id registered"); const VI: fn() -> Lang = || Lang::from_code("vi").expect("vi registered"); const HI: fn() -> Lang = || Lang::from_code("hi").expect("hi registered"); +#[test] +fn hindi_has_the_reveal_and_camera_raw_rows() { + assert_eq!(tr(HI(), "Reveal in Explorer"), "Explorer में दिखाएँ"); + assert_eq!(tr(HI(), "Reveal in Finder"), "Finder में दिखाएँ"); + assert_eq!(tr(HI(), "Camera Raw…"), "Camera Raw…"); + let (rows, errors) = parse_entries(include_str!("hi.tsv")); + assert!(errors.is_empty(), "{errors:?}"); + assert!(rows.iter().any(|(ctx, src, _)| ctx.is_empty() && src == "Camera Raw…"), "Camera Raw… is a catalog row, not a fallback"); +} + #[test] fn hindi_tags_resolve() { for tag in ["hi", "hi-IN", "hi_IN", "hi_IN.UTF-8"] { @@ -36,6 +46,34 @@ fn vietnamese_tags_resolve() { assert_eq!(Lang::from_pref("VI"), VI()); } +#[test] +fn thai_tags_resolve() { + let th = Lang::from_code("th").expect("th registered"); + for tag in ["th", "TH", "th-TH", "th_TH", "th_TH.UTF-8"] { + assert_eq!(lang_from_tag(tag), Some(th), "{tag}"); + assert_eq!(Lang::from_pref(tag), th, "{tag}"); + } + assert_eq!(th.name(), "ไทย"); + assert_eq!((th.0.plural)(5), 0, "Thai has one plural form"); + assert_eq!(tr(th, "File"), "ไฟล์"); + assert_eq!(tr(th, "Layer"), "เลเยอร์"); +} + +/// Tamil: regional tags resolve, counts take one|other, and placeholders stay untranslated. +#[test] +fn tamil_tags_plurals_and_placeholders() { + let ta = Lang::from_code("ta").expect("ta registered"); + for tag in ["ta", "ta-IN", "ta_LK", "ta_IN.UTF-8"] { + assert_eq!(Lang::from_pref(tag), ta, "{tag}"); + } + let forms: Vec = [0, 1, 2, 21].into_iter().map(ta.0.plural).collect(); + assert_eq!(forms, [1, 0, 1, 1]); + assert_eq!(trn(ta, 1, "{n} layer", "{n} layers"), "1 அடுக்கு"); + assert_eq!(trn(ta, 3, "{n} layer", "{n} layers"), "3 அடுக்குகள்"); + assert!(tr(ta, "Scratch: {size}").contains("{size}")); + assert_ne!(tr(ta, "Zoom In (hold, drag to scrub)"), "Zoom In (hold, drag to scrub)"); +} + #[test] fn picker_lists_english_first_then_names_alphabetically() { let order = Lang::for_picker(); @@ -229,6 +267,16 @@ fn lookups_fall_back_to_english() { assert_eq!(trn(JA(), 3, "{n} no such message", "{n} no such messages"), "3 no such messages"); } +/// Romanian: 1 is one; 0 and counts ending in 01–19 are few ("2 straturi", "119 straturi"); +/// the rest take "de" ("20 de straturi", "121 de straturi"). +#[test] +fn romanian_plural_rule() { + let ro = Lang::from_code("ro").expect("ro registered"); + let counts = [0, 1, 2, 19, 20, 21, 100, 101, 119, 120, 121, 1001]; + let forms: Vec = counts.into_iter().map(ro.0.plural).collect(); + assert_eq!(forms, [1, 0, 1, 1, 2, 2, 2, 1, 1, 2, 2, 1]); +} + #[test] fn russian_plural_rule() { let ru = Lang::from_code("ru").expect("ru registered"); @@ -292,6 +340,63 @@ fn serbian_plural_rule_handles_teens_and_compound_counts() { assert_eq!(forms, [2, 0, 1, 1, 2, 2, 2, 2, 0, 1, 2, 0, 2, 2, 1]); } +/// The catalog resolves regional tags, exposes its native name and falls back to English. +#[test] +fn azerbaijani_resolves_locales_and_preferences() { + let lang = Lang::from_code("az").expect("az registered"); + assert_eq!(lang.name(), "Azərbaycanca"); + assert_eq!(lang.dir(), Dir::Ltr); + assert!(lang.complete_menus()); + for tag in ["az", "AZ", "az-AZ", "az_AZ.UTF-8", "az-Latn", "AZ-LATN-AZ"] { + assert_eq!(lang_from_tag(tag), Some(lang), "{tag}"); + assert_eq!(Lang::from_pref(tag), lang, "{tag}"); + } + assert_eq!(tr(lang, "unknown translation"), "unknown translation"); +} + +/// Integer plural boundaries select one only at 1, including large counts without overflow. +#[test] +fn azerbaijani_plural_counts_include_hundreds_and_large_values() { + let az = Lang::from_code("az").expect("az registered"); + let counts = [0, 1, 2, 11, 19, 20, 21, 99, 100, 101, 102, 119, 120, 1000, 1001, u64::MAX]; + assert_eq!(counts.map(az.0.plural), [1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); + for n in counts { + assert_eq!(trn(az, n, "{n} layer", "{n} layers"), format!("{n} qat")); + } +} + +/// Exact lookups retain contextual meanings, dotted/dotless letters and product placeholders. +#[test] +fn azerbaijani_keeps_context_placeholders_and_command_names() { + let lang = Lang::from_code("az").expect("az registered"); + for (source, translated) in [("File", "Fayl"), ("Layer", "Qat"), ("Kind", "Növ"), ("Type Layer", "Mətn qatı"), ("Light Theme", "Açıq mövzu")] { + assert_eq!(tr(lang, source), translated); + } + assert_eq!(tr_ctx(lang, "cameraRaw", "Light"), "İşıq"); + assert_eq!(tr_ctx(lang, "fontWeight", "Light"), "İncə"); + assert_ne!(tr_id(lang, "edit.clear", "Clear"), "Clear"); + assert!(fmt(tr(lang, "About {app}"), &[("app", "PhotoCraft")]).contains("PhotoCraft")); +} + +/// Every menu label, submenu segment and intentional command-ID override has a catalog entry. +#[test] +fn azerbaijani_covers_every_menu_label_and_path() { + let lang = Lang::from_code("az").expect("az registered"); + for &(path, label, _, _) in crate::menu_catalog::CATALOG { + for source in path.iter().copied().chain(std::iter::once(label)).filter(|source| *source != "---") { + assert!(lang.catalog().plain(source).is_some(), "az: missing menu translation for {source:?}"); + } + } + for source in ["Convert to Frame…", "Replace Image…", "Import Image…", "Fit Content to Frame", "Fit Frame to Content"] { + assert!(lang.catalog().plain(source).is_some(), "az: missing frame translation for {source:?}"); + } + for id in + ["edit.clear", "edit.purge.undo", "edit.stroke", "edit.transform.scale", "file.close", "filter.sharpen.sharpen", "layer.layerMask.apply", "select.all"] + { + assert!(lang.catalog().id(id).is_some(), "az: missing @id translation for {id:?}"); + } +} + /// Bosnian locales, with or without region, script or encoding, select the Latin catalog. #[test] fn bosnian_resolves_locales_and_preferences() { diff --git a/crates/ui-egui/src/i18n/th.tsv b/crates/ui-egui/src/i18n/th.tsv new file mode 100644 index 0000000000..ef34287b6b --- /dev/null +++ b/crates/ui-egui/src/i18n/th.tsv @@ -0,0 +1,4775 @@ +# Thai (th) catalog. Columns, separated by a TAB: context source translation +# +# context empty a plain UI string; `source` is the English text in the code +# @id a command id (e.g. file.saveAs): wins over the English text for +# that menu item, so one id can read differently from its twin +# @plural `source` is "one|other" (English forms); the translation lists the +# language's forms separated by "|" (see `plural` in i18n.rs) +# anything else a disambiguating context passed to `tr_ctx` +# escapes \n \t \\ inside a column. `{name}` placeholders must appear in both columns. +# lines starting with # and blank lines are ignored. +# +# Clean-room: translated from the plain meaning of the English labels using ordinary Thai +# computing and image-editing vocabulary (เลเยอร์, มาสก์, ฟิลเตอร์, การเลือก ...). No proprietary +# localisation resource, string table or product UI was consulted or copied; add entries the same +# way. Product and technology names (PhotoCraft, ArtCraft, OpenType, RGB, CMYK, Lab, PSD, PNG, +# JPEG, WebP, OpenEXR, AVIF ...) stay in Latin letters; the trailing "…" of dialog commands is kept. +# Thai has no plural inflection, so plural entries use one form (`plural_none` in i18n.rs). +# Machine-assisted first draft, reviewed for UI terminology; native-speaker review is welcome. +# Layer Mask Display Options (the layer mask rubylith's colour and opacity) + Mask Options… ตัวเลือกมาสก์… + Layer Mask Display Options… ตัวเลือกการแสดงเลเยอร์มาสก์… + +# Channel Options and New Spot Channel (#3761) + Channel Color สีของช่อง + Color Indicates: สีบ่งบอกถึง: + Solidity: ความแข็งแกร่ง: + Ink Characteristics ลักษณะหมึก + +# Menus + +# Guide layout dialog + +# Custom print paper (#3820) + Paper Width ความกว้างของกระดาษ + Paper Height ความสูงของกระดาษ + Rows แถว + Number หมายเลข + Margin ขอบ + Top: ด้านบน: + Left: ซ้าย: + Bottom: ก้น: + Right: ขวา: + Target: เป้าหมาย: + Selected Artboards อาร์ตบอร์ดที่เลือก + Center Columns คอลัมน์กลาง + Clear Existing Guides ล้างคำแนะนำที่มีอยู่ + Invalid guide layout รูปแบบคำแนะนำไม่ถูกต้อง + Leave empty for automatic size เว้นว่างไว้สำหรับขนาดอัตโนมัติ + 5 Columns, 3 Rows 5 คอลัมน์ 3 แถว + 8 Columns 8 คอลัมน์ + 12 Columns 12 คอลัมน์ + + File ไฟล์ + Edit แก้ไข + Image ภาพ + Layer เลเยอร์ + Type ตัวอักษร + Select เลือก + Selected เลือกแล้ว + Scope ขอบเขต + Top Left ซ้ายบน + Top Right ขวาบน + Bottom Left ล่างซ้าย + Bottom Right ล่างขวา + Filter ฟิลเตอร์ + View มุมมอง + Window หน้าต่าง + Help ช่วยเหลือ + +# File + New… ใหม่… + New from Clipboard ใหม่จากคลิปบอร์ด + New ใหม่ + Open… เปิด… + Open เปิด + Open As… เปิดเป็น… + Open EXR Parts… เปิดอะไหล่ EXR… + Add beauty precomp from the AOVs เพิ่มความสวยงามพรีคอมพ์จาก AOVs + Both ทั้งสองอย่าง + Left ซ้าย + Right ถูกต้อง + Open Recent เปิดล่าสุด + Clear Recent Files ล้างไฟล์ล่าสุด + Remove from Recent ลบออกจากล่าสุด + Remove {name} from Recent ลบ {name} ออกจากล่าสุด + Close ปิด + Minimize ย่อเล็กสุด + Maximize ขยายใหญ่สุด + Restore คืนค่า + Close All ปิดทั้งหมด + Close Others ปิดเอกสารอื่น + Save บันทึก + Save As… บันทึกเป็น… + Save a Copy… บันทึกสำเนา… + {name} can't keep everything in this document {name} ไม่สามารถเก็บทุกอย่างไว้ในเอกสารนี้ได้ + Choose a format that keeps it, such as Photoshop (PSD), or save a copy. เลือกรูปแบบที่จะเก็บไว้ เช่น Photoshop (PSD) หรือบันทึกสำเนา + Save… บันทึก… + Revert ย้อนกลับ + Import นำเข้า + Import Presets นำเข้าค่าที่ตั้งล่วงหน้า + Export As… ส่งออกเป็น… + Export ส่งออก + Export… ส่งออก… + Quick Export As PNG ส่งออกอย่างรวดเร็วเป็น PNG + Quick Export as PNG ส่งออกเป็น PNG อย่างรวดเร็ว + Place Embedded… วางที่ฝัง… + Place Linked… สถานที่ที่เชื่อมโยง… + Package… แพ็คเกจ… + Save for Web (Legacy)… บันทึกสำหรับเว็บ (ดั้งเดิม)… + Generate สร้าง + Image Assets เนื้อหาภาพ + +# Edit + Undo เลิกทำ + Redo ทำซ้ำ + Fade… จางลง… + Cut ตัด + Copy คัดลอก + Copy Merged คัดลอกรวม + Paste วาง + Paste Special วางแบบพิเศษ + Paste Into วางลงใน + Paste Outside วางด้านนอก + Paste in Place วางในตำแหน่งเดิม + Clear ล้าง + Search ค้นหา + Search… ค้นหา… + Check Spelling… ตรวจสอบการสะกด… + Fill… เติม… + Stroke… เส้นขอบ… + Content-Aware Fill… เติมอย่างชาญฉลาด… + Delete and Fill Selection ลบและเติมส่วนที่เลือก + Define Brush Preset… กำหนดพรีเซ็ตแปรง… + Define Pattern… กำหนดลวดลาย… + Define Custom Shape… กำหนดรูปร่างที่กำหนดเอง… + Purge ล้างข้อมูล + +# Image + Image Size… ขนาดภาพ… + Image Size ขนาดภาพ + Canvas Size… ขนาดผ้าใบ… + Image Rotation การหมุนภาพ + Rotate 90° Clockwise หมุน 90° ตามเข็มนาฬิกา + Rotate 90° Counter Clockwise หมุน 90° ทวนเข็มนาฬิกา + Rotate 180° หมุน 180° + Flip Canvas Horizontal พลิกผ้าใบแนวนอน + Flip Canvas Vertical พลิกผ้าใบแนวตั้ง + Crop ครอป + Crop and Straighten Photos ครอบตัดและปรับภาพให้ตรง + Trim… ตัดขอบ… + Reveal All แสดงทั้งหมด + Hide Selection ซ่อนการเลือก + Auto Tone โทนอัตโนมัติ + Auto Contrast คอนทราสต์อัตโนมัติ + Auto Color สีอัตโนมัติ + Adjustments การปรับแต่ง + 16 Bits/Channel 16 บิต/ช่อง + 32 Bits/Channel 32 บิต/ช่อง + 8 Bits/Channel 8 บิต/ช่อง + 8 bit 8 บิต + Integer จำนวนเต็ม + 16 bit 16 บิต + 32 bit (float) 32 บิต (โฟลต) + Floating point จุดลอยตัว + Mode โหมด + Grayscale โทนสีเทา + RGB Color สี RGB + CMYK Color สี CMYK + Lab Color สี Lab + Indexed Color สีแบบจัดดัชนี + Multichannel หลายช่องสัญญาณ + Bitmap… บิตแมป… + Bitmap บิตแมป + Duotone… ดูโอโทน… + Duotone ดูโอโทน + Trap… กับดัก… + +# Layer + Layer via Copy เลเยอร์ผ่านการคัดลอก + Layer via Cut เลเยอร์ผ่านการตัด + Duplicate Layer… ทำซ้ำเลเยอร์… + Duplicate… ทำสำเนา… + Delete ลบ + Delete Layer ลบเลเยอร์ + Delete Layers ลบเลเยอร์ + Rename Layer เปลี่ยนชื่อเลเยอร์ + Layer From Background… เลเยอร์จากพื้นหลัง… + Layer from Background… เลเยอร์จากพื้นหลัง… + Background from Layer พื้นหลังจากเลเยอร์ + Background From Layer พื้นหลังจากเลเยอร์ + Group Layers จัดกลุ่มเลเยอร์ + Group… กลุ่ม… + Ungroup Layers แยกกลุ่มเลเยอร์ + Group from Layers… จัดกลุ่มจากเลเยอร์… + New Group from Layers… กลุ่มใหม่จากเลเยอร์… + Hide Layers ซ่อนเลเยอร์ + Arrange จัดเรียง + Bring to Front นำมาไว้ข้างหน้า + Bring Forward นำไปข้างหน้า + Send Backward ส่งกลับ + Send to Back ส่งกลับ + Convert to Smart Object แปลงเป็นวัตถุอัจฉริยะ + Convert for Smart Filters แปลงสำหรับสมาร์ตฟิลเตอร์ + New Smart Object via Copy สมาร์ตออบเจกต์ใหม่ผ่านการคัดลอก + Edit Contents แก้ไขเนื้อหา + Replace Contents… แทนที่เนื้อหา… + Export Contents… ส่งออกเนื้อหา… + Rasterize แรสเตอร์ไรซ์ + Rasterize Type แรสเตอร์ไรซ์ตัวอักษร + Rasterize Shape แปลงรูปร่างเป็นแรสเตอร์ + Rasterize Layer แรสเตอร์เลเยอร์ + Rasterize Layers แรสเตอร์เลเยอร์ + New Adjustment Layer เลเยอร์ปรับแต่งใหม่ + New Fill Layer เลเยอร์เติมสีใหม่ + Layer Mask มาสก์เลเยอร์ + Add Layer Mask เพิ่มเลเยอร์มาสก์ + Delete Layer Mask ลบเลเยอร์มาสก์ + Enable Layer Mask เปิดใช้งานเลเยอร์มาสก์ + Disable Layer Mask ปิดการใช้งานเลเยอร์มาสก์ + Apply Layer Mask ใช้เลเยอร์มาสก์ + Add Mask to Selection เพิ่มมาสก์ลงในส่วนที่เลือก + Subtract Mask from Selection ลบมาสก์ออกจากส่วนที่เลือก + Intersect Mask with Selection ตัดกันมาสก์กับส่วนที่เลือก + Link Layer Mask ลิงค์เลเยอร์มาสก์ + Unlink Layer Mask ยกเลิกการเชื่อมโยงเลเยอร์มาสก์ + Vector Mask มาสก์เวกเตอร์ + Add Vector Mask เพิ่มเวกเตอร์มาสก์ + Delete Vector Mask ลบเวกเตอร์มาสก์ + Enable Vector Mask เปิดใช้งานเวกเตอร์มาสก์ + Link Vector Mask ลิงค์เว็กเตอร์มาสก์ + Create Clipping Mask สร้างมาสก์ตัด + Release Clipping Mask ปล่อยมาสก์ตัด + New Shape Layer เลเยอร์รูปร่างใหม่ + New Type Layer เลเยอร์ตัวอักษรใหม่ + New Video Layer from File… เลเยอร์วิดีโอใหม่จากไฟล์… + New Blank Video Layer เลเยอร์วิดีโอเปล่าใหม่ + Smart Filters ฟิลเตอร์อัจฉริยะ + Delete Smart Filters ลบฟิลเตอร์อัจฉริยะ + Enable Smart Filters เปิดใช้งานฟิลเตอร์อัจฉริยะ + Disable Smart Filters ปิดการใช้งานฟิลเตอร์อัจฉริยะ + Clear Smart Filters ล้างฟิลเตอร์อัจฉริยะ + Delete Filter Mask ลบมาสก์ฟิลเตอร์ + Disable Filter Mask ปิดการใช้งานฟิลเตอร์มาสก์ + New Layer Based Slice สไลซ์ใหม่ที่อ้างอิงเลเยอร์ + Layer Style สไตล์เลเยอร์ + Blending Options… ตัวเลือกการผสม… + Blending Options ตัวเลือกการผสม + Drop Shadow… วางเงา… + Inner Shadow… เงาภายใน… + Outer Glow… ภายนอกเรืองแสง… + Inner Glow… เปล่งประกายภายใน… + Bevel & Emboss… เอียงและนูน… + Use Global Light ใช้แสงสากล + Overprint พิมพ์ทับ + Satin… ผ้าซาติน… + Color Overlay… การซ้อนทับสี… + Gradient Overlay… การซ้อนทับแบบไล่ระดับสี… + Pattern Overlay… การซ้อนทับรูปแบบ… + Bevel & Emboss เอียงและนูน + Inner Shadow เงาภายใน + Inner Glow เรืองแสงภายใน + Satin ผ้าซาติน + Color Overlay การซ้อนทับสี + Gradient Overlay การซ้อนทับแบบไล่ระดับสี + Pattern Overlay การซ้อนทับรูปแบบ + Outer Glow เรืองแสงด้านนอก + Drop Shadow วางเงา + Copy Layer Style คัดลอกสไตล์เลเยอร์ + Paste Layer Style วางสไตล์เลเยอร์ + Clear Layer Style ล้างสไตล์เลเยอร์ + Layer Content Options… ตัวเลือกเนื้อหาเลเยอร์… + Scale Effects… สเกลเอฟเฟกต์… + New Layer… เลเยอร์ใหม่… + Delete Layer… ลบเลเยอร์… + +# Type + Font แบบอักษร + Font Preview Size ขนาดตัวอย่างแบบอักษร + Orientation ปฐมนิเทศ + Horizontal แนวนอน + Vertical แนวตั้ง + Rasterize Type Layer แรสเตอร์ไรซ์เลเยอร์ตัวอักษร + Create Work Path สร้างเส้นทางการทำงาน + Convert to Shape แปลงเป็นรูปร่าง + Convert to Paragraph Text แปลงเป็นข้อความย่อหน้า + Convert to Point Text แปลงเป็นจุดข้อความ + Warp Text… ข้อความวาร์ป… + Character Panel แผงตัวละคร + Paragraph Panel แผงย่อหน้า + Check Spelling ตรวจสอบการสะกด + Language Options ตัวเลือกภาษา + Find and Replace Text… ค้นหาและแทนที่ข้อความ… + Add to Dictionary เพิ่มลงในพจนานุกรม + No Spelling Suggestions ไม่มีคำแนะนำการสะกดคำ + Paste Lorem Ipsum วาง Lorem Ipsum + Glyphs Panel แผงร่ายมนตร์ + Type Styles สไตล์ตัวอักษร + Character Styles ลักษณะตัวละคร + Paragraph Styles ลักษณะย่อหน้า + Load Default Type Styles โหลดสไตล์ตัวอักษรเริ่มต้น + Save Default Type Styles บันทึกสไตล์ตัวอักษรเริ่มต้น + Type… ตัวอักษร… + +# Select + All ทั้งหมด + Deselect ยกเลิกการเลือก + Reselect เลือกใหม่ + Inverse Selection การเลือกแบบผกผัน + Inverse กลับด้าน + Color Range… ช่วงสี… + Select and Mask… เลือกและมาสก์… +# Select and Mask dialog labels + Smart Radius รัศมีอัจฉริยะ + Shift Edge เลื่อนขอบ + Decontaminate ฆ่าเชื้อ + Output เอาท์พุต + Refine Edge ปรับแต่งขอบ + Select Subject เลือกตัวแบบ + Sky ท้องฟ้า + Focus Area… พื้นที่โฟกัส… + Subject เรื่อง + Color Range ช่วงสี + Similar คล้ายกัน + Grow ขยาย + Select Similar Colors เลือกสีที่คล้ายกัน + Load Selection… โหลดการเลือก… + Save Selection… บันทึกการเลือก… + New Selection การคัดเลือกใหม่ + Select All เลือกทั้งหมด + Deselect All ยกเลิกการเลือกทั้งหมด + Deselect Layers ยกเลิกการเลือกเลเยอร์ + Find Layers ค้นหาเลเยอร์ + Isolate Layers แยกเลเยอร์ + Select Linked Layers เลือกเลเยอร์ที่เชื่อมโยง + All Layers ทุกเลเยอร์ + Current & Below ปัจจุบันและต่ำกว่า + Current Layer เลเยอร์ปัจจุบัน + Refine Strokes ปรับแต่งจังหวะ + Edits แก้ไข + +# Filter + Last Filter ฟิลเตอร์ล่าสุด + Filter Gallery… แกลเลอรีฟิลเตอร์… + Liquify… ทำให้เหลว… + Camera Raw Filter… ฟิลเตอร์ Camera Raw… + Adaptive Wide Angle… มุมกว้างแบบปรับได้… + Lens Correction… การแก้ไขเลนส์… + Vanishing Point… จุดลับสายตา… + Oil Paint… สีน้ำมัน… + Blur Gallery แกลเลอรี่เบลอ + Field Blur… ฟิลด์เบลอ… +# Field Blur pins (#3373) + No pin selected ไม่ได้เลือกพิน + Click the image to add a pin; drag a pin to move it, or its ring to change its blur. Delete removes the selected pin. คลิกที่ภาพเพื่อเพิ่มหมุด ลากหมุดเพื่อย้าย หรือลากวงแหวนเพื่อเปลี่ยนความเบลอ ลบ ลบพินที่เลือก + Drag the handles on the outline to resize and turn it, the square to round its corners, and the dots inside to set where the blur starts. ลากขอบจับบนโครงร่างเพื่อปรับขนาดและหมุน ลากสี่เหลี่ยมเพื่อปัดเศษมุม และลากจุดด้านในเพื่อกำหนดจุดเริ่มต้นของการเบลอ + Drag the pin to move the band, or its ring to change its blur. Drag the solid lines to widen the sharp band, the dashed lines to set the transition, and the dots to turn it. ลากหมุดเพื่อย้ายสายรัด หรือลากวงแหวนเพื่อเปลี่ยนความเบลอ ลากเส้นทึบเพื่อขยายแถบคม เส้นประเพื่อกำหนดการเปลี่ยนภาพ และลากจุดเพื่อหมุน + Drag the handles on the outline to resize and turn it; the ring sets the blur angle. ลากขอบจับบนโครงร่างเพื่อปรับขนาดและหมุน วงแหวนจะกำหนดมุมเบลอ + Blur Angle มุมเบลอ + Iris Blur… ไอริสเบลอ… + Tilt-Shift… เอียง-Shift… + Path Blur… เส้นทางเบลอ… + Spin Blur… หมุนเบลอ… + Auto-Align Layers… ปรับแนวเลเยอร์อัตโนมัติ… + Auto-Blend Layers… ผสมผสานเลเยอร์อัตโนมัติ… + Photomerge… รวมภาพ… + Content-Aware Scale ปรับขนาดอย่างชาญฉลาด + Adaptive Wide Angle มุมกว้างแบบปรับได้ + Apply Image… ใช้ภาพ… + Calculations… การคำนวณ… + Crystallize… ตกผลึก… + Facet ด้าน + Fragment แฟรกเมนต์ + Mosaic… โมเสก… + Pointillize… เล็ง… + Chalk & Charcoal ชอล์กและถ่าน + Charcoal ถ่าน + Chrome โครเมียม + Conté Crayon คอนเต้ เครยอน + Graphic Pen ปากกากราฟฟิค + Halftone Pattern รูปแบบฮาล์ฟโทน + Note Paper กระดาษโน๊ต + Photocopy ถ่ายเอกสาร + Plaster พลาสเตอร์ + Reticulation การกำหนดซ้ำ + Stamp แสตมป์ + Torn Edges ขอบฉีกขาด + Water Paper กระดาษน้ำ + Clouds เมฆ + Difference Clouds ความแตกต่างเมฆ + Fibers… เส้นใย… + Lens Flare… เลนส์แฟลร์… + Picture Frame… กรอบรูป… + Tree… ต้นไม้… + Flame… เปลวไฟ… + Sharpen Edges ปรับขอบให้คมขึ้น + Dust & Scratches… ฝุ่นและรอยขีดข่วน… + Noise สัญญาณรบกวน + Add Noise… เพิ่มเสียงรบกวน… + Reduce Noise… ลดเสียงรบกวน… + Despeckle เดสเปคเคิล + Median… ค่ามัธยฐาน… + Median ค่ามัธยฐาน + Maximum… สูงสุด… + Maximum สูงสุด + Minimum… ขั้นต่ำ… + Minimum ขั้นต่ำ + Custom… กำหนดเอง… + High Pass… ผ่านสูง… + Emboss… ลายนูน… + Extrude… ขับไล่… + Find Edges ค้นหาขอบ + Solarize แสงอาทิตย์ + Tiles… กระเบื้อง… + Trace Contour… ติดตาม Contour… + Wind… ลม… + Offset… ออฟเซ็ต… + Pinch… หยิก… + Polar Coordinates… พิกัดเชิงขั้ว… + Ripple… ระลอกคลื่น… + Shear… แรงเฉือน… + Spherize… ทรงกลม… + Twirl… หมุน… + Wave… คลื่น… + ZigZag… ซิกแซก… + Average เฉลี่ย + Blur More เบลอมากขึ้น + Box Blur… กล่องเบลอ… + Gaussian Blur… เบลอแบบเกาส์เซียน… + Motion Blur… โมชั่นเบลอ… + Radial Blur… เรเดียลเบลอ… + Shape Blur… รูปร่างเบลอ… + Smart Blur… สมาร์ทเบลอ… + Surface Blur… พื้นผิวเบลอ… + Sharpen ทำให้คมชัด + Sharpen More ทำให้คมชัดมากขึ้น + Unsharp Mask… มาสก์ปรับความคมชัด… + Smart Sharpen… ทำให้คมชัดอัจฉริยะ… + Diffuse… กระจาย… + Mezzotint… เมซโซตินต์… + Color Halftone… ฮาล์ฟโทนสี… + Layer… เลเยอร์… + +# View + Proof Setup การตั้งค่าการพิสูจน์ + Proof Colors สีหลักฐาน + Pixel Aspect Ratio อัตราส่วนพิกเซล + Pixel Aspect Ratio Correction การแก้ไขอัตราส่วนพิกเซล + Zoom In ซูมเข้า + Zoom Out ซูมออก + Fit on Screen พอดีหน้าจอ + 100% 100% + 105% 105% + 110% 110% + 115% 115% + 120% 120% + 200% 200% + 75% 75% + 80% 80% + 85% 85% + 90% 90% + 95% 95% + 125% 125% + 150% 150% + 175% 175% + 250% 250% + 300% 300% + Print Size ขนาดการพิมพ์ + Screen Mode โหมดหน้าจอ + Standard Screen Mode โหมดหน้าจอมาตรฐาน + Full Screen Mode With Menu Bar โหมดเต็มหน้าจอพร้อมแถบเมนู + Full Screen Mode โหมดเต็มหน้าจอ + Extras บริการพิเศษ + Show แสดง + Rulers ไม้บรรทัด + Grid ตาราง + Guides เส้นไกด์ + Slices ชิ้น + Snap ดูดติด + Snap To สแน็ปไปที่ + Lock Guides ล็อคคำแนะนำ + Clear Guides ล้างคำแนะนำ + New Guide… คู่มือใหม่… + Lock Slices ล็อคชิ้น + Clear Slices ล้างชิ้น + New Guide Layout… เค้าโครงคำแนะนำใหม่… + New Guides From Shape คำแนะนำใหม่จาก Shape + Canvas rotation การหมุนผืนผ้าใบ + Zoom in ซูมเข้า + Zoom out ซูมออก + +# Window + Cascade น้ำตก + Tile กระเบื้อง + 2-up Horizontal แนวนอน 2 อัพ + 3-up Horizontal แนวนอน 3 อัพ + 2-up Vertical แนวตั้ง 2 ขึ้นไป + 3-up Vertical แนวตั้ง 3 ขึ้นไป + 3-up Stacked 3-up ซ้อนกัน + 4-up 4 อัพ + 6-up 6 อัพ + Consolidate All to Tabs รวมทั้งหมดไว้ในแท็บ + Match Zoom จับคู่ซูม + Match Location จับคู่ตำแหน่ง + Match Rotation การหมุนการแข่งขัน + Match All ตรงทั้งหมด + New Window for Document หน้าต่างใหม่สำหรับเอกสาร + Workspace พื้นที่ทำงาน + Extensions ส่วนขยาย + Panels แผง + Actions การดำเนินการ + Brush Settings การตั้งค่าแปรง + Brushes แปรง + Channels ช่อง + Character ตัวละคร + Clone Source แหล่งที่มาของโคลน + Color Mixer เครื่องผสมสี + Glyphs ร่ายมนตร์ + Gradients การไล่ระดับสี + Histogram ฮิสโตแกรม + History ประวัติศาสตร์ + Info ข้อมูล + Layer Comps คอมพ์เลเยอร์ + Layers เลเยอร์ + Measurement Log บันทึกการวัด + Notes หมายเหตุ + Navigator นาวิเกเตอร์ + Paragraph ย่อหน้า + Paths เส้นทาง + Patterns รูปแบบ + Properties คุณสมบัติ + Styles สไตล์ + Swatches สวอตช์ + Timeline ไทม์ไลน์ + Tool Presets ค่าที่ตั้งไว้ล่วงหน้าของเครื่องมือ + Tools เครื่องมือ + Libraries ห้องสมุด + 3D 3D + Toolbars แถบเครื่องมือ + Hide All ซ่อนทั้งหมด + +# Help + About PhotoCraft เกี่ยวกับ PhotoCraft + PhotoCraft Website เว็บไซต์PhotoCraft + PhotoCraft on GitHub PhotoCraftบน GitHub + Report an Issue… รายงานปัญหา… + ArtCraft Website เว็บไซต์อาร์ตคราฟต์ + Join the ArtCraft Discord… เข้าร่วม ArtCraft Discord… + System Info… ข้อมูลระบบ… + +# Tools and options bar + Move ย้าย + Marquee กระโจม + Lasso ลาสโซ + Wand ไม้กายสิทธิ์ + Eyedropper ยาหยอดตา + Brush แปรง + Block บล็อก + Pencil ดินสอ + Eraser ยางลบ + Clone Stamp โคลนแสตมป์ + Healing การรักษา + Blur เบลอ + Dodge ดอดจ์ + Burn เผา + Gradient การไล่ระดับสี + Shape รูปร่าง + Pen ปากกา + Hand มือ + Zoom ซูม + Sampler เครื่องเก็บตัวอย่าง + Ruler Tool เครื่องมือไม้บรรทัด + Count Tool เครื่องมือนับ + Note tool เครื่องมือบันทึก + Quick Selection การเลือกอย่างรวดเร็ว + Magnetic Lasso บ่วงแม่เหล็ก + Mixer Brush แปรงมิกเซอร์ + Mixer Brush Tool เครื่องมือแปรงมิกเซอร์ + Color Replacement Tool เครื่องมือเปลี่ยนสี + History Brush แปรงประวัติศาสตร์ + Art History Brush แปรงประวัติศาสตร์ศิลปะ + Pattern Stamp แสตมป์รูปแบบ + Spot Healing การรักษาเฉพาะจุด + Red Eye ตาแดง + Patch แพทช์ + Content-Aware Move การเคลื่อนไหวแบบรับรู้เนื้อหา + Rotate View หมุนมุมมอง + Perspective Crop ครอบตัดเปอร์สเปคทีฟ + Color Replacement การเปลี่ยนสี + Dodge/Burn ดอดจ์/เบิร์น + Foreground เบื้องหน้า + Background พื้นหลัง + Set foreground color ตั้งค่าสีพื้นหน้า + Set background color ตั้งค่าสีพื้นหลัง + Swap colours (X) สลับสี (X) + Default colours (D) สีเริ่มต้น (D) + Brush Tool Options ตัวเลือกเครื่องมือแปรง + Opacity ความทึบ + Flow ไหล + Smoothing ปรับให้เรียบ + Size ขนาด + Hardness ความแข็ง + Angle: มุม: + Roundness: ความกลม: + Spacing ระยะห่าง + Dynamics ไดนามิกส์ + Pressure ความกดดัน + Tilt เอียง + Rotation การหมุน + Align จัดตำแหน่ง + Aligned จัดตำแหน่ง + +# Panels, dialogs and common widgets + OK ตกลง + Cancel ยกเลิก + Cancel (Esc) ยกเลิก (Esc) + Manage submitted jobs in the system print queue จัดการงานที่ส่งในคิวการพิมพ์ของระบบ + Done เสร็จสิ้น + Apply นำไปใช้ + Reset รีเซ็ต + Reset Section รีเซ็ตส่วน + Reset All to Defaults รีเซ็ตทั้งหมดเป็นค่าเริ่มต้น + Import Shortcuts… นำเข้าทางลัด… + Load a keyboard shortcut set saved as .kys โหลดชุดแป้นพิมพ์ลัดที่บันทึกเป็น .kys + Imported {n} shortcuts from {file}. Click OK to keep them. นำเข้าทางลัด {n} จาก {file} คลิกตกลงเพื่อเก็บไว้ + {n} commands are not in PhotoCraft. คำสั่ง {n} ไม่ได้อยู่ใน PhotoCraft + Keyboard shortcuts imported นำเข้าแป้นพิมพ์ลัดแล้ว + Your keyboard shortcut set {set} is in use here: {n} shortcuts differ from the defaults. Edit › Keyboard Shortcuts shows them; Reset All to Defaults undoes this. ชุดแป้นพิมพ์ลัดของคุณ {set} ใช้งานอยู่ที่นี่: แป้นพิมพ์ลัด {n} แตกต่างจากค่าเริ่มต้น แก้ไข › แป้นพิมพ์ลัดจะแสดงข้อมูลเหล่านั้น รีเซ็ตทั้งหมดเป็นค่าเริ่มต้นจะเลิกทำสิ่งนี้ + Import keyboard shortcuts? นำเข้าแป้นพิมพ์ลัดใช่ไหม + PhotoCraft found your keyboard shortcut set {set} from another image editor on this computer: {n} of its shortcuts differ from PhotoCraft's. Import it? PhotoCraft พบชุดแป้นพิมพ์ลัดของคุณ {set} จากโปรแกรมแก้ไขภาพอื่นบนคอมพิวเตอร์เครื่องนี้: ทางลัด {n} แตกต่างจากของ PhotoCraft นำเข้าเหรอ? + Edit › Keyboard Shortcuts › Reset All to Defaults undoes an import. แก้ไข › แป้นพิมพ์ลัด › รีเซ็ตทั้งหมดเป็นค่าเริ่มต้น ยกเลิกการนำเข้า + Don't Import อย่านำเข้า + The keyboard shortcut set was not imported: {error} ไม่ได้นำเข้าชุดแป้นพิมพ์ลัด: {error} + Defaults restored. คืนค่าเริ่มต้นแล้ว + Restore Defaults คืนค่าเริ่มต้น + Restore original size คืนขนาดเดิม + Use Default ใช้ค่าเริ่มต้น + Dismiss ยกเลิก + Preview ดูตัวอย่าง + Options ตัวเลือก + Settings… การตั้งค่า… + Rename… เปลี่ยนชื่อ… + Load… โหลด… + Define… กำหนด… + Custom กำหนดเอง + Default ค่าเริ่มต้น + None ไม่มี + Add เพิ่ม + Remove ลบ + Remove Background ลบพื้นหลัง + Rename เปลี่ยนชื่อ + Ignore ไม่สนใจ + Ignore All ละเว้นทั้งหมด + Change เปลี่ยน + Change All เปลี่ยนทั้งหมด + Next frame เฟรมถัดไป + Previous frame เฟรมก่อนหน้า + Play เล่น + Pause หยุดชั่วคราว + Stop หยุด + Begin recording เริ่มการบันทึก + Stop playing/recording หยุดเล่น/บันทึก + Record ● a sequence of edits, then play ▶ it on any document. บันทึก ● ลำดับการแก้ไข จากนั้นเล่น ▶ บนเอกสารใดก็ได้ + Create new action สร้างการกระทำใหม่ + Play selection เลือกเล่น + Create new set สร้างชุดใหม่ + Export selected measurements (CSV) ส่งออกการวัดที่เลือก (CSV) + Record Measurements บันทึกการวัด + Delete selected measurements ลบการวัดที่เลือก + Select Data Points… เลือกจุดข้อมูล… + Set Measurement Scale… ตั้งค่าสเกลการวัด… + Use Measurement Scale ใช้มาตราส่วนการวัด + +# Preferences dialog + Preferences การตั้งค่า + General… ทั่วไป… + Interface… อินเทอร์เฟซ… + File Handling… การจัดการไฟล์… + Performance… ประสิทธิภาพ… + Cursors… เคอร์เซอร์… + Transparency & Gamut… ความโปร่งใสและขอบเขต… + Units & Rulers… หน่วยและผู้ปกครอง… + Guides, Grid & Slices… เส้นบอกแนว ตาราง และสไลซ์… + Plug-ins… ปลั๊กอิน… + Technology Previews ตัวอย่างเทคโนโลยี + Scratch Disks… รอยขีดข่วนดิสก์… + Export Preferences… การตั้งค่าการส่งออก… + Keyboard Shortcuts… แป้นพิมพ์ลัด… + Menus… เมนู… + Export/Import Presets… ส่งออก/นำเข้าค่าที่ตั้งล่วงหน้า… + Additional plugins folder โฟลเดอร์ปลั๊กอินเพิ่มเติม + Install Plug-in… ติดตั้งปลั๊กอิน… + Export Presets ส่งออกค่าที่ตั้งล่วงหน้า + Import brushes (.abr) นำเข้าแปรง (.abr) + Migrate Presets ย้ายค่าที่ตั้งล่วงหน้า + Thumbnail size (smallest: list) ขนาดรูปขนาดย่อ (เล็กที่สุด: รายการ) + Reset GPU Backend รีเซ็ตแบ็กเอนด์ GPU + Applies at next launch. นำไปใช้ในการเปิดตัวครั้งถัดไป + +# Document and canvas status bar + Untitled ไม่มีชื่อ + Untitled-1 ไม่มีชื่อ-1 + Doc: {flat}/{layered} เอกสาร: {flat}/{layered} + Scratch: {size} Scratch: {size} + Efficiency: 100% ประสิทธิภาพ: 100% + Dimensions: ขนาด: + Width ความกว้าง + Slant เอียง + Height ความสูง + Width: ความกว้าง: + Height: ส่วนสูง: + Resolution ความละเอียด + Resolution: ความละเอียด: + Resolution: {dpi} pixels/inch ความละเอียด: {dpi} พิกเซล/นิ้ว + {w} px x {h} px ({ppi} ppi) {w} พิกเซล x {h} พิกเซล ({ppi} ppi) + {w} {unit} x {h} {unit} ({ppi} ppi) {w} {unit} x {h} {unit} ({ppi} ppi) + Pixels: พิกเซล: + Pixel Length: ความยาวพิกเซล: + Logical Length: ความยาวลอจิก: + Logical Units: หน่วยลอจิคัล: + Length: ความยาว: + Interpolation: การแก้ไข: + Resample ตัวอย่าง + Constrain proportions จำกัดสัดส่วน + Link width and height ความกว้างและความสูงของลิงค์ + Maintain aspect ratio รักษาอัตราส่วนภาพ + Current Size ขนาดปัจจุบัน + New Size ขนาดใหม่ + Fit พอดี + Percent เปอร์เซ็นต์ + Pixels/Inch พิกเซล/นิ้ว + Pixels/Centimeter พิกเซล/เซนติเมตร + Relative ญาติ + Canvas extension color: สีส่วนขยายของผ้าใบ: + Anchor: สมอ: + Both Axes ขวานทั้งสอง + Horizontally แนวนอน + Vertically ในแนวตั้ง + +# Layers panel + Layers to Files… เลเยอร์เป็นไฟล์… + Duplicate Layers… ทำซ้ำเลเยอร์… + Group name ชื่อกลุ่ม + New Group กลุ่มใหม่ + Layer Comp คอมพ์เลเยอร์ + Create new layer สร้างเลเยอร์ใหม่ + Create new group สร้างกลุ่มใหม่ + Create new channel สร้างช่องใหม่ + Create new path สร้างเส้นทางใหม่ + Toggle visibility สลับการมองเห็น + Clipped ตัดแล้ว + Group · {n} layer กลุ่ม · {n} เลเยอร์ + Lock: keep these settings when picking another preset ล็อค: เก็บการตั้งค่าเหล่านี้ไว้เมื่อเลือกค่าที่ตั้งไว้ล่วงหน้าอื่น + Unlock: picking a preset replaces these settings ปลดล็อค: การเลือกค่าที่ตั้งล่วงหน้าจะแทนที่การตั้งค่าเหล่านี้ + Show the layer's effects ({key}-click: all layers) แสดงเอฟเฟกต์ของเลเยอร์ ({key}-click: ทุกเลเยอร์) + Hide the layer's effects ({key}-click: all layers) ซ่อนเอฟเฟกต์ของเลเยอร์ ({key}-click: ทุกเลเยอร์) + Expand group ({key}-click: all groups) ขยายกลุ่ม ({key}-คลิก: ทุกกลุ่ม) + Collapse group ({key}-click: all groups) ยุบกลุ่ม ({key}-คลิก: ทุกกลุ่ม) + Effects ผลกระทบ + Blending การผสม + Blend If ผสมผสานถ้า + General Blend ส่วนผสมทั่วไป + Advanced Blending การผสมขั้นสูง + Opacity: ความทึบ: + Fill: กรอก: + Lock: ล็อค: + Smart Filter ฟิลเตอร์อัจฉริยะ + Fill Content เติมเนื้อหา + Adjustment Preview ดูตัวอย่างการปรับ + +# Channels panel + Channel: ช่องทาง: + Channel Mixer… ผสมช่องสัญญาณ… + Output Channel: ช่องสัญญาณออก: + RGB RGB + Red สีแดง + Green สีเขียว + Blue สีฟ้า + Alpha อัลฟ่า + Load channel as selection โหลดช่องเป็นตัวเลือก + Save selection as channel บันทึกการเลือกเป็นช่อง + Delete current channel ลบช่องปัจจุบัน + Spot Channel ช่องสปอต + Mask All มาสก์ทั้งหมด + Mask All Objects ปิดบังวัตถุทั้งหมด + +# Color picker and swatches + Color สี + Color: สี: + Colors สี + HSB/HSL HSB/HSL + No Color ไม่มีสี + Set shape fill type กำหนดประเภทการเติมรูปร่าง + Set shape stroke type กำหนดประเภทเส้นโครงร่าง + Set the text color ตั้งค่าสีข้อความ + Create warped text สร้างข้อความบิดเบี้ยว + Only Web Colors เฉพาะสีเว็บเท่านั้น + Overlay Color สีซ้อนทับ + Overlay Opacity ความทึบของการซ้อนทับ + Glow Color สีเรืองแสง + Web Snap เว็บสแนป + +# Filters and adjustments dialogs + Brightness ความสว่าง + Contrast คอนทราสต์ + Brightness/Contrast… ความสว่าง/คอนทราสต์… + Levels… ระดับ… + Curves… เส้นโค้ง… + Curve เส้นโค้ง + Exposure… การรับแสง… + Exposure การเปิดรับแสง + Vibrance… ความสดใส… + Vibrance ความมีชีวิตชีวา + Hue/Saturation… สี/ความอิ่มตัว… + Hue สี + Saturation ความอิ่มตัว + Lightness ความเบา + Color Balance… สมดุลสี… + Black & White… ขาวดำ… + Photo Filter… ฟิลเตอร์ภาพถ่าย… + Color Lookup… ค้นหาสี… + Color Lookup Tables… ตารางค้นหาสี… + 3D LUT File ไฟล์ 3D LUT + Load 3D LUT… โหลด 3D LUT… + Invert… กลับด้าน… + Invert กลับสี + Invert has no settings. Invert ไม่มีการตั้งค่า + Threshold… ขีดจำกัด… + Threshold Level ระดับเกณฑ์ + Posterize… โพสเตอร์ไรซ์… + Gradient Map… แมปไล่ระดับ… + Selective Color… เลือกสี… + Match Color… จับคู่สี… + Replace Color… แทนที่สี… + Equalize ปรับให้เท่ากัน + HDR Toning… โทน HDR… + Shadows/Highlights… เงา/ไฮไลต์… + Amount จำนวน + Radius รัศมี + Radius: รัศมี: + Tolerance: ความอดทน: + Density ความหนาแน่น + Density: ความหนาแน่น: + Feather ขนนก + Feather… ขอบฟุ้ง… + Anti-alias ต่อต้านนามแฝง + Anti-Alias ต่อต้านนามแฝง + Contiguous ติดกัน + Sample All Layers ตัวอย่างเลเยอร์ทั้งหมด + Protect Foreground Color ปกป้องสีพื้นหน้า + Matte แมท + Matting เครื่องปูลาด + Color Decontaminate… ขจัดคราบสี… + Remove Black Matte ลบสีดำด้าน + Remove White Matte ลบไวท์แมตต์ + Defringe… กำลังละลาย… + Source แหล่งที่มา + Working CMYK การทำงานของ CMYK + Working Cyan Plate แผงสีฟ้าทำงาน + Working Magenta Plate แผงสีม่วงแดงทำงาน + Working Yellow Plate จานเหลืองทำงาน + Working Black Plate จานดำทำงาน + Working Gray Plate แผ่นสีเทาทำงาน + +# Camera Raw and lens dialogs + Basic ขั้นพื้นฐาน + Detail รายละเอียด + HSL/Grayscale HSL/ระดับสีเทา + Tone Curve โทนสีโค้ง + Split Toning แยกโทนนิ่ง + Lens Corrections การแก้ไขเลนส์ + Camera Calibration การปรับเทียบกล้อง + Presets ค่าที่ตั้งล่วงหน้า + Snapshots สแนปชอต + Temperature อุณหภูมิ + Tint โทนสี + Exposure: การสัมผัส: + Recovery การกู้คืน + Fill Light เติมแสง + Blacks คนผิวดำ + Clarity ความชัดเจน + Convert to Grayscale แปลงเป็นระดับสีเทา + Auto อัตโนมัติ + Auto collapse icon panels แผงไอคอนยุบอัตโนมัติ + Auto show hidden panels แสดงแผงที่ซ่อนอยู่โดยอัตโนมัติ + Auto show home screen แสดงหน้าจอหลักอัตโนมัติ + Sharpness ความคม + Noise Reduction ลดเสียงรบกวน + Color Noise Reduction การลดสัญญาณรบกวนสี + Luminance Detail รายละเอียดความสว่าง + Color Detail รายละเอียดสี + Luminance Smoothness ความนุ่มนวลของความสว่าง + Vignetting วิกเนต + White Balance: As Shot สมดุลแสงขาว: เท่าที่ถูกถ่าย + Camera Raw… กล้องดิบ… + Camera Raw isn't open Camera Raw ไม่เปิด + Dehaze ลดหมอกควัน + Texture พื้นผิว + Focal Length ทางยาวโฟกัส + Make ทำ + Model รุ่น + Lens เลนส์ + F เอฟ + ISO ไอเอสโอ + Focal Length35mm ทางยาวโฟกัส 35 มม + Aspect Ratio อัตราส่วนภาพ + Time เวลา + Artist ศิลปิน + Copyright ลิขสิทธิ์ + Enter description… ป้อนคำอธิบาย… + Adobe RGB (1998) compatible รองรับ Adobe RGB (1998) + Gray Gamma 2.2 แกมมาสีเทา 2.2 + ColorSync ColorSync + ProPhoto โปรโฟโต้ + sRGB sRGB + ACES เอซ + Industry Standard มาตรฐานอุตสาหกรรม + Web เว็บ + Internet Standard RGB RGB มาตรฐานอินเทอร์เน็ต + Legacy Macintosh RGB Macintosh RGB รุ่นเก่า + Monitor RGB ตรวจสอบ RGB + Windows LCD วินโดว์จอแอลซีดี + Coated CMYK เคลือบสี CMYK + Uncoated CMYK CMYK ที่ไม่เคลือบ + Newspaper หนังสือพิมพ์ + Working Spaces พื้นที่ทำงาน + Color Management Policies นโยบายการจัดการสี + Assign working space กำหนดพื้นที่ทำงาน + Leave as is (don't color manage) ปล่อยไว้เหมือนเดิม (อย่าจัดการสี) + Discard the embedded profile (don't color manage) ละทิ้งโปรไฟล์ที่ฝังไว้ (อย่าจัดการสี) + Embed Color Profile ฝังโปรไฟล์สี + Assign Profile… กำหนดโปรไฟล์… + Convert to Profile… แปลงเป็นโปรไฟล์… + PhotoCraft Manages Colors PhotoCraft จัดการสี + Printer Manages Colors เครื่องพิมพ์จัดการสี + (print to the printer) (พิมพ์ไปยังเครื่องพิมพ์) + Absolute Colorimetric การวัดสีแบบสัมบูรณ์ + Relative Colorimetric การวัดสีสัมพัทธ์ + Perceptual การรับรู้ + Black Point Compensation การชดเชยจุดดำ + Use Legacy ใช้มรดก + Dither ดิเธอร์ + No Dither ไม่มีดิเธอร์ + Diffusion การแพร่กระจาย + Pattern รูปแบบ + Fuzziness: ความคลุมเครือ: + Range: ช่วง: + Select: เลือก: + Detect Faces ตรวจจับใบหน้า + Localize Color Clusters แปลคลัสเตอร์สี + Sample: ตัวอย่าง: + Add to Sample เพิ่มลงในตัวอย่าง + Subtract from Sample ลบออกจากตัวอย่าง + Selections การเลือก + Duplicated selection name ชื่อการเลือกซ้ำกัน + Operation การดำเนินงาน + New channel only ช่องใหม่เท่านั้น + Masked Areas พื้นที่สวมมาสก์ + Selected Areas พื้นที่ที่เลือก + Spot Color สีเฉพาะจุด + Color indicates สีบ่งบอกถึง + +# Adjustments panel + Curves เส้นโค้ง + Levels ระดับ + Color Balance ความสมดุลของสี + Black & White ขาวดำ + Photo Filter ฟิลเตอร์ภาพถ่าย + Color Lookup การค้นหาสี + Threshold เกณฑ์ + Posterize โปสเตอร์ + Brightness/Contrast ความสว่าง/คอนทราสต์ + Channel Mixer มิกเซอร์ช่อง + Gradient Map แผนที่ไล่ระดับสี + Selective Color เลือกสี + +# History panel + History Log… บันทึกประวัติ… + Create Snapshot สร้างสแนปชอต + Delete Snapshot ลบสแนปชอต + New Snapshot สแนปชอตใหม่ + Snapshot 1 ภาพรวม 1 + Step Forward ก้าวไปข้างหน้า + Step Backward ก้าวถอยหลัง + Histories ประวัติศาสตร์ + Nonlinear History ประวัติศาสตร์ไม่เชิงเส้น + Set New Snapshot as Default ตั้งค่าสแนปชอตใหม่เป็นค่าเริ่มต้น + Automatically Create First Snapshot สร้างสแนปชอตแรกโดยอัตโนมัติ + Automatically Create New Snapshot When Saving สร้างสแนปชอตใหม่โดยอัตโนมัติเมื่อบันทึก + Show New Snapshot Dialog by Default แสดงกล่องโต้ตอบสแนปชอตใหม่ตามค่าเริ่มต้น + Clear History ล้างประวัติ + +# Navigator panel + Panel Options… ตัวเลือกแผง… + View menu เมนูมุมมอง + Keep view in sync ให้มุมมองตรงกัน + {zoom}% {zoom}% + +# Brush Settings panel + Brush name ชื่อแปรง + Brush Preview ดูตัวอย่างแปรง + Brush Tip Shape รูปร่างปลายแปรง + Shape Dynamics ไดนามิกส์ของรูปร่าง + Scattering กระจัดกระจาย + Dual Brush แปรงคู่ + Color Dynamics ไดนามิกของสี + Transfer โอน + Brush Pose แปรงโพสท่า + Mouse Controls การควบคุมเมาส์ + Wet Edges ขอบเปียก + Build-up สร้างขึ้น + Protect Texture ปกป้องพื้นผิว + Blend Mode โหมดผสมผสาน + Size Jitter ขนาดกระวนกระวายใจ + Minimum Diameter เส้นผ่านศูนย์กลางขั้นต่ำ + Tilt Scale สเกลเอียง + Angle Jitter มุมกระวนกระวายใจ + Roundness Jitter ความกลมกระวนกระวายใจ + Minimum Roundness ความกลมขั้นต่ำ + Flip X Jitter พลิก X กระวนกระวายใจ + Flip Y Jitter พลิกและกระวนกระวายใจ + Brush Projection การฉายภาพด้วยแปรง + Control: การควบคุม: + Off: the speed of the pointer sets the spacing ปิด: ความเร็วของตัวชี้จะกำหนดระยะห่าง + Fade steps ขั้นตอนจางลง + Pen Pressure แรงกดของปากกา + Pen Tilt ปากกาเอียง + Stylus Wheel ล้อสไตลัส + Initial Direction of Stroke ทิศทางเริ่มต้นของโรคหลอดเลือดสมอง + Direction of Stroke ทิศทางของโรคหลอดเลือดสมอง + Opacity Jitter ความทึบ กระวนกระวายใจ + Flow Jitter กระแสกระวนกระวายใจ + Humidity ความชื้น + Load โหลด + Mix ผสม + Auto Clean Brush แปรงทำความสะอาดอัตโนมัติ + Wet เปียก + Current Brush Load โหลดแปรงปัจจุบัน + Load Brush โหลดแปรง + Clean Brush แปรงทำความสะอาด + Load the brush after each stroke ใส่แปรงหลังการปัดแต่ละครั้ง + Clean the brush after each stroke ทำความสะอาดแปรงหลังการแปรงแต่ละครั้ง + Rate อัตรา + Airbrush: keeps depositing paint while the pointer rests. พู่กัน: เก็บสีไว้ในขณะที่ตัวชี้วางอยู่ + Pulled String Mode โหมดสายดึง + Catch-up on Stroke End ติดตามเรื่อง Stroke End + Adjust for Zoom ปรับเพื่อซูม + Apply Per Tip ใช้ต่อเคล็ดลับ + Hardness: ความแข็ง: + Spacing: ระยะห่าง: + Size: ขนาด: + Flip X พลิก X + Flip Y พลิก Y + Brush Tip ปลายแปรง + Diameter: เส้นผ่านศูนย์กลาง: + New Layer from Brush เลเยอร์ใหม่จากแปรง + Rename Brush… เปลี่ยนชื่อแปรง… + Delete Brush ลบแปรง + Import Brushes… นำเข้าแปรง… + Import Brushes… (.abr or image) นำเข้าแปรง… (.abr หรือภาพ) + Import Brush from Image… นำเข้าแปรงจากภาพ… + Gradient Preset Options ตัวเลือกการไล่ระดับสีล่วงหน้า + Import .GRD นำเข้า .GRD + Choose a gradient file (.grd). เลือกไฟล์ไล่ระดับสี (.grd) + Brush Name ชื่อแปรง + Brush Stroke แปรงจังหวะ + New Brush Preset… พรีเซ็ตแปรงใหม่… + Capture Brush Size in Preset จับขนาดแปรงในการตั้งค่าล่วงหน้า + Include Tool Settings รวมการตั้งค่าเครื่องมือ + Include Color รวมสี + Enter a name for the brush preset ป้อนชื่อสำหรับการตั้งค่าแปรงล่วงหน้า + A brush preset with this name already exists มีแปรงที่ตั้งไว้ล่วงหน้าด้วยชื่อนี้อยู่แล้ว + Brush Preset Options ตัวเลือกพรีเซ็ตแปรง + New Brush แปรงใหม่ + Create new brush from these settings สร้างแปรงใหม่จากการตั้งค่าเหล่านี้ + Update the current brush with these settings อัปเดตแปรงปัจจุบันด้วยการตั้งค่าเหล่านี้ + Reset the brush to the defaults รีเซ็ตแปรงเป็นค่าเริ่มต้น + No brush presets ไม่มีการตั้งค่าแปรงล่วงหน้า + Override Pressure แทนที่ความดัน + Override Tilt แทนที่การเอียง + Override Tilt X แทนที่การเอียง X + Override Tilt Y แทนที่การเอียง Y + Override Rotation แทนที่การหมุน + Apply the pen's tilt and rotation to the tip shape ใช้การเอียงและหมุนของปากกากับรูปร่างปลาย + +# Tool presets + Preset Type ประเภทพรีเซ็ต + Preset Manager… ผู้จัดการที่ตั้งไว้ล่วงหน้า… + Rename Tool Preset… เปลี่ยนชื่อเครื่องมือที่ตั้งไว้ล่วงหน้า… + Delete Tool Preset ลบเครื่องมือที่ตั้งไว้ล่วงหน้า + New Tool Preset พรีเซ็ตเครื่องมือใหม่ + Create new tool preset สร้างพรีเซ็ตเครื่องมือใหม่ + Current Tool Only เครื่องมือปัจจุบันเท่านั้น + No tool presets. ไม่มีการตั้งค่าเครื่องมือล่วงหน้า + No presets for the current tool. ไม่มีการตั้งค่าล่วงหน้าสำหรับเครื่องมือปัจจุบัน + No presets of this type. ไม่มีการตั้งค่าล่วงหน้าประเภทนี้ + Preset: ที่ตั้งไว้ล่วงหน้า: + Preset ที่ตั้งไว้ล่วงหน้า + Presets: ค่าที่ตั้งล่วงหน้า: + +# Paragraph and character panels + Font Size: ขนาดตัวอักษร: + Font size ขนาดตัวอักษร + Type: ตัวอักษร: + Style สไตล์ + Style: Normal สไตล์: ปกติ + Tracking การติดตาม + Kerning การจัดช่องไฟ + Leading เป็นผู้นำ + Auto-Leading อัตโนมัติเลเยอร์นำ + Scale Horizontally มาตราส่วนในแนวนอน + Scale Vertically ปรับขนาดในแนวตั้ง + Baseline Shift การเปลี่ยนแปลงพื้นฐาน + Language ภาษา + Anti-aliasing method วิธีการต่อต้านนามแฝง + Sharp ชาร์ป + Crisp กรอบ + Strong แข็งแรง + Smooth เรียบเนียน + Mac LCD แมคแอลซีดี + Mac Sharp แม็ก ชาร์ป + Mac Crisp แม็ก คริสป์ + Mac Strong แม็ก สตรอง + Mac Smooth แม็ก สมูท + Faux Bold ตัวหนาเทียม + Faux Italic ตัวเอียงเทียม + All Caps ตัวพิมพ์ใหญ่ทั้งหมด + Small Caps หมวกเล็ก + Superscript ตัวยก + Subscript ตัวห้อย + Underline ขีดเส้นใต้ + Strikethrough ขีดทับ + Oldstyle แบบเก่า + Ligature มัด + Alternative ทางเลือก + Hyphenate ยัติภังค์ + Roman โรมัน + Italic ตัวเอียง + Bold ตัวหนา + Bold Italic ตัวหนาตัวเอียง + Light เบา + Medium ปานกลาง + Black ดำ + Thin บาง + Ultra Light อัลตร้าไลท์ + Extra Light แสงพิเศษ + Semi Bold กึ่งหนา + Extra Bold ตัวหนาเป็นพิเศษ + Ultra Bold ตัวหนาเป็นพิเศษ + Condensed อัดแน่น + Left align text จัดข้อความชิดซ้าย + Center text ข้อความตรงกลาง + Right align text จัดข้อความชิดขวา + Justify last left จัดชิดขอบซ้ายสุดท้าย + Justify last centered จัดชิดขอบสุดท้ายให้อยู่กึ่งกลาง + Justify last right ชิดขวาสุดท้าย + Justify all ให้เหตุผลทั้งหมด + Indent Left เยื้องซ้าย + Indent Right เยื้องขวา + First Line Indent เยื้องบรรทัดแรก + Space Before พื้นที่ก่อน + Space After อวกาศหลังจาก + Hanging Punctuation เครื่องหมายวรรคตอนแขวน + Roman Hanging Punctuation เครื่องหมายวรรคตอนแขวนโรมัน + Avoid Widows/Orphans หลีกเลี่ยงแม่ม่าย/เด็กกำพร้า + Compose เขียน + Adobe Single-line Composer Adobe นักแต่งเพลงบรรทัดเดียว + Adobe Every-line Composer Adobe นักแต่งเพลงทุกบรรทัด + Justification การให้เหตุผล + Word Spacing การเว้นวรรคคำ + Letter Spacing การเว้นวรรคจดหมาย + Glyph Scaling การปรับขนาดสัญลักษณ์ + Auto-leading % % นำอัตโนมัติ + Single Word Justification การให้เหตุผลคำเดียว + Alignment การจัดตำแหน่ง + Indent First เยื้องก่อน + Center ศูนย์ + Justify จัดชิดขอบ + +# Glyphs panel + Glyph สัญลักษณ์ + Select a type layer or click into text to insert glyphs เลือกเลเยอร์ตัวอักษรหรือคลิกในข้อความเพื่อแทรกอักขระ + Entire Font แบบอักษรทั้งหมด + Alternates for Current Selection ทางเลือกสำหรับการเลือกปัจจุบัน + Recently Used ใช้ล่าสุด + Digits ตัวเลข + Symbols สัญลักษณ์ + Punctuation เครื่องหมายวรรคตอน + OpenType OpenType + Standard Ligatures ลิเกเจอร์มาตรฐาน + Discretionary Ligatures ดุลยพินิจผูกมัด + Contextual Alternates ทางเลือกตามบริบท + Swash หวด + Titling Alternates การตั้งชื่อทางเลือก + Ornaments เครื่องประดับ + Fractions เศษส่วน + Ordinals ลำดับ + East Asian Features คุณสมบัติของเอเชียตะวันออก + Middle Eastern Features คุณสมบัติของตะวันออกกลาง + +# Paths panel + Path เส้นทาง + Path: เส้นทาง: + Work Path เส้นทางการทำงาน + Path to Illustrator… เส้นทางสู่นักวาดภาพประกอบ… + Make Work Path สร้างเส้นทางการทำงาน + Make Selection ทำการเลือก + Fill Path เติมเส้นทาง + Stroke Path เส้นทางโรคหลอดเลือดสมอง + Clipping Path เส้นทางการตัด + New Path เส้นทางใหม่ + Duplicate Path เส้นทางที่ซ้ำกัน + Rename Path… เปลี่ยนชื่อเส้นทาง… + Delete Path ลบเส้นทาง + Current Path เส้นทางปัจจุบัน + Vector Mask from Current Path เว็กเตอร์มาสก์จากเส้นทางปัจจุบัน + Create new shape from the current path สร้างรูปร่างใหม่จากเส้นทางปัจจุบัน + Drag to move the active shape's path or the Work Path ลากเพื่อย้ายเส้นทางของรูปร่างที่ใช้งานอยู่หรือเส้นทางการทำงาน + Click: select anchor · Drag: move anchor, handle or segment · {shift}-click: add · {alt}-click: whole subpath คลิก: เลือกจุดยึด · ลาก: ย้ายจุดยึด จุดจับ หรือส่วน · {shift}-คลิก: เพิ่ม · {alt}-คลิก: เส้นทางย่อยทั้งหมด + Draw with the Pen tool (P) or make a work path from a selection. วาดด้วยเครื่องมือปากกา (P) หรือสร้างเส้นทางการทำงานจากส่วนที่เลือก + +# Clone Source panel + Source: not set ({key}-click with Clone Stamp) ที่มา: ไม่ได้ตั้งค่า ({key}-คลิกพร้อม Clone Stamp) + Clone source {n} ({key}-click with Clone Stamp to set) แหล่งที่มาของโคลน {n} ({key} คลิกพร้อมกับ Clone Stamp เพื่อตั้งค่า) + {key}-click to set the source {key}-คลิกเพื่อตั้งค่าแหล่งที่มา + Option-click to define a source point to clone from คลิกตัวเลือกเพื่อกำหนดจุดต้นทางที่จะโคลน + Show Overlay แสดงภาพซ้อนทับ + Auto-Hide ซ่อนอัตโนมัติ + W ว + H ฮ + Angle มุม + Scale ปรับขนาด + X เอ็กซ์ + Y ย + Offset ออฟเซ็ต + Reset Transform รีเซ็ตการแปลง + Rotate หมุน + Set horizontal skew ตั้งค่าการเอียงแนวนอน + Set vertical skew ตั้งค่าการเอียงแนวตั้ง + Flip Horizontal พลิกแนวนอน + Flip Vertical พลิกแนวตั้ง + Frame Sync เฟรมซิงค์ + Quick Sync ซิงค์ด่วน + Enabled เปิดใช้งานแล้ว + +# Timeline panel + Create Video Timeline สร้างไทม์ไลน์วิดีโอ + Open a document to use the timeline. เปิดเอกสารเพื่อใช้ไทม์ไลน์ + Video Layers เลเยอร์วิดีโอ + Video วีดีโอ + Audio เสียง + Frame Duration ระยะเวลาของเฟรม + 30 frames @ 30 fps 30 เฟรมที่ 30 เฟรมต่อวินาที + Loop วนซ้ำ + Render Video… เรนเดอร์วิดีโอ… + Split at Playhead แยกที่ Playhead + Delete Timeline ลบไทม์ไลน์ + Reload Frame โหลดเฟรมอีกครั้ง + Restore Frame คืนค่าเฟรม + Insert Blank Frame ใส่กรอบเปล่า + Duplicate Frame เฟรมที่ซ้ำกัน + Delete Frame ลบเฟรม + Restore All Frames คืนค่าเฟรมทั้งหมด + Flatten Frames Into Clips แผ่เฟรมออกเป็นคลิป + Flatten Frames Into Layers แผ่เฟรมออกเป็นเลเยอร์ๆ + Convert Frames > Video Layers แปลงเฟรม > เลเยอร์วิดีโอ + New Video Layer เลเยอร์วิดีโอใหม่ + New Video Group กลุ่มวิดีโอใหม่ + Interpret Footage… ตีความภาพ… + Replace Footage… แทนที่ฟุตเทจ… + Show Altered Video แสดงวิดีโอที่เปลี่ยนแปลง + Limit Playback จำกัดการเล่น + Enable Timeline Quick Config เปิดใช้งานการกำหนดค่าด่วนของไทม์ไลน์ + Set Start Timecode… ตั้งรหัสเวลาเริ่มต้น… + Timecode รหัสเวลา + 30 fps 30 เฟรมต่อวินาที + 25 fps 25 เฟรมต่อวินาที + 24 fps 24 เฟรมต่อวินาที + 15 fps 15 เฟรมต่อวินาที + 10 fps 10 เฟรมต่อวินาที + Current Time เวลาปัจจุบัน + Out ออก + In ใน + Duration ระยะเวลา + Repeat ทำซ้ำ + Play Once เล่นครั้งเดียว + Video Cache แคชวิดีโอ + +# Info panel + Info Options… ตัวเลือกข้อมูล… + First Color Readout การอ่านค่าสีครั้งแรก + Second Color Readout การอ่านค่าสีที่สอง + Actual Color สีจริง + Grayscale Slider ตัวเลื่อนระดับสีเทา + Web Color สีเว็บ + HSB Color สี HSB + Total Ink หมึกทั้งหมด + Opacity Mask มาสก์ทึบแสง + Ruler ไม้บรรทัด + Current Tool เครื่องมือปัจจุบัน + Document Size ขนาดเอกสาร + Document Profile โปรไฟล์เอกสาร + Document Dimensions ขนาดเอกสาร + Scratch Sizes ขนาดรอยขีดข่วน + Efficiency ประสิทธิภาพ + Timing เวลา + Status Information ข้อมูลสถานะ + Saved Multichannel บันทึกหลายช่องแล้ว + Mouse Coordinates พิกัดเมาส์ + Ruler Units หน่วยไม้บรรทัด + Hide ซ่อน + +# Layer Comps panel + Layer Comps to Files… เลเยอร์ Comps เป็นไฟล์… + Apply next selected layer comp ใช้คอมพ์เลเยอร์ที่เลือกถัดไป + Apply previous selected layer comp ใช้คอมพ์เลเยอร์ที่เลือกก่อนหน้า + Update layer comp (visibility, position and appearance) อัปเดตเลเยอร์คอมพ์ (การมองเห็น ตำแหน่ง และรูปลักษณ์) + New Layer Comp คอมพ์เลเยอร์ใหม่ + Duplicate Layer Comp คอมพ์เลเยอร์ซ้ำ + Delete layer comp ลบเลเยอร์คอมพ์ + Rename Layer Comp เปลี่ยนชื่อเลเยอร์คอมพ์ + Create new layer comp สร้างคอมพ์เลเยอร์ใหม่ + Capture the visibility, position and style of every layer with + below, then switch between versions. จับภาพการมองเห็น ตำแหน่ง และสไตล์ของทุกเลเยอร์ด้วยเครื่องหมาย + ด้านล่าง จากนั้นสลับระหว่างเวอร์ชันต่างๆ + Apply Layer Comp ใช้เลเยอร์คอมพ์ + Update Layer Comp อัปเดตเลเยอร์คอมพ์ + Restore last viewed comp คืนค่าคอมพ์ที่ดูล่าสุด + Last Document State สถานะเอกสารล่าสุด + Visibility การมองเห็น + Position ตำแหน่ง + Appearance (Layer Style) ลักษณะที่ปรากฏ (สไตล์เลเยอร์) + +# Analysis and variables + Analysis การวิเคราะห์ + Variables ตัวแปร + Variable Data Sets… ชุดข้อมูลตัวแปร… + Data Sets… ชุดข้อมูล… + Data Sets ชุดข้อมูล + Data Sets as Files… ชุดข้อมูลเป็นไฟล์… + Apply Data Set… ใช้ชุดข้อมูล… + Define กำหนด + + Add variable + เพิ่มตัวแปร + Remove variable ลบตัวแปร + Define at least one variable first. กำหนดตัวแปรอย่างน้อยหนึ่งตัวก่อน + Open a document to define variables. เปิดเอกสารเพื่อกำหนดตัวแปร + Variables bind a layer's visibility, text or pixels to a named data slot. ตัวแปรจะผูกการมองเห็น ข้อความ หรือพิกเซลของเลเยอร์เข้ากับช่องข้อมูลที่มีชื่อ + Pixel Replacement การเปลี่ยนพิกเซล + Text Replacement การแทนที่ข้อความ + Name ชื่อ + Method วิธีการ + Select All Layers เลือกเลเยอร์ทั้งหมด + Fill เติม + Keep proportions รักษาสัดส่วน + Interpolation การแก้ไข + Author: ผู้เขียน: + Author ผู้เขียน + Name: ชื่อ: + Caption คำบรรยายภาพ + Caption Credits เครดิตคำบรรยาย + Description คำอธิบาย + Keywords คำหลัก + Copyright Info URL URL ข้อมูลลิขสิทธิ์ + Copyright Status สถานะลิขสิทธิ์ + Copyright Notice ประกาศเกี่ยวกับลิขสิทธิ์ + Document Title ชื่อเอกสาร + Copyrighted มีลิขสิทธิ์ + Public Domain โดเมนสาธารณะ + Unknown ไม่ทราบ + Copyright and Contact Info ลิขสิทธิ์และข้อมูลการติดต่อ + Credit เครดิต + Transmission Reference การอ้างอิงการส่ง + Urgency ความเร่งด่วน + High สูง + Normal ปกติ + Lossless ไม่มีการสูญเสีย + Low ต่ำ + Category หมวดหมู่ + Supplemental Categories หมวดหมู่เสริม + Object Name / Title ชื่อวัตถุ / ชื่อเรื่อง + Date Created วันที่สร้าง + City เมือง + Location ที่ตั้ง + Province / State จังหวัด/รัฐ + Country ประเทศ + Byline ทางสายย่อย + Byline Title ชื่อทางสายย่อย + Phone โทรศัพท์ + Email อีเมล + URLs URL + Last Modified แก้ไขครั้งล่าสุด + EXIF EXIF + GPS จีพีเอส + Camera Data ข้อมูลกล้อง + Camera Model รุ่นกล้อง + Camera Make ยี่ห้อกล้อง + EXIF Version เวอร์ชัน EXIF + Exposure Program โปรแกรมการสัมผัส + Aperture รูรับแสง + Shutter Speed ความเร็วชัตเตอร์ + Metering Mode โหมดการวัดแสง + Light Source แหล่งกำเนิดแสง + Flash แฟลช + Lens Info ข้อมูลเลนส์ + ISO Speed ความไวแสง ISO + Subject Distance ระยะห่างของเรื่อง + DateTime Original วันที่และเวลา ต้นฉบับ + Create Date สร้างวันที่ + Modify Date แก้ไขวันที่ + Software ซอฟต์แวร์ + Raw Data ข้อมูลดิบ + Version {version} Version {version} + Advanced ขั้นสูง + Import… นำเข้า… + +# Automate + Automate อัตโนมัติ + Batch… แบทช์… + Create Droplet… สร้างหยด… + Create Droplet สร้างหยด + PDF Presentation… การนำเสนอ PDF… + Create Multiple Picture Packages สร้างแพ็คเกจภาพหลายชุด + Contact Sheet II เอกสารการติดต่อ II + Contact Sheet II… เอกสารการติดต่อ II… + Conditional Mode Change… การเปลี่ยนโหมดตามเงื่อนไข… + Fit Image… พอดีภาพ… + Picture Package… ภาพแพ็คเกจ… + Web Photo Gallery… เว็บแกลเลอรี่ภาพ… + Merge to HDR Pro… ผสานเป็น HDR Pro… + Load Files into Stack… โหลดไฟล์ลงในสแต็ก… + Scripts สคริปต์ + Script Events Manager… ผู้จัดการกิจกรรมสคริปต์… + Image Processor… โปรเซสเซอร์ภาพ… + Destination จุดหมายปลายทาง + Choose… เลือก… + Select Folder… เลือกโฟลเดอร์… + Override Action "Save" Commands แทนที่คำสั่ง "บันทึก" ของการดำเนินการ + Compatibility ความเข้ากันได้ + Windows หน้าต่าง + Mac OS แมคโอเอส + Unix ยูนิกซ์ + Include ICC Profile รวมโปรไฟล์ ICC + Error File ไฟล์ข้อผิดพลาด + Stop For Errors หยุดเพื่อหาข้อผิดพลาด + Log Errors To File บันทึกข้อผิดพลาดไปยังไฟล์ + Errors ข้อผิดพลาด + +# Color Settings dialog + Color Settings… การตั้งค่าสี… + Settings การตั้งค่า + Settings: การตั้งค่า: + Working Space พื้นที่ทำงาน + RGB: RGB: + CMYK: สี CMYK: + Gray: สีเทา: + Spot: จุด: + Advanced Controls การควบคุมขั้นสูง + Desaturate Monitor Colors By ลดความอิ่มตัวของสีของจอภาพ By + Blend RGB Colors Using Gamma 1.0 ผสมผสานสี RGB โดยใช้ Gamma 1.0 + Profile Mismatches: Ask When Opening โปรไฟล์ไม่ตรงกัน: ถามเมื่อเปิด + Ask When Pasting ถามเมื่อวาง + Missing Profiles: Ask When Opening โปรไฟล์ที่หายไป: ถามเมื่อเปิด + Embed profiles ฝังโปรไฟล์ + Ask Before Saving Saved Embedded ถามก่อนบันทึกการฝังที่บันทึกไว้ + Coerce to sRGB บังคับ sRGB + sRGB IEC61966-2.1 sRGB IEC61966-2.1 + Adobe RGB (1998) อะโดบี RGB (1998) + ProPhoto RGB โปรโฟโต้ RGB + ColorMatch RGB การจับคู่สี RGB + Wide Gamut RGB ขอบเขตสีกว้าง RGB + Apple RGB แอปเปิ้ล RGB + NTSC (1953) เอ็นทีเอสซี (1953) + PAL/SECAM ระบบ PAL/SECAM + SMPTE C พีทีอี ซี + HDTV (Rec. 709) HDTV (Rec. 709) + CIE RGB CIE RGB + +# Themes + Theme ธีม + Switch theme สลับธีม + Next Theme ธีมถัดไป + Classic Theme ธีมคลาสสิก + Solarized dark แสงอาทิตย์มืด + Solarized Dark Theme ธีมมืดแสงอาทิตย์ + Breeze dark สายลมมืด + Breeze Dark Theme ธีมสายลมมืด + Breeze light สายลมเบาๆ + Breeze Light Theme ธีมบรีซไลท์ + Soft dark เข้มนุ่ม + Soft light แสงนุ่มนวล + Soft Dark Theme ธีมสีเข้มอ่อน + Soft Light Theme ธีมแสงนุ่มนวล + Studio Theme ธีมสตูดิโอ + Studio Light Theme ธีมแสงสตูดิโอ + Adwaita Light Theme ธีม Adwaita Light + Adwaita Dark Theme ธีม Adwaita Dark + Pro Theme ธีมโปร + Pro Medium Gray Theme ธีม Pro สีเทากลาง + Pro Light Gray Theme ธีม Pro สีเทาอ่อน + Pro Light Theme ธีมแสงโปร + +# Workspaces + Workspace… พื้นที่ทำงาน… + Essentials สิ่งจำเป็น + New Workspace… พื้นที่ทำงานใหม่… + Delete Workspace… ลบพื้นที่ทำงาน… + Reset Workspace รีเซ็ตพื้นที่ทำงาน + Reset Tool รีเซ็ตเครื่องมือ + Reset All Tools รีเซ็ตเครื่องมือทั้งหมด + Reset all tools to their default settings? รีเซ็ตเครื่องมือทั้งหมดเป็นการตั้งค่าเริ่มต้นหรือไม่ + Lock Workspace ล็อคพื้นที่ทำงาน + Photography การถ่ายภาพ + Graphic and web กราฟิกและเว็บ + Painting จิตรกรรม + Motion การเคลื่อนไหว + Minimalistic เรียบง่าย + Panel locations are saved in the workspace. Keyboard shortcuts, menus and toolbar are optional. ตำแหน่งแผงจะถูกบันทึกไว้ในพื้นที่ทำงาน แป้นพิมพ์ลัด เมนู และแถบเครื่องมือเป็นทางเลือก + Keyboard Shortcuts แป้นพิมพ์ลัด + Keyboard Shortcuts and Menus แป้นพิมพ์ลัดและเมนู + Menus เมนู + More panels แผงเพิ่มเติม + More documents เอกสารเพิ่มเติม + Collapse All Groups ยุบกลุ่มทั้งหมด + Expand All Groups ขยายกลุ่มทั้งหมด + Collapse ยุบ + Expand ขยาย + Collapse Panel Group ยุบกลุ่มแผง + Expand Panel Group ขยายกลุ่มแผง + Close Tab Group ปิดกลุ่มแท็บ + +# New Document dialog + PRESET DETAILS รายละเอียดที่ตั้งไว้ล่วงหน้า + BLANK DOCUMENT PRESETS ({n}) การตั้งค่าเอกสารเปล่า ({n}) + Create a new document or open an existing file. สร้างเอกสารใหม่หรือเปิดไฟล์ที่มีอยู่ + Drop an image or PSD anywhere to open it. วางภาพหรือ PSD ที่ใดก็ได้เพื่อเปิด + Use File › Open, or paste a copied image with {paste}. ใช้ไฟล์ › เปิดหรือวางภาพที่คัดลอกด้วย {paste} + Native file drag-and-drop is unavailable การลากและวางไฟล์เนทิฟไม่พร้อมใช้งาน + Native file drag-and-drop is not supported on Wayland yet. Use File › Open, or copy the image in your file manager and paste it with {paste}. Wayland ยังไม่รองรับการลากและวางไฟล์เนทิฟ ใช้ไฟล์ › เปิดหรือคัดลอกภาพในตัวจัดการไฟล์ของคุณแล้ววางด้วย {paste} + To drop files, start PhotoCraft under XWayland: `{command}` หากต้องการวางไฟล์ ให้เริ่ม PhotoCraft ภายใต้ XWayland: `{command}` + Or set Preferences › Performance › Linux display server to X11: PhotoCraft then always starts under XWayland. หรือตั้งค่า Preferences > Performance > Linux display server เป็น X11: PhotoCraft จะเริ่มทำงานภายใต้ XWayland เสมอ + Edit › Paste แก้ไข › วาง + Photo ภาพ + Print พิมพ์ + Art & Illustration ศิลปะและภาพประกอบ + Mobile มือถือ + Film & Video ภาพยนตร์และวิดีโอ + Default PhotoCraft Size ขนาด PhotoCraft เริ่มต้น + Clipboard คลิปบอร์ด + Photo (2 × 3 in) ภาพ (2 × 3 นิ้ว) + Photo (4 × 6 in) ภาพ (4 × 6 นิ้ว) + Photo (5 × 7 in) ภาพ (5 × 7 นิ้ว) + Photo (8 × 10 in) ภาพ (8 × 10 นิ้ว) + Landscape ภูมิทัศน์ + Portrait แนวตั้ง + Recent Items รายการล่าสุด + Save Preset… บันทึกค่าที่ตั้งล่วงหน้า… + Delete Preset… ลบค่าที่ตั้งล่วงหน้า… + Preset Name: ชื่อที่ตั้งไว้ล่วงหน้า: + Width and Height ความกว้างและความสูง + Background Contents เนื้อหาพื้นหลัง + Custom background color สีพื้นหลังที่กำหนดเอง + White ขาว + Background Color สีพื้นหลัง + Transparent โปร่งใส + Color Mode โหมดสี + Depth ความลึก + Color Profile โปรไฟล์สี + Create สร้าง + Document เอกสาร + Units หน่วย + Pixels พิกเซล + Inches นิ้ว + Centimeters เซนติเมตร + Millimeters มิลลิเมตร + Points คะแนน + Picas ปิกัส + Columns คอลัมน์ + +# Placeholders, tooltips, status and keyboard hints + {name} options {name} options + Align {what} Align {what} + Untagged {mode} Untagged {mode} + Invalid {mode} profile โปรไฟล์ {mode} ไม่ถูกต้อง + Unnamed {mode} profile โปรไฟล์ {mode} ที่ไม่มีชื่อ + Constraints ({n}) ข้อจำกัด ({n}) + Count: {n} นับ: {n} + Click to add a point · drag off or {key}-click or Delete to remove คลิกเพื่อเพิ่มจุด · ลากออก หรือ {key}-คลิก หรือ ลบ เพื่อลบ + Click to apply, {key}-click to clear overrides, double-click for Style Options คลิกเพื่อใช้ {key}-คลิกเพื่อล้างการแทนที่ ดับเบิลคลิกเพื่อดูตัวเลือกสไตล์ + Click: corner · Drag: smooth · Click first point: close · {key} finish · Esc cancel คลิก: มุม · ลาก: ราบรื่น · คลิกจุดแรก: ปิด · {key} เสร็จสิ้น · ยกเลิก Esc + Click: corner · Drag: smooth · {alt}-drag: break handle · Click or drag first point: close · {key} finish · Esc cancel คลิก: มุม · ลาก: ราบรื่น · {alt}-drag: ตัวแบ่ง · คลิกหรือลากจุดแรก: ปิด · {key} เสร็จสิ้น · ยกเลิก Esc + Commit Perspective Warp ({key}) คอมมิต Perspective Warp ({key}) + Commit Puppet Warp ({key}) กระทำ Puppet Warp ({key}) + Commit any current edits ({key}) ยืนยันการแก้ไขปัจจุบัน ({key}) + Commit transform ({key}) ยอมรับการแปลง ({key}) + Commit warp ({key}) คอมมิตวิปริต ({key}) + Cancel any current edits (Esc) ยกเลิกการแก้ไขปัจจุบัน (Esc) + Cancel transform (Esc) ยกเลิกการแปลง (Esc) + Cancel warp (Esc) ยกเลิกการวาร์ป (Esc) + Do you want to save the changes you made to “{name}” before closing? คุณต้องการบันทึกการเปลี่ยนแปลงที่คุณทำกับ “{name}” ก่อนปิดหรือไม่ + Revert “{name}” to the last saved version? Your changes will be lost. เปลี่ยนกลับ “{name}” เป็นเวอร์ชันที่บันทึกไว้ล่าสุดหรือไม่ การเปลี่ยนแปลงของคุณจะหายไป + {key} to subtract {key} ที่จะลบ + ↑↓ navigate {key} run esc close ↑↓ นำทาง {key} วิ่ง esc ปิด + Click to restore the current colour คลิกเพื่อคืนค่าสีปัจจุบัน + Click with the Note tool to add a note. คลิกด้วยเครื่องมือ Note เพื่อเพิ่มบันทึก + Drag a rectangle around the object ลากสี่เหลี่ยมรอบๆ วัตถุ + Drag on the image to add a constraint; Shift for horizontal/vertical; right-click a constraint to change or delete it. ลากบนภาพเพื่อเพิ่มข้อจำกัด เลื่อนแนวนอน/แนวตั้ง; คลิกขวาที่ข้อจำกัดเพื่อเปลี่ยนแปลงหรือลบ + Drag the arrow to set the angle, the dots to set the roundness ลากลูกศรเพื่อกำหนดมุม ลากจุดเพื่อกำหนดความกลม + Create new pattern from the selection สร้างรูปแบบใหม่จากส่วนที่เลือก + Create new gradient สร้างการไล่ระดับสีใหม่ + Create new count group สร้างกลุ่มการนับใหม่ + Search commands, tools and panels… ค้นหาคำสั่ง เครื่องมือ และพาเนล… + Search Brushes ค้นหาแปรง + Search fonts ค้นหาแบบอักษร + No matching commands ไม่มีคำสั่งที่ตรงกัน + No document ไม่มีเอกสาร + Pixel Layer เลเยอร์พิกเซล + Type Layer เลเยอร์ตัวอักษร + Shape Layer เลเยอร์รูปร่าง + Group Layer เลเยอร์กลุ่ม + Fill Layer เติมเลเยอร์ + Smart Object Layer เลเยอร์วัตถุอัจฉริยะ + Adjustment Layer เลเยอร์ปรับแต่ง + {name} Properties {name} Properties + Move Tool เครื่องมือย้าย + Could not use the move tool because the layer is locked. ไม่สามารถใช้เครื่องมือย้ายได้เนื่องจากเลเยอร์ถูกล็อค + Could not complete the Free Transform command because the layer is locked. ไม่สามารถดำเนินการคำสั่ง Free Transform ได้เนื่องจากเลเยอร์ถูกล็อก + Rectangular Marquee Tool เครื่องมือปะรำสี่เหลี่ยม + Elliptical Marquee Tool เครื่องมือปะรำวงรี + Single Row Marquee Tool เครื่องมือปะรำแถวเดียว + Single Column Marquee Tool เครื่องมือปะรำคอลัมน์เดียว + Brush Tool เครื่องมือแปรง + Pencil Tool เครื่องมือดินสอ + Eraser Tool เครื่องมือยางลบ + Background Eraser Tool เครื่องมือยางลบพื้นหลัง + Magic Eraser Tool เครื่องมือยางลบวิเศษ + Eyedropper Tool เครื่องมือหยดสี + Note Tool เครื่องมือหมายเหตุ + Lasso Tool เครื่องมือบ่วง + Polygonal Lasso Tool เครื่องมือ Lasso เหลี่ยม + Magic Wand Tool เครื่องมือไม้กายสิทธิ์ + Crop Tool เครื่องมือครอป + Slice Tool เครื่องมือชิ้น + Slice Select Tool เครื่องมือเลือกชิ้น + Gradient Tool เครื่องมือไล่ระดับสี + Paint Bucket Tool เครื่องมือถังสี + Horizontal Type Tool เครื่องมือตัวอักษรแนวนอน + Horizontal Type Mask Tool เครื่องมือมาสก์ตัวอักษรแนวนอน + Vertical Type Mask Tool เครื่องมือมาสก์ตัวอักษรแนวตั้ง + Hand Tool เครื่องมือมือ + Zoom Tool เครื่องมือซูม + Spot Healing Brush Tool เครื่องมือแปรงรักษาเฉพาะจุด + Healing Brush Tool เครื่องมือแปรงรักษา + Clone Stamp Tool เครื่องมือแสตมป์โคลน + History Brush Tool เครื่องมือแปรงประวัติศาสตร์ + Blur Tool เครื่องมือเบลอ + Sharpen Tool เครื่องมือลับคม + Smudge Tool เครื่องมือรอยเปื้อน + Dodge Tool เครื่องมือดอดจ์ + Burn Tool เครื่องมือเบิร์น + Sponge Tool เครื่องมือฟองน้ำ + Quick Selection Tool เครื่องมือการเลือกด่วน + Object Selection Tool เครื่องมือเลือกวัตถุ + Pen Tool เครื่องมือปากกา + Convert Point Tool แปลงเครื่องมือจุด + Path Selection Tool เครื่องมือเลือกเส้นทาง + Direct Selection Tool เครื่องมือการเลือกโดยตรง + Add Anchor Point Tool เพิ่มเครื่องมือจุดยึด + Delete Anchor Point Tool ลบเครื่องมือจุดยึด + Click a segment to add an anchor point · {alt}-click an anchor to delete it คลิกส่วนเพื่อเพิ่มจุดยึด · {alt}-คลิกจุดยึดเพื่อลบ + Click an anchor point to delete it · {alt}-click a segment to add one คลิกจุดยึดเพื่อลบ · {alt}-คลิกส่วนที่ต้องการเพิ่ม + Rectangle Tool เครื่องมือสี่เหลี่ยมผืนผ้า + Ellipse Tool เครื่องมือวงรี + Triangle Tool เครื่องมือสามเหลี่ยม + Polygon Tool เครื่องมือรูปหลายเหลี่ยม + Line Tool เครื่องมือเส้น + Custom Shape Tool เครื่องมือรูปร่างแบบกำหนดเอง + Pixel พิกเซล + Group กลุ่ม + Adjustment การปรับ + Smart Object สมาร์ตออบเจกต์ + Drag to move the active layer ลากเพื่อย้ายเลเยอร์ที่ใช้งานอยู่ + Drag to pan · hold Space with any tool ลากเพื่อเลื่อน · กด Space ด้วยเครื่องมือใดก็ได้ + Drag to draw a gradient ลากเพื่อวาดการไล่ระดับสี + Click to fill similar colours คลิกเพื่อเติมสีที่คล้ายกัน + Click to add text คลิกเพื่อเพิ่มข้อความ + Drag (lasso) or click points (polygonal) · {add} add · {sub} subtract Drag (lasso) or click points (polygonal) · {add} add · {sub} subtract + Drag a crop box · drag inside to move · edges resize ({ratio} ratio, {centre} centre) · Space moves while drawing · arrows nudge · X swaps orientation · {commit} commits · Esc cancels ลากกล่องครอบตัด · ลากเข้าไปข้างในเพื่อย้าย · ปรับขนาดขอบ (อัตราส่วน {ratio}, กึ่งกลาง {centre}) · เคลื่อนที่ในอวกาศขณะวาด · ลูกศรดัน · การวางแนว X สลับ · คอมมิต {commit} · ยกเลิก Esc + {mode} Color · {bits} bit {mode} Color · {bits} bit + Drag to move the layer ลากเพื่อย้ายเลเยอร์ + Fit Screen พอดีกับหน้าจอ + Fill Screen เติมหน้าจอ + Scrubby Zoom สครับบี้ซูม + Auto Erase ลบอัตโนมัติ + Color Adaptation การปรับสี + Preserve Transparency รักษาความโปร่งใส + Reverse ย้อนกลับ + Align with layer จัดแนวกับเลเยอร์ + Join us on Discord เข้าร่วมกับเราบน Discord + PhotoCraft website เว็บไซต์PhotoCraft + ArtCraft อาร์ตคราฟต์ + GitHub GitHub + No character style ไม่มีสไตล์ตัวละคร + No author ไม่มีผู้เขียน + Not in Dictionary: ไม่ได้อยู่ในพจนานุกรม: + Suggestions: คำแนะนำ: + Spell check complete. ตรวจตัวสะกดเสร็จแล้ว + Check All Layers ตรวจสอบทุกเลเยอร์ + Select a type layer to edit its character and paragraph settings. เลือกเลเยอร์ตัวอักษรเพื่อแก้ไขการตั้งค่าอักขระและย่อหน้า + Select text to apply a character style เลือกข้อความเพื่อใช้ลักษณะอักขระ + Redefine style by current selection กำหนดสไตล์ใหม่โดยการเลือกปัจจุบัน + Duplicate style สไตล์ที่ซ้ำกัน + Delete style ลบสไตล์ + Style Options ตัวเลือกสไตล์ + Style Options… ตัวเลือกสไตล์… + Close Style Options ปิดตัวเลือกสไตล์ + Appearance ลักษณะที่ปรากฏ + Text Position: ตำแหน่งข้อความ: + Text color สีข้อความ + Uses the foreground and background colours. ใช้สีพื้นหน้าและพื้นหลัง + Answer the unsaved-changes prompt first ตอบคำถามการเปลี่ยนแปลงที่ไม่ได้บันทึกก่อน + Unsaved changes การเปลี่ยนแปลงที่ไม่ได้บันทึก + Don't Save อย่าบันทึก + No ไม่ + Yes ใช่ + These settings aren't available in PhotoCraft yet. การตั้งค่าเหล่านี้ยังไม่มีใน PhotoCraft + Shortcut removed. ลบทางลัดแล้ว + All shortcuts reset to PhotoCraft defaults. ทางลัดทั้งหมดรีเซ็ตเป็นค่าเริ่มต้นของ PhotoCraft + Add Shortcut เพิ่มทางลัด + Delete Shortcut ลบทางลัด + Press keys… กดปุ่ม… + shortcut ทางลัด + command or shortcut คำสั่งหรือทางลัด + current ปัจจุบัน + image file path เส้นทางไฟล์ภาพ + modified แก้ไข + name ชื่อ + new ใหม่ + Go to Layer ไปที่เลเยอร์ + Open a document to select a colour range. เปิดเอกสารเพื่อเลือกช่วงสี + Saved บันทึกแล้ว + Reveal in Finder เปิดเผยใน Finder + Show in Explorer แสดงใน Explorer + Show in Folder แสดงในโฟลเดอร์ + Before (Y) ก่อน (ญ) + Save Settings… บันทึกการตั้งค่า… + Load Settings… โหลดการตั้งค่า… + Save these settings as a Camera Raw .xmp file บันทึกการตั้งค่าเหล่านี้เป็นไฟล์ Camera Raw .xmp + Load settings from a Camera Raw .xmp file โหลดการตั้งค่าจากไฟล์ Camera Raw .xmp + Loaded Camera Raw settings from {file} โหลดการตั้งค่า Camera Raw จาก {file} + Loaded Camera Raw settings from {file} ({n} not supported) โหลดการตั้งค่า Camera Raw จาก {file} (ไม่รองรับ {n}) + After (X) หลัง (เอ็กซ์) + Original ต้นฉบับ + Current ปัจจุบัน + {added}, {removed} subtracted {added}, {removed} ลบแล้ว + Filter: ฟิลเตอร์: + +# Transform / warp overlays + Free Transform แปลงอิสระ + Free Transform a Copy แปลงสำเนาฟรี + Transform แปลงร่าง + Transform Selection แปลงการเลือก + Switch between free transform and warp modes สลับระหว่างโหมดการแปลงอิสระและโหมดวาร์ป + Perspective เปอร์สเปกทีฟ + Skew เอียง + Distort บิดเบี้ยว + Rotate: หมุน: + Flip พลิก + Warp: วาร์ป: + Warp บิด + Bend: โค้งงอ: + Reference point location ตำแหน่งจุดอ้างอิง + Toggle reference point สลับจุดอ้างอิง + Free ฟรี + Arc อาร์ค + Arch อาร์ค + Bulge นูน + Shell Lower เชลล์ตัวล่าง + Shell Upper เชลล์ตอนบน + Flag ธง + Fish ปลา + Wave คลื่น + Rise ลุกขึ้น + Fisheye ฟิชอาย + Inflate พองตัว + Twist บิด + Squeeze บีบ + Corner radius รัศมีมุม + Split Warp Crosswise แยก Warp ตามขวาง + Split Warp Horizontally แยก Warp ในแนวนอน + Split Warp Vertically แยก Warp ในแนวตั้ง + Remove Warp Split ลบ Warp Split + Puppet Warp บิดภาพ + Puppet Warp is not active Puppet Warp ไม่ทำงาน + Perspective Warp บิดภาพเปอร์สเปกทีฟ + Perspective Warp is not active Perspective Warp ไม่ทำงาน + Perspective Warp: draw planes along the image's perspective, then switch to Warp การบิดงอเปอร์สเปคทีฟ: วาดระนาบตามเปอร์สเปคทีฟของภาพ จากนั้นสลับไปที่การบิดงอ + Remove Planes ลบระนาบ + Edit Pins แก้ไขพิน + Add Pins เพิ่มพิน + Delete Pins ลบพิน + Remove All Pins ลบพินทั้งหมด + Remove Tool ลบเครื่องมือ + Pin Depth: ความลึกของพิน: + Bring the selected pin forward นำพินที่เลือกไปข้างหน้า + Send the selected pin backward ส่งพินที่เลือกไปข้างหลัง + Rotate Auto หมุนอัตโนมัติ + Rotate Fixed หมุนคงที่ + Adaptive Wide Angle isn't open มุมกว้างแบบปรับอัตโนมัติไม่ได้เปิดอยู่ + Liquify is not open ของเหลวไม่เปิด + +# Vanishing Point + Create Plane สร้างระนาบ + Edit Plane แก้ไขระนาบ + Select Plane เลือกระนาบ + Measure วัด + Heal รักษา + Off ปิด + Symmetry Off ปิดสมมาตร + Heal Off ปิดการรักษา + Heal On รักษาต่อ + Heal Auto ฮีลออโต้ + Blend ผสมผสาน + Brush Size ขนาดแปรง + Heal Color สีรักษา + +# Misc dialog strings + Mask มาสก์ + Channel ช่อง + Rectangle สี่เหลี่ยมผืนผ้า + Subtract ลบ + Multiply คูณ + Divide แบ่ง + Result ผลลัพธ์ + New Document เอกสารใหม่ + New Document With Mask เอกสารใหม่พร้อมมาสก์ + New Layer With Mask เลเยอร์ใหม่พร้อมมาสก์ + New Layer เลเยอร์ใหม่ + Preset Name ชื่อที่ตั้งไว้ล่วงหน้า + No saved presets yet. ยังไม่มีค่าที่ตั้งไว้ล่วงหน้าที่บันทึกไว้ + New Channel ช่องใหม่ + Selection การคัดเลือก + Save Selection บันทึกการเลือก + Load Selection การเลือกโหลด + Duplicate ทำซ้ำ + Fast รวดเร็ว + Accurate แม่นยำ + Add to เพิ่มไปที่ + Subtract from ลบออกจาก + Intersect with ตัดกับ + +# Blend modes + Pass Through ผ่าน + Dissolve ละลาย + Darken ทำให้มืดลง + Color Burn ทับสี + Linear Burn การเผาไหม้เชิงเส้น + Darker Color สีเข้มขึ้น + Lighten ทำให้สว่างขึ้น + Screen สกรีน + Color Dodge ทับแสงสี + Linear Dodge (Add) ลิเนียร์ดอดจ์ (เพิ่ม) + Lighter Color สีอ่อนกว่า + Overlay โอเวอร์เลย์ + Soft Light แสงนุ่ม + Hard Light แสงแข็ง + Vivid Light แสงสดใส + Linear Light แสงเชิงเส้น + Pin Light พินไลท์ + Hard Mix ฮาร์ดมิกซ์ + Difference แตกต่าง + Exclusion ยกเว้น + Luminosity ความสว่าง + +# Saved views and other bits + Capture Comp จับภาพคอมพ์ + No Layer Comps ไม่มีเลเยอร์ Comps + +# Plurals +@plural {n} item|{n} items {n} รายการ +@plural {n} Layer|{n} Layers {n} เลเยอร์ +@plural {n} layer|{n} layers {n} เลเยอร์ +@plural Group · {n} layer|Group · {n} layers กลุ่ม · {n} เลเยอร์ +@plural {n} sample|{n} samples {n} ตัวอย่าง + +# Remaining menu strings (second pass) + 180° 180° + 32-bit Preview Options… ตัวเลือกการแสดงตัวอย่าง 32 บิต… + 90° Clockwise 90° ตามเข็มนาฬิกา + 90° Counter Clockwise 90° ทวนเข็มนาฬิกา + AI Integrations… การบูรณาการ AI… + Again อีกครั้ง + Transform Again on a Copy แปลงร่างอีกครั้งด้วยการคัดลอก + Anamorphic 2:1 (2) อนามอร์ฟิก 2:1 (2) + Arbitrary… กำหนดเอง… + Artboard Guides คำแนะนำอาร์ตบอร์ด + Artboard from Group… อาร์ตบอร์ดจากกลุ่ม… + Artboard from Layers… อาร์ตบอร์ดจากเลเยอร์… + Artboards to Files… อาร์ตบอร์ดเป็นไฟล์… + Artboards to PDF… อาร์ตบอร์ดเป็น PDF… + Artboard… อาร์ตบอร์ด… + Border… ขอบ… + Bottom Edges ขอบล่าง + Browse… เรียกดู… + Source Files ไฟล์ต้นฉบับ + Use: ใช้: + Files ไฟล์ + Folder โฟลเดอร์ + Add Open Files เพิ่มไฟล์เปิด + Sort By Name เรียงตามชื่อ + Attempt to Automatically Align Source Images พยายามจัดแนวภาพต้นฉบับโดยอัตโนมัติ + Create Smart Object after Loading Layers สร้าง Smart Object หลังจากโหลดเลเยอร์ + Canvas Guides คู่มือผ้าใบ + Character Styles Panel แผงสไตล์ตัวละคร + Clear Canvas Guides คำแนะนำผ้าใบที่ชัดเจน + Clear Selected Artboard Guides ล้างคำแนะนำ Artboard ที่เลือก + Color Blindness — Deuteranopia-type ตาบอดสี - ประเภท Deuteranopia + Color Blindness — Protanopia-type ตาบอดสี — ประเภท Protanopia + Color Table… ตารางสี… + Combine Shapes รวมรูปร่าง + Contract… หด… + Convert to Embedded แปลงเป็นแบบฝัง + Convert to Layers แปลงเป็นเลเยอร์ + Convert to Linked… แปลงเป็นลิงก์… + Count นับ + Create Layer สร้างเลเยอร์ + Custom Pixel Aspect Ratio… อัตราส่วนพิกเซลแบบกำหนดเอง… + Cycle Screen Mode โหมดหน้าจอวงจร + D1/DV NTSC (0.91) D1/DV NTSC (0.91) + D1/DV NTSC Widescreen (1.21) D1/DV NTSC ไวด์สกรีน (1.21) + D1/DV PAL (1.09) D1/DV PAL (1.09) + D1/DV PAL Widescreen (1.46) จอไวด์สกรีน D1/DV PAL (1.46) + DVCPRO HD 1080/HDV 1080 (1.5) ดีวีซีโปร HD 1080/HDV 1080 (1.5) + De-Interlace… ดีอินเทอร์เลซ… + Default Features คุณสมบัติเริ่มต้น + Delete All Empty Layers ลบเลเยอร์ว่างทั้งหมด + Desaturate ลดความอิ่มตัว + Displace… แทนที่… + Distribute แจกจ่าย + Document Bounds ขอบเขตเอกสาร + Edit in Quick Mask Mode แก้ไขในโหมด Quick Mask + Enhanced Controls… การควบคุมที่ได้รับการปรับปรุง… + Entropy เอนโทรปี + Exclude Overlapping Shapes ไม่รวมรูปร่างที่ทับซ้อนกัน + Exit ออก + Expand… ขยาย… + Extra Large ใหญ่พิเศษ + File Info… ข้อมูลไฟล์… + Fit Artboard on Screen ติดตั้ง Artboard บนหน้าจอ + Fit Layer(s) on Screen พอดีเลเยอร์บนหน้าจอ + Flatten All Layer Effects ทำให้เอฟเฟ็กต์เลเยอร์ทั้งหมดเรียบขึ้น + Flatten All Masks ทำให้มาสก์ทั้งหมดเรียบขึ้น + Flatten Image แบนภาพ + Float All in Windows ลอยทั้งหมดใน Windows + Float in Window ลอยอยู่ในหน้าต่าง + Frame from Layers กรอบจากเลเยอร์ + From Transparency จากความโปร่งใส + Gamut Warning คำเตือนขอบเขต + Global Light… โกลบอลไลท์… + Gradient… ไล่ระดับสี… + Graphic and Web กราฟิกและเว็บ + HDV 1080/DVCPRO HD 720 (1.33) HDV 1080/DVCPRO HD 720 (1.33) + Hidden Layers เลเยอร์ที่ซ่อนอยู่ + Hide All Effects ซ่อนเอฟเฟกต์ทั้งหมด + Horizontal Centers ศูนย์แนวนอน + Huge ใหญ่โต + Indexed Color… สีที่จัดทำดัชนี… + Integrations… บูรณาการ… + Intersect Shape Areas ตัดกันพื้นที่รูปร่าง + Kurtosis เคิร์ตโทซิส + Large ใหญ่ + Layer Edges ขอบเลเยอร์ + Left Edges ขอบซ้าย + Lens Blur… เลนส์เบลอ… + Lighting Effects… เอฟเฟกต์แสง… + Link Layers ลิงค์เลเยอร์ + Lock Layers… ล็อคเลเยอร์… + Mean หมายถึง + Merge Down รวมลง + Merge Group รวมกลุ่ม + Merge Layers รวมเลเยอร์ + Merge Shape Components ผสานส่วนประกอบรูปร่าง + Merge Visible รวมเลเยอร์ที่มองเห็น + Stamp Visible มองเห็นแสตมป์ได้ + Select Layer Above เลือกเลเยอร์ด้านบน + Select Layer Below เลือกเลเยอร์ด้านล่าง + Select Top Layer เลือกเลเยอร์บนสุด + Select Bottom Layer เลือกเลเยอร์ล่างสุด + Add Layer Above to Selection เพิ่มเลเยอร์ด้านบนให้กับส่วนที่เลือก + Add Layer Below to Selection เพิ่มเลเยอร์ด้านล่างลงในส่วนที่เลือก + Stamp Down ประทับตราลง + Mesh ตาข่าย + Middle Eastern & South Asian Composer นักแต่งเพลงชาวตะวันออกกลางและเอเชียใต้ + Modifier Keys คีย์ตัวปรับแต่ง + Modify แก้ไข + NTSC Colors สี NTSC + Notes… หมายเหตุ… + Other อื่นๆ + Other… อื่นๆ… + Paragraph Styles Panel แผงสไตล์ย่อหน้า + Paths to Illustrator… เส้นทางสู่ Illustrator… + Pattern Preview ดูตัวอย่างรูปแบบ + Pattern… รูปแบบ… + Pixel Art ศิลปะพิกเซล + Pixel Art Preview การแสดงตัวอย่างศิลปะพิกเซล + Pixel Grid ตารางพิกเซล + Pixelate พิกเซลเลต + Place Scale Marker… วางเครื่องหมายมาตราส่วน… + Plug-ins ปลั๊กอิน + Print One Copy พิมพ์หนึ่งสำเนา + Print… พิมพ์… + Range พิสัย + Raw Defaults… ค่าเริ่มต้นดิบ… + Relink to File… เชื่อมโยงไปยังไฟล์… + Relight… รีไลท์… + Render เรนเดอร์ + Replace All Missing Fonts แทนที่แบบอักษรที่หายไปทั้งหมด + Resolve Missing Fonts… แก้ไขแบบอักษรที่หายไป… + Reveal Selection เปิดเผยการคัดเลือก + Right Edges ขอบขวา + Selection Edges ขอบการเลือก + Shapes รูปร่าง + Show Extras Options… แสดงตัวเลือกพิเศษ… + Skewness ความเบ้ + Small เล็ก + Smart Guides ไกด์อัจฉริยะ + Smart Objects สมาร์ตออบเจกต์ + Smooth… ปรับเรียบ… + Solid Color… สีทึบ… + Square สี่เหลี่ยมจัตุรัส + Stack Mode โหมดสแต็ค + Choose Stack Mode: เลือกโหมดสแต็ก: + Standard Deviation ส่วนเบี่ยงเบนมาตรฐาน + Statistics… สถิติ… + Stylistic Alternates โวหารสำรอง + Stylize จัดสไตล์ + Subtract Front Shape ลบรูปร่างด้านหน้า + Summation การสรุป + Target Path เส้นทางเป้าหมาย + Tile All Horizontally เรียงต่อกันในแนวนอนทั้งหมด + Tile All Vertically เรียงต่อกันในแนวตั้งทั้งหมด + Toggle Last State สลับสถานะสุดท้าย + Toolbar… แถบเครื่องมือ… + Tools… เครื่องมือ… + Top Edges ขอบด้านบน + Unite Shapes รวมรูปร่าง + Update All Modified Content อัปเดตเนื้อหาที่แก้ไขทั้งหมด + Update All Text Layers อัปเดตเลเยอร์ข้อความทั้งหมด + Update Modified Content อัปเดตเนื้อหาที่แก้ไข + Variance ความแปรปรวน + Vertical Centers ศูนย์แนวตั้ง + Video Frames to Layers… เฟรมวิดีโอเป็นเลเยอร์… + WIA Support… การสนับสนุน WIA… + Working CMY Plate แผ่น CMY ทำงาน + +# tl! literals (third pass) + Absolute แน่นอน + Action การดำเนินการ + Adaptive ปรับตัว + Add Stop เพิ่มหยุด + Add disk เพิ่มดิสก์ + Align and Distribute จัดตำแหน่งและกระจาย + All Slices ชิ้นทั้งหมด + All User Slices ส่วนผู้ใช้ทั้งหมด + Alt Alt + Artboard อาร์ตบอร์ด + Artboard Background Color สีพื้นหลังอาร์ตบอร์ด + Auto Hide ซ่อนอัตโนมัติ + Automatically level near-horizontal line segments ปรับระดับส่วนของเส้นตรงใกล้แนวนอนโดยอัตโนมัติ + Automatically straighten and level ยืดและปรับระดับอัตโนมัติ + Automatically straighten near-vertical line segments ปรับส่วนของเส้นตรงใกล้แนวตั้งให้ตรงโดยอัตโนมัติ + Balance ยอดคงเหลือ + Baseline พื้นฐาน + Bicubic ไบคิวบิค + Bicubic (smooth gradients) Bicubic (การไล่ระดับสีเรียบ) + Automatic อัตโนมัติ + Bicubic Smoother (enlargement) Bicubic Smoother (ขยาย) + Bicubic Sharper (reduction) เครื่องลับ Bicubic (ลด) + Bilinear ไบลิเนียร์ + Black, White ดำขาว + Blue, Red, Yellow น้ำเงินแดงเหลือง + Bottom ก้น + Brightness Jitter ความสว่างกระวนกระวายใจ + Brush Reconstruct Options ตัวเลือกการสร้างแปรงใหม่ + Cache Level: ระดับแคช: + Canvas ผ้าใบ + Capture จับภาพ + Center Crop Marks เครื่องหมายครอบตัดตรงกลาง + Centre the gradient (offset 0, 0) จัดกึ่งกลางการไล่ระดับสี (ออฟเซ็ต 0, 0) + Change Screen Mode (F) เปลี่ยนโหมดหน้าจอ (F) + Change To: เปลี่ยนเป็น: + Clear All ล้างทั้งหมด + Clear Override ล้างการแทนที่ + Clear Samples ล้างตัวอย่าง + Cmd คำสั่ง + Color Grading การจัดระดับสี + Color Management การจัดการสี + Color Priority ลำดับความสำคัญของสี + Color Range preview การแสดงตัวอย่างช่วงสี + Colorize ปรับสี + Constant ค่าคงที่ + Content-Aware การรับรู้เนื้อหา + Convert to sRGB แปลงเป็น sRGB + Copies สำเนา + Copper ทองแดง + Corner Crop Marks เครื่องหมายครอบตัดมุม + Correction การแก้ไข + Count Jitter นับกระวนกระวายใจ + Create Texture สร้างพื้นผิว + Create a new count group สร้างกลุ่มการตรวจนับใหม่ + Crop Factor ครอบตัดปัจจัย + Ctrl กดปุ่ม Ctrl + Custom Shapes รูปร่างที่กำหนดเอง + Cyan สีฟ้า + Cyan · Red สีฟ้า · สีแดง + Darks ความมืด + Default printer เครื่องพิมพ์เริ่มต้น + Default restored. กู้คืนค่าเริ่มต้นแล้ว + Delete Group ลบกลุ่ม + Delete count group ลบกลุ่มการนับ + Delete effect layer ลบเลเยอร์เอฟเฟกต์ + Delete note ลบบันทึก + Delete tool preset ลบการตั้งค่าล่วงหน้าของเครื่องมือ + Depth Jitter กระวนกระวายใจความลึก + Discontiguous ไม่ต่อเนื่องกัน + Discord ความไม่ลงรอยกัน + Display P3 แสดงผล P3 + Display Text ข้อความที่แสดง + Divide… แบ่ง… + Do you want to save the changes you made to “{name}” before quitting? คุณต้องการบันทึกการเปลี่ยนแปลงที่คุณทำกับ “{name}” ก่อนที่จะออกหรือไม่ + Edit Toolbar… แก้ไขแถบเครื่องมือ… + Edit in Quick Mask Mode (Q) แก้ไขในโหมด Quick Mask (Q) + Edit in Standard Mode (Q) แก้ไขในโหมดมาตรฐาน (Q) + Embedded Profile Mismatch โปรไฟล์ที่ฝังไม่ตรงกัน + Enhance Edge ปรับปรุงขอบ + Exact แน่นอน + Expansion: การขยายตัว: + Exposure and Gamma การเปิดรับแสงและแกมมา + Factor: ปัจจัย: + Fewer Points คะแนนน้อยลง + File Settings การตั้งค่าไฟล์ + Finger Painting ลายนิ้วมือ + Fit in View พอดีในมุมมอง + Fixed แก้ไขแล้ว + Foreground to Background เบื้องหน้าเป็นเบื้องหลัง + Foreground/Background Jitter กระวนกระวายใจเบื้องหน้า/พื้นหลัง + Format รูปแบบ + Frame from Layers… เฟรมจากเลเยอร์… + Full Spherical ทรงกลมเต็ม + Gamma Correction การแก้ไขแกมมา + Gamma: แกมมา: + Global ทั่วโลก + Grain ธัญพืช + Graphics กราฟิก + Gray สีเทา + Heart หัวใจ + Hide Auto Slices ซ่อนชิ้นอัตโนมัติ + Highlight Compression ไฮไลท์การบีบอัด + Highlight Priority เน้นลำดับความสำคัญ + Highlights ไฮไลท์ + Home บ้าน + Hue Jitter เว้ จิตเตอร์ + Image Size: ขนาดภาพ: + Imported นำเข้า + Input: อินพุต: + Interlaced อินเทอร์เลซ + Invert All สลับกลับทั้งหมด + Label Size ขนาดฉลาก + Labels ป้ายกำกับ + Lanczos (sharp) Lanczos (คม) + Level ระดับ + Lights ไฟ + Limits: ขีดจำกัด: + Link the mask to the layer เชื่อมโยงมาสก์กับเลเยอร์ + Localized Color Clusters กลุ่มสีที่มีการแปล + Luminance ความสว่าง + Magenta สีม่วงแดง + Magenta · Green สีม่วงแดง · สีเขียว + Marker Size ขนาดเครื่องหมาย + Mask Options ตัวเลือกมาสก์ + Masking การกำบัง + Master อาจารย์ + Mean: หมายถึง: + Median: ค่ามัธยฐาน: + Mesh Size ขนาดตาข่าย + Metadata ข้อมูลเมตา + Midpoint จุดกึ่งกลาง + Midtones มิดโทน + Midtones from: มิดโทนจาก: + Midtones to: มิดโทนถึง: + Minimum Depth ความลึกขั้นต่ำ + Mix Jitter ผสมกระวนกระวายใจ + Mode: โหมด: + Monochrome ขาวดำ + More Points คะแนนเพิ่มเติม + Move Group Down ย้ายกลุ่มลง + Move Group Up ย้ายกลุ่มขึ้น + Move effect layer down ย้ายเลเยอร์เอฟเฟกต์ลง + Move effect layer up ย้ายเลเยอร์เอฟเฟกต์ขึ้น + Move to ย้ายไปที่ + Nearest Neighbor เพื่อนบ้านที่ใกล้ที่สุด + Nearest Neighbor (hard edges) เพื่อนบ้านที่ใกล้ที่สุด (ขอบแข็ง) + New effect layer เลเยอร์เอฟเฟกต์ใหม่ + Next note หมายเหตุถัดไป + No Color Management ไม่มีการจัดการสี + Optimized ปรับให้เหมาะสม + Output Levels: ระดับเอาท์พุท: + Output: เอาท์พุท: + Paint Overlay การทาสีทับซ้อน + Pattern Size ขนาดรูปแบบ + PhotoCraft PhotoCraft + PhotoCraft — an open-source, native image editor written in Rust. PhotoCraft — โปรแกรมแก้ไขภาพแบบโอเพ่นซอร์สที่เขียนด้วยภาษา Rust + Position and Size ตำแหน่งและขนาด + Preserve Details เก็บรายละเอียด + Preserve Luminosity รักษาความส่องสว่าง + Previous note บันทึกก่อนหน้า + Printer เครื่องพิมพ์ + Printer Setup การตั้งค่าเครื่องพิมพ์ + Printing Marks เครื่องหมายการพิมพ์ + Progressive ก้าวหน้า + Promote โปรโมท + Protect Detail ปกป้องรายละเอียด + Protect Tones ปกป้องโทนเสียง + Proximity Match การจับคู่ความใกล้ชิด + Purity ความบริสุทธิ์ + Quality คุณภาพ + Recent ล่าสุด + Reconstruct สร้างใหม่ + Refine ปรับแต่ง + Registration Marks เครื่องหมายทะเบียน + Regular ปกติ + Remove stop ลบหยุด + Rename Group… เปลี่ยนชื่อกลุ่ม… + Rename Layer… เปลี่ยนชื่อเลเยอร์… + Restore All คืนค่าทั้งหมด + Restrictive (Web) จำกัด (เว็บ) + Rigid แข็ง + Roughness ความหยาบ + Roundness ความกลม + Rulers & Grids ไม้บรรทัดและกริด + Sample: foreground colour ตัวอย่าง: สีพื้นหน้า + Sampling: Background Swatch การสุ่มตัวอย่าง: สวอตช์พื้นหลัง + Sampling: Continuous การสุ่มตัวอย่าง: ต่อเนื่อง + Sampling: Once การสุ่มตัวอย่าง: ครั้งเดียว + Saturate อิ่มตัว + Saturation Jitter ความอิ่มตัวของสี กระวนกระวายใจ + Save HTML and Images บันทึก HTML และภาพ + Save as PDF บันทึกเป็น PDF + Scale to Fit Media ปรับขนาดให้พอดีกับสื่อ + Scatter กระจาย + Scratch disks รอยขีดข่วนดิสก์ + Selective คัดเลือก + Shadows เงา + Shape: รูปร่าง: + Sharpening การลับคม + Shift กะ + Show All Menu Items แสดงรายการเมนูทั้งหมด + Show Backdrop แสดงฉากหลัง + Show Mask โชว์มาสก์ + Show Mesh แสดงตาข่าย + Show or hide the Notes panel แสดงหรือซ่อนแผงบันทึกย่อ + Show the layer mask as an overlay แสดงเลเยอร์มาสก์เป็นภาพซ้อนทับ + Show: แสดง: + Sides ด้านข้าง + Sides: ด้านข้าง: + Slice Options… ตัวเลือกชิ้น… + Slices From Guides ชิ้นจากคำแนะนำ + Slices are locked (View › Lock Slices) ชิ้นถูกล็อค (ดู › ล็อคชิ้น) + Split: แยก: + Star ratio อัตราส่วนดาว + Std Dev: มาตรฐานการพัฒนา: + Straighten ยืดตรง + Straighten Layer ปรับเลเยอร์ให้ตรง + Strength: ความแข็งแกร่ง: + Stroke โรคหลอดเลือดสมอง + Stroke Catch-up จังหวะจับขึ้น + Stroke: โรคหลอดเลือดสมอง: + Location: ที่ตั้ง: + Inside ข้างใน + Outside ภายนอก + Tetrahedral จัตุรมุข + Texture Each Tip พื้นผิวแต่ละเคล็ดลับ +# Gradient Editor window, opened from the options bar's gradient swatch. + Gradient Editor ตัวแก้ไขการไล่ระดับสี + Gradient picker ตัวเลือกการไล่ระดับสี + Save As Preset บันทึกเป็นค่าที่ตั้งล่วงหน้า + The gradient the Gradient tool paints with การไล่ระดับสีที่เครื่องมือไล่ระดับสีใช้ + Adds the current gradient to the Gradients panel เพิ่มการไล่ระดับสีปัจจุบันให้กับแผงการไล่ระดับสี + Gradient stops การไล่ระดับสีหยุด + Click to edit the gradient คลิกเพื่อแก้ไขการไล่ระดับสี + Tilt X เอียง X + Tilt Y เอียง Y + Toggle count group visibility สลับการเปิดเผยกลุ่มการนับ + Toggle text orientation สลับการวางแนวข้อความ + Tone: โทนเสียง: + Toolbar แถบเครื่องมือ + Top ด้านบน + Total: รวม: + Transparency ความโปร่งใส + Trilinear ไตรลิเนียร์ + Unlink the mask from the layer ยกเลิกการเชื่อมโยงมาสก์ออกจากเลเยอร์ + View Options ตัวเลือกมุมมอง + Violet, Orange สีม่วง,สีส้ม + Visible มองเห็นได้ + Weight น้ำหนัก + Weight: น้ำหนัก: + Wetness Jitter ความเปียกชื้น กระวนกระวายใจ + Whites คนผิวขาว + Yellow สีเหลือง + Yellow · Blue สีเหลือง · สีฟ้า + +# Preference dialog: generated setting labels and dropdown choices + Adobe อะโดบี + Adobe rgb อะโดบี RGB + Allow agent control อนุญาตให้ตัวแทนควบคุม + Allow scripts to connect อนุญาตให้สคริปต์เชื่อมต่อ + Always เสมอ + Always create smart objects when placing สร้างวัตถุอัจฉริยะเสมอเมื่อวาง + Animated zoom ซูมภาพเคลื่อนไหว + Apply auto tone ใช้โทนเสียงอัตโนมัติ + Ask ถาม + Ask before saving layered tiff ถามก่อนที่จะบันทึก TIFF แบบเลเยอร์ + Autosave บันทึกอัตโนมัติ + Autosave minutes บันทึกนาทีอัตโนมัติ + Beep when done ส่งเสียงบี๊บเมื่อเสร็จแล้ว + Bicubic automatic ไบคิวบิคอัตโนมัติ + Bicubic sharper Bicubic คมชัดยิ่งขึ้น + Bicubic smoother Bicubic เรียบเนียนยิ่งขึ้น + Bit depth ความลึกบิต + Brush picker ตัวเลือกแปรง + Brush preview color สีตัวอย่างแปรง + CPU (no GPU acceleration) CPU (ไม่มีการเร่งความเร็ว GPU) + Cache levels ระดับแคช + Cache tile size ขนาดไทล์แคช + Camera Raw Defaults ค่าเริ่มต้นCamera Raw + Canvas border ขอบผ้าใบ + Show canvas dots แสดงจุดผ้าใบ + Clip thumbnails to layer bounds คลิปภาพขนาดย่อให้เป็นขอบเขตของเลเยอร์ + Clip Thumbnails to Layer Bounds คลิปรูปขนาดย่อไปที่ Layer Bounds + Canvas color สีแคนวาส + Canvas custom color ผ้าใบสีตามสั่ง + Classic คลาสสิค + Color picker ตัวเลือกสี + Color space พื้นที่สี + Column width ความกว้างของคอลัมน์ + Concise กระชับ + Control port พอร์ตควบคุม + Convert to srgb แปลงเป็น srgb + Cursors เคอร์เซอร์ + Custom dark มืดแบบกำหนดเอง + Custom light แสงที่กำหนดเอง + Dark มืด + Dark gray สีเทาเข้ม + Dashed lines เส้นประ + Detailed รายละเอียด + DirectX 12 ไดเร็คเอ็กซ์ 12 + Disks ดิสก์ + Display p3 แสดงผล p3 + Dots จุด + Double click layer mask launches select and mask ดับเบิลคลิกเลเยอร์มาสก์เปิดตัวเลือกและมาสก์ + Drop shadow เงาตก + Dynamic color sliders แถบเลื่อนสีแบบไดนามิก + East asian เอเชียตะวันออก + Effect cache mb เอฟเฟกต์แคช mb + Enable flick panning เปิดใช้งานการเลื่อนแบบสะบัด + Enable floating document window docking เปิดใช้งานการเชื่อมต่อหน้าต่างเอกสารแบบลอย + Enable narrow options bar เปิดใช้งานแถบตัวเลือกแบบแคบ + Enhanced Controls การควบคุมที่ได้รับการปรับปรุง + Erase ลบ + Export clipboard ส่งออกคลิปบอร์ด + Extra large ใหญ่พิเศษ + File Handling การจัดการไฟล์ + File path เส้นทางไฟล์ + Fill new type layers with placeholder เติมเลเยอร์ตัวอักษรใหม่ด้วยตัวยึดตำแหน่ง + Font preview การแสดงตัวอย่างแบบอักษร + Full size tip ทิปขนาดเต็ม + GPU backend แบ็กเอนด์ GPU + Linux display server เซิร์ฟเวอร์แสดงผลลินุกซ์ + X11 X11 + Gamut warning color สีคำเตือนขอบเขต + Gamut warning opacity ความทึบของคำเตือน Gamut + General ทั่วไป + Enable Generator เปิดใช้งานเครื่องกำเนิดไฟฟ้า + Gif กิฟ + Glossy มันเงา + Grid color สีตาราง + Grid colors สีตาราง + Grid size ขนาดตาราง + Grid style สไตล์กริด + Grid unit หน่วยกริด + Gridline every เส้นตารางทุกๆ + Guide color สีไกด์ + Guide style สไตล์ไกด์ + Guides, Grid & Slices เส้นบอกแนว กริด และสไลซ์ + Gutter รางน้ำ + History Log บันทึกประวัติศาสตร์ + History states รัฐประวัติศาสตร์ + Ignore exif profile tag ละเว้นแท็กโปรไฟล์ EXIF + Image interpolation การแก้ไขภาพ + Image previews ตัวอย่างภาพ + Integrations บูรณาการ + Interface อินเทอร์เฟซ + Jpeg quality คุณภาพของเจเพ็ก + Jpg JPG + Large tabs แท็บขนาดใหญ่ + Legacy compositing การผสมผสานแบบเดิม + Light gray สีเทาอ่อน + Line เส้น + Lines เส้น + Lowercase extension ส่วนขยายตัวพิมพ์เล็ก + Maximize psd compatibility เพิ่มความเข้ากันได้ของ PSD ให้สูงสุด + Medium gray สีเทากลาง + Memory usage mb การใช้หน่วยความจำ เมกะไบต์ + Low resolution previews ตัวอย่างความละเอียดต่ำ + Metal โลหะ + Missing glyph protection การป้องกันสัญลักษณ์หายไป + Modern ทันสมัย + Nearest neighbor เพื่อนบ้านที่ใกล้ที่สุด + Never ไม่เคย + Normal tip ทิปปกติ + Open as smart object เปิดเป็นวัตถุอัจฉริยะ + Open in camera raw เปิดในกล้องดิบ + Open documents as tabs เปิดเอกสารเป็นแท็บ + OpenGL OpenGL + Orange ส้ม + Overscroll โอเวอร์สโครล + Performance ประสิทธิภาพ + Png PNG + Point size ขนาดพอยต์ + PostScript (72 points/inch) PostScript (72 จุด/นิ้ว) + Precise แม่นยำ + Preserve details เก็บรายละเอียด + Print resolution ความละเอียดในการพิมพ์ + Pro โปร + Pro light โปรไลท์ + Pro light gray โปรสีเทาอ่อน + Pro medium โปรกลาง + Pro photo ภาพโปร + Purple สีม่วง + Quick export format รูปแบบการส่งออกด่วน + Quick export location สถานที่ส่งออกด่วน + Recent file count จำนวนไฟล์ล่าสุด + LUT folder โฟลเดอร์ LUT + Recent files ไฟล์ล่าสุด + Recent fonts แบบอักษรล่าสุด + Recover on launch กู้คืนเมื่อเปิดตัว + Remember workspace changes จำการเปลี่ยนแปลงพื้นที่ทำงาน + Resize image during place ปรับขนาดภาพระหว่างสถานที่ + Right click with painting tools คลิกขวาด้วยเครื่องมือวาดภาพ + Rotate view with trackpad หมุนมุมมองด้วยแทร็กแพด + Same folder โฟลเดอร์เดียวกัน + Save in background บันทึกในพื้นหลัง + Scratch Disks รอยขีดข่วนดิสก์ + Screen resolution ความละเอียดหน้าจอ + Scrubby slider acceleration การเร่งความเร็วของตัวเลื่อนแบบสครับ + Sessions only เซสชันเท่านั้น + Sharpen for ลับคมเพื่อ + Show channels in color แสดงช่องเป็นสี + Show crosshair in brush tip แสดงเป้าเล็งที่ปลายแปรง + Show extension panels แสดงแผงส่วนขยาย + Show font names in english แสดงชื่อแบบอักษรเป็นภาษาอังกฤษ + Show menu colors แสดงสีเมนู + Show only crosshair while painting แสดงเฉพาะเป้าเล็งขณะวาดภาพ + Show slice numbers แสดงหมายเลขชิ้น + Show tooltips แสดงคำแนะนำเครื่องมือ + Enable animations เปิดใช้งานภาพเคลื่อนไหว + Show highlight on rollover แสดงไฮไลท์เมื่อโรลโอเวอร์ + Show bounding box when dragging layer แสดงกรอบขอบเมื่อลากเลเยอร์ + System title bar แถบหัวเรื่องของระบบ + Show transformation values แสดงค่าการแปลง + Slice color สีชิ้น + Smart guide color สีไกด์อัจฉริยะ + Smart quotes คำพูดที่ชาญฉลาด + Snap vector tools and transforms to pixel grid ถ่ายภาพเครื่องมือเวกเตอร์และแปลงเป็นตารางพิกเซล + Srgb สร + Standard มาตรฐาน + Studio สตูดิโอ + Studio light ไฟสตูดิโอ + Adwaita แอดเวตา + Adwaita dark แอดไวตามืด + Subdivisions เขตการปกครอง + System ระบบ + Text engine เอ็นจิ้นข้อความ + Text file ไฟล์ข้อความ + Tiny จิ๋ว + Touch gestures ท่าทางสัมผัส + Traditional (72.27 points/inch) แบบดั้งเดิม (72.27 จุด/นิ้ว) + Transparency & Gamut ความโปร่งใสและขอบเขต + Type units หน่วยตัวอักษร + UI font size ขนาดตัวอักษรของ UI + UI scale ขนาด UI + Units & Rulers หน่วยและผู้ปกครอง + Use additional plugins folder ใช้โฟลเดอร์ปลั๊กอินเพิ่มเติม + Use esc to commit ใช้ esc เพื่อคอมมิต + Use gpu ใช้จีพียู + Use legacy free transform ใช้การแปลงแบบฟรีแบบเดิม + Use shift key for tool switch ใช้ปุ่ม Shift สำหรับสวิตช์เครื่องมือ + Use tablet pressure ใช้แรงกดแท็บเล็ต + Vary round brush hardness on hud ความแข็งของแปรงกลมแปรผันบนฮัด + Vulkan วัลแคน + Webp เว็บพี + World ready โลกพร้อมแล้ว + Zoom clicked point to center ซูมคลิกชี้ไปที่กึ่งกลาง + Zoom resizes windows ซูมปรับขนาดหน้าต่าง + Zoom with scroll wheel ซูมด้วยล้อเลื่อน + Zoom with trackpad pinch ซูมด้วยการบีบแทร็กแพด + Alt-click to define a source point to clone from คลิก Alt เพื่อกำหนดจุดต้นทางที่จะโคลน + No path to make a selection from: draw one with the Pen tool or select one in the Paths panel. ไม่มีเส้นทางให้เลือก: วาดเส้นทางด้วยเครื่องมือปากกา หรือเลือกเส้นทางในแผงเส้นทาง + Cancel opening ยกเลิกการเปิด + Cancelled opening {name} ยกเลิกการเปิด {name} + Damaged Photoshop document เอกสาร Photoshop ที่เสียหาย + The document “{name}” may be damaged. เอกสาร “{name}” อาจเสียหาย + Some layers, pixels or masks could not be read. Do you want to continue opening it? ไม่สามารถอ่านเลเยอร์ พิกเซล หรือมาสก์บางเลเยอร์ได้ คุณต้องการเปิดมันต่อหรือไม่? + If you continue, saving over the original may permanently discard unreadable data. Save a copy to keep the original. หากคุณดำเนินการต่อ การบันทึกทับข้อมูลต้นฉบับอาจละทิ้งข้อมูลที่อ่านไม่ได้อย่างถาวร บันทึกสำเนาเพื่อเก็บต้นฉบับ + Continue ดำเนินการต่อ + The document “{name}” does not have an embedded {mode} profile. เอกสาร “{name}” ไม่มีโปรไฟล์ {mode} ที่ฝังอยู่ + The document “{name}” has an embedded color profile that does not match the current {mode} working space. เอกสาร “{name}” มีโปรไฟล์สีฝังอยู่ซึ่งไม่ตรงกับพื้นที่ทำงาน {mode} ปัจจุบัน + Working: {working} Working: {working} + Developing {name} กำลังพัฒนา {name} + Cancelled {label} ยกเลิก {label} + Esc to cancel Esc เพื่อยกเลิก + Opened {name} Opened {name} + Opening {name} Opening {name} + Saved {name} Saved {name} + Saving {name} กำลังบันทึก {name} + Saving {percent} Saving {percent} + A save to {name} is still running; try again when it finishes การบันทึกไปยัง {name} ยังคงทำงานอยู่ ลองอีกครั้งเมื่อเสร็จสิ้น + {label} is writing the file and can no longer be cancelled {label} กำลังเขียนไฟล์และไม่สามารถยกเลิกได้อีกต่อไป + Opening {name}… กำลังเปิด {name}… + Opening… กำลังเปิด… + Reading… กำลังอ่าน… + Working… กำลังทำงาน… + 3 x 3 3x3 + 4 x 4 4x4 + 5 x 5 5x5 + Grid: ตาราง: +# Rendering mode and recovery + Rendering Mode โหมดการเรนเดอร์ + Automatic (recommended) อัตโนมัติ (แนะนำ) + CPU / Compatibility ซีพียู / ความเข้ากันได้ + Automatic uses GPU acceleration when available and falls back to CPU rendering on errors. อัตโนมัติใช้การเร่งความเร็ว GPU เมื่อพร้อมใช้งานและถอยกลับไปที่การเรนเดอร์ CPU เมื่อมีข้อผิดพลาด + Switched to CPU rendering เปลี่ยนไปใช้การเรนเดอร์ CPU + GPU acceleration could not continue. Your documents are unchanged. การเร่งความเร็ว GPU ไม่สามารถดำเนินการต่อได้ เอกสารของคุณไม่มีการเปลี่ยนแปลง + PhotoCraft is using the CPU image compositor. The window may still use your graphics adapter. PhotoCraft กำลังใช้ตัวแต่งภาพ CPU หน้าต่างอาจยังคงใช้อะแดปเตอร์กราฟิกของคุณ + Retry GPU requires a restart. Save your work first. ลอง GPU อีกครั้งต้องรีสตาร์ท บันทึกงานของคุณก่อน + Retry GPU tries the graphics processor again now. ลองอีกครั้ง GPU ลองใช้โปรเซสเซอร์กราฟิกอีกครั้งทันที + GPU acceleration resumed. การเร่งความเร็ว GPU กลับมาทำงานอีกครั้ง + Keep Using CPU ใช้ CPU ต่อไป + Retry GPU ลอง GPU อีกครั้ง + GPU Backend แบ็กเอนด์ GPU + Details รายละเอียด + GPU จีพียู + Rendering mode โหมดการเรนเดอร์ + Freeze Lasso: drag to freeze an area, Alt-drag to thaw it (L) ตรึง Lasso: ลากเพื่อตรึงพื้นที่ กด Alt แล้วลากเพื่อละลาย (L) + Shadow Clipping Warning (U) คำเตือนเงาตัด (U) + Highlight Clipping Warning (O) คำเตือนการตัดไฮไลท์ (O) + Show Lab Color Readouts แสดงการอ่านค่าสีของแล็บ + Show Vectorscope แสดงเวคเตอร์สโคป + Show Red at 3 o'clock โชว์สีแดงเวลา 3 นาฬิกา + Show Skin Tone Indicator แสดงตัวบ่งชี้สีผิว + Tone Histogram โทนฮิสโตแกรม + Show Selected Region แสดงภูมิภาคที่เลือก +cameraRaw Light เบา +# Camera Raw: contextual controls and window title + Camera Raw Filter ({layer}) ฟิลเตอร์ Camera Raw ({layer}) + Camera Raw ({name}) กล้องดิบ ({name}) + Aqua อควา +cameraRaw Amount จำนวน +cameraRaw Blacks คนผิวดำ +cameraRaw Vibrance ความมีชีวิตชีวา +cameraRaw Color Grading การจัดระดับสี +cameraRaw Lights ไฟ +cameraRaw Darks ความมืด +cameraRaw Global ทั่วโลก +cameraRaw Red สีแดง +cameraRaw Orange ส้ม +cameraRaw Yellow สีเหลือง +cameraRaw Green สีเขียว +cameraRaw Aqua อควา +cameraRaw Blue สีฟ้า +cameraRaw Purple สีม่วง +cameraRaw Magenta สีม่วงแดง +cameraRaw Hue สี +cameraRaw Blending การผสม +cameraRaw Luminance Detail รายละเอียดความสว่าง +cameraRaw Color Detail รายละเอียดสี +cameraRaw Roughness ความหยาบ + Patch Tool เครื่องมือแก้ไข + Patch: แพทช์: + Lasso around an area, then drag the selection เชือกรอบๆ พื้นที่ จากนั้นลากส่วนที่เลือก + Transform On Drop แปลงร่างเมื่อหล่น + Scale or rotate the moved area, then press {key} ปรับขนาดหรือหมุนพื้นที่ที่ถูกย้าย จากนั้นกด {key} + Now drag the selection onto another area ตอนนี้ลากส่วนที่เลือกไปยังพื้นที่อื่น + Edit Type แก้ไขตัวอักษร + + New Style… รูปแบบใหม่… + Style {name} saved บันทึกสไตล์ {name} แล้ว + + Create new style (from the selected type) สร้างสไตล์ใหม่ (จากประเภทที่เลือก) + Create new style from the selected layer สร้างสไตล์ใหม่จากเลเยอร์ที่เลือก + + Make Default ทำให้เป็นค่าเริ่มต้น + Reset to Default รีเซ็ตเป็นค่าเริ่มต้น + Full-resolution preview unavailable ไม่สามารถแสดงตัวอย่างแบบเต็มความละเอียดได้ + No patterns ไม่มีลวดลาย + Enable {name} Enable {name} + Hold Alt while drawing for straight segments กด Alt ค้างไว้ขณะวาดส่วนที่เป็นเส้นตรง + Drag or click polygon points · hold Alt during lasso for straight segments · {add} add · {sub} before drawing subtracts Drag or click polygon points · hold Alt during lasso for straight segments · {add} add · {sub} before drawing subtracts + Extend ขยาย + Structure: โครงสร้าง: + Content-Aware Move Tool เครื่องมือย้ายเนื้อหา Aware + TIFF Options ตัวเลือก TIFF + Targa Options ตัวเลือกทาร์กา + JPEG Options ตัวเลือก JPEG + Image Options ตัวเลือกภาพ + Format Options ตัวเลือกรูปแบบ + Baseline ("Standard") พื้นฐาน ("มาตรฐาน") + Baseline Optimized ปรับให้เหมาะสมพื้นฐานแล้ว + 24 bits/pixel 24 บิต/พิกเซล + 32 bits/pixel 32 บิต/พิกเซล + Including layers will increase file size. รวมเลเยอร์จะทำให้ขนาดไฟล์เพิ่มขึ้น + Discard Layers and Save a Copy ละทิ้งเลเยอร์และบันทึกสำเนา + Don't show again อย่าแสดงอีก + Save failed: {error} บันทึกล้มเหลว: {error} + Save cancelled บันทึกถูกยกเลิก + Couldn't place {name}: {error} ไม่สามารถวาง {name}: {error} + Magnetic Lasso Tool เครื่องมือ Lasso แม่เหล็ก + Frequency ความถี่ + Use tablet pressure to change pen width ใช้แรงกดของแท็บเล็ตเพื่อเปลี่ยนความกว้างของปากกา + +# About ▸ Contributors / Models (credits, craftrules standards/contributors.md) + About เกี่ยวกับ + Contributors ผู้ร่วมให้ข้อมูล + Models โมเดล + Sort จัดเรียง + Username ชื่อผู้ใช้ + Display name ชื่อที่แสดง + Real name ชื่อจริง + Reverse the order ย้อนกลับคำสั่งซื้อ + Grab bag หยิบกระเป๋า + Table ตาราง + Name (A–Z) ชื่อ (ก-ฮ) + Merged PRs รวมประชาสัมพันธ์ + Commits มุ่งมั่น + Lines added เพิ่มบรรทัดแล้ว + Lines deleted ลบบรรทัดแล้ว + Line delta เส้นเดลต้า + Binary assets added เพิ่มสินทรัพย์ไบนารีแล้ว + Binary assets removed ลบเนื้อหาไบนารีแล้ว + First commit กระทำครั้งแรก + First อันดับแรก + Last commit กระทำครั้งสุดท้าย + Last สุดท้าย + Contributors: {contributors} · Commits: {commits} Contributors: {contributors} · Commits: {commits} + No contributor data was built into this copy. ไม่มีข้อมูลผู้ร่วมสร้างไว้ในสำเนานี้ + No model credits were built into this copy. ไม่มีการสร้างเครดิตแบบจำลองในสำเนานี้ + Company บริษัท + Version เวอร์ชัน + % of all commits % ของการกระทำทั้งหมด + Lines +/− เส้น +/− + @{login}: {prs} PRs, {commits} commits, +{added} / −{deleted} lines (Δ {delta}), +{binAdded} / −{binDeleted} binary assets, {first} – {last} @{login}: {prs} PRs, {commits} คอมมิต, +{added} / −{deleted} บรรทัด (Δ {delta}), +{binAdded} / −{binDeleted} สินทรัพย์ไบนารี, {first} – {last} + +# Swatches panel + Create new swatch สร้างตัวอย่างใหม่ + New Swatch… สวอตช์ใหม่… + New Swatch Group… กลุ่มสวอตช์ใหม่… + Import Swatches… นำเข้าตัวอย่าง… + Replace Swatches… แทนที่ Swatches… + Export Swatches… ส่งออกตัวอย่าง… + Export Swatches for Exchange… ส่งออก Swatches เพื่อการแลกเปลี่ยน… + Reset Swatches รีเซ็ต Swatches + Add to Swatches เพิ่มลงในสวอตช์ +# Layer Style > Blending Options (Advanced Blending) + Blend If: ผสมผสานหาก: + Channels: ช่องทาง: + Knockout น็อคเอาท์ + Apply At Canvas Bounds สมัครได้ที่ Canvas Bounds + +# Shared screen eyedropper and text Color Picker (#1128). + Color Picker (Text Color) เครื่องมือเลือกสี (สีข้อความ) + Color Picker ({name}) เครื่องมือเลือกสี ({name}) + Color Picker (Fill Color) เครื่องมือเลือกสี (เติมสี) + Fill color เติมสี + Color Picker (Stroke Color) เครื่องมือเลือกสี (สีเส้น) + Stroke color สีเส้นขีด + Pick screen color เลือกสีหน้าจอ + Sample a pixel anywhere on the screen ตัวอย่างพิกเซลที่ใดก็ได้บนหน้าจอ + Click to pick · Esc to cancel คลิกเพื่อเลือก · Esc เพื่อยกเลิก + Pick a screen pixel or press Esc to cancel เลือกพิกเซลของหน้าจอหรือกด Esc เพื่อยกเลิก + Scroll to zoom เลื่อนเพื่อซูม + Drag to pan · Scroll to zoom · Double-click to fit ลากเพื่อเลื่อน · เลื่อนเพื่อซูม · ดับเบิลคลิกเพื่อให้พอดี + Show/Hide All Panels แสดง/ซ่อนแผงทั้งหมด + Show/Hide Panels แสดง/ซ่อนแผง + Could not open ไม่สามารถเปิดได้ + {path}: the path is not valid Unicode; rename the file and open it again. {path}: เส้นทางไม่ถูกต้อง Unicode; เปลี่ยนชื่อไฟล์แล้วเปิดอีกครั้ง + +# Fill dialog, layer style contours and Image Size + Contents: สารบัญ: + Custom Pattern: รูปแบบที่กำหนดเอง: + Foreground Color สีพื้นหน้า + Color… สี… + 50% Gray 50% สีเทา + {size} (was {old}) {size} (เป็น {old}) + Cone กรวย + Cone (Inverted) กรวย (คว่ำ) + Domed ทรงโดม + Domed (Inverted) ทรงโดม (กลับหัว) + Diagonal (Descending) เส้นทแยงมุม (จากมากไปน้อย) + Contour Editor ตัวแก้ไขรูปร่าง + Anti-aliased ต่อต้านนามแฝง + Corner มุม + Gloss Contour คอนทัวร์แบบเงา + Contour คอนทัวร์ + Cone - Inverted กรวย - คว่ำ + Cove - Deep โคฟ - ลึก + Cove - Shallow โคฟ - ตื้น + Gaussian เกาส์เซียน + Half Round ครึ่งรอบ + Ring แหวน + Ring - Double แหวน-คู่ + Rolling Slope - Descending เนินลาด - จากมากไปน้อย + Rounded Steps ขั้นตอนที่โค้งมน + Sawtooth 1 ฟันเลื่อย 1 + Linear เชิงเส้น + + Red Eye Tool เครื่องมือตาแดง + Pupil Size ขนาดรูม่านตา + Darken Amount ทำให้ปริมาณเข้มขึ้น + Click a red pupil to neutralize it คลิกที่รูม่านตาสีแดงเพื่อทำให้เป็นกลาง + open source โอเพ่นซอร์ส + …and {n} more …และอีก {n} รายการ + + Eyedroppers: ยาหยอดตา: + Set Black Point ตั้งค่าจุดดำ + Set Neutral Gray Point ตั้งค่าจุดสีเทากลาง + Set White Point ตั้งค่าจุดขาว + Unavailable in this color mode ไม่พร้อมใช้งานในโหมดสีนี้ + Selection Preview: ดูตัวอย่างการเลือก: + Black Matte สีดำด้าน + White Matte สีขาวแมท + Quick Mask มาสก์ด่วน + +# Layer colour labels. + Seafoam ซีโฟม + Indigo สีคราม + Fuchsia บานเย็น + Violet สีม่วง + Large document: redrawing on the CPU เอกสารขนาดใหญ่: วาดใหม่บน CPU + Redrawing วาดใหม่ + This redraw took {seconds} s on the CPU. การวาดใหม่นี้ใช้เวลา {seconds} วินาทีบน CPU + Edits that change the whole document, such as a layer's blend mode, opacity or visibility, redraw all of it. การแก้ไขที่เปลี่ยนแปลงทั้งเอกสาร เช่น โหมดผสมผสานของเลเยอร์ ความทึบ หรือการมองเห็น ให้วาดใหม่ทั้งหมด + The GPU compositor wasn't used: {reason} ไม่ได้ใช้ตัวแต่ง GPU: {reason} +fontWeight Thin บาง +fontWeight ExtraLight เอ็กซ์ตร้าไลท์ +fontWeight Light เบา +fontWeight Regular ปกติ +fontWeight Medium ปานกลาง +fontWeight SemiBold กึ่งหนา +fontWeight Bold ตัวหนา +fontWeight ExtraBold โดดเด่นเป็นพิเศษ +fontWeight Black ดำ +fontWeight Italic ตัวเอียง + +# Pattern Stamp tool + Pattern Stamp Tool เครื่องมือประทับตรารูปแบบ + Impressionist อิมเพรสชั่นนิสต์ + Rotate View Tool เครื่องมือหมุนมุมมอง + Reset View รีเซ็ตมุมมอง + Drag around the centre to rotate the view · Shift constrains to 15° ลากไปรอบๆ ศูนย์กลางเพื่อหมุนมุมมอง · Shift จำกัดไว้ที่ 15° + +# Painting symmetry presets. + Dual Axis แกนคู่ + Diagonal เส้นทแยงมุม + Transform Symmetry แปลงสมมาตร + Set painting symmetry options ตั้งค่าตัวเลือกสมมาตรของการวาดภาพ + +# Eyedropper Sample Size and Sample (#1649). + Point Sample ตัวอย่างจุด + 3 by 3 Average เฉลี่ย 3 x 3 + 5 by 5 Average เฉลี่ย 5 x 5 + 11 by 11 Average เฉลี่ย 11 x 11 + 31 by 31 Average 31 x 31 เฉลี่ย + 51 by 51 Average 51 x 51 เฉลี่ย + 101 by 101 Average เฉลี่ย 101 x 101 + Sample Size: ขนาดตัวอย่าง: + All Layers No Adjustments ทุกเลเยอร์ไม่มีการปรับเปลี่ยน + Current & Below No Adjustments ปัจจุบันและต่ำกว่าไม่มีการปรับเปลี่ยน + Show Sampling Ring แสดงแหวนเก็บตัวอย่าง + Click to sample the foreground colour · {key}-click for background คลิกเพื่อดูตัวอย่างสีพื้นหน้า · {key}-คลิกเพื่อดูพื้นหลัง + +# Color Picker warnings + Out of gamut for printing: click for the nearest printable colour อยู่นอกช่วงการพิมพ์: คลิกเพื่อดูสีที่ใกล้ที่สุดที่สามารถพิมพ์ได้ + Not a web colour: click for the nearest web colour ไม่ใช่สีเว็บ: คลิกเพื่อดูสีเว็บที่ใกล้ที่สุด + Color to Alpha… สีเป็นอัลฟ่า… + Transparency Threshold เกณฑ์ความโปร่งใส + Opacity Threshold เกณฑ์ความทึบ + PhotoCraft — Screen Color Picker PhotoCraft — ตัวเลือกสีของหน้าจอ + + Rasterize svg groups deeper than แรสเตอร์กลุ่ม svg ให้ลึกกว่า + 0 turns this threshold off; SVG groups nested deeper than 100 levels are always rasterized. 0 ปิดเกณฑ์นี้ กลุ่ม SVG ที่ซ้อนกันลึกกว่า 100 ระดับจะถูกแรสเตอร์เสมอ + Rule of Thirds กฎข้อที่สาม + Triangle สามเหลี่ยม + Golden Ratio อัตราส่วนทองคำ + Golden Spiral เกลียวทอง + Auto Show Overlay การแสดงภาพซ้อนทับอัตโนมัติ + Always Show Overlay แสดงภาพซ้อนทับเสมอ + Never Show Overlay ไม่ต้องแสดงภาพซ้อนทับ + Cycle Overlay การซ้อนทับวงจร + Cycle Orientation การวางแนววงจร + Set the overlay options for the Crop tool ตั้งค่าตัวเลือกการซ้อนทับสำหรับเครื่องมือครอบตัด + Alt-click went to the desktop, which moves windows with Alt-drag. Set its window-move key to Super, or latch Alt in Window › Modifier Keys. คลิก Alt ไปที่เดสก์ท็อป ซึ่งย้ายหน้าต่างด้วย Alt-drag ตั้งค่าปุ่มย้ายหน้าต่างเป็น Super หรือล็อค Alt ใน Window › Modifier Keys + +# Shared Layer Style color picker + Color Picker (Layer Style Color) เครื่องมือเลือกสี (สีสไตล์เลเยอร์) + Auto Hide Notifications ซ่อนการแจ้งเตือนอัตโนมัติ + Notification Duration (seconds) ระยะเวลาการแจ้งเตือน (วินาที) + Bundle Arrow-Key Nudges มัดปุ่มลูกศรแบบมัด + Nudge Bundle Pause (ms) เขยิบ Bundle หยุดชั่วคราว (มิลลิวินาที) + Appearance Mode โหมดรูปลักษณ์ + Dark Theme ธีมสีเข้ม + Light Theme ธีมแสง + Pro Medium โปรมีเดียม + Studio Light ไฟสตูดิโอ + Next Appearance Mode โหมดรูปลักษณ์ถัดไป + Sync with system ซิงค์กับระบบ + Active ใช้งานอยู่ + Color Picker (Solid Color) เครื่องมือเลือกสี (สีทึบ) + Straighten the image by drawing a line on it ปรับภาพให้ตรงโดยลากเส้นลงไป + Set additional Crop options ตั้งค่าตัวเลือกการครอบตัดเพิ่มเติม + Show Cropped Area แสดงพื้นที่ครอบตัด + Enable Crop Shield เปิดใช้งานครอบตัดโล่ + Match Canvas จับคู่ผ้าใบ + Auto Adjust Opacity ปรับความทึบอัตโนมัติ + Crop Shield color สีของครอบตัดโล่ + Color Picker (Crop Shield Color) ตัวเลือกสี (สีโล่ครอบตัด) + From Center จากศูนย์ + Link radii รัศมีลิงก์ + Star Ratio: อัตราส่วนดาว: + Create Rectangle สร้างสี่เหลี่ยมผืนผ้า + Create Ellipse สร้างวงรี + Create Triangle สร้างรูปสามเหลี่ยม + Create Polygon สร้างรูปหลายเหลี่ยม + Pressure curve เส้นโค้งความดัน + Click to add a point, right-click to remove คลิกเพื่อเพิ่มจุด คลิกขวาเพื่อลบ + Soft นุ่มนวล + Hard ยาก + Some brush presets could not be loaded ไม่สามารถโหลดค่าที่ตั้งไว้ล่วงหน้าของแปรงบางค่าได้ + Retry saving presets ลองบันทึกค่าที่ตั้งไว้ล่วงหน้าอีกครั้ง + Brush preset changes are not saved: {error} การเปลี่ยนแปลงที่ตั้งไว้ล่วงหน้าของแปรงจะไม่ถูกบันทึก: {error} + Keep this tab open to retain your brushes. เปิดแท็บนี้ไว้เพื่อรักษาแปรงของคุณ + Browser storage is unavailable; brushes are session-only. Keep this tab open to retain them. พื้นที่เก็บข้อมูลเบราว์เซอร์ไม่พร้อมใช้งาน แปรงเป็นแบบเซสชันเท่านั้น เปิดแท็บนี้ไว้เพื่อเก็บไว้ + Saving brush presets… Keep this tab open until saving finishes. กำลังบันทึกค่าที่ตั้งล่วงหน้าของแปรง... เปิดแท็บนี้ไว้จนกว่าการบันทึกจะเสร็จสิ้น + Reflect ไตร่ตรอง + Glow เรืองแสง + Negation การปฏิเสธ + XOR แฮคเกอร์ + Color Burn (Paint.NET) เบิร์นสี (Paint.NET) + Color Dodge (Paint.NET) ดอดจ์สี (Paint.NET) + Stroke Options ตัวเลือกจังหวะ + Solid แข็ง + Dashed ประ + Dotted ลายจุด + Caps หมวก + Butt / Flat ก้น/แบน + Corners มุม + Miter ตุ้มปี่ + Round รอบ + Bevel เบเวล + Miter limit ขีด จำกัด ตุ้มปี่ + Dashed line เส้นประ + Dash แดช + Gap ช่องว่าง + Dash / gap lengths × stroke width เส้นประ / ความยาวช่องว่าง × ความกว้างเส้นขีด + Add pair เพิ่มคู่ + Remove pair ถอดคู่ออก + Dash offset แดชออฟเซ็ต + Open paths use centered strokes เส้นทางที่เปิดใช้จังหวะที่กึ่งกลาง + Use finite lengths and a positive pattern total ใช้ความยาวจำกัดและรูปแบบผลรวมที่เป็นบวก + No subject found — try Object Selection or the Lasso ไม่พบหัวเรื่อง — ลองใช้ Object Selection หรือ Lasso + Quick Selection found nothing there Quick Selection ไม่พบสิ่งใดที่นั่น + Object Selection found nothing there — try a tighter rectangle การเลือกวัตถุไม่พบสิ่งใดเลย ลองใช้สี่เหลี่ยมแคบกว่านี้ + No subject found — try a rectangle around the object ไม่พบวัตถุ — ลองใช้สี่เหลี่ยมรอบๆ วัตถุ + +# Layers-panel trash confirmation + Delete layer ‘{name}’? ลบเลเยอร์ '{name}' หรือไม่ + Delete {count} layers? {names} Delete {count} layers? {names} + Delete layer? ลบเลเยอร์ใช่ไหม + The document is closed เอกสารถูกปิด + The document or selected layers changed. Please request deletion again. เอกสารหรือเลเยอร์ที่เลือกมีการเปลี่ยนแปลง กรุณาขอลบอีกครั้ง + Missing delete command คำสั่งลบหายไป + Invalid delete command คำสั่งลบไม่ถูกต้อง + Layer deleted, but confirmation preference could not be saved: {error} ลบเลเยอร์แล้ว แต่ไม่สามารถบันทึกการตั้งค่าการยืนยันได้: {error} + Add a layer style เพิ่มสไตล์เลเยอร์ + Add a mask (from the selection; {key} inverts) เพิ่มมาสก์ (จากส่วนที่เลือก; {key} กลับด้าน) + Add an adjustment เพิ่มการปรับ + Add to selection ({key}) เพิ่มไปยังส่วนที่เลือก ({key}) + Adjustment visible มองเห็นการปรับแล้ว + Align and distribute จัดตำแหน่งและกระจาย + Align horizontal centers จัดกึ่งกลางแนวนอน + Align left edges จัดแนวขอบด้านซ้าย + Align right edges จัดขอบด้านขวา + Always use pressure for opacity ใช้แรงกดเพื่อความทึบเสมอ + Always use pressure for size ใช้แรงกดเพื่อขนาดเสมอ + Angle Gradient การไล่ระดับมุม + Auto-Select: เลือกอัตโนมัติ: + Brush Preset picker เครื่องมือเลือกแปรงที่ตั้งไว้ล่วงหน้า + Cancel current crop operation (Esc) ยกเลิกการดำเนินการครอบตัดปัจจุบัน (Esc) + Click the first point or press {key} to close · Esc cancels คลิกจุดแรกหรือกด {key} เพื่อปิด · ยกเลิก Esc + Click the first point or press {key} to close · {del} removes a point · Esc cancels คลิกจุดแรกหรือกด {key} เพื่อปิด · {del} ลบจุด · Esc ยกเลิก + Click, then move along an edge · click to fasten a point · {alt}-click for a straight segment · double-click to close คลิก จากนั้นเลื่อนไปตามขอบ · คลิกเพื่อยึดจุด · {alt}-คลิกเพื่อดูส่วนตรง · ดับเบิลคลิกเพื่อปิด + Clip to layer below คลิปลงเลเยอร์ด้านล่าง + Color & Swatches สีและตัวอย่าง + Commit current crop operation ({key}) ยอมรับการดำเนินการครอบตัดปัจจุบัน ({key}) + Create a new group สร้างกลุ่มใหม่ + Create a new layer สร้างเลเยอร์ใหม่ + Create new document from current state สร้างเอกสารใหม่จากสถานะปัจจุบัน + Create new fill or adjustment layer สร้างเลเยอร์การเติมหรือการปรับใหม่ + Create new snapshot สร้างสแนปชอตใหม่ + From: จาก: + Full Document เอกสารฉบับเต็ม + Merged Layers เลเยอร์ที่ผสาน + Delete Cropped Pixels ลบพิกเซลที่ครอบตัด + Delete current state ลบสถานะปัจจุบัน + Delete layer ลบเลเยอร์ + Diamond Gradient ไล่ระดับเพชร + Doc: {w} × {h} px เอกสาร: {w} × {h} พิกเซล + Enable airbrush-style build-up effects เปิดใช้งานเอฟเฟกต์การสร้างแบบแอร์บรัช + Filter for adjustment layers ฟิลเตอร์เลเยอร์การปรับ + Filter for pixel layers ฟิลเตอร์เลเยอร์พิกเซล + Filter for shape layers ฟิลเตอร์เลเยอร์รูปร่าง + Filter for smart objects ฟิลเตอร์สำหรับวัตถุอัจฉริยะ + Filter for type layers ฟิลเตอร์สำหรับเลเยอร์ตัวอักษร + Fixed Ratio อัตราส่วนคงที่ + Fixed Size ขนาดคงที่ + Follows only edges this close to the pointer ([ and ] change it) ติดตามเฉพาะขอบใกล้กับตัวชี้เท่านั้น ([ และ ] เปลี่ยน) + Hide Properties ซ่อนคุณสมบัติ + Higher values follow only edges that contrast sharply with their surroundings ค่าที่สูงกว่าจะติดตามเฉพาะขอบที่ตัดกันอย่างมากกับสภาพแวดล้อมเท่านั้น + How often fastening points are placed by themselves มีการวางจุดยึดด้วยตัวเองบ่อยเพียงใด + Hue/Saturation ฮิว/ความอิ่มตัว + Intersect with selection ({key}) ตัดกับส่วนที่เลือก ({key}) + Kind ชนิด + Linear Gradient การไล่ระดับสีเชิงเส้น + Link layers ลิงค์เลเยอร์ + Lock ล็อก + Lock all ล็อคทั้งหมด + Lock image pixels ล็อคพิกเซลภาพ + Lock layer ล็อคเลเยอร์ + Lock position ตำแหน่งล็อค + Lock transparent pixels ล็อคพิกเซลโปร่งใส + New selection การคัดเลือกใหม่ + No properties ไม่มีคุณสมบัติ + Pressure for Opacity ความกดดันสำหรับความทึบ + Pressure for Size ความดันสำหรับขนาด + Prevent auto-nesting in and out of Artboards and Frames ป้องกันการซ้อนเข้าและออกจากอาร์ตบอร์ดและเฟรมโดยอัตโนมัติ + Radial Gradient การไล่ระดับสีแบบเรเดียล + Reflected Gradient ไล่ระดับสีสะท้อน + Reset to defaults รีเซ็ตเป็นค่าเริ่มต้น + Set additional smoothing options ตั้งค่าตัวเลือกการปรับให้เรียบเพิ่มเติม + Show Transform Controls แสดงการควบคุมการแปลง + Subtract from selection ({key}) ลบออกจากส่วนที่เลือก ({key}) + Swaps height and width สลับความสูงและความกว้าง + Tolerance ความอดทน + Add vector mask เพิ่มมาสก์เวกเตอร์ + Click to zoom in · {key}-click to zoom out · drag right/left to zoom in/out คลิกเพื่อซูมเข้า · {key}-คลิกเพื่อซูมออก · ลากไปทางขวา/ซ้ายเพื่อซูมเข้า/ออก + Appearance Settings… การตั้งค่าลักษณะที่ปรากฏ… + Add to favorites เพิ่มในรายการโปรด + Remove from favorites ลบออกจากรายการโปรด +# File Info ▸ Camera Data (read-only EXIF fields; "Make" is the camera maker, not the verb). +cameraData Make ทำ +cameraData Model รุ่น +cameraData Date Taken วันที่ถ่าย +cameraData Exposure การเปิดรับแสง +cameraData F-Stop F-หยุด +cameraData ISO Speed ความไวแสง ISO +cameraData Focal Length ทางยาวโฟกัส +cameraData Focal Length (35 mm) ทางยาวโฟกัส (35 มม.) +cameraData Lens เลนส์ +# Shared panel docking + Activate Panel เปิดใช้งานแผง + Change Panel Group เปลี่ยนกลุ่มแผง + Change Panel Layout เปลี่ยนเค้าโครงแผง + Close Panel ปิดแผง + Dock Panel แผงท่าเรือ + Float Panel แผงลอย + Move Panel ย้ายแผง + Group with กลุ่มด้วย + Panel menu เมนูแผง + Resize panel window ปรับขนาดหน้าต่างแผง + Resize panels ปรับขนาดแผง + Use Classic Mode ใช้โหมดคลาสสิก + Auto Center Preview ดูตัวอย่างศูนย์อัตโนมัติ + Next Document เอกสารถัดไป + Previous Document เอกสารก่อนหน้า + W x H x Resolution กว้าง x สูง x ความละเอียด + Front Image ภาพด้านหน้า + Frame Tool เครื่องมือเฟรม + Create a new rectangular frame สร้างกรอบสี่เหลี่ยมใหม่ + Create a new elliptical frame สร้างกรอบรูปวงรีใหม่ + Include in playback รวมไว้ในการเล่น + Perspective Crop Tool เครื่องมือครอบตัดมุมมอง + Show Grid แสดงกริด + Drag a box or click four corners · drag the corners onto the edges of a skewed shape · {commit} commits · Esc cancels Drag a box or click four corners · drag the corners onto the edges of a skewed shape · {commit} commits · Esc cancels + Artboard Tool เครื่องมืออาร์ตบอร์ด + Make Portrait สร้างภาพบุคคล + Make Landscape ทำภูมิทัศน์ + Add New Artboard เพิ่มอาร์ตบอร์ดใหม่ + Freeform Pen Tool เครื่องมือปากการูปแบบอิสระ + Curvature Pen Tool เครื่องมือปากกาโค้ง + Curve Fit: ความโค้งพอดี: + Drag: draw freehand · {alt}-click: straight segment · Release on the start point: close ลาก: วาดด้วยมือเปล่า · {alt}-คลิก: ส่วนตรง · ปล่อยที่จุดเริ่มต้น: ปิด + Click: smooth point · Double-click: corner · Drag a point: move · Click first point: close · {key} finish คลิก: จุดที่ราบรื่น · ดับเบิลคลิก: มุม · ลากจุด: ย้าย · คลิกจุดแรก: ปิด · {key} เสร็จสิ้น + Scale: ขนาด: + Snap to Origin สแน็ปไปที่จุดเริ่มต้น + Link with Layer เชื่อมโยงกับเลเยอร์ + Rasterize Layer Style แรสเตอร์สไตล์เลเยอร์ + Search settings… การตั้งค่าการค้นหา… + No matching settings ไม่มีการตั้งค่าที่ตรงกัน +# Edit › Content-Aware Fill workspace + Sampling Brush Tool เครื่องมือแปรงสุ่มตัวอย่าง + Sampling Area Overlay การซ้อนทับพื้นที่สุ่มตัวอย่าง + Show Sampling Area แสดงพื้นที่สุ่มตัวอย่าง + Indicates บ่งชี้ + Sampling Area พื้นที่สุ่มตัวอย่าง + Excluded Area พื้นที่ยกเว้น + Sampling Area Options ตัวเลือกพื้นที่สุ่มตัวอย่าง + Rectangular สี่เหลี่ยม + Fill Settings กรอกการตั้งค่า + Rotation Adaptation การปรับตัวแบบหมุน + Very High สูงมาก + Full เต็ม + Mirror กระจกเงา + Output Settings การตั้งค่าเอาท์พุต + Output To ส่งออกไปที่ + Duplicate Layer เลเยอร์ซ้ำ + Contract สัญญา + + Animation Options ตัวเลือกภาพเคลื่อนไหว + Entire Document เอกสารทั้งหมด + Filter Options ตัวเลือกฟิลเตอร์ + Layer Bounds ขอบเขตของเลเยอร์ + Layers Panel Options ตัวเลือกแผงเลเยอร์ + Lock Layers ล็อคเลเยอร์ + New Artboard… อาร์ตบอร์ดใหม่… + New Group… กลุ่มใหม่… + Prevent Auto-Nesting ป้องกันการซ้อนอัตโนมัติ + Show Layers แสดงเลเยอร์ + Thumbnail Contents เนื้อหาภาพขนาดย่อ + Thumbnail Size ขนาดรูปขนาดย่อ + Use Default Masks on Fill Layers ใช้มาสก์เริ่มต้นในการเติมเลเยอร์ + Expand New Effects ขยายเอฟเฟกต์ใหม่ + Add “copy” to Copied Layers and Groups เพิ่ม "คัดลอก" ลงในเลเยอร์และกลุ่มที่คัดลอก + Preview on canvas when reordering layers ดูตัวอย่างบนผืนผ้าใบเมื่อเรียงลำดับเลเยอร์ใหม่ + Show layer mask badges แสดงป้ายเลเยอร์มาสก์ + +# Smart Filter editors + Blending Options ({filter}) ตัวเลือกการผสม ({filter}) + Hide the layer's effects and Smart Filters ({key}-click: all layers) ซ่อนเอฟเฟกต์ของเลเยอร์และฟิลเตอร์อัจฉริยะ ({key}-click: ทุกเลเยอร์) + Show the layer's effects and Smart Filters ({key}-click: all layers) แสดงเอฟเฟกต์ของเลเยอร์และฟิลเตอร์อัจฉริยะ ({key}-click: ทุกเลเยอร์) + Wait for the current job to finish. รอให้งานปัจจุบันเสร็จสิ้น + The document or Smart Filter changed. Reopen its dialog. เอกสารหรือฟิลเตอร์อัจฉริยะมีการเปลี่ยนแปลง เปิดกล่องโต้ตอบอีกครั้ง + Opacity must be between 0% and 100%. ความทึบต้องอยู่ระหว่าง 0% ถึง 100% + Dissolve is approximated: it blends without Photoshop's dither. การละลายเป็นการประมาณ: มันผสมกันโดยไม่ต้องใช้ไดเทอร์ของ Photoshop + Loading fonts… กำลังโหลดแบบอักษร… + Response curve เส้นโค้งการตอบสนอง + Tool เครื่องมือ + Simulate Pressure จำลองความดัน + Stroke Path… เส้นทางโรคหลอดเลือดสมอง… + Background Eraser ยางลบพื้นหลัง + Healing Brush แปรงรักษา + Spot Healing Brush แปรงรักษาเฉพาะจุด + Smudge รอยเปื้อน + Sponge ฟองน้ำ + Amount: จำนวน: + Protect: ป้องกัน: + Protect skin tones ปกป้องสีผิว + Edit points to modify the curve แก้ไขจุดเพื่อปรับเปลี่ยนเส้นโค้ง + Draw to modify the curve วาดเพื่อปรับเปลี่ยนเส้นโค้ง +curves Smooth เรียบเนียน + Smooth the curve values ปรับค่าเส้นโค้งให้เรียบ + Drag to draw the curve · {key}-click draws a straight line ลากเพื่อวาดเส้นโค้ง · {key}-คลิก วาดเส้นตรง + Grid Size: ขนาดตาราง: + Vanishing Point: click four corners to create a plane จุดที่หายไป: คลิกมุมทั้งสี่เพื่อสร้างระนาบ + Vanishing Point is not active Vanishing Point ใช้งานไม่ได้ + Apply Vanishing Point ({key}) ใช้ Vanishing Point ({key}) + Fix the red plane first: its corners must form a convex quad แก้ไขระนาบสีแดงก่อน: มุมของมันจะต้องเป็นรูปสี่เหลี่ยมนูน + Alt-click a plane to set the clone source คลิก Alt บนระนาบเพื่อตั้งค่าแหล่งที่มาของโคลน + Too many clone strokes: apply Vanishing Point first มีจังหวะโคลนมากเกินไป: ใช้ Vanishing Point ก่อน +# Select and Mask view modes (#1754) + Onion Skin ผิวหัวหอม + Marching Ants มดเดินขบวน + On Black บนสีดำ + On White บนสีขาว + On Layers บนเลเยอร์ + Show Edge แสดงขอบ + Show Original แสดงต้นฉบับ + F cycles the views; hold X to see the image F วนรอบมุมมอง; กด X ค้างไว้เพื่อดูภาพ +# Select and Mask Refine Edge Brush (#2972) + Refine Edge Brush (R) ปรับแต่งแปรงขอบ (R) + Expand Detection Area ขยายพื้นที่การตรวจจับ + Restore Original Edge คืนค่าขอบดั้งเดิม + Paint over hair or fur on the image; Alt paints the other mode ทาสีทับผมหรือขนสัตว์บนภาพ Alt วาดภาพโหมดอื่น + Clear Brush Strokes ล้างจังหวะแปรง + Show rulers แสดงผู้ปกครอง + New Crop Preset… ใหม่ Crop Preset… + Delete Crop Preset… ลบค่าที่ตั้งไว้ครอบตัด… + Select the crop presets to delete: เลือกค่าที่ตั้งไว้ครอบตัดที่จะลบ: + Select the crop presets to delete เลือกค่าที่ตั้งไว้ครอบตัดที่จะลบ + Enter a name for the crop preset ป้อนชื่อสำหรับค่าที่ตั้งไว้ครอบตัด + There is no crop size or ratio to save ไม่มีขนาดหรืออัตราส่วนการครอบตัดที่จะบันทึก + Presentation การนำเสนอ + +# Color Sampler (added with the i18n coverage repair) + Click to place · Alt-click or drag off-canvas to remove คลิกเพื่อวาง · คลิก Alt หรือลากนอกแคนวาสเพื่อลบ + No document open ไม่มีการเปิดเอกสาร + {n} of {max} sample points จุดตัวอย่าง {n} จาก {max} + +# History panel menu (#2966) + New Snapshot… สแนปชอตใหม่… + History Options… ตัวเลือกประวัติ… +# History panel › History Options… (#2966) + Allow Non-Linear History อนุญาตประวัติที่ไม่ใช่เชิงเส้น + Make Layer Visibility Changes Undoable ทำให้การเปลี่ยนแปลงการมองเห็นเลเยอร์ไม่สามารถยกเลิกได้ +# Print dialog (#2697) + Emulsion Down อิมัลชันลง + Functions ฟังก์ชั่น + Print Resolution: ความละเอียดในการพิมพ์: + Use Previous Layer to Create Clipping Mask ใช้เลเยอร์ก่อนหน้าเพื่อสร้างรูปแบบการตัด + Fill with {mode}-neutral color (white) เติมด้วย {mode} - สีที่เป็นกลาง (สีขาว) + Fill with {mode}-neutral color (black) เติมด้วย {mode} - สีที่เป็นกลาง (สีดำ) + Fill with {mode}-neutral color (50% gray) เติมด้วย {mode} - สีที่เป็นกลาง (สีเทา 50%) + (No neutral color exists for {mode} mode.) (ไม่มีสีที่เป็นกลางสำหรับโหมด {mode}) + Apply mask to layer before removing? ทามาสก์เป็นเลเยอร์ก่อนถอด? + The layer or its mask changed. Drag the mask onto the Trash again. เลเยอร์หรือมาสก์เปลี่ยนไป ลากมาสก์ไปที่ถังขยะอีกครั้ง + Delete the vector mask? ลบเวกเตอร์มาสก์ใช่ไหม +# Counted status messages and labels (#3454; adapted from PR #3821) +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} ส่งออก {n} ตัวอย่างไปยัง {file} +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} นำเข้า {n} แปรงจาก {group} +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} นำเข้า {n} ตัวอย่างจาก {file} +@plural Played {n} step|Played {n} steps เล่นไปแล้ว {n} ก้าว +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk อัปเดตวัตถุอัจฉริยะที่เชื่อมโยง {n} เปลี่ยนแปลงบนดิสก์ +@plural Saved for Web: {n} file|Saved for Web: {n} files บันทึกสำหรับเว็บ: {n} ไฟล์ +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. {n} เลเยอร์ที่บันทึกโดยคอมพ์นี้ถูกลบแล้ว อัปเดตคอมพ์หรือล้างคำเตือน +@plural {n} plane|{n} planes {n} ระนาบ +@plural {n} preset|{n} presets {n} ที่ตั้งไว้ล่วงหน้า +@plural {n} sample point removed|{n} sample points removed {n} คะแนนตัวอย่างถูกลบออก +@plural {n} slice|{n} slices {n} ชิ้น +@plural {n} step|{n} steps {n} ขั้นตอน +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} คำเตือนที่ตั้งไว้ล่วงหน้าของแปรงเพิ่มเติม) +@plural {what} with {n} warning|{what} with {n} warnings {what} with {n} warnings +# View › Guides › New Guide… › Color + Light Blue ฟ้าอ่อน + Light Red สีแดงอ่อน + Medium Blue ฟ้ากลาง + Light Gray สีเทาอ่อน + Object Finder ตัวค้นหาวัตถุ + No object found there — drag a rectangle around it ไม่พบวัตถุตรงนั้น ให้ลากสี่เหลี่ยมรอบๆ สิ่งนั้น + The active layer has no pixels here — turn on Sample All Layers or select a layer with pixels เลเยอร์ที่ใช้งานอยู่ไม่มีพิกเซลที่นี่ - เปิดตัวอย่างเลเยอร์ทั้งหมดหรือเลือกเลเยอร์ที่มีพิกเซล + Remove after each stroke ลบออกหลังจากแต่ละจังหวะ + Apply the removal ({key}) ใช้การลบ ({key}) + Strokes to remove: {n} (Enter applies, Esc cancels) จังหวะที่จะลบ: {n} (Enter ใช้, Esc ยกเลิก) + Load Contours… โหลดรูปทรง… + Replace Contours… แทนที่รูปทรง… + Save Contours… บันทึกรูปทรง… + Delete Contour ลบคอนทัวร์ + Loaded contours from {file} โหลดรูปทรงจาก {file} + Saved contours to {file} รูปทรงที่บันทึกไว้ใน {file} + Show home recent files แสดงไฟล์ล่าสุดที่บ้าน + Clear Brush Controls ล้างการควบคุมแปรง + Reset All Locked Settings รีเซ็ตการตั้งค่าที่ถูกล็อคทั้งหมด + Copy Texture to Other Tools คัดลอกพื้นผิวไปยังเครื่องมืออื่น ๆ + +# Actions panel: Load/Save Actions (.atn) and kept Photoshop steps + Load Actions… โหลดการดำเนินการ… + Save Actions… บันทึกการดำเนินการ… + New Action… แอคชั่นใหม่… + Start Recording เริ่มการบันทึก + Stop Recording หยุดการบันทึก + {name} (Photoshop) {name} (Photoshop) + {message} ({note}) {message} ({note}) +@plural Loaded {n} action from {file}|Loaded {n} actions from {file} โหลดการกระทำ {n} รายการจาก {file} +@plural {n} step has no PhotoCraft equivalent yet|{n} steps have no PhotoCraft equivalent yet {n} ขั้นตอนยังไม่มีเทียบเท่ากับ PhotoCraft +@plural Saved {n} action to {file}|Saved {n} actions to {file} บันทึกการกระทำ {n} ลงใน {file} +@plural {n} step with no Photoshop equivalent left out|{n} steps with no Photoshop equivalent left out {n} ขั้นตอนที่ไม่มี Photoshop เทียบเท่าเหลืออยู่ + + File Naming การตั้งชื่อไฟล์ + Starting serial กำลังเริ่มซีเรียส +# Actions panel: set folders, dialog toggle, Insert Stop + Insert Stop… แทรกหยุด… + Save Set… บันทึกชุด… + Message: ข้อความ: + Allow Continue อนุญาตให้ดำเนินการต่อ + Show dialog during playback แสดงกล่องโต้ตอบระหว่างการเล่น + Select an action first เลือกการกระทำก่อน + Action playback stopped การเล่นแอ็คชั่นหยุดลง + Step {step} is waiting for its dialog ขั้นตอนที่ {step} กำลังรอกล่องโต้ตอบ +@plural {n} action|{n} actions {n} การกระทำ + Background (Default) พื้นหลัง (ค่าเริ่มต้น) + Content-Aware Fill การเติมการรับรู้เนื้อหา +# Batch / Image Processor + Include All Subfolders รวมโฟลเดอร์ย่อยทั้งหมด + Auto Add/Delete เพิ่ม/ลบอัตโนมัติ + +# Native Windows printing qualification + Don't also tick Mirror Image in Print Settings…: the two flips cancel out. อย่าทำเครื่องหมายที่ Mirror Image ในการตั้งค่าการพิมพ์…: การพลิกทั้งสองครั้งจะถูกยกเลิก + Print Settings… การตั้งค่าการพิมพ์… + Remember to turn off the printer's own colour management in Print Settings… อย่าลืมปิดการจัดการสีของเครื่องพิมพ์ในการตั้งค่าการพิมพ์… + Sent to {printer} Sent to {printer} + set in Print Settings… ตั้งค่าไว้ในการตั้งค่าการพิมพ์… + ICO is limited to 256 × 256 pixels ICO จำกัดขนาดไว้ที่ 256 × 256 พิกเซล + Calibration การสอบเทียบ + Red Primary ประถมสีแดง + Green Primary ประถมศึกษาสีเขียว + Blue Primary ประถมศึกษาสีน้ำเงิน + Write xmp sidecars เขียน xmp sidecars + Set the tone sliders from the image ตั้งค่าแถบเลื่อนโทนสีจากภาพ + Settings from {name} การตั้งค่าจาก {name} + Settings from {name}; {count} not supported: {names} การตั้งค่าจาก {name}; ไม่รองรับ {count}: {names} + Could not write {name}: {error} ไม่สามารถเขียน {name}: {error} + Kept {name}: written by another application เก็บ {name}: เขียนโดยแอปพลิเคชันอื่น + Shadow Tint เฉดสีเงา +# History panel › History Brush source (#2966) + Paints from the History panel's source state สีจากสถานะแหล่งที่มาของแผงประวัติ + Sets the source for the history brush ตั้งค่าแหล่งที่มาสำหรับแปรงประวัติ + +# Dynamic selection context menu and appearance favorites + Select Inverse เลือก ผกผัน + Pro (Light) โปร (เบา) + Pro (Light Gray) Pro (สีเทาอ่อน) + +# Measurement Log column headers (analysis_cmds::COLUMNS) + Label ป้ายกำกับ + Date and Time วันที่และเวลา + Scale Units หน่วยสเกล + Scale Factor สเกลแฟคเตอร์ + Area พื้นที่ + Perimeter เส้นรอบวง + Circularity ความเป็นวงกลม + Gray Value (Minimum) ค่าสีเทา (ขั้นต่ำ) + Gray Value (Maximum) ค่าสีเทา (สูงสุด) + Gray Value (Mean) ค่าสีเทา (ค่าเฉลี่ย) + Gray Value (Median) ค่าสีเทา (ค่ามัธยฐาน) + Integrated Density ความหนาแน่นรวม + Length ความยาว + Show Favorite Fonts แสดงแบบอักษรโปรด + No favorite fonts yet: click the star beside a font to add it. ยังไม่มีแบบอักษรโปรด: คลิกดาวข้างแบบอักษรเพื่อเพิ่ม + Favorite fonts แบบอักษรที่ชื่นชอบ + Add to Favorites เพิ่มในรายการโปรด + Remove from Favorites ลบออกจากรายการโปรด + Show All Fonts แสดงแบบอักษรทั้งหมด + All Classes ทุกเลเยอร์เรียน + Blackletter จดหมายสีดำ + Decorative ตกแต่ง + Font preview: ตัวอย่างแบบอักษร: + Handwritten เขียนด้วยลายมือ + Hide Font Classes ซ่อนคลาสแบบอักษร + Hide Styles ซ่อนสไตล์ + Monospace โมโนสเปซ + No fonts match these filters. ไม่มีแบบอักษรที่ตรงกับฟิลเตอร์เหล่านี้ + No similar fonts: the current font doesn't say what it looks like. ไม่มีแบบอักษรที่คล้ายกัน: แบบอักษรปัจจุบันไม่ได้บอกว่ามีลักษณะอย่างไร + OpenType font แบบอักษร OpenType + Sans Serif แซนเซอริฟ + Script สคริปต์ + Serif เซริฟ + Show Font Classes แสดงคลาสแบบอักษร + Show Similar Fonts แสดงแบบอักษรที่คล้ายกัน + Show Styles แสดงสไตล์ + Show Variable Fonts แสดงแบบอักษรตัวแปร + Slab Serif แผ่นพื้น Serif + TrueType font ฟอนต์ TrueType + Variable font แบบอักษรที่เปลี่ยนแปลงได้ +# Bevel & Emboss shading controls. + Highlight Mode โหมดไฮไลท์ + Highlight Color ไฮไลท์สี + Highlight Opacity ไฮไลท์ความทึบ + Shadow Mode โหมดเงา + Shadow Color สีเงา + Shadow Opacity ความทึบของเงา +# PhotoCraft release checks. + Check for Updates… ตรวจสอบการอัปเดต… + PhotoCraft Updates อัพเดตPhotoCraft + Checking for updates… กำลังตรวจสอบการอัปเดต… + Open the release page to choose an installer for your system. เปิดหน้าเผยแพร่เพื่อเลือกตัวติดตั้งสำหรับระบบของคุณ + Open Download Page เปิดหน้าดาวน์โหลด + PhotoCraft is up to date. PhotoCraft เป็นเวอร์ชันล่าสุดแล้ว + Could not check for updates. ไม่สามารถตรวจสอบการอัปเดตได้ + Updates have not been checked yet. ยังไม่ได้ตรวจสอบการอัปเดต + Check Again ตรวจสอบอีกครั้ง + Automatically Check for Updates ตรวจสอบการอัปเดตโดยอัตโนมัติ + Installed version: {version} เวอร์ชันที่ติดตั้ง: {version} + PhotoCraft {version} is available. PhotoCraft {version} พร้อมใช้งานแล้ว +# Embedded Profile Mismatch: profile names beside the choices, Remember this choice + Use the embedded profile ({profile}) ใช้โปรไฟล์แบบฝัง ({profile}) + Convert to the working space ({profile}) แปลงเป็นพื้นที่ทำงาน ({profile}) + Remember this choice for future images จำตัวเลือกนี้ไว้สำหรับภาพในอนาคต + Turn the prompt back on with Ask On Mismatch in Edit › Color Settings. เปิดพรอมต์อีกครั้งด้วย Ask On Mismatch ในแก้ไข > การตั้งค่าสี + Button Mode โหมดปุ่ม + Button Mode On ปุ่มเปิดโหมด + +# Darken / Lighten Interface (⇧⌘F1 / ⇧⌘F2) + Darken Interface อินเทอร์เฟซมืดลง + Lighten Interface เบาลงอินเทอร์เฟซ +# Bevel & Emboss Technique. + Technique เทคนิค + Chisel Hard สิ่วฮาร์ด + Chisel Soft สิ่วซอฟท์ + Open color-less EXR as ACEScg เปิด EXR ไร้สีเป็น ACEScg + Do not append "copy" to filename when saving a copy อย่าเพิ่ม "สำเนา" ต่อท้ายชื่อไฟล์เมื่อบันทึกสำเนา + +# View › Guides › right-click a guide + Edit Selected Guides แก้ไขคำแนะนำที่เลือก + Clear Selected Guides ล้างคำแนะนำที่เลือก + Bicubic Automatic ไบคิวบิกอัตโนมัติ + Bicubic Smoother Bicubic เรียบเนียนยิ่งขึ้น + Bicubic Sharper เครื่องลับ Bicubic + Pasting from other apps is unavailable ไม่สามารถวางจากแอปอื่นได้ + PhotoCraft can't reach the system clipboard in this session. On Wayland, a Flatpak sandbox hides the protocol that images from other apps are read through. PhotoCraft ไม่สามารถเข้าถึงคลิปบอร์ดของระบบในเซสชันนี้ บน Wayland แซนด์บ็อกซ์ Flatpak จะซ่อนโปรโตคอลที่ภาพจากแอปอื่นถูกอ่านผ่าน + To paste from other apps, start PhotoCraft under XWayland: `{command}` หากต้องการวางจากแอปอื่น ให้เริ่ม PhotoCraft ภายใต้ XWayland: `{command}` + Nothing to paste: PhotoCraft can't read the system clipboard here ไม่มีสิ่งใดที่จะวาง: PhotoCraft ไม่สามารถอ่านคลิปบอร์ดของระบบได้ที่นี่ + Delete this set ลบชุดนี้ + New Set… ชุดใหม่… + PhotoCraft Defaults ค่าเริ่มต้นของ PhotoCraft + Save a list of these shortcuts as a web page บันทึกรายการทางลัดเหล่านี้เป็นหน้าเว็บ + Save the changes to this set บันทึกการเปลี่ยนแปลงในชุดนี้ + Save these shortcuts as a .kys file บันทึกทางลัดเหล่านี้เป็นไฟล์ .kys + Save these shortcuts as a new set บันทึกทางลัดเหล่านี้เป็นชุดใหม่ + Set deleted. ลบชุดแล้ว + Set saved. บันทึกชุดแล้ว + Set: ชุด: + Summarize… สรุป… + There are too many sets: delete one first. มีชุดมากเกินไป โปรดลบออกหนึ่งชุดก่อน + set name ตั้งชื่อ + {set} (modified) {set} (แก้ไขแล้ว) + Random สุ่ม + Show file name in title แสดงชื่อไฟล์ในชื่อเรื่อง + +# Image › Mode › Bitmap (#5559) + 50% Threshold เกณฑ์ 50% + Pattern Dither รูปแบบ Dither + Diffusion Dither การแพร่กระจาย Dither + Halftone Screen หน้าจอฮาล์ฟโทน + Custom Pattern รูปแบบที่กำหนดเอง + Frequency: ความถี่: + Lines/Inch เส้น/นิ้ว + Lines/Centimeter เส้น/เซนติเมตร + Ellipse วงรี + Diamond เพชร + Cross ข้าม + Accept and Go to Conflict ยอมรับและไปสู่ความขัดแย้ง + Changes undone. ยกเลิกการเปลี่ยนแปลงแล้ว + Choose a new shortcut for this command, or leave it without one. เลือกทางลัดใหม่สำหรับคำสั่งนี้ หรือปล่อยไว้โดยไม่มีคำสั่งใดเลย + Put this command's shortcuts back as they were นำทางลัดของคำสั่งนี้กลับมาเหมือนเดิม + Take the shortcut from the other command and select it ใช้ทางลัดจากคำสั่งอื่นแล้วเลือก + Undo Changes เลิกทำการเปลี่ยนแปลง + {shortcut} is reserved by the system and can't be assigned. {shortcut} ถูกสงวนไว้โดยระบบและไม่สามารถกำหนดได้ + Low-Latency Drawing (vsync off, applies at next launch) การวาดเวลาแฝงต่ำ (ปิด vsync มีผลในการเปิดตัวครั้งถัดไป) +# Free Transform: a new layer while the box is open (#5859) + Free Transform is still being applied; try again when it has finished. ยังคงมีการใช้ Free Transform อยู่ ลองอีกครั้งเมื่อเสร็จแล้ว + The transform couldn't be applied. ไม่สามารถใช้การแปลงได้ +# Preferences › Performance › GPU Memory; the status bar and slow-redraw notice + Its layers need {needed} of GPU memory; the budget leaves them {budget}. เลเยอร์ของมันต้องการหน่วยความจำ GPU {needed} งบประมาณเหลือไว้ {budget} + Set GPU Memory in Preferences › Performance to what your graphics card can hold, at most 3/8 of its memory. Automatic follows Memory Usage, within a quarter of this computer's memory and 3/8 of the card's, and doesn't count the document against a card whose memory is known. The status bar shows GPU Memory Full while they don't fit. ตั้งค่าหน่วยความจำ GPU ในการตั้งค่า > ประสิทธิภาพตามที่การ์ดกราฟิกของคุณสามารถเก็บได้ สูงสุด 3/8 ของหน่วยความจำ อัตโนมัติจะติดตามการใช้หน่วยความจำ ภายในหนึ่งในสี่ของหน่วยความจำของคอมพิวเตอร์เครื่องนี้และ 3/8 ของการ์ด และไม่นับเอกสารกับการ์ดที่รู้จักหน่วยความจำ แถบสถานะแสดงหน่วยความจำ GPU เต็มในขณะที่ไม่พอดี + GPU Memory Full หน่วยความจำ GPU เต็ม + The layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. เลเยอร์ต้องการหน่วยความจำ GPU {needed} และอาจเก็บ {budget} ดังนั้นการแก้ไขที่วาดทั้งเอกสารใหม่จึงดำเนินการบน CPU คลิกเพื่อตั้งค่าหน่วยความจำ GPU + GPU memory budget: {budget} งบประมาณหน่วยความจำ GPU: {budget} + Graphics memory: {size} Graphics memory: {size} + This document's layers: {needed} of {budget} for layers เลเยอร์ของเอกสารนี้: {needed} จาก {budget} สำหรับเลเยอร์ + This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU เลเยอร์ของเอกสารนี้จำเป็นต้องมี {needed} แต่อาจเก็บ {budget} ได้: การวาดทั้งเอกสารใหม่ใช้ CPU + GPU Memory (MB, 0 = Automatic) หน่วยความจำ GPU (MB, 0 = อัตโนมัติ) + {path}: the path is not valid Unicode; save under another name. {path}: เส้นทางไม่ถูกต้อง Unicode; บันทึกภายใต้ชื่ออื่น + Replace แทนที่ + {name} was changed by another app after it was opened or saved here. {name} ถูกเปลี่ยนโดยแอปอื่นหลังจากเปิดหรือบันทึกที่นี่ + Replace it with this document, or cancel and use File › Save As to keep both. แทนที่ด้วยเอกสารนี้ หรือยกเลิกและใช้ไฟล์ › บันทึกเป็นเพื่อเก็บทั้งสองอย่าง + +# Dynamic UI labels (fourth pass): filter and adjustment parameters, Camera Raw panels, +# lighting, History/Layers/paths/channels menus, metadata, System Info, status templates and +# dialog text that other catalogs already carry. Written from the meaning of the English labels +# in the ordinary Russian graphics-editor vocabulary; no proprietary resource consulted. + (coming soon) (เร็ว ๆ นี้) + (none) (ไม่มี) + 32-bit Preview Options ตัวเลือกการแสดงตัวอย่าง 32 บิต + 3D… 3 มิติ… + A: ตอบ: + AI Integrations บูรณาการ AI + About {app} About {app} + Accented Edges ขอบเน้น + Action playback failed: {error} การเล่นการกระทำล้มเหลว: {error} + Actual Pixels พิกเซลจริง + Add Mask เพิ่มมาสก์ + Add Noise เพิ่มเสียงรบกวน + Add a mask (from the selection; ⌥ inverts) เพิ่มมาสก์ (จากตัวเลือก; ⌥ กลับด้าน) + Add space after paragraph เพิ่มช่องว่างหลังย่อหน้า + Add space before paragraph เพิ่มช่องว่างก่อนย่อหน้า + Add to selection (⇧) เพิ่มไปยังส่วนที่เลือก (⇧) + Added swatch {name} เพิ่มตัวอย่าง {name} + Adds grain to the soft edges of the brush tip. เพิ่มเกรนที่ขอบนุ่มของปลายแปรง + Adjust Interval For Loops ปรับช่วงเวลาสำหรับลูป + Adjustment Layers เลเยอร์ปรับแต่ง + Adjustment Properties คุณสมบัติการปรับ + Adjustment layers have nothing to transform เลเยอร์การปรับแต่งไม่มีอะไรจะเปลี่ยนแปลง + Adobe PDF Presets… ค่าที่ตั้งล่วงหน้า Adobe PDF… + Adobe-rgb-compat Adobe-rgb-compat + Adwaita (Dark) แอดเวตา (ความมืด) + Adwaita (Light) อัดเวตา (ธาตุเบา) + After หลังจากนั้น + Airbrush: keeps painting while the pointer rests. พู่กัน: คงการวาดภาพในขณะที่ตัวชี้วางอยู่ + All shortcuts reset to Photoshop defaults. ทางลัดทั้งหมดรีเซ็ตเป็นค่าเริ่มต้นของ Photoshop + Altitude ระดับความสูง + Ambience บรรยากาศ + Ambient สิ่งแวดล้อม + Amplitude Max แอมพลิจูดสูงสุด + Amplitude Min แอมพลิจูดต่ำสุด + Android 1080p แอนดรอยด์ 1080p + Angled Strokes จังหวะมุม + Anisotropic แอนไอโซทรอปิก + Any อะไรก็ได้ + Apple Watch 45mm แอปเปิ้ลวอช 45มม + Apply Data Set ใช้ชุดข้อมูล + Apply Image ใช้ภาพ + Apply Mask ใช้มาสก์ + Apply to All นำไปใช้กับทั้งหมด + Apply {option}: {state} ใช้ {option}: {state} + Arbitrary โดยพลการ + Arc Lower อาร์คล่าง + Arc Upper อาร์คตอนบน + Are you sure you want to quit? คุณแน่ใจหรือว่าต้องการเลิก? + Are you sure? คุณแน่ใจเหรอ? + Around Center รอบศูนย์ + Arrangement การจัด + Arrows ลูกศร + Artboard from Group อาร์ตบอร์ดจากกลุ่ม + Artboard from Layers อาร์ตบอร์ดจากเลเยอร์ + Artboards อาร์ตบอร์ด + Artboards to Files อาร์ตบอร์ดเป็นไฟล์ + Artboards to PDF อาร์ตบอร์ดเป็น PDF + Artistic เชิงศิลปะ + Ask On Mismatch ถามเรื่องไม่ตรงกัน + Ask On Missing ถามเมื่อหายไป + Ask On Paste ถามเกี่ยวกับการวาง + Assign Profile กำหนดโปรไฟล์ + At ณ + Author Title ชื่อผู้แต่ง + Auto Scale ปรับขนาดอัตโนมัติ + Auto-Align Layers จัดตำแหน่งเลเยอร์อัตโนมัติ + Auto-Blend Layers ผสมผสานเลเยอร์อัตโนมัติ + Autosave failed: {error} บันทึกอัตโนมัติล้มเหลว: {error} + Back กลับ + Backend: {backend} ({type}) Backend: {backend} ({type}) + Background Level ระดับพื้นหลัง + Bamboo ไม้ไผ่ + Bas Relief บาสรีลีฟ + Base Tree Type ประเภทฐานต้นไม้ + Based On ขึ้นอยู่กับ + Baseline shift การเปลี่ยนแปลงพื้นฐาน + Basic Latin ภาษาละตินขั้นพื้นฐาน + Batch แบทช์ + Before ก่อน + Bend โค้งงอ + Berries เบอร์รี่ + Best ดีที่สุด + Black Clip คลิปดำ + Black Intensity ความเข้มของสีดำ + Blade Curvature ความโค้งของใบมีด + Blast ระเบิด + Bleach Bypass สารฟอกขาวบายพาส + Blend Clipped Layers as Group ผสมผสานเลเยอร์ที่ตัดเป็นกลุ่ม + Blend Interior Effects as Group ผสมผสานเอฟเฟกต์ภายในเป็นกลุ่ม + Blend Text Gamma ผสมผสานแกมมาข้อความ + Blending Mode โหมดการผสม + Bloat บวม + Blocks บล็อก + Blue Yellow ฟ้าเหลือง + Blues บลูส์ + Border ชายแดน + Border Thickness ความหนาของเส้นขอบ + Box Blur กล่องเบลอ + Bpc บีพีซี + Branches Color สีกิ่ง + Branches Height ความสูงของสาขา + Branches Thickness ความหนาของสาขา + Breeze Dark บรีส ดาร์ก + Breeze Light บรีซไลท์ + Brick อิฐ + Bristle Detail รายละเอียดขนแปรง + Browse เรียกดู + Brush Detail รายละเอียดแปรง + Brush Settings… (F5): every option of this brush Brush Settings… (F5): ทุกตัวเลือกของแปรงนี้ + Brush Strokes แปรงจังหวะ + Brush Type ประเภทแปรง + Burlap ผ้ากระสอบ + Calculations การคำนวณ + Camera Raw กล้องดิบ + Camera Raw Filter ฟิลเตอร์ Camera Raw + Cancel transform ยกเลิกการแปลง + Candle Light แสงเทียน + Canvas Size ขนาดผ้าใบ + Case Sensitive คำนึงถึงขนาดตัวพิมพ์ + Ccw ตามเข็มนาฬิกา + Cell Size ขนาดเซลล์ + Center X เซ็นเตอร์เอ็กซ์ + Center Y เซ็นเตอร์ วาย + Chalk Area พื้นที่ชอล์ก + Change Find เปลี่ยนการค้นหา + Changes Saved บันทึกการเปลี่ยนแปลงแล้ว + Changes have not been saved. ยังไม่ได้บันทึกการเปลี่ยนแปลง + Change… เปลี่ยน… + Channel1 ช่อง1 + Channel2 ช่อง2 + Channel3 ช่อง3 + Channel4 ช่อง 4 + Charcoal Area พื้นที่ถ่าน + Charcoal Thickness ความหนาของถ่าน + Check for Updates ตรวจสอบการอัปเดต + Checkerboard กระดานหมากรุก + Choke สำลัก + Choose Folder เลือกโฟลเดอร์ + Circle วงกลม + Cleanliness ความสะอาด + Clear Amount ล้างจำนวนเงิน + Clear Selection ล้างการเลือก + Click sets foreground · right-click sets background คลิกตั้งค่าเบื้องหน้า · คลิกขวาตั้งค่าพื้นหลัง + Click the first point or press ↵ to close · Esc cancels คลิกจุดแรกหรือกด ↵ เพื่อปิด · ยกเลิก Esc + Click to add a point · drag off or ⌘/Ctrl-click or Delete to remove คลิกเพื่อเพิ่มจุด · ลากออก หรือ ⌘/Ctrl คลิก หรือ Delete เพื่อลบ + Click to apply, ⌥-click to clear overrides, double-click for Style Options คลิกเพื่อใช้ ⌥ คลิกเพื่อล้างการแทนที่ ดับเบิลคลิกเพื่อดูตัวเลือกสไตล์ + Click to zoom in · ⌥-click to zoom out คลิกเพื่อซูมเข้า · ⌥-คลิกเพื่อซูมออก + Click: corner · Drag: smooth · Click first point: close · ↩ finish · Esc cancel คลิก: มุม · ลาก: ราบรื่น · คลิกจุดแรก: ปิด · ↩ เสร็จสิ้น · ยกเลิก Esc + Clipping Mask คลิปปิ้งมาสก์ + Clipping Path… เส้นทางการตัด… + Clone โคลน + Clone source set at {x}, {y} แหล่งโคลนตั้งไว้ที่ {x}, {y} + Close Window ปิดหน้าต่าง + Clumped รวมตัวกันเป็นก้อน + Cmyk ซีเอ็มวายเค + Coarse Dots จุดหยาบ + Coated-cmyk เคลือบ-cmyk + Collapse group (⌥-click: all groups) ยุบกลุ่ม (⌥-คลิก: ทุกกลุ่ม) + Color Decontaminate ฆ่าเชื้อสี + Color Halftone ฮาล์ฟโทนสี + Color Indicates Masked Areas สีแสดงถึงบริเวณที่ปิดบัง + Color Indicates Selected Areas สีบ่งบอกถึงพื้นที่ที่เลือก + Color Lookup Tables ตารางค้นหาสี + Color Picker ตัวเลือกสี + Color Picker (Background Color) เครื่องมือเลือกสี (สีพื้นหลัง) + Color Picker (Custom Canvas Color) ตัวเลือกสี (สีผ้าใบที่กำหนดเอง) + Color Picker (Foreground Color) เครื่องมือเลือกสี (สีพื้นหน้า) + Color Sampler Tool เครื่องมือเก็บตัวอย่างสี + Color Settings การตั้งค่าสี + Color Swatches ตัวอย่างสี + Color Table ตารางสี + Color management: {error} Color management: {error} + Colored Pencil ดินสอสี + Comic Book หนังสือการ์ตูน + Commit Perspective Warp (↩) คอมมิตเปอร์สเปคทีฟวาร์ป (↩) + Commit Puppet Warp (↩) กระทำการวาร์ปหุ่นเชิด (↩) + Commit any current edits (⌘↩) ยืนยันการแก้ไขปัจจุบัน (⌘↩) + Commit current crop operation (↵) ยอมรับการดำเนินการครอบตัดปัจจุบัน (↵) + Commit transform ยอมรับการเปลี่ยนแปลง + Commit transform (↩) ยอมรับการแปลง (↩) + Commit warp (↩) คอมมิตวาร์ป (↩) + Compare เปรียบเทียบ + Conditional Mode Change การเปลี่ยนแปลงโหมดตามเงื่อนไข + Confirm ยืนยัน + Conform สอดคล้อง + Constraints ข้อจำกัด + Content-Aware Fill needs a selection on a pixel layer Content-Aware Fill จำเป็นต้องเลือกบนเลเยอร์พิกเซล + Contrasty คอนทราสต์ + Convert แปลง + Convert to Alpha Channel แปลงเป็นช่องอัลฟ่า + Convert to Linked แปลงเป็นลิงค์ + Convert to Profile แปลงเป็นโปรไฟล์ + Cool เจ๋ง + Cooling L B B ระบายความร้อน L B B + Cooling80 คูลลิ่ง80 + Cooling82 คูลลิ่ง82 + Copy Complete Stroke คัดลอกจังหวะที่สมบูรณ์ + Copy Fill คัดลอกเติม + Copyright Url URL ลิขสิทธิ์ + Correct C A ถูกต้อง C A + Correct Distortion การบิดเบือนที่ถูกต้อง + Correct Vignette วิกเน็ตต์ที่ถูกต้อง + Could not rename the action: {error} ไม่สามารถเปลี่ยนชื่อการดำเนินการ: {error} + Could not transform: the layer is empty ไม่สามารถแปลง: เลเยอร์ว่างเปล่า + Could not use Perspective Warp: the layer is empty ไม่สามารถใช้ Perspective Warp ได้: เลเยอร์ว่างเปล่า + Could not use Puppet Warp: no opaque pixels ไม่สามารถใช้ Puppet Warp: ไม่มีพิกเซลทึบแสง + Could not use Puppet Warp: the layer is empty ไม่สามารถใช้ Puppet Warp ได้: เลเยอร์ว่างเปล่า + Couldn't open {name}: {error} ไม่สามารถเปิด {name}: {error} + Couldn't save preferences: {error}. Retrying… ไม่สามารถบันทึกการตั้งค่า: {error} กำลังลองอีกครั้ง… + Crack Brightness แตกความสว่าง + Crack Depth ความลึกของรอยแตก + Crack Spacing ระยะห่างของรอยแตก + Craquelure คราเกวร์ + Create By สร้างโดย + Create Vector Mask สร้างมาสก์เวกเตอร์ + Create Warped Text สร้างข้อความบิดเบี้ยว + Create a new layer (⇧⌘N) สร้างเลเยอร์ใหม่ (⇧⌘N) + Create new brush from the current settings สร้างแปรงใหม่จากการตั้งค่าปัจจุบัน + Create new brush preset from the current settings สร้างแปรงที่ตั้งไว้ล่วงหน้าใหม่จากการตั้งค่าปัจจุบัน + Create… สร้าง… + Cross Process ข้ามกระบวนการ + Crosshatch ครอสแฮทช์ + Crosswise ขวาง + Crystallize ตกผลึก + Currency สกุลเงิน + Curve Darks เส้นโค้งความมืด + Curve Highlights จุดเด่นของเส้นโค้ง + Curve Lights ไฟโค้ง + Curve Shadows เงาโค้ง + Curve Splits การแยกส่วนโค้ง + Custom Branch Color สีสาขาที่กำหนดเอง + Custom Pixel Aspect Ratio อัตราส่วนพิกเซลแบบกำหนดเอง + Custom pattern รูปแบบที่กำหนดเอง + Cutout คัตเอาท์ + Cw ตาม + Cyans สีฟ้า + Cyrillic ซีริลลิก + Daisies ดอกเดซี่ + Dark Gray สีเทาเข้ม + Dark Intensity ความเข้มของความมืด + Dark Rough เข้มหยาบ + Dark Strokes จังหวะมืด + Darken Only เข้มขึ้นเท่านั้น + Darkness ความมืด + Data ข้อมูล + Data Set: {name} ({index}/{total}) ชุดข้อมูล: {name} ({index}/{total}) + Data Sets as Files ชุดข้อมูลเป็นไฟล์ + Date วันที่ + Day For Night วันคืน + De-Interlace เดอ-อินเทอร์เลซ + Decrease Brush Hardness ลดความแข็งของแปรง + Decrease Brush Size ลดขนาดแปรง + Decrease Type Size ลดขนาดตัวอักษร + Decrease Type Size by 10 ลดขนาดตัวอักษรลง 10 + Deep ลึก + Deep Blue ดีพบลู + Deep Emerald มรกตลึก + Deep Red สีแดงเข้ม + Deep Yellow สีเหลืองเข้ม + Default Foreground and Background Colors สีพื้นหน้าและพื้นหลังเริ่มต้น + Default Leaves ใบเริ่มต้น + Default Photoshop Size ขนาด Photoshop เริ่มต้น + Defaults ค่าเริ่มต้น + Define Brush Preset กำหนดพรีเซ็ตแปรง + Define Custom Shape กำหนดรูปร่างที่กำหนดเอง + Define Pattern กำหนดรูปแบบ + Definition คำนิยาม + Defringe ละลาย + Degrees องศา + Delete Channel ลบช่อง + Delete Mask ลบมาสก์ + Delete Workspace ลบพื้นที่ทำงาน + Delete brush ลบแปรง + Delete path ลบเส้นทาง + Delete vector mask ลบมาสก์เวกเตอร์ + Delete… ลบ… + Depth Map แผนที่ความลึก + Depth Mode โหมดความลึก + Diameter เส้นผ่านศูนย์กลาง + Diffuse กระจาย + Diffuse Glow กระจายแสง + Direction ทิศทาง + Direction Balance ทิศทางสมดุล + Disable ปิดการใช้งาน + Disable Mask ปิดการใช้งานมาสก์ + Disable Symmetry Path ปิดการใช้งานเส้นทางสมมาตร + Disabled ปิดการใช้งาน + Discard Changes ยกเลิกการเปลี่ยนแปลง + Displace แทนที่ + Display จอแสดงผล + Display profile not used ไม่ได้ใช้โปรไฟล์การแสดง + Display profiles: {reason} แสดงโปรไฟล์: {reason} + Display-p3 จอแสดงผล-p3 + Distance ระยะทาง + Distortion การบิดเบือน + Distribution การกระจายสินค้า + Do you want to save you made to “{name}” before quitting? คุณต้องการที่จะบันทึกสิ่งที่คุณทำกับ “{name}” ก่อนที่จะเลิกหรือไม่? + Document Sizes ขนาดเอกสาร + Documentation เอกสารประกอบ + Documents เอกสาร + Dont Enlarge อย่าขยาย + Dot จุด + Double Line เส้นคู่ + Down ลง + Draft ร่าง + Drag a crop box · drag inside to move · edges resize ({ratio} ratio, {centre} centre) · Space moves while drawing · {commit} commits · Esc cancels Drag a crop box · drag inside to move · edges resize ({ratio} ratio, {centre} centre) · Space moves while drawing · {commit} commits · Esc cancels + Drag: draw freehand · Release on the start point: close ลาก: วาดด้วยมือเปล่า · ปล่อยที่จุดเริ่มต้น: ปิด + Driver: {driver} Driver: {driver} + Dry Brush แปรงแห้ง + Duplicate Channel ช่องที่ซ้ำกัน + Duplicate Layers ทำซ้ำเลเยอร์ + Duplication การทำสำเนา + Dust & Scratches ฝุ่นและรอยขีดข่วน + Edge ขอบ + Edge Brightness ความสว่างของขอบ + Edge Extension ส่วนขยายขอบ + Edge Fidelity ความเที่ยงตรงของขอบ + Edge Intensity ความเข้มของขอบ + Edge Only ขอบเท่านั้น + Edge Simplicity ความเรียบง่ายแบบขอบ + Edge Thickness ความหนาของขอบ + Edge Width ความกว้างของขอบ + Edit Toolbar แก้ไขแถบเครื่องมือ + Edit… แก้ไข… + Elevation ระดับความสูง + Eliminate กำจัด + Emboss ลายนูน + Enable เปิดใช้งาน + Enable Mask เปิดใช้งานมาสก์ + End X สิ้นสุด X + End Y จบ Y + Enlarged ขยายใหญ่ขึ้น + Erase with Brush or Pencil (hold) ลบด้วยแปรงหรือดินสอ (กดค้างไว้) + Error เกิดข้อผิดพลาด + Even Fields แม้กระทั่งฟิลด์ + Exit Quick Mask ออกจาก Quick Mask + Expand group (⌥-click: all groups) ขยายกลุ่ม (⌥-คลิก: ทุกกลุ่ม) + Export As ส่งออกเป็น + Export As: {name} ส่งออกเป็น: {name} + Export Contents ส่งออกเนื้อหา + Export Image ส่งออกภาพ + Export Options ตัวเลือกการส่งออก + Export Preferences การตั้งค่าการส่งออก + Export Settings การตั้งค่าการส่งออก + Export to ส่งออกไปที่ + Export/Import Presets ส่งออก/นำเข้าค่าที่ตั้งล่วงหน้า + Exported contents to {path} เนื้อหาที่ส่งออกไปยัง {path} + Exported presets to {path} ส่งออกค่าที่กำหนดล่วงหน้าไปยัง {path} + Exported {path} ส่งออก {path} แล้ว + Exported {path} ({size}) ส่งออก {path} ({size}) + Exporting… กำลังส่งออก… + ExtraBold โดดเด่นเป็นพิเศษ + ExtraLight เอ็กซ์ตร้าไลท์ + Extrude ขับไล่ + Fade จางลง + Faded Film ฟิล์มซีด + Failed ล้มเหลว + Failed to open file ไม่สามารถเปิดไฟล์ได้ + Failed to save file ไม่สามารถบันทึกไฟล์ได้ + Fallback: {reason} Fallback: {reason} + Feather Radius รัศมีขนนก + Fiber Length ความยาวไฟเบอร์ + Fibers เส้นใย + Field Blur สนามเบลอ + File Format รูปแบบไฟล์ + File Info ข้อมูลไฟล์ + File Name ชื่อไฟล์ + File Size ขนาดไฟล์ + File not found ไม่พบไฟล์ + Filename ชื่อไฟล์ + Fill Color เติมสี + Fill Opacity เติมความทึบ + Fill Path… เติมเส้นทาง… + Fill path with foreground color เติมเส้นทางด้วยสีพื้นหน้า + Fill with Background Color เติมสีพื้นหลัง + Fill with Background Color, Preserve Transparency เติมสีพื้นหลัง คงความโปร่งใส + Fill with Foreground Color เติมสีพื้นหน้า + Fill with Foreground Color, Preserve Transparency เติมสีพื้นหน้า รักษาความโปร่งใส + Film Grain เนื้อฟิล์ม + Filter Gallery แกลเลอรีฟิลเตอร์ + Find ค้นหา + Find and Replace Text ค้นหาและแทนที่ข้อความ + Fine ก็ได้ + Fine Dots จุดละเอียด + Finish เสร็จสิ้น + Fit Image พอดีภาพ + Fit to Window พอดีกับหน้าต่าง + Flame เปลวไฟ + Flame Bottom Alignment การจัดตำแหน่งด้านล่างของเปลวไฟ + Flame Lines เส้นเปลวไฟ + Flame Shape รูปร่างเปลวไฟ + Flame Style สไตล์เปลวไฟ + Flame Type ประเภทเปลวไฟ + Flat แบน + Flat Shading การแรเงาแบบแบน + Flower Color สีดอกไม้ + Focal Distance ระยะโฟกัส + Focus โฟกัส + Focus Area พื้นที่โฟกัส + Foreground Level ระดับเบื้องหน้า + Forward ไปข้างหน้า + Forward Warp วาร์ปไปข้างหน้า + Frame กรอบ + Frame {current} / {total} Frame {current} / {total} + Free Transform Path เส้นทางการแปลงอิสระ + Freeze Lasso ตรึง Lasso + Freeze Mask แช่แข็งมาสก์ + Fresco ปูนเปียก + From จาก + From Left จากซ้าย + From Right จากขวา + Frosted ฝ้า + Full Screen เต็มจอ + Fullscreen เต็มจอ + Fuzziness ความคลุมเครือ + GPU backend preference: {backend} GPU backend preference: {backend} + GPU device was lost; using the CPU renderer. อุปกรณ์ GPU สูญหาย โดยใช้ตัวเรนเดอร์ CPU + GPU error; using the CPU renderer. ข้อผิดพลาดของ GPU; โดยใช้ตัวเรนเดอร์ CPU + GPU retry scheduled กำหนดเวลาลอง GPU อีกครั้ง + Gamma แกมมา + Gaussian Blur เกาส์เซียนเบลอ + General Blending การผสมทั่วไป + General Brushes แปรงทั่วไป + Generators เครื่องกำเนิดไฟฟ้า + Generic ทั่วไป + Glass แก้ว + Global Light โกลบอลไลท์ + Gloss เงา + Glow Amount ปริมาณเรืองแสง + Glow Brightness ความสว่างสดใส + Glow Size ขนาดเรืองแสง + Glowing Edges ขอบเรืองแสง + Good ดี + Grade Balance เกรดคงเหลือ + Grade Blending การผสมเกรด + Grade Global เกรดระดับโลก + Grade Highlights จุดเด่นของเกรด + Grade Midtones เกรดมิดโทน + Grade Shadows เกรดเงา + Gradient Options ตัวเลือกการไล่ระดับสี + Grain Amount ปริมาณเมล็ดพืช + Grain Roughness ความหยาบของเมล็ดข้าว + Grain Size ขนาดเกรน + Grain Type ประเภทเกรน + Graininess ความหยาบ + Grainy Dots จุดหยาบ + Graphics adapter อะแดปเตอร์กราฟิก + Graphics adapter: {adapter} Graphics adapter: {adapter} + Gray-gamma-2.2 สีเทาแกมมา-2.2 + Greek ภาษากรีก + Greens ผักใบเขียว + Grid (⌘') ตาราง (⌘') + Grid view มุมมองตาราง + Group from Layers จัดกลุ่มจากเลเยอร์ + Groups กลุ่ม + Grout Width ความกว้างของยาแนว + Guide Layout… เค้าโครงคำแนะนำ… + HDR Toning การปรับสี HDR + Hand Tool (hold) เครื่องมือช่าง (กดค้างไว้) + Hearts หัวใจ + Heptagon เจ็ดเหลี่ยม + Hexagon หกเหลี่ยม + Hidden ซ่อนเร้น + Hide Grid ซ่อนกริด + Hide Others ซ่อนผู้อื่น + Hide the layer's effects (⌥-click: all layers) ซ่อนเอฟเฟกต์ของเลเยอร์ (⌥-คลิก: ทุกเลเยอร์) + Hide {app} Hide {app} + High Pass ผ่านสูง + Highlight ไฮไลท์ + Highlight Amount เน้นจำนวนเงิน + Highlight Area พื้นที่ไฮไลท์ + Highlight Radius เน้นรัศมี + Highlight Strength ไฮไลท์ความแกร่ง + Highlight Tone ไฮไลท์โทน + Highlights from: ไฮไลท์จาก: + Horizontal Distortion การบิดเบือนแนวนอน + Horizontal Only แนวนอนเท่านั้น + Horizontal scale ขนาดแนวนอน + Horizontal type ประเภทแนวนอน + Hotspot ฮอตสปอต + Hsb ฮสบ + Hsl HSL + Hsl Hue Hsl เว้ + Hsl Lum ซล ลัม + Hsl Sat วันเสาร์ + Image Balance ความสมดุลของภาพ + Image Processor หน่วยประมวลผลภาพ + Image compositor: {processor} Image compositor: {processor} + Import Brushes นำเข้าแปรง + Import Brushes… (.abr) นำเข้าแปรง… (.abr) + Import Image นำเข้าภาพ + Import Options ตัวเลือกการนำเข้า + Import Photoshop brushes (.abr) นำเข้าแปรง Photoshop (.abr) + Import Settings นำเข้าการตั้งค่า + Importing {what} from {file}… กำลังนำเข้า {what} จาก {file}… + Importing… กำลังนำเข้า… + In Black สีดำ + In White ในสีขาว + Increase Brush Hardness เพิ่มความแข็งของแปรง + Demosaic เดโมซาอิก + 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. วิธีการเติมโมเสกฟิลเตอร์สีของกล้อง จะถูกนำไปใช้เมื่อไฟล์เปิดขึ้น การแสดงตัวอย่างจะแสดงวิธีการเปิดด้วย + AHD (adaptive homogeneity) AHD (ความสม่ำเสมอแบบปรับตัว) + Malvar–He–Cutler มัลวาร์–เฮ–คัทเลอร์ + Hirakawa–Parks: the cleanest edges and the least colour fringing, the slowest. ฮิราคาวะ–สวนสาธารณะ: ขอบที่สะอาดที่สุดและมีขอบสีน้อยที่สุดคือช้าที่สุด + Gradient-corrected interpolation: sharp and fast, with some colour fringing on fine detail. การประมาณค่าแบบแก้ไขด้วยการไล่ระดับสี: คมชัดและรวดเร็ว โดยมีขอบสีบางส่วนในรายละเอียดที่ละเอียด + The fastest and the softest, with colour fringing on fine detail. เร็วที่สุดและนุ่มนวลที่สุด พร้อมการไล่สีในรายละเอียดที่ละเอียด + “{name}” already exists. Replace it? “{name}” มีอยู่แล้ว แทนที่มัน? + The name in the save dialog was “{name}”. ชื่อในกล่องโต้ตอบบันทึกคือ “{name}” + Move Up เลื่อนขึ้น + Move Down เลื่อนลง + Previous Brush แปรงก่อนหน้า + Next Brush แปรงถัดไป + First Brush แปรงครั้งแรก + Last Brush แปรงสุดท้าย + Preview size ขนาดตัวอย่าง + Memory Usage การใช้หน่วยความจำ + Per-document RAM limit (MB) ขีดจำกัด RAM ต่อเอกสาร (MB) + Installed RAM: {ram} MB; this limit: {percent}% RAM ที่ติดตั้ง: {ram} MB; ขีดจำกัดนี้: {percent}% + Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. จำกัดพิกเซลของเอกสารที่เปิดอยู่แต่ละรายการพร้อมประวัติ สถานะการเลิกทำที่เก่าที่สุดจะถูกละทิ้งเมื่อเกินขีดจำกัด + Applies immediately when saved. Memory is not reserved in advance. นำไปใช้ทันทีเมื่อบันทึก หน่วยความจำไม่ได้ถูกจองล่วงหน้า + With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. เมื่อตั้งค่าหน่วยความจำ GPU เป็นอัตโนมัติ จะเป็นการจำกัดงบประมาณเลเยอร์ GPU ด้วย งบประมาณดังกล่าวถูกจำกัดไว้ที่หนึ่งในสี่ของ RAM ที่ติดตั้ง และเมื่อทราบแล้ว ก็คือสามในแปดของหน่วยความจำของกราฟิกการ์ด โดยมีขั้นต่ำ 512 MB การเพิ่มขีดจำกัดนี้เกินขีดจำกัดจะไม่เพิ่มงบประมาณ GPU + Command คำสั่ง + Use ใช้ + In Front ข้างหน้า + Behind ด้านหลัง + +# DDS Options (#1327) + DDS Options ตัวเลือก ท.บ + Compression การบีบอัด + Generate Mipmaps สร้าง Mipmap + +# Color Table (.act) dialog + There is no color table to save. ไม่มีตารางสีให้บันทึก +@plural Saved {n} color to {file}|Saved {n} colors to {file} บันทึก {n} สีลงใน {file} + +# Graphics Adapter preference (#1885) + GPU adapter อะแดปเตอร์จีพียู + +# Styles panel: Import / Export Styles (.asl) + Import Styles… นำเข้าสไตล์… + Export Selected Styles… ส่งออกสไตล์ที่เลือก… + Export Styles… ส่งออกรูปแบบ… + {file} is not a style library (.asl) {file} ไม่ใช่ไลบรารีสไตล์ (.asl) +@plural Imported {n} style from {file}|Imported {n} styles from {file} นำเข้า {n} สไตล์จาก {file} +@plural Exported {n} style to {file}|Exported {n} styles to {file} ส่งออก {n} สไตล์ไปยัง {file} +# Actions: a step dialog holds a suspended recording (#7365) + Confirm or cancel the open action step dialog first ยืนยันหรือยกเลิกกล่องโต้ตอบขั้นตอนการดำเนินการที่เปิดอยู่ก่อน + Pro Medium Gray โปรมีเดียมเกรย์ + Solarized แสงอาทิตย์ + Breeze สายลม + Pro Light Gray โปร เทาอ่อน + Pro Light โปร ไลท์ + Resize Windows to Fit ปรับขนาด Windows ให้พอดี + EXR อีเอ็กซ์อาร์ + Increase Brush Size เพิ่มขนาดแปรง + Increase Type Size เพิ่มขนาดตัวอักษร + Increase Type Size by 10 เพิ่มขนาดตัวอักษร 10 + Indent first line เยื้องบรรทัดแรก + Indent left margin เยื้องขอบด้านซ้าย + Indent right margin เยื้องระยะขอบขวา + Indexed จัดทำดัชนีแล้ว + Infinite อนันต์ + Information ข้อมูล + Initial Direction ทิศทางเริ่มต้น + Ink Outlines โครงร่างหมึก + Inner Bevel เอียงด้านใน + Input อินพุต + Input Levels ระดับอินพุต + Input Mode โหมดอินพุต + Install Plug-in ติดตั้งปลั๊กอิน + Intensity ความเข้ม + Intent เจตนา + Interpret Footage ตีความภาพ + Intersect with selection (⇧⌥) ตัดกับส่วนที่เลือก (⇧⌥) + Interval ช่วงเวลา + Invalid panel layout; restored the default dock เค้าโครงแผงไม่ถูกต้อง คืนค่าท่าเรือเริ่มต้น + Invert Mask กลับด้านมาสก์ + Invert Selection สลับการเลือก + Iris Blur ไอริสเบลอ + Ivy ไอวี่ + Jag จ๋า + Join the ArtCraft Discord เข้าร่วม ArtCraft Discord + Join the ArtCraft Discord ({url}) เข้าร่วม ArtCraft Discord ({url}) + Keeps the current texture when switching presets. คงพื้นผิวปัจจุบันไว้เมื่อเปลี่ยนค่าที่ตั้งล่วงหน้า + Kernel เคอร์เนล + Kerning: Metrics, Optical or a value in 1/1000 em (Alt+←/→ at the caret) การจัดช่องไฟ: เมตริก ออปติคัล หรือค่าในหน่วย 1/1000 em (Alt+←/→ ที่เครื่องหมายรูปหมวก) + Keyboard คีย์บอร์ด + Lab แล็บ + Landscape, 10 x 8 แนวนอน 10 x 8 + Landscape, 6 x 4 แนวนอน 6 x 4 + Landscape, 7 x 5 แนวนอน 7 x 5 + Latin 1 ละติน 1 + Latin Extended-A ละตินขยาย-A + Latin Extended-B ละตินขยาย-B + Layer Comps to Files เลเยอร์ Comps เป็นไฟล์ + Layer Content Options ตัวเลือกเนื้อหาเลเยอร์ + Layer Count จำนวนเลเยอร์ + Layer From Background เลเยอร์จากพื้นหลัง + Layer Knocks Out Drop Shadow เลเยอร์ทำให้ Drop Shadow หลุดออกมา + Layer Mask Hides Effects Layer Mask ซ่อนเอฟเฟกต์ + Layer Properties คุณสมบัติของเลเยอร์ + Layer Styles สไตล์เลเยอร์ + Layer from Background เลเยอร์จากพื้นหลัง + Layers to Files เลเยอร์เป็นไฟล์ + Layout เค้าโครง + Leading (set to the font size × auto-leading when Auto) นำหน้า (ตั้งค่าเป็นขนาดตัวอักษร × นำหน้าอัตโนมัติเมื่ออัตโนมัติ) + Leaf Color สีใบ + Learn More เรียนรู้เพิ่มเติม + Leaves Amount จำนวนใบ + Leaves Color สีใบ + Leaves Size ขนาดใบ + Left Diagonal เส้นทแยงมุมซ้าย + Legacy มรดก + Legal กฎหมาย + Lens Blur เลนส์เบลอ + Lens Correction การแก้ไขเลนส์ + Lens Flare เลนส์แฟลร์ + Less น้อยลง + Letter จดหมาย + Level Based ตามระดับ + Library ห้องสมุด + Light Dark Balance สมดุลแสงมืด + Light Direction ทิศทางแสง + Light Intensity ความเข้มของแสง + Light Rough หยาบเบา + Light Type ประเภทแสง + Light X ไลท์ เอ็กซ์ + Light Y ไลท์ วาย + Light Z ไลท์ ซี + Lighten Grout ยาแนวเบาลง + Lighten Only เบาลงเท่านั้น + Lighting แสงสว่าง + Lighting Effects เอฟเฟกต์แสง + Linear Dodge ลิเนียร์ดอดจ์ + Linear Height ความสูงเชิงเส้น + Linear-srgb Linear-srgb + Link ลิงค์ + Liquify ทำให้เป็นของเหลว + List รายการ + List view มุมมองรายการ + Live Preview ดูตัวอย่างสด + Load 3D LUT โหลด 3D LUT + Load Files into Stack โหลดไฟล์ลงในสแต็ก + Load path as a selection โหลดเส้นทางเป็นตัวเลือก + Loading… กำลังโหลด… + Lock All ล็อคทั้งหมด + Lock Image Pixels ล็อคพิกเซลภาพ + Lock Position ตำแหน่งล็อค + Lock Transparent Pixels ล็อคพิกเซลโปร่งใส + Locked ล็อคแล้ว + Long Lines เส้นยาว + Long Strokes จังหวะยาว + Lorem Ipsum ลอเรม อิปซัม + Lower ล่าง + Lum ลุม + Lut ลุต + Magentas สีม่วงแดง + Make Selection from Path ทำการเลือกจากเส้นทาง + Make Selection… ทำการเลือก… + Make Symmetry Path สร้างเส้นทางสมมาตร + Make Work Path… สร้างเส้นทางการทำงาน… + Make work path from selection สร้างเส้นทางการทำงานจากการคัดเลือก + Manual คู่มือ + Map Document เอกสารแผนที่ + Map Layer เลเยอร์แผนที่ + Map Path เส้นทางแผนที่ + Mask Channel ช่องมาสก์ + Mask Incomplete Blocks มาสก์บล็อกที่ไม่สมบูรณ์ + Mask None มาสก์ ไม่มี + Masks มาสก์ + Match Color จับคู่สี + Math Symbols สัญลักษณ์ทางคณิตศาสตร์ + Max Offset แม็กซ์ออฟเซ็ต + Max Radius รัศมีสูงสุด + Measurement Scale สเกลการวัด + Measurement Scale Marker เครื่องหมายมาตราส่วนการวัด + Medium Dots จุดกลาง + Medium Gray สีเทากลาง + Medium Lines เส้นกลาง + Medium Strokes จังหวะปานกลาง + Merge Channels… รวมช่อง… + Merge Spot Channel รวมช่องสปอต + Merge to HDR Pro ผสานเป็น HDR Pro + Metallic เมทัลลิค + Metrics เมตริก + Mezzotint เมซโซตินท์ + Middle กลาง + Midtone มิดโทน + Monitor Profile ตรวจสอบโปรไฟล์ + Monitor profile in use on {display}: {profile} ตรวจสอบโปรไฟล์ที่ใช้งานบน {display}: {profile} + Monitor profile in use: {profile} ตรวจสอบโปรไฟล์ที่ใช้งานอยู่: {profile} + Monitor profile on {display} (main window): {profile} ตรวจสอบโปรไฟล์บน {display} (หน้าต่างหลัก): {profile} + Monitor profile on {display}: {profile} ตรวจสอบโปรไฟล์บน {display}: {profile} + Monitor profile: {profile} ตรวจสอบโปรไฟล์: {profile} + Mono Contrast คอนทราสต์โมโน + Monochromatic สีเดียว + More เพิ่มเติม + Mosaic โมเสก + Mosaic Tiles กระเบื้องโมเสก + Motion Blur โมชั่นเบลอ + Mouse เม้าส์ + Move Layer ย้ายเลเยอร์ + Movie Prime หนังไพร์ม + Multiple Flames Along Path เปลวไฟหลายลูกตามเส้นทาง + Multiple Flames One Direction เปลวไฟหลายดวงในทิศทางเดียว + Multiple Flames Path Directions ทิศทางเส้นทางเปลวไฟหลายจุด + Multiple Flames Various Length เปลวไฟหลายลูก ความยาวหลากหลาย + My Brushes แปรงของฉัน + Native file drag-and-drop is not supported on Wayland yet. Use File › Open, or run PhotoCraft under XWayland with `WAYLAND_DISPLAY= photocraft`. Wayland ยังไม่รองรับการลากและวางไฟล์เนทิฟ ใช้ไฟล์ › เปิดหรือเรียกใช้ PhotoCraft ภายใต้ XWayland ด้วย `WAYLAND_DISPLAY= photocraft` + Nearest ใกล้ที่สุด + Neon Glow นีออนโกลว์ + Neutralize ทำให้เป็นกลาง + Neutrals ความเป็นกลาง + New Brush Preset พรีเซ็ตแปรงใหม่ + New Channel… ช่องใหม่… + New Guide คู่มือใหม่ + New Guide Layout เค้าโครงคำแนะนำใหม่ + New Spot Channel… ช่องสปอตใหม่… + New Video Layer from File เลเยอร์วิดีโอใหม่จากไฟล์ + New Window หน้าต่างใหม่ + New Workspace พื้นที่ทำงานใหม่ + New document เอกสารใหม่ + New document… เอกสารใหม่… + New document… ⌘N เอกสารใหม่… ⌘N + Next ถัดไป + No Document ไม่มีเอกสาร + No Image ไม่มีภาพ + No Layers ไม่มีเลเยอร์ + No Results ไม่มีผลลัพธ์ + No Results Found ไม่พบผลลัพธ์ + No Selection ไม่มีการคัดเลือก + No custom shape "{name}": pick one in the options bar or Window › Shapes ไม่มีรูปร่างที่กำหนดเอง "{name}": เลือกหนึ่งรูปร่างในแถบตัวเลือกหรือหน้าต่าง › รูปร่าง + No layers ไม่มีเลเยอร์ + No recent files ไม่มีไฟล์ล่าสุด + No selection ไม่มีการเลือก + Noise Color เสียงรบกวนสี + Noise Color Detail รายละเอียดสีเสียงรบกวน + Noise Luminance ความสว่างของสัญญาณรบกวน + Noise Luminance Detail รายละเอียดความสว่างของสัญญาณรบกวน + Nothing to Redo ไม่มีอะไรจะทำซ้ำ + Nothing to Undo ไม่มีอะไรจะเลิกทำ + Nothing to paste: the clipboard holds no image ไม่มีอะไรจะวาง: คลิปบอร์ดไม่มีภาพ + Number Of Levels จำนวนระดับ + Numbers ตัวเลข + Ocean Ripple ระลอกคลื่นมหาสมุทร + Octagon แปดเหลี่ยม + Odd Fields สนามคี่ + Oil Paint สีน้ำมัน + On เปิด + One Flame Along Path เปลวไฟหนึ่งดวงตามเส้นทาง + Open As เปิดเป็น + Open File เปิดไฟล์ + Open Folder เปิดโฟลเดอร์ + Open Image เปิดภาพ + Open Recent is unavailable on the web เปิดล่าสุดไม่พร้อมใช้งานบนเว็บ + Opened {url} เปิดแล้ว {url} + Opening กำลังเปิด + Open… ⌘O เปิด… ⌘O + Operation canceled การดำเนินการถูกยกเลิก + Operation cancelled การดำเนินการถูกยกเลิก + Operation completed การดำเนินการเสร็จสมบูรณ์ + Operation failed การดำเนินการล้มเหลว + Optical ออปติคัล + Original Ratio อัตราส่วนเดิม + Out Black ออกสีดำ + Out From Center ออกจากศูนย์ + Out Of Gamut ออกจากขอบเขต + Out White ออกขาว + Out of memory หน่วยความจำไม่เพียงพอ + Outer Bevel เอียงด้านนอก + Output Levels ระดับเอาท์พุท + Oval วงรี + Overlay Edge ขอบซ้อนทับ + Overlay: Rule of Thirds ภาพซ้อนทับ: กฎสามส่วน + PSD พีเอสดี + Package แพ็คเกจ + Page Setup… การตั้งค่าหน้า… + Paint Daubs ทาสีแต้ม + Paints from the document's opening state สีจากสถานะเปิดเอกสาร + Palette Knife มีดแผงสี + Panel แผง + Paper กระดาษ + Paper Brightness ความสว่างของกระดาษ + Parallel ขนาน + Paste Complete Stroke วางจังหวะที่สมบูรณ์ + Paste Fill วางเติม + Patchwork การเย็บปะติดปะต่อกัน + Path Blur เส้นทางเบลอ + Paths to Illustrator เส้นทางสู่ Illustrator + Pattern Fill… เติมลวดลาย… + Pattern Type ประเภทรูปแบบ + Pencil Width ความกว้างของดินสอ + Pentagon เพนตากอน + Percentage เปอร์เซ็นต์ + Permission denied การอนุญาตถูกปฏิเสธ + PhotoCraft keeps retrying; until a save succeeds, preference changes are lost when it closes. PhotoCraft พยายามอีกครั้ง จนกว่าการบันทึกจะสำเร็จ การเปลี่ยนแปลงการตั้งค่าจะสูญหายไปเมื่อปิด + Photomerge ผสานภาพ + Pick Color From Image เลือกสีจากภาพ + Picture Frame กรอบรูป + Pillow Emboss หมอนลายนูน + Pinch หยิก + Pins หมุด + Place Embedded สถานที่ฝังตัว + Place Linked สถานที่ที่เชื่อมโยง + Place Scale Marker วางเครื่องหมายมาตราส่วน + Plane ระนาบ + Planes ระนาบ + Plastic Wrap พลาสติกห่อ + Platform: {os} {arch} แพลตฟอร์ม: {os} {arch} + Please wait… กรุณารอสักครู่… + Point จุด + Point Curve เส้นโค้งจุด + Point Curve Blue จุดโค้งสีน้ำเงิน + Point Curve Green จุดโค้งสีเขียว + Point Curve Red จุดโค้งสีแดง + Pointed ชี้ + Pointillize ชี้นิ้ว + Polar Coordinates พิกัดเชิงขั้ว + Polar To Rectangular ขั้วเป็นสี่เหลี่ยม + Policy Cmyk นโยบาย CMYK + Policy Gray นโยบายสีเทา + Policy Rgb นโยบาย RGB + Pond Ripples ระลอกคลื่น + Portrait, 4 x 6 แนวตั้ง, 4 x 6 + Portrait, 5 x 7 แนวตั้ง 5 x 7 + Postcard โปสการ์ด + Poster โปสเตอร์ + Poster Edges ขอบโปสเตอร์ + Posterization การทำโปสเตอร์ + Preferences can't be saved ไม่สามารถบันทึกการตั้งค่าได้ + Preferences saved บันทึกการตั้งค่าแล้ว + Preferences were reset: {error} ค่ากำหนดถูกรีเซ็ต: {error} + Preferences… การตั้งค่า… + Preserve อนุรักษ์ + Preset Manager ผู้จัดการที่ตั้งไว้ล่วงหน้า + Press keys กดปุ่ม + Preview Image ดูตัวอย่างภาพ + Previous ก่อนหน้า + Prime105 ไพรม์105 + Prime35 ไพรม์35 + Printed to {path} พิมพ์ไปที่ {path} + Pro (Dark) โปร (มืด) + Pro (Medium Gray) Pro (สีเทากลาง) + Processing… กำลังประมวลผล… + Profile โปรไฟล์ + Proof Setup… การตั้งค่าการพิสูจน์… + Prophoto-compat Prophoto-เข้ากันได้ + Pucker รอยย่น + Push Left กดซ้าย + Pyramids ปิรามิด + Quick Actions การดำเนินการด่วน + Quit เลิก + Quit PhotoCraft ออกจากPhotoCraft + Quit {app} Quit {app} + R G B อาร์ จี บี + R g b อาร์ จี บี + Radial เรเดียล + Radial Blur เรเดียลเบลอ + Radius X รัศมี X + Radius Y รัศมี Y + Ran script {name} รันสคริปต์ {name} + Randomize Length สุ่มความยาว + Randomize Shapes สุ่มรูปร่าง + Rasterize Fill Content เติมเนื้อหาแบบแรสเตอร์ + Rasterize Smart Object แรสเตอร์วัตถุอัจฉริยะ + Ratio อัตราส่วน + Raw Defaults ค่าเริ่มต้นดิบ + Reading การอ่าน + Ready พร้อม + Rec2020 Rec2020 + Recent Files ไฟล์ล่าสุด + Reconstruct All สร้างใหม่ทั้งหมด + Recovered {name} กู้คืน {name} แล้ว + Rectangular Selection การเลือกสี่เหลี่ยม + Rectangular To Polar สี่เหลี่ยมถึงขั้ว + Red Cyan แดง ฟ้า + Reds สีแดง + Reduce Color Noise ลดสัญญาณรบกวนสี + Reduce Noise ลดเสียงรบกวน + Reflected สะท้อนออกมา + Relief บรรเทา + Relink to File เชื่อมโยงไปยังไฟล์ + Remove All ลบทั้งหมด + Remove Jpeg Artifact ลบสิ่งประดิษฐ์ Jpeg + Rename Brush เปลี่ยนชื่อแปรง + Rename Channel… เปลี่ยนชื่อช่อง… + Rename Group เปลี่ยนชื่อกลุ่ม + Rename Tool Preset เปลี่ยนชื่อเครื่องมือที่ตั้งไว้ล่วงหน้า + Render Video เรนเดอร์วิดีโอ + Rendering… กำลังแสดงผล… + Reorder Layer เรียงลำดับเลเยอร์ใหม่ + Replace Color เปลี่ยนสี + Replace Contents แทนที่เนื้อหา + Replace Footage แทนที่ภาพ + Report a Bug รายงานข้อผิดพลาด + Report an Issue รายงานปัญหา + Reset Alignment รีเซ็ตการจัดตำแหน่ง + Reset All รีเซ็ตทั้งหมด + Reset Preferences รีเซ็ตการตั้งค่า + Resolve Missing Fonts แก้ไขแบบอักษรที่หายไป + Restart รีสตาร์ท + Restart Required จำเป็นต้องรีสตาร์ท + Resume ดำเนินการต่อ + Retry ลองอีกครั้ง + Rgb RGB + Ridges สันเขา + Right Diagonal เส้นทแยงมุมขวา + Ripple ระลอกคลื่น + Ripple Magnitude ขนาดระลอกคลื่น + Ripple Size ขนาดระลอกคลื่น + Rope เชือก + Roses กุหลาบ + Rough Pastels สีพาสเทลหยาบ + Row Order ลำดับแถว + Rulers (⌘R) ผู้ปกครอง (⌘R) + Sample Size ขนาดตัวอย่าง + Sampled Colors สีตัวอย่าง + Sandstone หินทราย + Sat ส + Save As บันทึกเป็น + Save Changes บันทึกการเปลี่ยนแปลง + Save File บันทึกไฟล์ + Save Image บันทึกภาพ + Save Path บันทึกเส้นทาง + Save Pixel Aspect Ratio บันทึกอัตราส่วนพิกเซล + Save a Copy บันทึกสำเนา + Save before closing? บันทึกก่อนปิด? + Save for Web (Legacy) บันทึกสำหรับเว็บ (ดั้งเดิม) + Save your work and restart PhotoCraft to retry GPU acceleration. CPU rendering remains active for this session. บันทึกงานของคุณและรีสตาร์ท PhotoCraft เพื่อลองเร่งความเร็ว GPU อีกครั้ง การเรนเดอร์ CPU ยังคงทำงานอยู่สำหรับเซสชันนี้ + Saved a copy as {path} บันทึกสำเนาเป็น {path} + Saved {path}; image assets: {n} in {dir} Saved {path}; image assets: {n} in {dir} + Saving… กำลังบันทึก… + Scale Effects สเกลเอฟเฟกต์ + Scaling การปรับขนาด + Scallops หอยเชลล์ + Script Events Manager ผู้จัดการกิจกรรมสคริปต์ + Scroll menu down เลื่อนเมนูลง + Scroll menu up เลื่อนเมนูขึ้น + Search commands คำสั่งค้นหา + Search commands (⌘K) คำสั่งค้นหา (⌘K) + Search commands, tools and panels ค้นหาคำสั่ง เครื่องมือ และแผงควบคุม + Search menus เมนูค้นหา + Seed เมล็ดพันธุ์ + Select Custom Color… เลือกสีที่กำหนดเอง… + Select Data Points เลือกจุดข้อมูล + Select Layer เลือกเลเยอร์ + Select and Mask เลือกและมาสก์ + Color Aware การรับรู้สี + Decontaminate Colors กำจัดสีที่ปนเปื้อน + Edge Detection การตรวจจับขอบ + Global Refinements การปรับแต่งระดับโลก + High Quality Preview ดูตัวอย่างคุณภาพสูง + Object Aware วัตถุรับรู้ + Object Aware needs a segmentation model, which isn't available yet Object Aware จำเป็นต้องมีโมเดลการแบ่งส่วน ซึ่งยังไม่มีให้บริการ + Real-Time Refinement การปรับแต่งแบบเรียลไทม์ + Refine Edge Brush Tool ปรับแต่งเครื่องมือแปรงขอบ + Refine Hair ปรับแต่งเส้นผม + Refine Hair needs hair detection, which isn't available yet Refine Hair จำเป็นต้องมีการตรวจจับเส้นผม ซึ่งยังไม่มีให้บริการ + Refine Mode โหมดปรับแต่ง + Select and Mask was closed: another layer was selected ปิดเลือกและมาสก์แล้ว: มีการเลือกเลเยอร์อื่น + Select and Mask was closed: its document is no longer the active one ปิดเลือกและมาสก์แล้ว: เอกสารนั้นไม่ใช่เอกสารที่ใช้งานอยู่ + View Mode โหมดมุมมอง + Selected at launch: {backend} เลือกเมื่อเปิดตัว: {backend} + SemiBold กึ่งหนา + Sensitivity ความไว + Sent to the printer ({spooler}) ส่งไปยังเครื่องพิมพ์ ({spooler}) + Sepia ซีเปีย + Services บริการ + Set Colors ตั้งค่าสี + Set Measurement Scale ตั้งค่ามาตราส่วนการวัด + Sgray สเกรย์ + Shadow เงา + Shadow Amount ปริมาณเงา + Shadow Intensity ความเข้มของเงา + Shadow Radius รัศมีเงา + Shadow Tone โทนสีเงา + Shadows up to: เงาสูงสุด: + Shadows/Highlights เงา/ไฮไลท์ + Shallow ตื้น + Shape Blur รูปร่างเบลอ + Sharpen Amount เพิ่มความคมชัด + Sharpen Detail คมชัดรายละเอียด + Sharpen Details คมชัดรายละเอียด + Sharpen Masking เหลามาสกิ้ง + Sharpen Radius เพิ่มรัศมี + Shear เฉือน + Shine ส่องแสง + Short Lines เส้นสั้น + Short Strokes จังหวะสั้น + Shortcut ทางลัด + Shortcuts ทางลัด + Show All แสดงทั้งหมด + Show Extras Options แสดงตัวเลือกพิเศษ + Show Guides แสดงคำแนะนำ + Show Guides (⌘;) แสดงคำแนะนำ (⌘;) + Show Rulers แสดงผู้ปกครอง + Show the layer's effects (⌥-click: all layers) แสดงเอฟเฟกต์ของเลเยอร์ (⌥-คลิก: ทุกเลเยอร์) + Simple เรียบง่าย + Simulate Paper จำลองกระดาษ + Sine ไซน์ + Sketch ร่าง + Skip ข้าม + Slice Options ตัวเลือกชิ้น + Smart Blur สมาร์ทเบลอ + Smart Sharpen สมาร์ทคมชัด + Smoothness ความเรียบเนียน + Smudge Stick รอยเปื้อนสติ๊ก + Snap to Grid จัดชิดไปที่กริด + Snowflakes เกล็ดหิมะ + Soften นุ่มลง + Softness ความนุ่มนวล + Software adapter อะแดปเตอร์ซอฟต์แวร์ + Solarized Dark แสงอาทิตย์มืด + Solid Color สีทึบ + Solid Front Faces ใบหน้าด้านหน้าแข็ง + Source Channel ช่องทางต้นทาง + Source Invert แหล่งที่มากลับด้าน + Source Layer เลเยอร์แหล่งที่มา + Source1 Channel ที่มา1ช่อง + Source1 Invert แหล่งที่มา 1 ผกผัน + Source2 Channel ที่มา2ช่อง + Source2 Invert Source2 ผกผัน + Source: set ที่มา: set + Space อวกาศ + Sparkle สปาร์คเคิล + Spatter โปรยลงมา + Speckle จุด + Speed ความเร็ว + Spherize ทรงกลม + Spin สปิน + Spin Blur หมุนเบลอ + Split Channels แยกช่อง + Spot สปอต + Spray Radius รัศมีสเปรย์ + Sprayed Strokes พ่นจังหวะ + Spread การแพร่กระจาย + Sprinkles โรย + Square Size ขนาดสี่เหลี่ยมจัตุรัส + Square, 12 x 12 สี่เหลี่ยมจัตุรัส 12 x 12 + Square, 5 x 5 สี่เหลี่ยมจัตุรัส 5 x 5 + Squareness ความเหลี่ยม + Stagger โซเซ + Stained Glass กระจกสี + Star ดาว + Stars ดาว + Start X เริ่ม X + Start Y เริ่ม Y + Statistics สถิติ + Step {step} ({id}) failed: {error} ขั้นตอนที่ {step} ({id}) ล้มเหลว: {error} + Stippled แต้ม + Stops หยุด + Strength ความแข็งแกร่ง + Stretch ยืดกล้ามเนื้อ + Stroke Color สีเส้นโครงร่าง + Stroke Detail รายละเอียดจังหวะ + Stroke Direction ทิศทางจังหวะ + Stroke Length ความยาวช่วงชัก + Stroke Pressure ความดันโรคหลอดเลือดสมอง + Stroke Size ขนาดจังหวะ + Stroke Width ความกว้างของเส้นขีด + Stroke path with brush เส้นทางสโตรกด้วยแปรง + Strokes จังหวะ + Studio (Dark) สตูดิโอ (มืด) + Studio (Light) สตูดิโอ (ไลท์) + Stylization การจัดสไตล์ + Subtract Shapes at Overlap ลบรูปร่างที่ทับซ้อนกัน + Subtract from selection (⌥) ลบออกจากส่วนที่เลือก (⌥) + Sumi-e ซูมิ-อี + Surface Blur พื้นผิวเบลอ + Switch Foreground and Background Colors สลับสีพื้นหน้าและพื้นหลัง + System Info ข้อมูลระบบ + Tablet แท็บเล็ต + Tabloid แท็บลอยด์ + Taper เรียว + Target เป้าหมาย + Target Channel 3 เป้าหมายช่อง 3 + Target Channel 4 เป้าหมายช่อง 4 + Target Channel 5 เป้าหมายช่อง 5 + Target Channel 6 เป้าหมายช่อง 6 + Target Channel 7 เป้าช่อง7 + Target Channel 8 เป้าช่อง8 + Target Channel 9 เป้าช่อง 9 + Target Composite Channel เป้าหมายช่องทางคอมโพสิต + Target X เป้าหมาย X + Target Y เป้าหมาย Y + Teal Orange น้าส้ม + Technology Previews… ตัวอย่างเทคโนโลยี… + Temporary ชั่วคราว + Text Layer เลเยอร์ข้อความ + Texture Coverage ความครอบคลุมของพื้นผิว + Texturizer Texturizer + Thaw Mask ละลายมาสก์ + The canvas is shown as sRGB. Choose a monitor profile in Edit › Color Settings. แคนวาสจะแสดงเป็น sRGB เลือกโปรไฟล์จอภาพใน แก้ไข > การตั้งค่าสี + The canvas on {display} is shown as sRGB. Choose a monitor profile in Edit › Color Settings. ผืนผ้าใบบน {display} แสดงเป็น sRGB เลือกโปรไฟล์จอภาพใน แก้ไข > การตั้งค่าสี + The current gradient (pick one in Window › Gradients) การไล่ระดับสีปัจจุบัน (เลือกหนึ่งในหน้าต่าง › การไล่ระดับสี) + The document does not have an embedded colour profile. Working space: {working}. The document does not have an embedded colour profile. Working space: {working}. + The document has an embedded colour profile that does not match the working space.\nEmbedded: {embedded}\nWorking: {working} เอกสารมีโปรไฟล์สีฝังอยู่ซึ่งไม่ตรงกับพื้นที่ทำงาน \n ฝังอยู่: {embedded} \n ทำงาน: {working} + The file could not be opened. ไม่สามารถเปิดไฟล์ได้ + The file could not be saved. ไม่สามารถบันทึกไฟล์ได้ + Thickness ความหนา + This Layer: เลเยอร์นี้: + This Smart Object must be rasterized before proceeding. Its contents will no longer be editable. Rasterize the Smart Object? สมาร์ทออบเจ็กต์นี้ต้องได้รับการแรสเตอร์ก่อนดำเนินการต่อ เนื้อหาจะไม่สามารถแก้ไขได้อีกต่อไป แรสเตอร์วัตถุอัจฉริยะหรือไม่ + This adjustment ({key}) is kept as imported and can't be edited yet. การปรับเปลี่ยนนี้ ({key}) ถูกเก็บไว้เป็นการนำเข้าและยังไม่สามารถแก้ไขได้ + This fill layer must be rasterized before proceeding. Its fill content will no longer be editable. Rasterize the layer? เลเยอร์เติมนี้จะต้องถูกแรสเตอร์ก่อนดำเนินการต่อ เนื้อหาที่กรอกจะไม่สามารถแก้ไขได้อีกต่อไป แรสเตอร์เลเยอร์หรือไม่? + This layer must be rasterized before proceeding. เลเยอร์นี้จะต้องถูกแรสเตอร์ก่อนดำเนินการต่อ + This session: {reason} เซสชั่นนี้: {reason} + This shape layer must be rasterized before proceeding. It will no longer be editable as a shape. Rasterize the shape? เลเยอร์รูปร่างนี้จะต้องถูกแรสเตอร์ก่อนดำเนินการต่อ จะไม่สามารถแก้ไขได้ในรูปแบบรูปร่างอีกต่อไป เปลี่ยนรูปร่างใหม่หรือไม่? + This type layer must be rasterized before proceeding. Its text will no longer be editable. Rasterize the type? เลเยอร์ตัวอักษรนี้ต้องได้รับการแรสเตอร์ก่อนดำเนินการต่อ ข้อความจะไม่สามารถแก้ไขได้อีกต่อไป แรสเตอร์ประเภทหรือไม่ + Tile Size ขนาดกระเบื้อง + Tiles กระเบื้อง + Tilt-Shift เอียง-Shift + Tint Color สีอ่อน + Tiny Lens เลนส์จิ๋ว + Title ชื่อเรื่อง + To ถึง + To Center สู่ศูนย์ + Toggle Layer Mask Overlay สลับการซ้อนทับเลเยอร์มาสก์ + Toggle the Brush Settings panel สลับแผงการตั้งค่าแปรง + Toggle the Brush Settings panel (F5) สลับแผงการตั้งค่าแปรง (F5) + Tool Options ตัวเลือกเครื่องมือ + Trace Contour ติดตามรูปร่าง + Tracking (1/1000 em) การติดตาม (1/1000 em) + Transformation การเปลี่ยนแปลง + Transition การเปลี่ยนแปลง + Transparency Shapes Layer เลเยอร์รูปร่างโปร่งใส + Trap ดักสี + Tree ต้นไม้ + Trim ตัดแต่ง + Turbulent วุ่นวาย + Twirl หมุนวน + Twirl Clockwise หมุนตามเข็มนาฬิกา + Twirl Counterclockwise หมุนทวนเข็มนาฬิกา + Type Options ตัวเลือกตัวอักษร + Unaltered ไม่เปลี่ยนแปลง + Undefined Areas พื้นที่ที่ไม่ได้กำหนด + Underlying Layer: เลเยอร์พื้นฐาน: + Underpainting การทาสีด้านล่าง + Underwater ใต้น้ำ + Ungroup ยกเลิกการจัดกลุ่ม + Uniform เครื่องแบบ + Unite Shapes at Overlap รวมรูปร่างที่ทับซ้อนกัน + Unlink ยกเลิกการเชื่อมโยง + Unlock ปลดล็อค + Unlocked ปลดล็อคแล้ว + Unsaved Changes การเปลี่ยนแปลงที่ไม่ได้บันทึก + Unsharp Mask มาสก์ที่ไม่คมชัด + Unsupported file format รูปแบบไฟล์ที่ไม่รองรับ + Unsupported format รูปแบบที่ไม่รองรับ + Up ขึ้น + Update อัปเดต + Updates อัพเดท + Upper บน + Use Custom Color ใช้สีที่กำหนดเอง + Use File › Open to open an image. ใช้ไฟล์ › เปิดเพื่อเปิดภาพ + Use Selection In Source ใช้การเลือกในแหล่งที่มา + Use Selection In Target ใช้การเลือกในเป้าหมาย + Uses the foreground and background colors. ใช้สีพื้นหน้าและพื้นหลัง + Vanishing Point จุดที่หายไป + Variable Data Sets ชุดข้อมูลตัวแปร + Vector Mask Hides Effects เวกเตอร์มาสก์ซ่อนเอฟเฟกต์ + Vertical Distortion การบิดเบือนแนวตั้ง + Vertical Only แนวตั้งเท่านั้น + Vertical Type Tool เครื่องมือตัวอักษรแนวตั้ง + Vertical scale สเกลแนวตั้ง + Vertical type ประเภทแนวตั้ง + Video Frames to Layers เฟรมวิดีโอเป็นเลเยอร์ + Vignette Amount จำนวนบทความสั้น + Vignette Feather ขนนกวิกเน็ตต์ + Vignette Highlights ไฮไลท์บทความสั้น + Vignette Midpoint วิกเน็ตต์จุดกึ่งกลาง + Vignette Roundness วิกเน็ตต์ ความกลม + Vignette Style สไตล์วิกเน็ตต์ + Vine Color สีเถาวัลย์ + Vine With Flowers เถาวัลย์กับดอกไม้ + Vine With Leaves เถาวัลย์กับใบไม้ + Violent รุนแรง + W: ว: + WIA Support การสนับสนุน WIA + Warm อบอุ่น + Warming Filter (85) แผ่นฟิลเตอร์ความร้อน (85) + Warming L B A อุ่นเครื่อง L B A + Warming81 ภาวะโลกร้อน81 + Warming85 อุ่นเครื่อง85 + Warmth ความอบอุ่น + Warning คำเตือน + Warp Text ข้อความวาร์ป + Watercolor สีน้ำ + Watercolour look: lighter interior, darker rims. รูปลักษณ์แบบสีน้ำ: ภายในสีสว่างกว่า ขอบล้อสีเข้มกว่า + Wavelength Max ความยาวคลื่นสูงสุด + Wavelength Min ความยาวคลื่นต่ำสุด + Waves คลื่น + Web Large เว็บใหญ่ + Web Minimum เว็บขั้นต่ำ + Web Most Common เว็บที่พบบ่อยที่สุด + WebP (lossless) WebP (แบบไม่สูญเสีย) + Wetness ความเปียกชื้น + White Clip คลิปขาว + White Intensity ความเข้มของสีขาว + White Is High สีขาวอยู่สูง + Whole Word ทั้งคำ + Wide Blurry กว้าง เบลอ + Wide Sharp กว้างคม + Wind ลม + Window renderer: {renderer} ตัวแสดงผลหน้าต่าง: {renderer} + Working ทำงาน + Working Cmyk การทำงานของ Cmyk + Working Gray ทำงานสีเทา + Working Rgb RGB ทำงาน + Working-cmyk การทำงาน-cmyk + Workspaces พื้นที่ทำงาน + Wrap ห่อ + Yellows สีเหลือง + ZigZag ซิกแซก + Zigzag ซิกแซก + Zoom In (hold, drag to scrub) ซูมเข้า (กดค้าง ลากเพื่อขัด) + Zoom Out (hold) ซูมออก (กดค้างไว้) + auto อัตโนมัติ + blue สีน้ำเงิน + brushes แปรง + fallback ทางเลือก + gradients การไล่ระดับสี + gray สีเทา + green สีเขียว + layer mask มาสก์เลเยอร์ + manual คู่มือ + none ไม่มี + off ปิด + on บน + orange สีส้ม + previous reading kept; the last re-read failed: {reason} การอ่านครั้งก่อนเก็บไว้; การอ่านซ้ำครั้งล่าสุดล้มเหลว: {reason} + red สีแดง + unknown ไม่ทราบ + unknown type ประเภทที่ไม่รู้จัก + vector mask มาสก์เวกเตอร์ + violet สีม่วง + yellow สีเหลือง + {index} of {total} {index} of {total} + {label} is not available: {reason} {label} ไม่พร้อมใช้งาน: {reason} + {message} (notes: {n}; {warning}) {message} (notes: {n}; {warning}) + {shortcut} assigned. มอบหมาย {shortcut} แล้ว + {shortcut} is already in use by {commands} and will be removed from it when you click OK. {shortcut} ถูกใช้แล้วโดย {commands} และจะถูกลบออกจากมันเมื่อคุณคลิกตกลง + {verb} {mask} {layer} {verb} {mask} {layer} + ↑↓ navigate ↵ run esc close ↑↓ นำทาง ↵ วิ่ง esc ปิด + ✓ Color Indicates Masked Areas ✓ สีหมายถึงบริเวณที่ถูกปิดบัง + ✓ Color Indicates Selected Areas ✓ สีบ่งบอกถึงพื้นที่ที่เลือก +# Dynamic command-id, plural, and contextual labels (fourth pass). +@id edit.clear ชัดเจน +@id edit.purge.undo เลิกทำ +@id edit.stroke โรคหลอดเลือดสมอง +@id edit.transform.scale สเกล +@id file.close ปิด +@id filter.sharpen.sharpen ลับคม +@id layer.layerMask.apply สมัคร +@id select.all เลือกทั้งหมด +@plural Imported {n} brush from {file}|Imported {n} brushes from {file} นำเข้า {n} แปรงจาก {file} +@plural Imported {n} gradient from {file}|Imported {n} gradients from {file} นำเข้า {n} การไล่ระดับสีจาก {file} +@plural Imported {n} pattern from {file}|Imported {n} patterns from {file} นำเข้า {n} รูปแบบจาก {file} +cameraRaw Balance ยอดคงเหลือ +cameraRaw Clarity ความชัดเจน +cameraRaw Color สี +cameraRaw Color Mixer เครื่องผสมสี +cameraRaw Contrast คอนทราสต์ +cameraRaw Curve เส้นโค้ง +cameraRaw Dehaze ลดหมอกควัน +cameraRaw Detail รายละเอียด +cameraRaw Effects ผลกระทบ +cameraRaw Exposure การเปิดรับแสง +cameraRaw Feather ขนนก +cameraRaw Highlights ไฮไลท์ +cameraRaw Luminance ความสว่าง +cameraRaw Masking การกำบัง +cameraRaw Midpoint จุดกึ่งกลาง +cameraRaw Midtones มิดโทน +cameraRaw Radius รัศมี +cameraRaw Roundness ความกลม +cameraRaw Saturation ความอิ่มตัว +cameraRaw Shadows เงา +cameraRaw Size ขนาด +cameraRaw Temperature อุณหภูมิ +cameraRaw Texture พื้นผิว +cameraRaw Tint โทนสี +cameraRaw Whites คนผิวขาว +colorRange Invert กลับสี +document Orientation ปฐมนิเทศ +layerLabel Magenta สีม่วงแดง +layerLabel No Color ไม่มีสี +layerLabel Red สีแดง +layers Fill เติม +layers Fill: กรอก: +navigator Zoom ซูม +shape Appearance ลักษณะที่ปรากฏ +# Paragraph direction (TYPE-218-2) + Automatic paragraph direction ทิศทางของย่อหน้าอัตโนมัติ + Left-to-right paragraph direction ทิศทางของย่อหน้าจากซ้ายไปขวา + Right-to-left paragraph direction ทิศทางของย่อหน้าจากขวาไปซ้าย + Not rendered: this adjustment ({key}) is kept as imported. ไม่แสดงผล: การปรับนี้ ({key}) จะถูกเก็บไว้เป็นการนำเข้า +# Print preview image (#8236) + Print preview image ภาพตัวอย่างก่อนพิมพ์ +# Color panel menu: modes, copy commands and colour ramps (#6000) + Hue Cube เว้ คิวบ์ + Brightness Cube ลูกบาศก์ความสว่าง + Color Wheel วงล้อสี + RGB Sliders แถบเลื่อน RGB + HSB Sliders สไลเดอร์ HSB + CMYK Sliders แถบเลื่อน CMYK + Lab Sliders แล็บสไลเดอร์ + Web Color Sliders ตัวเลื่อนสีของเว็บ + Copy Color as HTML คัดลอกสีเป็น HTML + Copy Color's Hex Code คัดลอกรหัสเลขฐานสิบหกของสี + RGB Spectrum สเปกตรัม RGB + CMYK Spectrum สเปกตรัม CMYK + Grayscale Ramp ทางลาดระดับสีเทา + Current Colors สีปัจจุบัน + Make Ramp Web Safe ทำให้ทางลาดเว็บปลอดภัย +# Art History Brush (#213). + Art History Brush Tool เครื่องมือแปรงประวัติศาสตร์ศิลปะ + Tight Short สั้นแน่น + Tight Medium แน่นปานกลาง + Tight Long แน่นยาว + Loose Medium หลวมปานกลาง + Loose Long ยาวหลวม + Dab ตบเบาๆ + Tight Curl หยิกแน่น + Loose Curl ลอนหลวม + Stylized dabs from a history state แต้มเก๋ๆ จากสถานะประวัติศาสตร์ + Font size presets ตั้งค่าขนาดตัวอักษรล่วงหน้า + Leading presets ค่าที่ตั้งล่วงหน้าเลเยอร์นำ + Tracking presets ติดตามที่ตั้งไว้ล่วงหน้า + +# Recent labels (histogram statistics, self-update, Artboards and others) + CPU Rendering การเรนเดอร์ซีพียู + Calculating… กำลังคำนวณ… + Click to refresh histogram with uncached data คลิกเพื่อรีเฟรชฮิสโตแกรมด้วยข้อมูลที่ไม่ได้แคช + Convert to Shape… แปลงเป็นรูปร่าง… + Cooling Filter (80) ฟิลเตอร์ความเย็น (80) + Cooling Filter (82) ฟิลเตอร์ความเย็น (82) + Cooling Filter (LBB) ฟิลเตอร์ความเย็น (LBB) + Count: จำนวน: + Delete Hidden Layers ลบเลเยอร์ที่ซ่อนอยู่ + Drag on the image to add a constraint; Shift for horizontal/vertical; right-click to delete. ลากบนภาพเพื่อเพิ่มข้อจำกัด เลื่อนแนวนอน/แนวตั้ง; คลิกขวาเพื่อลบ + Drawn on the CPU: {reason}. Click for System Info. วาดบน CPU: {reason} คลิกเพื่อดูข้อมูลระบบ + Exported {n} files ส่งออก {n} ไฟล์แล้ว + Fit Layer on Screen พอดีเลเยอร์บนหน้าจอ + Flow: การไหล: + Level: ระดับ: + Percentile: เปอร์เซ็นไทล์: + Refine Edge… ปรับขอบ… + Release Notes บันทึกประจำรุ่น + Remember Settings จำการตั้งค่า + Reset Essentials รีเซ็ตสิ่งจำเป็น + Rounded Rectangle Tool เครื่องมือสี่เหลี่ยมผืนผ้าโค้งมน + Show Channels in Color แสดงช่องเป็นสี + Show Statistics แสดงสถิติ + Source: ที่มา: + Status Bar แถบสถานะ + Tile Horizontally กระเบื้องแนวนอน + Tile Vertically ปูกระเบื้องในแนวตั้ง + Uncached Refresh รีเฟรชที่ไม่ถูกแคช + Update and Restart อัปเดตและรีสตาร์ท + Warming Filter (81) แผ่นฟิลเตอร์ความร้อน (81) + Warming Filter (LBA) แผ่นฟิลเตอร์ความร้อน (LBA) +@plural {n} document|{n} documents {n} เอกสาร +@plural {n} pixel|{n} pixels {n} พิกเซล +cameraRaw Before (Y) ก่อน (ญ) +cameraRaw Camera Raw ({name}) กล้องดิบ ({name}) +cameraRaw Camera Raw Filter ({layer}) ฟิลเตอร์ Camera Raw ({layer}) +cameraRaw Camera Raw isn't open Camera Raw ไม่เปิด +cameraRaw Cancel ยกเลิก +cameraRaw Cancelled opening {name} ยกเลิกการเปิด {name} +cameraRaw Cancelled {label} ยกเลิก {label} +cameraRaw Color Priority ลำดับความสำคัญของสี +cameraRaw Developing {name} กำลังพัฒนา {name} +cameraRaw Full-resolution preview unavailable ไม่สามารถแสดงตัวอย่างแบบเต็มความละเอียดได้ +cameraRaw Grain ธัญพืช +cameraRaw Highlight Clipping Warning (O) คำเตือนการตัดไฮไลท์ (O) +cameraRaw Highlight Priority เน้นลำดับความสำคัญ +cameraRaw Load Settings… โหลดการตั้งค่า… +cameraRaw Load settings from a Camera Raw .xmp file โหลดการตั้งค่าจากไฟล์ Camera Raw .xmp +cameraRaw Loaded Camera Raw settings from {file} โหลดการตั้งค่า Camera Raw จาก {file} +cameraRaw Noise Reduction ลดเสียงรบกวน +cameraRaw OK ตกลง +cameraRaw Open เปิด +cameraRaw Opened {name} Opened {name} +cameraRaw Paint Overlay การทาสีทับซ้อน +cameraRaw Save Settings… บันทึกการตั้งค่า… +cameraRaw Save these settings as a Camera Raw .xmp file บันทึกการตั้งค่าเหล่านี้เป็นไฟล์ Camera Raw .xmp +cameraRaw Shadow Clipping Warning (U) คำเตือนเงาตัด (U) +cameraRaw Sharpening การลับคม +cameraRaw Show Lab Color Readouts แสดงการอ่านค่าสีของแล็บ +cameraRaw Show Red at 3 o'clock โชว์สีแดงเวลา 3 นาฬิกา +cameraRaw Show Selected Region แสดงภูมิภาคที่เลือก +cameraRaw Show Skin Tone Indicator แสดงตัวบ่งชี้สีผิว +cameraRaw Show Vectorscope แสดงเวคเตอร์สโคป +cameraRaw Tone Histogram โทนฮิสโตแกรม +cameraRaw Vignetting วิกเนต +cameraRaw White Balance: As Shot สมดุลแสงขาว: เท่าที่ถูกถ่าย + +# Strings main added after this catalog was written (integration batch 20). + Background (default) พื้นหลัง (ค่าเริ่มต้น) + Transparent (default) โปร่งใส (ค่าเริ่มต้น) + The path was kept as the Work Path เก็บเส้นทางไว้เป็นเส้นทางการทำงานแล้ว + The path was discarded ทิ้งเส้นทางแล้ว diff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsv index 7b7108878d..afb9885a69 100644 --- a/crates/ui-egui/src/i18n/tr.tsv +++ b/crates/ui-egui/src/i18n/tr.tsv @@ -672,7 +672,7 @@ Working Magenta Plate Çalışma Macenta Plakası Working Yellow Plate Çalışma Sarı Plakası Working Black Plate Çalışma Siyah Plakası - Working CMY Plates Çalışma CMY Plakası + Working CMY Plates Çalışma CMY Plakaları Legacy Macintosh RGB (Gamma 1.8) Eski Macintosh RGB (Gamma 1.8) Internet Standard RGB (sRGB) İnternet Standardı RGB (sRGB) Monitor RGB Monitör RGB @@ -821,6 +821,12 @@ Timeline Zaman Çizelgesi Tool Presets Araç Ön Ayarları Tools Araçlar + Contextual Task Bar Bağlamsal Görev Çubuğu + Hide bar Çubuğu gizle + Reset bar position Çubuk konumunu sıfırla + Pin bar position Çubuk konumunu sabitle + Move bar Çubuğu taşı + More options Diğer seçenekler About PhotoCraft PhotoCraft Hakkında PhotoCraft Website PhotoCraft Web Sitesi PhotoCraft on GitHub GitHub'da PhotoCraft @@ -2278,6 +2284,7 @@ Punctuation Noktalama işaretleri Make Work Path Çalışma Yolu Oluştur Make Selection Seçim Yap + Make Shape Şekil Yap Fill Path Yolu Doldur Stroke Path Kontur Yolu Delete Path Yolu Sil @@ -2556,7 +2563,6 @@ cameraRaw Color Renk Remove All Tümünü Kaldır Unlock Kilidi Aç Enable Etkinleştir - Enable animations Animasyonları etkinleştir Disable Devre dışı bırak On Açık Selected Seçilen diff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsv index 327d20fb7f..b345e881da 100644 --- a/crates/ui-egui/src/i18n/uk.tsv +++ b/crates/ui-egui/src/i18n/uk.tsv @@ -651,7 +651,7 @@ Match Location Узгодити розташування Match Rotation Узгодити поворот Match All Узгодити все - New Window Нове вікно для документа + New Window Нове вікно Workspace Робочий простір Extensions Розширення Panels Панелі @@ -681,6 +681,12 @@ Timeline Шкала часу Tool Presets Набори інструментів Tools Інструменти + Contextual Task Bar Контекстна панель завдань + Hide bar Сховати панель + Reset bar position Скинути положення панелі + Pin bar position Закріпити положення панелі + Move bar Перемістити панель + More options Інші параметри Libraries Бібліотеки 3D 3D Toolbars Панелі інструментів @@ -1314,6 +1320,7 @@ Path to Illustrator… Контур до Illustrator… Make Work Path Створити робочий контур Make Selection Створити виділення + Make Shape Створити фігуру Fill Path Залити контур Stroke Path Обвести контур Clipping Path Відсічний контур @@ -2129,7 +2136,7 @@ Vertical Centers Вертикальні центри Video Frames to Layers… Відеокадри в шари… WIA Support… Підтримка WIA… - Working CMY Plates Робоча форма CMY + Working CMY Plates Робочі форми CMY Absolute Абсолютний Action Дія Adaptive Адаптивний @@ -2537,7 +2544,6 @@ Show only crosshair while painting Показувати лише перехрестя під час малювання Show slice numbers Показувати номери фрагментів Show tooltips Показувати підказки - Enable animations Увімкнути анімацію Show highlight on rollover Показувати підсвічування під час наведення Show bounding box when dragging layer Показувати рамку під час перетягування шару System title bar Системний рядок заголовка diff --git a/crates/ui-egui/src/i18n/ur.tsv b/crates/ui-egui/src/i18n/ur.tsv new file mode 100644 index 0000000000..4d5eaf7961 --- /dev/null +++ b/crates/ui-egui/src/i18n/ur.tsv @@ -0,0 +1,4574 @@ +# Urdu (ur) catalog. Columns, separated by a TAB: context source translation +# +# context empty a plain UI string; `source` is the English text in the code +# @id a command id (e.g. file.saveAs): wins over the English text for +# that menu item, so one id can read differently from its twin +# @plural `source` is "one|other" (English forms); the translation lists +# the language's forms separated by "|" (see `plural` in i18n/mod.rs) +# anything else a disambiguating context passed to `tr_ctx` +# escapes \n \t \\ inside a column. `{name}` placeholders must appear in both columns. +# lines starting with # and blank lines are ignored. +# +# Clean-room: every entry was written from the plain meaning of the English label using ordinary +# modern Urdu computing and photo-editing vocabulary (تہہ, برش, انتخاب, کینوس ...). No proprietary +# localisation resource, string table or product UI was consulted or copied; add entries the same +# way. Urdu shares much Perso-Arabic vocabulary with Farsi; where a shared term fit naturally the +# choice was cross-checked against fa.tsv, but phrasing and grammar follow Urdu usage throughout, +# not Farsi's. Product and technology names (PhotoCraft, ArtCraft, OpenType, CMYK, Lab ...) stay in +# Latin letters, as do key names and placeholders; the trailing "…" of dialog commands is kept. +# Urdu plural rule (as used in casual software UI): one|other. +# Machine-translated with Claude (Anthropic) for @tronicum; not yet reviewed by a native speaker. + + Mask Options… ماسک کے اختیارات… + Layer Mask Display Options… تہہ ماسک کی نمائش کے اختیارات… + Channel Color چینل کا رنگ + Color Indicates: رنگ ظاہر کرتا ہے: + Solidity: ٹھوس پن: + Masked Areas ماسک شدہ حصے + Selected Areas منتخب حصے + Ink Characteristics سیاہی کی خصوصیات + Paper Width کاغذ کی چوڑائی + Paper Height کاغذ کی اونچائی + Columns کالم + Rows قطاریں + Number تعداد + Margin حاشیہ + Top: اوپر: + Left: بائیں: + Bottom: نیچے: + Right: دائیں: + Target: ہدف: + Selected Artboards منتخب آرٹ بورڈز + Center Columns کالم درمیان میں کریں + Clear Existing Guides موجودہ رہنما لکیریں ہٹائیں + Invalid guide layout رہنما ترتیب درست نہیں + Leave empty for automatic size خودکار حجم کے لیے خالی چھوڑیں + 5 Columns, 3 Rows 5 کالم، 3 قطاریں + 8 Columns 8 کالم + 12 Columns 12 کالم + File فائل + Edit ترمیم + Image تصویر + Layer تہہ + Type متن + Select انتخاب + Selected منتخب + Scope دائرہ کار + Top Left اوپر بائیں + Top Right اوپر دائیں + Bottom Left نیچے بائیں + Bottom Right نیچے دائیں + Filter فلٹر + View منظر + Window ونڈو + Help مدد + (coming soon) (جلد آ رہا ہے) + New… نیا… + New from Clipboard کلپ بورڈ سے نیا + Open… کھولیں… + Open As… بطور کھولیں… + Open EXR Parts… EXR پارٹس کھولیں… + Add beauty precomp from the AOVs AOVs سے بیوٹی پری کمپ شامل کریں + Both دونوں + Left بائیں + Right دائیں + Open Recent حالیہ کھولیں + Clear Recent Files حالیہ فائلیں صاف کریں + Remove from Recent حالیہ سے ہٹائیں + Remove {name} from Recent {name} کو حالیہ سے ہٹائیں + Close بند کریں + Minimize چھوٹا کریں + Maximize بڑا کریں + Restore بحال کریں + Close All سب بند کریں + Close Others دیگر بند کریں + Save محفوظ کریں + Save As… محفوظ کریں بطور… + Save a Copy… ایک نقل محفوظ کریں… + {name} can't keep everything in this document {name} اس دستاویز میں سب کچھ محفوظ نہیں رکھ سکتا + Choose a format that keeps it, such as Photoshop (PSD), or save a copy. کوئی ایسا فارمیٹ چنیں جو اسے محفوظ رکھے، جیسے فوٹوشاپ (PSD)، یا ایک نقل محفوظ کریں۔ + Revert واپس لوٹائیں + Export برآمد کریں + Quick Export as PNG فوری طور پر PNG کے بطور برآمد کریں + Export As… برآمد کریں بطور… + Export Preferences… برآمدی ترجیحات… + Save for Web (Legacy)… ویب کے لیے محفوظ کریں (پرانا)… + Artboards to Files… آرٹ بورڈز کو فائلوں میں… + Artboards to PDF… آرٹ بورڈز کو PDF میں… + Layers to Files… تہیں فائلوں میں… + Layer Comps to Files… تہہ کمپوزیشنز فائلوں میں… + Color Lookup Tables… رنگ تلاش جدولیں… + Data Sets as Files… ڈیٹا سیٹس بطور فائلیں… + Paths to Illustrator… پاتھ الیسٹریٹر کو… + Render Video… ویڈیو رینڈر کریں… + Generate تخلیق کریں + Image Assets تصویری اثاثے + Place Embedded… ایمبیڈڈ رکھیں… + Place Linked… لنک شدہ رکھیں… + Package… پیکج… + Automate خودکار بنائیں + Batch… بیچ… + Create Droplet… ڈراپلیٹ بنائیں… + Crop and Straighten Photos تصاویر تراشیں اور سیدھی کریں + Contact Sheet II… کانٹیکٹ شیٹ II… + Conditional Mode Change… مشروط موڈ تبدیلی… + Fit Image… تصویر فٹ کریں… + Lens Correction… لینز تصحیح… + Merge to HDR Pro… HDR پرو میں ضم کریں… + Photomerge… فوٹو مرج… + Scripts اسکرپٹس + Image Processor… امیج پروسیسر… + Delete All Empty Layers تمام خالی تہیں حذف کریں + Flatten All Layer Effects تمام تہہ اثرات چپٹے کریں + Flatten All Masks تمام ماسک چپٹے کریں + Script Events Manager… اسکرپٹ ایونٹس مینیجر… + Import درآمد کریں + Browse… براؤز کریں… + Source Files ماخذ فائلیں + Use: استعمال کریں: + Files فائلیں + Folder فولڈر + Add Open Files کھلی فائلیں شامل کریں + Sort By Name نام کے مطابق ترتیب دیں + Attempt to Automatically Align Source Images ماخذ تصاویر کو خودکار طور پر ہم آہنگ کرنے کی کوشش کریں + Create Smart Object after Loading Layers تہیں لوڈ کرنے کے بعد سمارٹ آبجیکٹ بنائیں + Reveal in Finder فائنڈر میں دکھائیں + Show in Explorer ایکسپلورر میں دکھائیں + Show in Folder فولڈر میں دکھائیں + File Info… فائل کی معلومات… + Print… پرنٹ کریں… + Print One Copy ایک کاپی پرنٹ کریں + Exit اختتام + Undo کالعدم کریں + Redo دوبارہ کریں + Toggle Last State آخری حالت بدلیں + Fade… فیڈ… + Cut کاٹیں + Copy کاپی کریں + Copy Merged ضم شدہ کاپی کریں + Paste چسپاں کریں + Paste Special خصوصی چسپاں + Paste in Place اسی جگہ چسپاں کریں + Paste Into اندر چسپاں کریں + Paste Outside باہر چسپاں کریں + Paste Lorem Ipsum لورم اپسم چسپاں کریں + Clear صاف کریں + Search… تلاش کریں… + Check Spelling… املا جانچیں… + Find and Replace Text… متن تلاش اور تبدیل کریں… + Add to Dictionary لغت میں شامل کریں + No Spelling Suggestions کوئی املا تجویز نہیں + Fill… بھریں… + Stroke… لکیر… + Content-Aware Fill… مواد سے آگاہ بھرائی… + Delete and Fill Selection انتخاب حذف کریں اور بھریں + Content-Aware Scale مواد سے آگاہ پیمانہ + Puppet Warp پپٹ وارپ + Perspective Warp تناظری وارپ + Free Transform آزاد ہیئت تبدیلی + Free Transform a Copy ایک نقل کی آزاد ہیئت تبدیلی + Transform ہیئت تبدیلی + Again دوبارہ + Transform Again on a Copy ایک نقل پر دوبارہ ہیئت تبدیلی + Scale پیمانہ + Rotate گھمائیں + Set horizontal skew افقی ترچھا پن مقرر کریں + Set vertical skew عمودی ترچھا پن مقرر کریں + Skew ترچھا کریں + Distort مسخ کریں + Perspective تناظر + Warp موڑ + Flip Horizontal افقی پلٹیں + Flip Vertical عمودی پلٹیں + Rotate 180° 180° گھمائیں + Rotate 90° Clockwise 90° گھڑی وار گھمائیں + Rotate 90° Counter Clockwise 90° گھڑی کے خلاف گھمائیں + 180° 180° + 90° Clockwise 90° گھڑی وار + 90° Counter Clockwise 90° گھڑی کے خلاف + Arbitrary… صوابدیدی… + Auto-Align Layers… تہیں خودکار ہم آہنگ کریں… + Auto-Blend Layers… تہیں خودکار ملائیں… + Define Brush Preset… برش پری سیٹ متعین کریں… + Define Pattern… نمونہ متعین کریں… + Define Custom Shape… مخصوص شکل متعین کریں… + Purge صاف کریں + Clipboard کلپ بورڈ + Histories تاریخیں + Video Cache ویڈیو کیشے + All سب + Presets پری سیٹس + Preset Manager… پری سیٹ مینیجر… + Migrate Presets پری سیٹس منتقل کریں + Export/Import Presets… پری سیٹس برآمد/درآمد کریں… + Color Settings… رنگ کی ترتیبات… + Assign Profile… پروفائل تفویض کریں… + Convert to Profile… پروفائل میں تبدیل کریں… + Keyboard Shortcuts… کی بورڈ شارٹ کٹس… + Menus… مینیوز… + Toolbar… ٹول بار… + Preferences ترجیحات + General… عام… + Interface… انٹرفیس… + Workspace… ورک اسپیس… + Tools… ٹولز… + History Log… تاریخ لاگ… + File Handling… فائل ہینڈلنگ… + Export… برآمد… + Performance… کارکردگی… + Scratch Disks… اسکریچ ڈسکس… + Cursors… کرسرز… + Transparency & Gamut… شفافیت اور رنگ دائرہ کار… + Units & Rulers… اکائیاں اور رولرز… + Guides, Grid & Slices… رہنما لکیریں، گرڈ اور سلائسز… + Plug-ins… پلگ انز… + Type… متن… + Enhanced Controls… بہتر کنٹرولز… + Camera Raw… کیمرہ را… + Raw Defaults… را ڈیفالٹس… + Integrations… انضمام… + AI Integrations… AI انضمام… + Install Plug-in… پلگ ان نصب کریں… + Language Options زبان کے اختیارات + Settings… ترتیبات… + Mode موڈ + Bitmap بٹ میپ + Grayscale گرے اسکیل + Duotone ڈوٹون + Indexed Color انڈیکسڈ کلر + RGB Color RGB رنگ + CMYK Color CMYK رنگ + Lab Color Lab رنگ + Multichannel ملٹی چینل + 8 Bits/Channel 8 بٹس فی چینل + 8 bit 8 بٹ + Integer عدد صحیح + 16 Bits/Channel 16 بٹس فی چینل + 16 bit 16 بٹ + 32 Bits/Channel 32 بٹس فی چینل + 32 bit (float) 32 بٹ (فلوٹ) + Floating point فلوٹنگ پوائنٹ + Color Table… رنگ جدول… + Bitmap… بٹ میپ… + Duotone… ڈوٹون… + Indexed Color… انڈیکسڈ کلر… + Adjustments ایڈجسٹمنٹس + Brightness/Contrast… چمک/تباین… + Levels… لیولز… + Curves… وکر… + Exposure… نمائش… + Vibrance… رونق… + Hue/Saturation… رنگت/اشباع… + Color Balance… رنگ توازن… + Black & White… سیاہ و سفید… + Photo Filter… فوٹو فلٹر… + Channel Mixer… چینل مکسر… + Color Lookup… رنگ تلاش… + Invert معکوس کریں + Posterize… پوسٹرائز… + Threshold… حد… + Gradient Map… گریڈیئنٹ نقشہ… + Selective Color… منتخب رنگ… + Shadows/Highlights… سائے/نمایاں حصے… + HDR Toning… HDR ٹوننگ… + Desaturate بے رنگ کریں + Match Color… رنگ ملائیں… + Replace Color… رنگ بدلیں… + Equalize برابر کریں + Auto Tone خودکار ٹون + Auto Contrast خودکار تباین + Auto Color خودکار رنگ + Image Size… تصویر کا حجم… + Canvas Size… کینوس کا حجم… + Image Rotation تصویر کی گردش + Flip Canvas Horizontal کینوس کو افقی پلٹیں + Flip Canvas Vertical کینوس کو عمودی پلٹیں + Crop تراشیں + Trim… تراش… + Reveal All سب ظاہر کریں + Duplicate… نقل بنائیں… + Apply Image… تصویر لاگو کریں… + Calculations… حسابات… + Variables متغیرات + Define… متعین کریں… + Data Sets… ڈیٹا سیٹس… + Apply Data Set… ڈیٹا سیٹ لاگو کریں… + Variable Data Sets… متغیر ڈیٹا سیٹس… + Trap… ٹریپ… + Analysis تجزیہ + Set Measurement Scale… پیمائش کا پیمانہ مقرر کریں… + Select Data Points… ڈیٹا پوائنٹس منتخب کریں… + Record Measurements پیمائشیں ریکارڈ کریں + Ruler Tool رولر ٹول + Count Tool شمار ٹول + Place Scale Marker… پیمانہ نشان رکھیں… + Custom… مخصوص… + New نیا + Layer… تہہ… + Group… گروپ… + Group from Layers… تہوں سے گروپ… + New Group from Layers… تہوں سے نیا گروپ… + Artboard… آرٹ بورڈ… + Artboard from Group… گروپ سے آرٹ بورڈ… + Artboard from Layers… تہوں سے آرٹ بورڈ… + Layer via Copy کاپی کے ذریعے تہہ + Layer via Cut کٹ کے ذریعے تہہ + Layer From Background… پس منظر سے تہہ… + Layer from Background… پس منظر سے تہہ… + Background from Layer تہہ سے پس منظر + Background From Layer تہہ سے پس منظر + New Shape Layer نئی شکل تہہ + New Type Layer نئی متن تہہ + New Fill Layer نئی بھرائی تہہ + New Adjustment Layer نئی ایڈجسٹمنٹ تہہ + New Layer Based Slice نئی تہہ پر مبنی سلائس + New Smart Object via Copy کاپی کے ذریعے نیا سمارٹ آبجیکٹ + New Blank Video Layer نئی خالی ویڈیو تہہ + New Video Layer from File… فائل سے نئی ویڈیو تہہ… + Duplicate Layer… تہہ کی نقل بنائیں… + Delete Layer تہہ حذف کریں + Delete حذف کریں + Rename Layer تہہ کا نام تبدیل کریں + Create Layer تہہ بنائیں + Layer Style تہہ کا اسٹائل + Blending Options… امتزاج کے اختیارات… + Bevel & Emboss… بیول اور ایمبوس… + Use Global Light عالمی روشنی استعمال کریں + Overprint اوور پرنٹ + Inner Shadow… اندرونی سایہ… + Inner Glow… اندرونی چمک… + Satin… ساٹن… + Color Overlay… رنگ اوورلے… + Gradient Overlay… گریڈیئنٹ اوورلے… + Pattern Overlay… نمونہ اوورلے… + Outer Glow… بیرونی چمک… + Drop Shadow… ڈراپ شیڈو… + Copy Layer Style تہہ کا اسٹائل کاپی کریں + Paste Layer Style تہہ کا اسٹائل چسپاں کریں + Clear Layer Style تہہ کا اسٹائل صاف کریں + Global Light… عالمی روشنی… + Hide All Effects تمام اثرات چھپائیں + Scale Effects… اثرات کا پیمانہ… + Smart Filter سمارٹ فلٹر + Convert for Smart Filters سمارٹ فلٹرز کے لیے تبدیل کریں + Clear Smart Filters سمارٹ فلٹرز صاف کریں + Disable Smart Filters سمارٹ فلٹرز غیر فعال کریں + Delete Filter Mask فلٹر ماسک حذف کریں + Disable Filter Mask فلٹر ماسک غیر فعال کریں + Solid Color… ٹھوس رنگ… + Gradient… گریڈیئنٹ… + Pattern… نمونہ… + Layer Mask تہہ ماسک + Vector Mask ویکٹر ماسک + Reveal Selection انتخاب ظاہر کریں + Hide Selection انتخاب چھپائیں + Hide All سب چھپائیں + From Transparency شفافیت سے + Delete Vector Mask ویکٹر ماسک حذف کریں + Enable Layer Mask تہہ ماسک فعال کریں + Disable Layer Mask تہہ ماسک غیر فعال کریں + Enable Vector Mask ویکٹر ماسک فعال کریں + Link Layer Mask تہہ ماسک مربوط کریں + Unlink Layer Mask تہہ ماسک غیر مربوط کریں + Link Vector Mask ویکٹر ماسک مربوط کریں + Add Vector Mask ویکٹر ماسک شامل کریں + Vector Mask from Current Path موجودہ پاتھ سے ویکٹر ماسک + Create Clipping Mask کلپنگ ماسک بنائیں + Release Clipping Mask کلپنگ ماسک ختم کریں + Smart Objects سمارٹ آبجیکٹس + Smart Object سمارٹ آبجیکٹ + Convert to Smart Object سمارٹ آبجیکٹ میں تبدیل کریں + Convert to Embedded ایمبیڈڈ میں تبدیل کریں + Convert to Layers تہوں میں تبدیل کریں + Convert to Linked… لنک شدہ میں تبدیل کریں… + Edit Contents مواد میں ترمیم کریں + Replace Contents… مواد تبدیل کریں… + Relink to File… فائل سے دوبارہ لنک کریں… + Export Contents… مواد برآمد کریں… + Update Modified Content تبدیل شدہ مواد اپ ڈیٹ کریں + Update All Modified Content تمام تبدیل شدہ مواد اپ ڈیٹ کریں + Stack Mode اسٹیک موڈ + Choose Stack Mode: اسٹیک موڈ چنیں: + Entropy اینٹروپی + Kurtosis کرٹوسس + Maximum زیادہ سے زیادہ + Mean اوسط + Median درمیانی قدر + Minimum کم سے کم + Range حد + Skewness سکیونیس + Standard Deviation معیاری انحراف + Summation مجموعہ + Variance ویری ئنس + Video Layers ویڈیو تہیں + Interpret Footage… فوٹیج کی تشریح کریں… + Replace Footage… فوٹیج تبدیل کریں… + Reload Frame فریم دوبارہ لوڈ کریں + Show Altered Video تبدیل شدہ ویڈیو دکھائیں + Restore Frame فریم بحال کریں + Restore All Frames تمام فریم بحال کریں + Insert Blank Frame خالی فریم شامل کریں + Delete Frame فریم حذف کریں + Duplicate Frame فریم کی نقل بنائیں + Frame from Layers تہوں سے فریم + Video Frames to Layers… ویڈیو فریمز کو تہوں میں… + Rasterize ریسٹرائز کریں + Rasterize Type متن ریسٹرائز کریں + Rasterize Type Layer متن تہہ ریسٹرائز کریں + Rasterize Shape شکل ریسٹرائز کریں + New Guide Layout… نیا رہنما خاکہ… + New Guides From Shape شکل سے نئی رہنما لکیریں + Lock Layers… تہیں مقفل کریں… + Link Layers تہیں مربوط کریں + Select Linked Layers مربوط تہیں منتخب کریں + Merge Layers تہیں ضم کریں + Merge Down نیچے ضم کریں + Merge Group گروپ ضم کریں + Merge Visible نظر آنے والی ضم کریں + Stamp Visible نظر آنے والی اسٹیمپ کریں + Select Layer Above اوپر والی تہہ منتخب کریں + Select Layer Below نیچے والی تہہ منتخب کریں + Select Top Layer سب سے اوپر کی تہہ منتخب کریں + Select Bottom Layer سب سے نیچے کی تہہ منتخب کریں + Add Layer Above to Selection اوپر کی تہہ انتخاب میں شامل کریں + Add Layer Below to Selection نیچے کی تہہ انتخاب میں شامل کریں + Stamp Down نیچے اسٹیمپ کریں + Flatten Image تصویر چپٹی کریں + Matting میٹنگ + Color Decontaminate… رنگ آلودگی دور کریں… + Remove Black Matte کالا میٹ ہٹائیں + Remove White Matte سفید میٹ ہٹائیں + Defringe… کنارہ صفائی… + Group Layers تہیں گروپ کریں + Ungroup Layers تہوں کا گروپ ختم کریں + Hide Layers تہیں چھپائیں + Arrange ترتیب + Bring to Front سب سے آگے لائیں + Bring Forward آگے لائیں + Send Backward پیچھے بھیجیں + Send to Back سب سے پیچھے بھیجیں + Reverse الٹ کریں + Combine Shapes شکلیں یکجا کریں + Unite Shapes شکلیں ملائیں + Subtract Front Shape اگلی شکل منفی کریں + Intersect Shape Areas شکل کے حصے ملائیں + Exclude Overlapping Shapes اوورلیپنگ شکلیں خارج کریں + Merge Shape Components شکل اجزاء ضم کریں + Path operations پاتھ عملیات + Align ترتیب + Top Edges اوپر کے کنارے + Vertical Centers عمودی مراکز + Bottom Edges نیچے کے کنارے + Left Edges بائیں کنارے + Horizontal Centers افقی مراکز + Right Edges دائیں کنارے + Distribute تقسیم کریں + Vertically عمودی طور پر + Horizontally افقی طور پر + Layer Edges تہہ کے کنارے + Isolate Layers تہیں الگ کریں + Layer Content Options… تہہ مواد کے اختیارات… + Fill Content مواد بھریں + Deselect Layers تہیں غیر منتخب کریں + Find Layers تہیں تلاش کریں + Layer Comps تہہ کمپوزیشنز + Layers تہیں + All Layers تمام تہیں + Hidden Layers چھپی ہوئی تہیں + Mask All Objects تمام اشیاء ماسک کریں + Subject موضوع + Sky آسمان + Panels پینلز + Character Panel کریکٹر پینل + Paragraph Panel پیراگراف پینل + Character Styles Panel کریکٹر اسٹائلز پینل + Paragraph Styles Panel پیراگراف اسٹائلز پینل + Glyphs Panel گلفس پینل + Anti-Alias اینٹی ایلیاس + Sharp تیز + Crisp صاف + Strong مضبوط + Smooth ملائم + Windows LCD ونڈوز LCD + Windows ونڈوز + Orientation سمت بندی + Horizontal افقی + Vertical عمودی + OpenType OpenType + Standard Ligatures معیاری لگیچرز + Contextual Alternates سیاق و سباق کے مطابق متبادل + Discretionary Ligatures اختیاری لگیچرز + Swash سواش + Oldstyle پرانے انداز + Stylistic Alternates اسلوبیاتی متبادل + Titling Alternates عنوانی متبادل + Ornaments زیورات + Ordinals ترتیبی اعداد + Fractions کسور + Create Work Path ورک پاتھ بنائیں + Convert to Shape شکل میں تبدیل کریں + Warp Text… متن موڑیں… + Convert to Point Text پوائنٹ متن میں تبدیل کریں + Convert to Paragraph Text پیراگراف متن میں تبدیل کریں + Default Features ڈیفالٹ خصوصیات + East Asian Features مشرقی ایشیائی خصوصیات + Middle Eastern Features مشرق وسطیٰ کی خصوصیات + Middle Eastern & South Asian Composer مشرق وسطیٰ اور جنوبی ایشیائی کمپوزر + Update All Text Layers تمام متن تہیں اپ ڈیٹ کریں + Replace All Missing Fonts تمام غائب فونٹس تبدیل کریں + Resolve Missing Fonts… غائب فونٹس حل کریں… + Font Preview Size فونٹ پیش منظر کا حجم + None کوئی نہیں + Small چھوٹا + Medium درمیانہ + Large بڑا + Extra Large بہت بڑا + Huge وسیع + Load Default Type Styles ڈیفالٹ متن اسٹائلز لوڈ کریں + Save Default Type Styles ڈیفالٹ متن اسٹائلز محفوظ کریں + Deselect غیر منتخب کریں + Reselect دوبارہ منتخب کریں + Inverse الٹ + Inverse Selection انتخاب الٹائیں + Similar مماثل + Color Range… رنگ کی حد… + Focus Area… فوکس ایریا… + Select and Mask… منتخب کریں اور ماسک کریں… + Smart Radius سمارٹ ریڈیس + Shift Edge کنارہ منتقل کریں + Decontaminate آلودگی دور کریں + Output آؤٹ پٹ + Refine Edge کنارہ بہتر کریں + Modify تبدیل کریں + Border… بارڈر… + Smooth… ملائم کریں… + Expand… وسیع کریں… + Contract… تنگ کریں… + Feather… فیدر… + Grow بڑھائیں + Transform Selection انتخاب کی ہیئت تبدیل کریں + Edit in Quick Mask Mode کوئیک ماسک موڈ میں ترمیم کریں + Load Selection… انتخاب لوڈ کریں… + Save Selection… انتخاب محفوظ کریں… + Match All سب سے مماثل + Last Filter آخری فلٹر + Filter Gallery… فلٹر گیلری… + Adaptive Wide Angle… اڈاپٹیو وائیڈ اینگل… + Camera Raw Filter… کیمرہ را فلٹر… + Liquify… لیکویفائی… + Vanishing Point… وینشنگ پوائنٹ… + Blur دھندلا پن + Blur Gallery دھندلا پن گیلری + Field Blur… فیلڈ دھندلاپن… + No pin selected کوئی پن منتخب نہیں + Click the image to add a pin; drag a pin to move it, or its ring to change its blur. Delete removes the selected pin. پن شامل کرنے کے لیے تصویر پر کلک کریں؛ اسے منتقل کرنے کے لیے پن کو گھسیٹیں، یا اس کا دھندلاپن بدلنے کے لیے اس کی انگوٹھی کو۔ حذف منتخب پن ہٹا دیتا ہے۔ + Drag the handles on the outline to resize and turn it, the square to round its corners, and the dots inside to set where the blur starts. حجم بدلنے اور گھمانے کے لیے خاکے کے ہینڈلز کو گھسیٹیں، کونوں کو گول کرنے کے لیے مربع کو، اور دھندلاپن کہاں سے شروع ہو یہ طے کرنے کے لیے اندر کے نقطوں کو۔ + Drag the pin to move the band, or its ring to change its blur. Drag the solid lines to widen the sharp band, the dashed lines to set the transition, and the dots to turn it. بینڈ کو منتقل کرنے کے لیے پن کو گھسیٹیں، یا اس کا دھندلاپن بدلنے کے لیے اس کی انگوٹھی کو۔ تیز بینڈ کو چوڑا کرنے کے لیے ٹھوس لکیریں، منتقلی طے کرنے کے لیے دھرائی لکیریں، اور اسے گھمانے کے لیے نقطے گھسیٹیں۔ + Drag the handles on the outline to resize and turn it; the ring sets the blur angle. حجم بدلنے اور گھمانے کے لیے خاکے کے ہینڈلز کو گھسیٹیں؛ انگوٹھی دھندلاپن کا زاویہ طے کرتی ہے۔ + Blur Angle دھندلاپن کا زاویہ + Iris Blur… آئیرس دھندلاپن… + Tilt-Shift… ٹلٹ شفٹ… + Path Blur… پاتھ دھندلاپن… + Spin Blur… اسپن دھندلاپن… + Blur More مزید دھندلا کریں + Box Blur… باکس دھندلاپن… + Gaussian Blur… گاؤسی دھندلاپن… + Lens Blur… لینز دھندلاپن… + Motion Blur… حرکت دھندلاپن… + Radial Blur… شعاعی دھندلاپن… + Shape Blur… شکل دھندلاپن… + Smart Blur… سمارٹ دھندلاپن… + Surface Blur… سطحی دھندلاپن… + Average اوسط + Displace… نقل مکانی… + Pinch… چٹکی… + Polar Coordinates… قطبی متناسقات… + Ripple… لہر… + Shear… قینچی پن… + Spherize… کروی بنائیں… + Twirl… بل دیں… + Wave… موج… + ZigZag… زگ زیگ… + Noise شور + Add Noise… شور شامل کریں… + Despeckle دھبے ختم کریں + Dust & Scratches… گرد و خراش… + Median… درمیانی قدر… + Reduce Noise… شور کم کریں… + Pixelate پکسلیٹ کریں + Color Halftone… رنگین ہاف ٹون… + Crystallize… کرسٹلائز کریں… + Facet فیسٹ + Fragment ٹکڑے کریں + Mezzotint… میزوٹنٹ… + Mosaic… موزیک… + Pointillize… پوائنٹلائز… + Render رینڈر + Clouds بادل + Difference Clouds فرق کے بادل + Fibers… ریشے… + Flame… شعلہ… + Lens Flare… لینز فلیئر… + Lighting Effects… روشنی کے اثرات… + Relight… دوبارہ روشنی دیں… + Picture Frame… تصویری فریم… + Tree… درخت… + Sharpen تیز کریں + Sharpen Edges کنارے تیز کریں + Sharpen More مزید تیز کریں + Smart Sharpen… سمارٹ شارپن… + Unsharp Mask… ان شارپ ماسک… + High Pass… ہائی پاس… + Stylize اسٹائلائز + Diffuse… پھیلائیں… + Emboss… ایمبوس… + Extrude… نکالیں… + Find Edges کنارے تلاش کریں + Oil Paint… آئل پینٹ… + Solarize سولرائز + Tiles… ٹائلز… + Trace Contour… خاکہ کھینچیں… + Wind… ہوا… + Video ویڈیو + De-Interlace… ڈی انٹرلیس… + NTSC Colors NTSC رنگ + Other دیگر + Maximum… زیادہ سے زیادہ… + Minimum… کم سے کم… + Offset… آفسیٹ… + Plug-ins پلگ انز + Proof Setup پروف سیٹ اپ + Proof Colors پروف رنگ + Gamut Warning رینج کی تنبیہ + Working CMYK ورکنگ CMYK + Working Cyan Plate ورکنگ سیان پلیٹ + Working Magenta Plate ورکنگ میجنٹا پلیٹ + Working Yellow Plate ورکنگ یلو پلیٹ + Working Black Plate ورکنگ بلیک پلیٹ + Working CMY Plate ورکنگ CMY پلیٹ + Legacy Macintosh RGB لیگیسی میکنٹوش RGB + Internet Standard RGB انٹرنیٹ معیاری RGB + Monitor RGB مانیٹر RGB + Color Blindness — Protanopia-type رنگ اندھا پن — پروٹانوپیا قسم + Color Blindness — Deuteranopia-type رنگ اندھا پن — ڈیوٹیرانوپیا قسم + Zoom In بڑا کریں + Zoom Out چھوٹا کریں + Fit on Screen اسکرین پر فٹ کریں + Fit Layer(s) on Screen تہہ(یں) اسکرین پر فٹ کریں + Fit Artboard on Screen آرٹ بورڈ اسکرین پر فٹ کریں + 100% 100% + 105% 105% + 110% 110% + 115% 115% + 120% 120% + 200% 200% + 75% 75% + 80% 80% + 85% 85% + 90% 90% + 95% 95% + 125% 125% + 150% 150% + 175% 175% + 250% 250% + 300% 300% + Print Size پرنٹ حجم + Pixel Aspect Ratio پکسل تناسب + Pixel Aspect Ratio Correction پکسل تناسب تصحیح + Custom Pixel Aspect Ratio… مخصوص پکسل تناسب… + Square مربع + D1/DV NTSC (0.91) D1/DV NTSC (0.91) + D1/DV NTSC Widescreen (1.21) D1/DV NTSC وائیڈ اسکرین (1.21) + D1/DV PAL (1.09) D1/DV PAL (1.09) + D1/DV PAL Widescreen (1.46) D1/DV PAL وائیڈ اسکرین (1.46) + Anamorphic 2:1 (2) اینامورفک 2:1 (2) + HDV 1080/DVCPRO HD 720 (1.33) HDV 1080/DVCPRO HD 720 (1.33) + DVCPRO HD 1080/HDV 1080 (1.5) DVCPRO HD 1080/HDV 1080 (1.5) + 32-bit Preview Options… 32-بٹ پیش منظر کے اختیارات… + Screen Mode اسکرین موڈ + Standard Screen Mode معیاری اسکرین موڈ + Full Screen Mode With Menu Bar مینیو بار کے ساتھ فل اسکرین موڈ + Full Screen Mode فل اسکرین موڈ + Cycle Screen Mode اسکرین موڈ تبدیل کریں + Show دکھائیں + Extras اضافی اشیاء + Selection Edges انتخاب کے کنارے + Target Path ہدف پاتھ + Current Path موجودہ پاتھ + Grid گرڈ + Guides رہنما لکیریں + Canvas Guides کینوس رہنما لکیریں + Artboard Guides آرٹ بورڈ رہنما لکیریں + Count شمار + Smart Guides سمارٹ رہنما لکیریں + Slices سلائسز + Notes نوٹس + Pixel Grid پکسل گرڈ + Pixel Art پکسل آرٹ + Pixel Art Preview پکسل آرٹ پیش منظر + Pattern Preview نمونہ پیش منظر + Brush Preview برش پیش منظر + Mesh میش + Edit Pins پنز میں ترمیم کریں + Document Bounds دستاویز کی حدود + Show Extras Options… اضافی اختیارات دکھائیں… + Rulers رولرز + Snap اسنیپ + Snap To اسنیپ کریں + Lock Guides رہنما لکیریں مقفل کریں + Clear Guides رہنما لکیریں صاف کریں + Clear Selected Artboard Guides منتخب آرٹ بورڈ رہنما لکیریں صاف کریں + Clear Canvas Guides کینوس رہنما لکیریں صاف کریں + New Guide… نئی رہنما لکیر… + Lock Slices سلائسز مقفل کریں + Clear Slices سلائسز صاف کریں + Match Zoom زوم مماثل کریں + Match Location مقام مماثل کریں + Match Rotation گردش مماثل کریں + Cascade ترتیب شدہ + Tile ٹائل + Tile All Horizontally سب کو افقی طور پر ٹائل کریں + Tile All Vertically سب کو عمودی طور پر ٹائل کریں + 2-up Horizontal 2 اوپر افقی + 2-up Vertical 2 اوپر عمودی + 3-up Horizontal 3 اوپر افقی + 3-up Stacked 3 اوپر اسٹیکڈ + 3-up Vertical 3 اوپر عمودی + 4-up 4 اوپر + 6-up 6 اوپر + Consolidate All to Tabs سب کو ٹیبز میں یکجا کریں + Float in Window ونڈو میں تیرتا رکھیں + Float All in Windows سب کو ونڈوز میں تیرتا رکھیں + New Window for Document دستاویز کے لیے نئی ونڈو + Workspace ورک اسپیس + Essentials بنیادی + Graphic and Web گرافک اور ویب + Painting پینٹنگ + Photography فوٹوگرافی + New Workspace… نیا ورک اسپیس… + Delete Workspace… ورک اسپیس حذف کریں… + Reset Workspace ورک اسپیس ری سیٹ کریں + Reset Tool ٹول ری سیٹ کریں + Reset All Tools تمام ٹولز ری سیٹ کریں + Reset all tools to their default settings? کیا تمام ٹولز کو ان کی ڈیفالٹ ترتیبات پر ری سیٹ کرنا ہے؟ + Lock Workspace ورک اسپیس مقفل کریں + Theme تھیم + Pro Theme پرو تھیم + Pro Medium Gray Theme پرو میڈیم گرے تھیم + Pro Light Gray Theme پرو لائٹ گرے تھیم + Pro Light Theme پرو لائٹ تھیم + Studio Theme اسٹوڈیو تھیم + Studio Light Theme اسٹوڈیو لائٹ تھیم + Adwaita Light Theme ایڈویٹا لائٹ تھیم + Adwaita Dark Theme ایڈویٹا ڈارک تھیم + Classic Theme کلاسک تھیم + Solarized dark سولرائزڈ ڈارک + Solarized Dark Theme سولرائزڈ ڈارک تھیم + Breeze dark بریز ڈارک + Breeze Dark Theme بریز ڈارک تھیم + Breeze light بریز لائٹ + Breeze Light Theme بریز لائٹ تھیم + Soft dark نرم ڈارک + Soft light نرم لائٹ + Soft Dark Theme نرم ڈارک تھیم + Soft Light Theme نرم لائٹ تھیم + Next Theme اگلا تھیم + Actions ایکشنز + Brush Settings برش کی ترتیبات + Brushes برشز + Channels چینلز + Character کریکٹر + Character Styles کریکٹر اسٹائلز + Clone Source کلون ماخذ + Color رنگ + Glyphs گلفس + Gradients گریڈیئنٹس + Histogram ہسٹوگرام + History تاریخ + Info معلومات + Measurement Log پیمائش لاگ + Modifier Keys موڈیفائر کیز + Navigator نیویگیٹر + Options اختیارات + Paragraph پیراگراف + Paragraph Styles پیراگراف اسٹائلز + Paths پاتھس + Patterns نمونے + Properties خصوصیات + Shapes شکلیں + Styles اسٹائلز + Swatches نمونے (سویچز) + Timeline ٹائم لائن + Tool Presets ٹول پری سیٹس + Tools ٹولز + About PhotoCraft PhotoCraft کے بارے میں + PhotoCraft Website PhotoCraft ویب سائٹ + PhotoCraft on GitHub PhotoCraft GitHub پر + ArtCraft Website ArtCraft ویب سائٹ + Join the ArtCraft Discord… ArtCraft ڈسکارڈ میں شامل ہوں… + Report an Issue… مسئلہ رپورٹ کریں… + WIA Support… WIA سپورٹ… + Apply لاگو کریں + HSB/HSL HSB/HSL + Invert… معکوس کریں… + Load Files into Stack… اسٹیک میں فائلیں لوڈ کریں… + Motion حرکت + Notes… نوٹس… + Other… دیگر… + Remove Warp Split وارپ اسپلٹ ہٹائیں + Shape شکل + Split Warp Crosswise وارپ کو آڑے رخ تقسیم کریں + Split Warp Horizontally وارپ کو افقی طور پر تقسیم کریں + Split Warp Vertically وارپ کو عمودی طور پر تقسیم کریں + Statistics… اعداد و شمار… + Refine Strokes لکیریں بہتر کریں + Edits ترامیم +@plural {n} item|{n} items {n} چیز|{n} چیزیں + Auto خودکار + (print to the printer) (پرنٹر پر پرنٹ کریں) + + Add variable + متغیر شامل کریں + 30 frames @ 30 fps 30 فریمز @ 30 fps + 3D LUT File 3D LUT فائل + Absolute مطلق + Absolute Colorimetric مطلق کلری میٹرک + Action عمل + Adaptive موافق + Adaptive Wide Angle isn't open اڈاپٹیو وائیڈ اینگل کھلا نہیں ہے + Add شامل کریں + Add Layer Mask تہہ ماسک شامل کریں + Add Stop اسٹاپ شامل کریں + Add a layer style تہہ کا اسٹائل شامل کریں + Move effect up اثر اوپر منتقل کریں + Move effect down اثر نیچے منتقل کریں + Delete effect اثر حذف کریں + Add a mask (from the selection; {key} inverts) ماسک شامل کریں (انتخاب سے؛ {key} الٹ دیتا ہے) + Add an adjustment ایڈجسٹمنٹ شامل کریں + Add disk ڈسک شامل کریں + Add space after paragraph پیراگراف کے بعد خالی جگہ شامل کریں + Add space before paragraph پیراگراف سے پہلے خالی جگہ شامل کریں + Add to Sample نمونے میں شامل کریں + Add to selection ({key}) انتخاب میں شامل کریں ({key}) + Adjust for Zoom زوم کے لیے ایڈجسٹ کریں + Adjustment visible ایڈجسٹمنٹ نظر آتی ہے + Adobe RGB (1998) compatible Adobe RGB (1998) مطابق + Align and Distribute ترتیب اور تقسیم + Align and distribute ترتیب اور تقسیم کریں + Align horizontal centers افقی مراکز ترتیب دیں + Align left edges بائیں کنارے ترتیب دیں + Align right edges دائیں کنارے ترتیب دیں + Aligned ترتیب شدہ + All Caps تمام بڑے حروف + All Slices تمام سلائسز + All User Slices تمام صارف سلائسز + All shortcuts reset to PhotoCraft defaults. تمام شارٹ کٹس PhotoCraft کی ڈیفالٹ ترتیب پر ری سیٹ ہو گئے۔ + Alt Alt + Always use pressure for opacity ہمیشہ دھندلاپن کے لیے دباؤ استعمال کریں + Always use pressure for size ہمیشہ حجم کے لیے دباؤ استعمال کریں + Amount مقدار + Anchor: اینکر: + Angle زاویہ + Angle Gradient زاویہ گریڈیئنٹ + Angle Jitter زاویہ جیٹر + Answer the unsaved-changes prompt first پہلے غیر محفوظ شدہ تبدیلیوں کا اشارہ حل کریں + Anti-alias اینٹی ایلیاس + Appearance ظاہری شکل + Appearance (Layer Style) ظاہری شکل (تہہ کا اسٹائل) + Apply Layer Mask تہہ ماسک لاگو کریں + Add Mask to Selection ماسک کو انتخاب میں شامل کریں + Subtract Mask from Selection انتخاب سے ماسک منہا کریں + Intersect Mask with Selection ماسک کو انتخاب کے ساتھ ملائیں + Apply Per Tip فی ٹِپ لاگو کریں + Apply next selected layer comp اگلی منتخب تہہ کمپوزیشن لاگو کریں + Apply previous selected layer comp پچھلی منتخب تہہ کمپوزیشن لاگو کریں + Artboard آرٹ بورڈ + Artboard Background Color آرٹ بورڈ کا پس منظر رنگ + Assign working space ورکنگ اسپیس تفویض کریں + Author: مصنف: + Auto Hide خودکار چھپائیں + Auto-Select: خودکار انتخاب: + Automatically level near-horizontal line segments قریب افقی لائن حصوں کو خودکار طور پر برابر کریں + Automatically straighten and level خودکار طور پر سیدھا اور برابر کریں + Automatically straighten near-vertical line segments قریب عمودی لائن حصوں کو خودکار طور پر سیدھا کریں + Background پس منظر + Background Color پس منظر کا رنگ + Background Contents پس منظر کا مواد + Custom background color مخصوص پس منظر کا رنگ + Balance توازن + Baseline بیس لائن + Baseline shift بیس لائن شفٹ + Basic بنیادی + Before (Y) پہلے (Y) + Save Settings… ترتیبات محفوظ کریں… + Load Settings… ترتیبات لوڈ کریں… + Save these settings as a Camera Raw .xmp file ان ترتیبات کو کیمرہ را .xmp فائل کے طور پر محفوظ کریں + Load settings from a Camera Raw .xmp file کیمرہ را .xmp فائل سے ترتیبات لوڈ کریں + Loaded Camera Raw settings from {file} {file} سے کیمرہ را ترتیبات لوڈ ہو گئیں + Loaded Camera Raw settings from {file} ({n} not supported) {file} سے کیمرہ را ترتیبات لوڈ ہو گئیں ({n} سپورٹڈ نہیں) + Begin recording ریکارڈنگ شروع کریں + Bend: موڑ: + Bicubic بائی کیوبک + Bicubic (smooth gradients) بائی کیوبک (ملائم گریڈیئنٹس) + Automatic خودکار + Bicubic Smoother (enlargement) بائی کیوبک اسموتھر (بڑھاؤ) + Bicubic Sharper (reduction) بائی کیوبک شارپر (کمی) + Bilinear بائی لینیئر + Black سیاہ + Black & White سیاہ و سفید + Black Point Compensation بلیک پوائنٹ معاوضہ + Black, White سیاہ، سفید + Blacks سیاہیاں + Blending امتزاج + Blending Options امتزاج کے اختیارات + Blue نیلا + Blue, Red, Yellow نیلا، سرخ، پیلا + Both Axes دونوں محور + Bottom نیچے + Brightness روشنی + Brightness Jitter روشنی جیٹر + Brightness/Contrast چمک/تباین + Bring the selected pin forward منتخب پن آگے لائیں + Brush Preset picker برش پری سیٹ چنندہ + Brush Reconstruct Options برش ری کنسٹرکٹ کے اختیارات + Brush Tool Options برش ٹول کے اختیارات + Cache Level: کیشے لیول: + Camera Raw isn't open کیمرہ را کھلا نہیں ہے + Cancel منسوخ کریں + Cancel (Esc) منسوخ کریں (Esc) + Manage submitted jobs in the system print queue سسٹم پرنٹ قطار میں جمع شدہ کام منظم کریں + Cancel any current edits (Esc) کوئی بھی موجودہ ترمیم منسوخ کریں (Esc) + Cancel current crop operation (Esc) موجودہ تراش کا عمل منسوخ کریں (Esc) + Cancel transform (Esc) ہیئت تبدیلی منسوخ کریں (Esc) + Cancel warp (Esc) موڑ منسوخ کریں (Esc) + Canvas کینوس + Canvas extension color: کینوس توسیع کا رنگ: + Capture قبضہ کریں + Capture the visibility, position and style of every layer with + below, then switch between versions. ہر تہہ کی نظر آنے کی حالت، پوزیشن اور اسٹائل کو + کے ساتھ نیچے قبضہ کریں، پھر ورژنز کے درمیان سوئچ کریں۔ + Catch-up on Stroke End لکیر کے اختتام پر کیچ اپ + Center مرکز + Center Crop Marks مرکزی کراپ نشانات + Center text متن مرکز میں کریں + Change تبدیل کریں + Change All سب تبدیل کریں + Change Screen Mode (F) اسکرین موڈ تبدیل کریں (F) + Change To: اس میں تبدیل کریں: + Channel Mixer چینل مکسر + Channel: چینل: + Check All Layers تمام تہیں چیک کریں + Check Spelling املا چیک کریں + Clarity وضاحت + Clear All سب صاف کریں + Clear Override اووررائیڈ صاف کریں + Clear Samples نمونے صاف کریں + Click sets foreground · right-click sets background کلک پیش منظر مقرر کرتا ہے · دایاں کلک پس منظر مقرر کرتا ہے + Click the first point or press {key} to close · Esc cancels پہلے نقطے پر کلک کریں یا بند کرنے کے لیے {key} دبائیں · Esc منسوخ کرتا ہے + Click to add a point · drag off or {key}-click or Delete to remove نقطہ شامل کرنے کے لیے کلک کریں · ہٹانے کے لیے باہر گھسیٹیں یا {key}-کلک یا Delete + Click to apply, {key}-click to clear overrides, double-click for Style Options لاگو کرنے کے لیے کلک کریں، اووررائیڈز صاف کرنے کے لیے {key}-کلک، اسٹائل اختیارات کے لیے ڈبل کلک + Click to edit the gradient گریڈیئنٹ میں ترمیم کے لیے کلک کریں + Click to restore the current colour موجودہ رنگ بحال کرنے کے لیے کلک کریں + Click to zoom in · {key}-click to zoom out · drag right/left to zoom in/out بڑا کرنے کے لیے کلک کریں · چھوٹا کرنے کے لیے {key}-کلک · دائیں/بائیں گھسیٹ کر بڑا/چھوٹا کریں + Click with the Note tool to add a note. نوٹ شامل کرنے کے لیے نوٹ ٹول سے کلک کریں۔ + Click: corner · Drag: smooth · Click first point: close · {key} finish · Esc cancel کلک: کونا · گھسیٹنا: ہموار · پہلے نقطے پر کلک: بند کریں · {key} مکمل · Esc منسوخ + Click: corner · Drag: smooth · {alt}-drag: break handle · Click or drag first point: close · {key} finish · Esc cancel کلک: کونا · گھسیٹنا: ہموار · {alt}-گھسیٹنا: ہینڈل توڑیں · پہلے نقطے پر کلک یا گھسیٹنا: بند کریں · {key} مکمل · Esc منسوخ + Clip to layer below نیچے کی تہہ پر کلپ کریں + Clipped کلپڈ + Close Style Options اسٹائل اختیارات بند کریں + Cmd Cmd + Coated CMYK کوٹڈ CMYK + Color & Swatches رنگ اور نمونے + Color Balance رنگ توازن + Color Detail رنگ کی تفصیل + Color Grading رنگ گریڈنگ + Color Lookup رنگ تلاش + Color Management رنگ کا انتظام + Color Mixer رنگ مکسر + Color Mode رنگ موڈ + Color Priority رنگ کی ترجیح + Color Range preview رنگ کی حد کا پیش منظر + Color: رنگ: + Colorize رنگین کریں + Colors رنگ + Commit Perspective Warp ({key}) تناظری وارپ کریں ({key}) + Commit Puppet Warp ({key}) پپٹ وارپ کریں ({key}) + Commit any current edits ({key}) کوئی بھی موجودہ ترمیم نافذ کریں ({key}) + Commit current crop operation ({key}) موجودہ تراش کا عمل نافذ کریں ({key}) + Commit transform ({key}) ہیئت تبدیلی نافذ کریں ({key}) + Commit warp ({key}) موڑ نافذ کریں ({key}) + Constant مستقل + Constrain proportions تناسب برقرار رکھیں + Contact Sheet II کانٹیکٹ شیٹ II + Content-Aware مواد سے آگاہ + Contiguous متصل + Contrast تباین + Control: کنٹرول: + Convert to sRGB sRGB میں تبدیل کریں + Copies کاپیاں + Copper تانبا + Copyright کاپی رائٹ + Copyright and Contact Info کاپی رائٹ اور رابطے کی معلومات + Corner Crop Marks کونے کے کراپ نشانات + Corner radius کونے کا ریڈیس + Correction تصحیح + Count Jitter شمار جیٹر + Create بنائیں + Create Droplet ڈراپلیٹ بنائیں + Create Texture ساخت بنائیں + Create Video Timeline ویڈیو ٹائم لائن بنائیں + Create a new count group نیا شمار گروپ بنائیں + Create a new document or open an existing file. نئی دستاویز بنائیں یا موجودہ فائل کھولیں۔ + Create a new group نیا گروپ بنائیں + Create a new layer نئی تہہ بنائیں + Create new action نیا ایکشن بنائیں + Create new channel نیا چینل بنائیں + Create new document from current state موجودہ حالت سے نئی دستاویز بنائیں + Create new fill or adjustment layer نئی بھرائی یا ایڈجسٹمنٹ تہہ بنائیں + Create new gradient نیا گریڈیئنٹ بنائیں + Create new group نیا گروپ بنائیں + Create new layer comp نئی تہہ کمپوزیشن بنائیں + Create new pattern from the selection انتخاب سے نیا نمونہ بنائیں + Create new shape from the current path موجودہ پاتھ سے نئی شکل بنائیں + Create new snapshot نیا اسنیپ شاٹ بنائیں + From: سے: + Full Document مکمل دستاویز + Merged Layers ضم شدہ تہیں + Create new tool preset نیا ٹول پری سیٹ بنائیں + Crop Factor کراپ فیکٹر + Ctrl Ctrl + Current & Below موجودہ اور نیچے + Current Layer موجودہ تہہ + Current Size موجودہ حجم + Current Tool Only صرف موجودہ ٹول + Curve وکر + Curves وکر + Custom مخصوص + Custom Shapes مخصوص شکلیں + Cyan سیان + Cyan · Red سیان · سرخ + Darken گہرا کریں + Darks تاریک حصے + Data Sets ڈیٹا سیٹس + Default ڈیفالٹ + Default colours (D) ڈیفالٹ رنگ (D) + Default printer ڈیفالٹ پرنٹر + Default restored. ڈیفالٹ بحال ہو گیا۔ + Define متعین کریں + Define at least one variable first. پہلے کم از کم ایک متغیر متعین کریں۔ + Dehaze دھند ہٹائیں + Delete Cropped Pixels تراشے گئے پکسلز حذف کریں + Delete Group گروپ حذف کریں + Delete Layer Mask تہہ ماسک حذف کریں + Delete Layers تہیں حذف کریں + Add Shortcut شارٹ کٹ شامل کریں + Delete Shortcut شارٹ کٹ حذف کریں + Delete Timeline ٹائم لائن حذف کریں + Delete Tool Preset ٹول پری سیٹ حذف کریں + Delete count group شمار گروپ حذف کریں + Delete current channel موجودہ چینل حذف کریں + Delete current state موجودہ حالت حذف کریں + Delete effect layer اثر تہہ حذف کریں + Delete layer ‘{name}’? تہہ '{name}' حذف کریں؟ + Delete {count} layers? {names} {count} تہیں حذف کریں؟ {names} + Delete layer? تہہ حذف کریں؟ + The document is closed دستاویز بند ہے + The document or selected layers changed. Please request deletion again. دستاویز یا منتخب تہیں تبدیل ہو گئیں۔ براہ کرم دوبارہ حذف کرنے کی درخواست کریں۔ + Missing delete command حذف کرنے کا حکم موجود نہیں + Invalid delete command حذف کرنے کا حکم غلط ہے + Layer deleted, but confirmation preference could not be saved: {error} تہہ حذف ہو گئی، لیکن تصدیقی ترجیح محفوظ نہیں ہو سکی: {error} + Delete layer تہہ حذف کریں + Delete layer comp تہہ کمپوزیشن حذف کریں + Delete note نوٹ حذف کریں + Delete selected measurements منتخب پیمائشیں حذف کریں + Delete style اسٹائل حذف کریں + Delete tool preset ٹول پری سیٹ حذف کریں + Density کثافت + Density: کثافت: + Depth گہرائی + Depth Jitter گہرائی جیٹر + Description تفصیل + Deselect All سب غیر منتخب کریں + Detail تفصیل + Diamond Gradient ڈائمنڈ گریڈیئنٹ + Difference فرق + Diffusion پھیلاؤ + Discard the embedded profile (don't color manage) ایمبیڈڈ پروفائل مسترد کریں (رنگ منظم نہ کریں) + Discontiguous غیر متصل + Discord ڈسکارڈ + Dismiss برخاست کریں + Display P3 Display P3 + Display Text متن دکھائیں + Dither ڈیدر + Divide… تقسیم کریں… + Document دستاویز + Don't Save محفوظ نہ کریں + No نہیں + Yes ہاں + Done مکمل + Dots نقطے + Drag a rectangle around the object شے کے گرد ایک مستطیل گھسیٹیں + Drag on the image to add a constraint; Shift for horizontal/vertical; right-click a constraint to change or delete it. پابندی شامل کرنے کے لیے تصویر پر گھسیٹیں؛ افقی/عمودی کے لیے Shift؛ پابندی تبدیل یا حذف کرنے کے لیے اس پر دایاں کلک کریں۔ + Click: select anchor · Drag: move anchor, handle or segment · {shift}-click: add · {alt}-click: whole subpath کلک: اینکر منتخب کریں · گھسیٹنا: اینکر، ہینڈل یا حصہ منتقل کریں · {shift}-کلک: شامل کریں · {alt}-کلک: پورا سب پاتھ + Draw with the Pen tool (P) or make a work path from a selection. پین ٹول (P) سے ڈرائنگ کریں یا انتخاب سے ورک پاتھ بنائیں۔ + Drop an image or PSD anywhere to open it. تصویر یا PSD کو کہیں بھی گھسیٹ کر چھوڑیں تاکہ اسے کھولا جا سکے۔ + Native file drag-and-drop is unavailable نیٹو فائل ڈریگ اینڈ ڈراپ دستیاب نہیں + Native file drag-and-drop is not supported on Wayland yet. Use File › Open, or copy the image in your file manager and paste it with {paste}. نیٹو فائل ڈریگ اینڈ ڈراپ ابھی تک Wayland پر سپورٹ نہیں ہے۔ فائل > کھولیں استعمال کریں، یا اپنے فائل مینیجر میں تصویر کاپی کریں اور {paste} کے ساتھ چسپاں کریں۔ + To drop files, start PhotoCraft under XWayland: `{command}` فائلیں چھوڑنے کے لیے، PhotoCraft کو XWayland کے تحت شروع کریں: {command} + Or set Preferences › Performance › Linux display server to X11: PhotoCraft then always starts under XWayland. یا ترجیحات > کارکردگی > لینکس ڈسپلے سرور کو X11 پر مقرر کریں: PhotoCraft پھر ہمیشہ XWayland کے تحت شروع ہوتا ہے۔ + Edit › Paste ترمیم > چسپاں کریں + Duplicate Layers… تہیں کی نقل بنائیں… + Duplicate style اسٹائل کی نقل بنائیں + Edit Toolbar… ٹول بار میں ترمیم کریں… + Use File › Open, or paste a copied image with {paste}. فائل > کھولیں استعمال کریں، یا {paste} کے ساتھ کاپی شدہ تصویر چسپاں کریں۔ + Edit in Quick Mask Mode (Q) کوئیک ماسک موڈ میں ترمیم کریں (Q) + Edit in Standard Mode (Q) معیاری موڈ میں ترمیم کریں (Q) + Effects اثرات + Embed Color Profile رنگ پروفائل ایمبیڈ کریں + Embedded Profile Mismatch ایمبیڈڈ پروفائل میں عدم مطابقت + Enable airbrush-style build-up effects ایئر برش طرز کے بلڈ اپ اثرات فعال کریں + Enhance Edge کنارہ بہتر کریں + Entire Font پورا فونٹ + Exact عین مطابق + Expansion: توسیع: + Export Presets پری سیٹس برآمد کریں + Export selected measurements (CSV) منتخب پیمائشیں برآمد کریں (CSV) + Exposure نمائش + Exposure and Gamma نمائش اور گاما + Exposure: نمائش: + Eyedropper آئی ڈراپر + Factor: فیکٹر: + Faux Bold نقلی بولڈ + Faux Italic نقلی ترچھا + Feather فیدر + Fewer Points کم نقطے + File Settings فائل کی ترتیبات + Fill بھریں + Fill: بھریں: + Filter for adjustment layers ایڈجسٹمنٹ تہوں کے لیے فلٹر + Filter for pixel layers پکسل تہوں کے لیے فلٹر + Filter for shape layers شکل تہوں کے لیے فلٹر + Filter for smart objects سمارٹ آبجیکٹس کے لیے فلٹر + Filter for type layers متن تہوں کے لیے فلٹر + Filter: فلٹر: + Finger Painting فنگر پینٹنگ + Fisheye فش آئی + Fit فٹ + Fit Screen اسکرین پر فٹ کریں + Fill Screen اسکرین بھریں + Fit in View منظر میں فٹ کریں + Fixed مقررہ + Fixed Ratio مقررہ تناسب + Fixed Size مقررہ حجم + Flip پلٹیں + Flip X X پلٹیں + Flip X Jitter X پلٹ جیٹر + Flip Y Y پلٹیں + Flip Y Jitter Y پلٹ جیٹر + Flow بہاؤ + Flow Jitter بہاؤ جیٹر + Focal Length فوکل لمبائی + Font فونٹ + Font Size: فونٹ حجم: + Font size فونٹ حجم + Foreground پیش منظر + Foreground to Background پیش منظر سے پس منظر + Foreground/Background Jitter پیش منظر/پس منظر جیٹر + Format فارمیٹ + Frame from Layers… تہوں سے فریم… + Free آزاد + Full Spherical مکمل کروی + Fuzziness: دھندلاپن: + GPU GPU + Gamma Correction گاما تصحیح + Gamma: گاما: + Global عالمی + Glow Color چمک کا رنگ + Gradient Map گریڈیئنٹ نقشہ + Grain دانا + Gray سرمئی + Gray Gamma 2.2 گرے گاما 2.2 + Green سبز + Group گروپ + Hardness سختی + Heart دل + Height اونچائی + Height: اونچائی: + Hide Auto Slices خودکار سلائسز چھپائیں + Hide Properties خصوصیات چھپائیں + Highlight Compression نمایاں حصے کمپریشن + Highlight Priority نمایاں حصے کی ترجیح + Highlights نمایاں حصے + Home ہوم + Horizontal scale افقی پیمانہ + Hue رنگت + Hue Jitter رنگت جیٹر + Hue/Saturation رنگت/اشباع + Hyphenate ہائیفنیٹ کریں + Ignore نظرانداز کریں + Ignore All سب نظرانداز کریں + Image Size تصویر کا حجم + Import Brushes… برشز درآمد کریں… + Gradient Preset Options گریڈیئنٹ پری سیٹ اختیارات + Import .GRD .GRD درآمد کریں + Choose a gradient file (.grd). گریڈیئنٹ فائل (.grd) چنیں۔ + Import brushes (.abr) برشز درآمد کریں (.abr) + Import Presets پری سیٹس درآمد کریں + Imported درآمد شدہ + Indent First پہلی لائن حاشیہ + Indent Left بائیں حاشیہ + Indent Right دائیں حاشیہ + Indent first line پہلی لائن حاشیہ کریں + Indent left margin بائیں حاشیہ کریں + Indent right margin دائیں حاشیہ کریں + Input: ان پٹ: + Inside اندر + Interlaced انٹرلیسڈ + Interpolation: انٹرپولیشن: + Intersect with selection ({key}) انتخاب کے ساتھ جوڑیں ({key}) + Invert All سب معکوس کریں + Invert has no settings. معکوس کی کوئی ترتیبات نہیں۔ + Italic ترچھا + Join us on Discord ہمارے ڈسکارڈ میں شامل ہوں + Justify all سب جسٹیفائی کریں + Justify last centered آخری مرکز میں جسٹیفائی کریں + Justify last left آخری بائیں جسٹیفائی کریں + Justify last right آخری دائیں جسٹیفائی کریں + Kerning کرننگ + Keyboard Shortcuts کی بورڈ شارٹ کٹس + Keyboard Shortcuts and Menus کی بورڈ شارٹ کٹس اور مینیوز + Kind قسم + Label Size لیبل کا حجم + Labels لیبلز + Lanczos (sharp) لینزوس (تیز) + Landscape زمین تزئین + Last Document State آخری دستاویز کی حالت + Layout لے آؤٹ + Leading لیڈنگ + Leading (set to the font size × auto-leading when Auto) لیڈنگ (آٹو ہونے پر فونٹ حجم × آٹو لیڈنگ پر مقرر) + Leave as is (don't color manage) جیسا ہے رہنے دیں (رنگ منظم نہ کریں) + Left align text متن بائیں ترتیب دیں + Length: لمبائی: + Level لیول + Levels لیولز + Lighten ہلکا کریں + Lightness روشنی + Lights روشنیاں + Limits: حدود: + Linear Gradient لکیری گریڈیئنٹ + Link layers تہیں مربوط کریں + Link width and height چوڑائی اور اونچائی مربوط کریں + Liquify is not open لیکویفائی کھلا نہیں ہے + Load لوڈ کریں + Load 3D LUT… 3D LUT لوڈ کریں… + Load channel as selection چینل کو انتخاب کے طور پر لوڈ کریں + Load… لوڈ کریں… + Localized Color Clusters مقامی رنگ کے جھرمٹ + Lock مقفل کریں + Lock all سب مقفل کریں + Lock image pixels تصویر پکسلز مقفل کریں + Lock layer تہہ مقفل کریں + Lock position پوزیشن مقفل کریں + Lock transparent pixels شفاف پکسلز مقفل کریں + Lock: مقفل: + Logical Length: منطقی لمبائی: + Logical Units: منطقی اکائیاں: + Luminance لومینینس + Luminance Detail لومینینس تفصیل + Magenta میجنٹا + Magenta · Green میجنٹا · سبز + Maintain aspect ratio تناسب برقرار رکھیں + Marker Size نشان کا حجم + Mask All سب ماسک کریں + Mask Options ماسک کے اختیارات + Masking ماسکنگ + Master ماسٹر + Matte میٹ + Median: درمیانی قدر: + Menus مینیوز + Mesh Size میش کا حجم + Metadata میٹا ڈیٹا + Metrics میٹرکس + Midpoint درمیانی نقطہ + Midtones درمیانی ٹونز + Midtones from: درمیانی ٹونز از: + Midtones to: درمیانی ٹونز تا: + Minimum Depth کم سے کم گہرائی + Minimum Diameter کم سے کم قطر + Minimum Roundness کم سے کم گولائی + Mode: موڈ: + Monochrome مونوکروم + More Points مزید نقطے + Move effect layer down اثر تہہ نیچے منتقل کریں + Move effect layer up اثر تہہ اوپر منتقل کریں + Move to منتقل کریں تا + Name نام + Name: نام: + Nearest Neighbor قریب ترین پڑوسی + Nearest Neighbor (hard edges) قریب ترین پڑوسی (سخت کنارے) + New Size نیا حجم + New document… نئی دستاویز… + New effect layer نئی اثر تہہ + New selection نیا انتخاب + Next frame اگلا فریم + Next note اگلا نوٹ + No Color بلا رنگ + No Color Management کوئی رنگ انتظام نہیں + No Dither کوئی ڈیدر نہیں + No author کوئی مصنف نہیں + No character style کوئی کریکٹر اسٹائل نہیں + No document کوئی دستاویز نہیں + No matching commands کوئی مماثل حکم نہیں + No presets for the current tool. موجودہ ٹول کے لیے کوئی پری سیٹس نہیں۔ + No presets of this type. اس قسم کے کوئی پری سیٹس نہیں۔ + No properties کوئی خصوصیات نہیں + No tool presets. کوئی ٹول پری سیٹس نہیں۔ + Noise Reduction شور میں کمی + Normal نارمل + Not in Dictionary: لغت میں موجود نہیں: + OK ٹھیک ہے + Offset آفسیٹ + Only Web Colors صرف ویب رنگ + Opacity دھندلاپن + Opacity Jitter دھندلاپن جیٹر + Opacity: دھندلاپن: + Open a document to define variables. متغیرات متعین کرنے کے لیے دستاویز کھولیں۔ + Open a document to select a colour range. رنگ کی حد منتخب کرنے کے لیے دستاویز کھولیں۔ + Open a document to use the timeline. ٹائم لائن استعمال کرنے کے لیے دستاویز کھولیں۔ + Optical آپٹیکل + Optimized بہتر + Option-click to define a source point to clone from کلون کے لیے ماخذ نقطہ متعین کرنے کے لیے Option-کلک کریں + Original اصل + Output Channel: آؤٹ پٹ چینل: + Output Levels: آؤٹ پٹ لیولز: + Output: آؤٹ پٹ: + Outside باہر + Overlay Color اوورلے رنگ + Overlay Opacity اوورلے دھندلاپن + Overlay: Rule of Thirds اوورلے: ایک تہائی کا اصول + Override Pressure دباؤ اووررائیڈ کریں + Override Rotation گردش اووررائیڈ کریں + Override Tilt جھکاؤ اووررائیڈ کریں + Override Tilt X X جھکاؤ اووررائیڈ کریں + Override Tilt Y Y جھکاؤ اووررائیڈ کریں + PRESET DETAILS پری سیٹ کی تفصیلات + PSD PSD + Paint Overlay پینٹ اوورلے + Panel locations are saved in the workspace. Keyboard shortcuts, menus and toolbar are optional. پینل کے مقامات ورک اسپیس میں محفوظ ہوتے ہیں۔ کی بورڈ شارٹ کٹس، مینیوز اور ٹول بار اختیاری ہیں۔ + Paper کاغذ + Path پاتھ + Pattern نمونہ + Pattern Size نمونہ حجم + Pause موقوف کریں + Percent فیصد + Perceptual ادراکی + Perspective Warp is not active تناظری وارپ فعال نہیں ہے + Perspective Warp: draw planes along the image's perspective, then switch to Warp تناظری وارپ: تصویر کے تناظر کے ساتھ ہموار سطحیں کھینچیں، پھر وارپ پر سوئچ کریں + Photo Filter فوٹو فلٹر + PhotoCraft PhotoCraft + PhotoCraft Manages Colors PhotoCraft رنگوں کا نظم کرتا ہے + PhotoCraft — an open-source, native image editor written in Rust. PhotoCraft — ایک اوپن سورس، نیٹو امیج ایڈیٹر جو Rust میں لکھا گیا ہے۔ + Pin Depth: پن کی گہرائی: + Pixel Length: پکسل لمبائی: + Pixels/Centimeter پکسلز/سینٹی میٹر + Pixels/Inch پکسلز/انچ + Pixels: پکسلز: + Play چلائیں + Play selection انتخاب چلائیں + Portrait عمودی زمین تزئین + Position پوزیشن + Position and Size پوزیشن اور حجم + Posterize پوسٹرائز + Preserve Details تفصیلات برقرار رکھیں + Preserve Luminosity چمک برقرار رکھیں + Preset پری سیٹ + Preset Type پری سیٹ کی قسم + Preset: پری سیٹ: + Presets: پری سیٹس: + Press keys… کیز دبائیں… + Pressure دباؤ + Pressure for Opacity دھندلاپن کے لیے دباؤ + Pressure for Size حجم کے لیے دباؤ + Prevent auto-nesting in and out of Artboards and Frames آرٹ بورڈز اور فریمز کے اندر باہر خودکار نیسٹنگ روکیں + Preview پیش منظر + Previous frame پچھلا فریم + Previous note پچھلا نوٹ + Print پرنٹ + Printer پرنٹر + Printer Manages Colors پرنٹر رنگوں کا نظم کرتا ہے + Printer Setup پرنٹر سیٹ اپ + Printing Marks پرنٹنگ نشانات + Progressive پراگریسو + Promote ترقی دیں + Protect Detail تفصیل محفوظ رکھیں + Protect Foreground Color پیش منظر رنگ محفوظ رکھیں + Protect Tones ٹونز محفوظ رکھیں + Proximity Match قربت مطابقت + Pulled String Mode پلڈ اسٹرنگ موڈ + Puppet Warp is not active پپٹ وارپ فعال نہیں ہے + Purity خالص پن + Quality معیار + Quick Actions فوری اعمال + Quick Export As PNG فوری طور پر PNG کے بطور برآمد کریں + Radial Gradient شعاعی گریڈیئنٹ + Radius ریڈیس + Radius: ریڈیس: + Range: حد: + Rate شرح + Recently Used حال ہی میں استعمال شدہ + Reconstruct ری کنسٹرکٹ + Record ● a sequence of edits, then play ▶ it on any document. ترامیم کا ایک سلسلہ ریکارڈ ● کریں، پھر اسے کسی بھی دستاویز پر چلائیں ▶۔ + Red سرخ + Redefine style by current selection موجودہ انتخاب سے اسٹائل دوبارہ متعین کریں + Refine بہتر کریں + Reflected Gradient منعکس شدہ گریڈیئنٹ + Registration Marks رجسٹریشن نشانات + Regular معمولی + Relative نسبتی + Relative Colorimetric نسبتی کلری میٹرک + Remove ہٹائیں + Remove All Pins تمام پنز ہٹائیں + Remove Background پس منظر ہٹائیں + Remove Planes سطحیں ہٹائیں + Remove Tool ٹول ہٹائیں + Remove stop اسٹاپ ہٹائیں + Remove variable متغیر ہٹائیں + Rename نام تبدیل کریں + Rename Group… گروپ کا نام تبدیل کریں… + Rename Layer… تہہ کا نام تبدیل کریں… + Rename Tool Preset… ٹول پری سیٹ کا نام تبدیل کریں… + Rename… نام تبدیل کریں… + Resample ری سیمپل + Reset All to Defaults سب کو ڈیفالٹ پر ری سیٹ کریں + Import Shortcuts… شارٹ کٹس درآمد کریں… + Load a keyboard shortcut set saved as .kys .kys کے طور پر محفوظ کردہ کی بورڈ شارٹ کٹ سیٹ لوڈ کریں + Imported {n} shortcuts from {file}. Click OK to keep them. {file} سے {n} شارٹ کٹس درآمد ہو گئے۔ انہیں رکھنے کے لیے OK پر کلک کریں۔ + {n} commands are not in PhotoCraft. {n} کمانڈز PhotoCraft میں موجود نہیں ہیں۔ + Keyboard shortcuts imported کی بورڈ شارٹ کٹس درآمد ہو گئے + Your keyboard shortcut set {set} is in use here: {n} shortcuts differ from the defaults. Edit › Keyboard Shortcuts shows them; Reset All to Defaults undoes this. آپ کا کی بورڈ شارٹ کٹ سیٹ {set} یہاں استعمال ہو رہا ہے: {n} شارٹ کٹس ڈیفالٹس سے مختلف ہیں۔ ترمیم > کی بورڈ شارٹ کٹس انہیں دکھاتا ہے؛ سب کو ڈیفالٹ پر ری سیٹ کریں اسے واپس لیتا ہے۔ + Import keyboard shortcuts? کی بورڈ شارٹ کٹس درآمد کریں؟ + PhotoCraft found your keyboard shortcut set {set} from another image editor on this computer: {n} of its shortcuts differ from PhotoCraft's. Import it? PhotoCraft نے اس کمپیوٹر پر ایک اور امیج ایڈیٹر سے آپ کا کی بورڈ شارٹ کٹ سیٹ {set} پایا: اس کے {n} شارٹ کٹس PhotoCraft سے مختلف ہیں۔ اسے درآمد کریں؟ + Edit › Keyboard Shortcuts › Reset All to Defaults undoes an import. ترمیم > کی بورڈ شارٹ کٹس > سب کو ڈیفالٹ پر ری سیٹ کریں ایک درآمد کو واپس لیتا ہے۔ + Don't Import درآمد نہ کریں + The keyboard shortcut set was not imported: {error} کی بورڈ شارٹ کٹ سیٹ درآمد نہیں ہوئی: {error} + Reset Section سیکشن ری سیٹ کریں + Reset Transform ہیئت تبدیلی ری سیٹ کریں + Reset to defaults ڈیفالٹس پر ری سیٹ کریں + Resolution ریزولوشن + Resolution: ریزولوشن: + Restore All سب بحال کریں + Restore Defaults ڈیفالٹس بحال کریں + Restrictive (Web) پابندی والا (ویب) + Right align text متن دائیں ترتیب دیں + Rigid سخت + Rotate: گھمائیں: + Rotation گردش + Roughness کھردرا پن + Roundness گولائی + Roundness Jitter گولائی جیٹر + Rulers & Grids رولرز اور گرڈز + Sample All Layers تمام تہیں نمونہ لیں + Sample: نمونہ: + Sampling: Background Swatch نمونہ گیری: پس منظر نمونہ + Sampling: Continuous نمونہ گیری: مسلسل + Sampling: Once نمونہ گیری: ایک بار + Saturate اشباع بڑھائیں + Saturation اشباع + Saturation Jitter اشباع جیٹر + Save HTML and Images HTML اور تصاویر محفوظ کریں + Save as PDF PDF کے طور پر محفوظ کریں + Save selection as channel انتخاب کو چینل کے طور پر محفوظ کریں + Save… محفوظ کریں… + Scale to Fit Media میڈیا میں فٹ کرنے کے لیے پیمانہ + Scatter بکھراؤ + Scratch disks اسکریچ ڈسکس + Search تلاش کریں + Search commands کمانڈز تلاش کریں + Search commands, tools and panels… کمانڈز، ٹولز اور پینلز تلاش کریں… + Search fonts فونٹس تلاش کریں + Select All سب منتخب کریں + Select Subject موضوع منتخب کریں + Select a type layer or click into text to insert glyphs گلفس شامل کرنے کے لیے متن تہہ منتخب کریں یا متن میں کلک کریں + Select text to apply a character style کریکٹر اسٹائل لاگو کرنے کے لیے متن منتخب کریں + Select: منتخب کریں: + Selections انتخابات + Selective منتخب + Selective Color منتخب رنگ + Send the selected pin backward منتخب پن پیچھے بھیجیں + Set additional smoothing options اضافی ہمواری اختیارات مقرر کریں + Set background color پس منظر کا رنگ مقرر کریں + Set foreground color پیش منظر کا رنگ مقرر کریں + Set painting symmetry options پینٹنگ سمیٹری اختیارات مقرر کریں + Symmetry Off سمیٹری بند + Set shape fill type شکل بھرائی کی قسم مقرر کریں + Set shape stroke type شکل لکیر کی قسم مقرر کریں + Set the text color متن کا رنگ مقرر کریں + Create warped text موڑا ہوا متن بنائیں + Shadows سائے + Shape: شکل: + Sharpening شارپننگ + Shift Shift + Shortcut removed. شارٹ کٹ ہٹا دیا گیا۔ + Show All Menu Items تمام مینیو آئٹمز دکھائیں + Show Backdrop پس منظر دکھائیں + Show Guides رہنما لکیریں دکھائیں + Show Mask ماسک دکھائیں + Show Mesh میش دکھائیں + Show Overlay اوورلے دکھائیں + Show Transform Controls ہیئت تبدیلی کنٹرولز دکھائیں + Show or hide the Notes panel نوٹس پینل دکھائیں یا چھپائیں + Show: دکھائیں: + Sides اطراف + Sides: اطراف: + Size حجم + Size Jitter حجم جیٹر + Size: حجم: + Slice Options… سلائس اختیارات… + Slices From Guides رہنما لکیروں سے سلائسز + Slices are locked (View › Lock Slices) سلائسز مقفل ہیں (منظر > سلائسز مقفل کریں) + Small Caps چھوٹے بڑے حروف + Smoothing ہمواری + Space After بعد میں جگہ + Space Before پہلے جگہ + Spacing وقفہ + Spell check complete. املا جانچ مکمل ہوئی۔ + Split: تقسیم: + Star ratio ستارہ تناسب + Stop playing/recording چلانا/ریکارڈنگ روکیں + Straighten سیدھا کریں + Straighten Layer تہہ سیدھی کریں + Strength: طاقت: + Strikethrough درمیان لکیر + Stroke لکیر + Stroke Catch-up لکیر کیچ اپ + Stroke: لکیر: + Location مقام + Location: مقام: + Style اسٹائل + Style Options اسٹائل اختیارات + Style Options… اسٹائل اختیارات… + Style: Normal اسٹائل: نارمل + Subtract from Sample نمونے سے منہا کریں + Subtract from selection ({key}) انتخاب سے منہا کریں ({key}) + Suggestions: تجاویز: + Swap colours (X) رنگ تبدیل کریں (X) + Swaps height and width اونچائی اور چوڑائی تبدیل کرتا ہے + Switch between free transform and warp modes آزاد ہیئت تبدیلی اور وارپ موڈز کے درمیان سوئچ کریں + Switch theme تھیم تبدیل کریں + Temperature درجہ حرارت + Tetrahedral ٹیٹراہیڈرل + Text Position: متن کا مقام: + Texture ساخت + Texture Each Tip ہر ٹپ پر ساخت + Threshold حد + Threshold Level حد کی سطح + Thumbnail size (smallest: list) تھمب نیل حجم (سب سے چھوٹا: فہرست) + Tilt X X جھکاؤ + Tilt Y Y جھکاؤ + Tint ٹنٹ + Toggle count group visibility شمار گروپ کی نمائش تبدیل کریں + Toggle text orientation متن کی سمت تبدیل کریں + Tolerance برداشت + Tolerance: برداشت: + Tone: ٹون: + Toolbar ٹول بار + Top اوپر + Total: کل: + Tracking ٹریکنگ + Tracking (1/1000 em) ٹریکنگ (1/1000 em) + Transparency شفافیت + Transparent شفاف + Trilinear ٹرائی لینیئر + Type Styles متن اسٹائلز + Type: قسم: + Underline زیر خط + Untitled بلاعنوان + Untitled-1 بلاعنوان-1 + Update layer comp (visibility, position and appearance) تہہ کمپوزیشن اپ ڈیٹ کریں (نمائش، پوزیشن اور ظاہری شکل) + Use Default ڈیفالٹ استعمال کریں + Use Legacy پرانا استعمال کریں + Use Measurement Scale پیمائش کا پیمانہ استعمال کریں + Variables bind a layer's visibility, text or pixels to a named data slot. متغیرات ایک تہہ کی نمائش، متن یا پکسلز کو ایک نام شدہ ڈیٹا سلاٹ سے جوڑتے ہیں۔ + Vertical scale عمودی پیمانہ + Vibrance رونق + View Options منظر کے اختیارات + Vignetting ویگنیٹنگ + Violet, Orange بنفشی، نارنجی + Visibility نمائش کی حالت + Visible نظر آنے والا + Warp: موڑ: + Web Snap ویب اسنیپ + Weight وزن + Weight: وزن: + White سفید + White Balance: As Shot وائٹ بیلنس: جیسا لیا گیا + Whites سفیدیاں + Width چوڑائی + Slant ترچھا پن + Width: چوڑائی: + Work Path ورک پاتھ + Yellow پیلا + Yellow · Blue پیلا · نیلا + Zoom زوم + Zoom in بڑا کریں + Zoom out چھوٹا کریں + command or shortcut کمانڈ یا شارٹ کٹ + current موجودہ + image file path تصویر فائل کا راستہ + modified ترمیم شدہ + name نام + new نیا + {name} options {name} کے اختیارات + ↑↓ navigate {key} run esc close ↑↓ نیویگیٹ کریں {key} چلائیں esc بند کریں + Version {version} ورژن {version} + New Document نئی دستاویز + New Document With Mask ماسک کے ساتھ نئی دستاویز + New Layer With Mask ماسک کے ساتھ نئی تہہ + New Layer نئی تہہ + Save Preset… پری سیٹ محفوظ کریں… + Preset Name پری سیٹ کا نام + No saved presets yet. ابھی تک کوئی پری سیٹس محفوظ نہیں۔ + Error خرابی + Command کمانڈ + Adjustment layers have nothing to transform ایڈجسٹمنٹ تہوں میں تبدیل کرنے کے لیے کچھ نہیں + Altitude بلندی + Android 1080p Android 1080p + Apple Watch 45mm Apple Watch 45mm + Aqua آکوا + Art & Illustration آرٹ اور خاکہ نگاری + ArtCraft ArtCraft + Background Eraser Tool بیک گراؤنڈ اریزر ٹول + Bevel & Emboss بیول اور ایمبوس + Blend Mode امتزاج موڈ + Blues نیلے رنگ + Blur Tool بلر ٹول + Bold بولڈ + Brush برش + Block بلاک + Brush Pose برش پوز + Brush Tip Shape برش ٹپ کی شکل + Brush Tool برش ٹول + Build-up بلڈ اپ + Burn Tool برن ٹول + Centimeters سینٹی میٹرز + Choke چوک + Classic کلاسک + Click to add text متن شامل کرنے کے لیے کلک کریں + Click to fill similar colours ملتے جلتے رنگ بھرنے کے لیے کلک کریں + Clone Stamp Tool کلون اسٹیمپ ٹول + Color Burn کلر برن + Color Dodge کلر ڈاج + Color Dynamics رنگ کی حرکیات + Color Overlay رنگ اوورلے + Comic Book کامک بک + Conform موافق بنائیں + Content-Aware Fill needs a selection on a pixel layer مواد سے آگاہ بھرائی کو پکسل تہہ پر انتخاب درکار ہے + Couldn't place {name}: {error} {name} رکھا نہیں جا سکا: {error} + Could not transform: the layer is empty ہیئت تبدیل نہیں ہو سکی: تہہ خالی ہے + Could not use Perspective Warp: the layer is empty تناظری وارپ استعمال نہیں ہو سکا: تہہ خالی ہے + Could not use Puppet Warp: no opaque pixels پپٹ وارپ استعمال نہیں ہو سکا: کوئی غیر شفاف پکسل نہیں + Could not use Puppet Warp: the layer is empty پپٹ وارپ استعمال نہیں ہو سکا: تہہ خالی ہے + Crop Tool کراپ ٹول + Crosswise آڑے رخ + Current Tool موجودہ ٹول + Custom Shape Tool مخصوص شکل ٹول + Cyans سیان رنگ + Default PhotoCraft Size ڈیفالٹ PhotoCraft حجم + Delete Workspace ورک اسپیس حذف کریں + Diamond ڈائمنڈ + Dimensions: طول و عرض: + Direction سمت + Distance فاصلہ + Document Dimensions دستاویز کے طول و عرض + Document Profile دستاویز پروفائل + Document Sizes دستاویز کے حجم + Dodge Tool ڈاج ٹول + Down نیچے + Drag to draw a gradient گریڈیئنٹ کھینچنے کے لیے گھسیٹیں + Drag to move the active layer فعال تہہ منتقل کرنے کے لیے گھسیٹیں + Drag to pan · hold Space with any tool پین کرنے کے لیے گھسیٹیں · کسی بھی ٹول کے ساتھ Space دبائے رکھیں + Drop Shadow ڈراپ شیڈو + Dual Brush ڈوئل برش + Edge کنارہ + Efficiency کارکردگی + Efficiency: 100% کارکردگی: 100% + Ellipse Tool بیضوی ٹول + Elliptical Marquee Tool بیضوی مارکی ٹول + Single Row Marquee Tool سنگل رو مارکی ٹول + Single Column Marquee Tool سنگل کالم مارکی ٹول + Emboss ایمبوس + Eraser اریزر + Eraser Tool اریزر ٹول + ExtraBold ExtraBold + ExtraLight ExtraLight + Eyedropper Tool آئی ڈراپر ٹول + Fade فیڈ + Fill Opacity بھرائی کا دھندلاپن + Film & Video فلم اور ویڈیو + From از + General عام + GitHub GitHub + Gradient Overlay گریڈیئنٹ اوورلے + Gradient Tool گریڈیئنٹ ٹول + Greens سبز رنگ + Hand Tool ہینڈ ٹول + Hard سخت + Hard Mix ہارڈ مکس + Healing Brush Tool ہیلنگ برش ٹول + Highlights from: نمایاں حصے از: + History Brush Tool ہسٹری برش ٹول + Horizontal Type Tool افقی ٹائپ ٹول + Horizontal Type Mask Tool افقی ٹائپ ماسک ٹول + Vertical Type Mask Tool عمودی ٹائپ ماسک ٹول + Image Size: تصویر کا حجم: + Inches انچ + Indexed انڈیکسڈ + Initial Direction ابتدائی سمت + Inner Bevel اندرونی بیول + Inner Glow اندرونی چمک + Inner Shadow اندرونی سایہ + Lab Lab + Landscape, 10 x 8 زمین تزئین، 10 x 8 + Landscape, 6 x 4 زمین تزئین، 6 x 4 + Landscape, 7 x 5 زمین تزئین، 7 x 5 + Lasso لیسو + Lasso Tool لیسو ٹول + Layer Count تہہ کی تعداد + Layer Knocks Out Drop Shadow تہہ ڈراپ شیڈو کو ناک آؤٹ کرتی ہے + Legal لیگل + Letter لیٹر + Light ہلکا + Line Tool لائن ٹول + Linear لکیری + Linear Burn لکیری برن + Linear Height لکیری اونچائی + Link with Layer تہہ کے ساتھ لنک کریں + Lorem Ipsum Lorem Ipsum + Magentas میجنٹا رنگ + Magic Eraser Tool میجک اریزر ٹول + Magic Wand Tool میجک وانڈ ٹول + Marquee مارکی + Mean: اوسط: + Measurement Scale پیمائش کا پیمانہ + Measurement Scale Marker پیمائش کے پیمانے کا نشان + Millimeters ملی میٹرز + Mobile موبائل + Move Tool موو ٹول + Could not use the move tool because the layer is locked. موو ٹول استعمال نہیں ہو سکا کیونکہ تہہ مقفل ہے۔ + Could not complete the Free Transform command because the layer is locked. آزاد ہیئت تبدیلی کمانڈ مکمل نہیں ہو سکی کیونکہ تہہ مقفل ہے۔ + Multiply ملٹیپلائی + My Brushes میرے برشز + Neutrals غیر جانبدار رنگ + New Workspace نیا ورک اسپیس + Note Tool نوٹ ٹول + Object Selection Tool آبجیکٹ سلیکشن ٹول + Off بند + Open کھولیں + Orange نارنجی + Original Ratio اصل تناسب + Out Of Gamut گیمٹ سے باہر + Outer Bevel بیرونی بیول + Outer Glow بیرونی چمک + Overlay اوورلے + Paint Bucket Tool پینٹ بکٹ ٹول + Paints from the document's opening state دستاویز کے کھلنے کی حالت سے پینٹ کرتا ہے + Path Selection Tool پاتھ سلیکشن ٹول + Direct Selection Tool ڈائریکٹ سلیکشن ٹول + Add Anchor Point Tool اینکر پوائنٹ شامل کرنے کا ٹول + Delete Anchor Point Tool اینکر پوائنٹ حذف کرنے کا ٹول + Click a segment to add an anchor point · {alt}-click an anchor to delete it اینکر پوائنٹ شامل کرنے کے لیے کسی حصے پر کلک کریں · اسے حذف کرنے کے لیے {alt}-کلک کریں + Click an anchor point to delete it · {alt}-click a segment to add one اینکر پوائنٹ حذف کرنے کے لیے اس پر کلک کریں · ایک شامل کرنے کے لیے کسی حصے پر {alt}-کلک کریں + Pattern Overlay نمونہ اوورلے + Pen Pressure قلم کا دباؤ + Pen Tilt قلم کا جھکاؤ + Pen Tool پین ٹول + Convert Point Tool پوائنٹ تبدیل کرنے کا ٹول + Photo تصویر + PhotoCraft website PhotoCraft ویب سائٹ + Picas پیکاس + Pillow Emboss تکیہ ایمبوس + Pixel Replacement پکسل متبادل + Pixels پکسلز + Points پوائنٹس + Polygon Tool پولیگون ٹول + Polygonal Lasso Tool پولیگونل لیسو ٹول + Portrait, 4 x 6 عمودی زمین تزئین، 4 x 6 + Portrait, 5 x 7 عمودی زمین تزئین، 5 x 7 + PostScript (72 points/inch) پوسٹ اسکرپٹ (72 پوائنٹس/انچ) + Postcard پوسٹ کارڈ + Poster پوسٹر + Pro (Dark) پرو (ڈارک) + Pro (Light) پرو (لائٹ) + Pro (Light Gray) پرو (لائٹ گرے) + Pro (Medium Gray) پرو (میڈیم گرے) + Protect Texture ساخت محفوظ رکھیں + Purple جامنی + Quick Mask کوئیک ماسک + Quick Selection Tool کوئیک سلیکشن ٹول + Radial شعاعی + Rasterize Layer تہہ ریسٹرائز کریں + Rasterize Layers تہیں ریسٹرائز کریں + Ratio تناسب + Recent حالیہ + Rectangle Tool مستطیل ٹول + Rectangular Marquee Tool مستطیل مارکی ٹول + Reds سرخ رنگ + Reflected منعکس شدہ + Sample: foreground colour نمونہ: پیش منظر رنگ + Sampled Colors نمونہ شدہ رنگ + Satin ساٹن + Save Pixel Aspect Ratio پکسل تناسب محفوظ کریں + Scattering بکھراؤ + Scratch Sizes اسکریچ حجم + Select Data Points ڈیٹا پوائنٹس منتخب کریں + Selection انتخاب + SemiBold SemiBold + Shadows up to: سائے تک: + Shape Dynamics شکل کی حرکیات + Sharpen Tool شارپن ٹول + Show Extras Options اضافی اختیارات دکھائیں + Slice Select Tool سلائس سلیکشن ٹول + Slice Tool سلائس ٹول + Smart Filters سمارٹ فلٹرز + Smudge Tool اسمج ٹول + Soft نرم + Soften نرم کریں + Source ماخذ + Source: set ماخذ: مقرر + Sponge Tool اسپنج ٹول + Spot Healing Brush Tool اسپاٹ ہیلنگ برش ٹول + Spread پھیلاؤ + Square, 12 x 12 مربع، 12 x 12 + Square, 5 x 5 مربع، 5 x 5 + Std Dev: معیاری انحراف: + Studio (Dark) اسٹوڈیو (ڈارک) + Studio (Light) اسٹوڈیو (لائٹ) + Stylus Wheel اسٹائلس وہیل + Subtract منہا کریں + Tabloid ٹیبلوئڈ + Text Replacement متن متبادل + Thin پتلا + Traditional (72.27 points/inch) روایتی (72.27 پوائنٹس/انچ) + Transfer منتقلی + Triangle Tool تکون ٹول + Unsaved changes غیر محفوظ شدہ تبدیلیاں + Uses the foreground and background colours. پیش منظر اور پس منظر رنگ استعمال کرتا ہے۔ + Web ویب + Web Large ویب بڑا + Web Minimum ویب کم از کم + Web Most Common ویب سب سے عام + WebP (lossless) WebP (بے نقصان) + Wet Edges گیلے کنارے + Yellows پیلے رنگ + Zoom Tool زوم ٹول + {name} Properties {name} کی خصوصیات + Revert “{name}” to the last saved version? Your changes will be lost. "{name}" کو آخری محفوظ شدہ ورژن پر واپس لائیں؟ آپ کی تبدیلیاں ضائع ہو جائیں گی۔ + Do you want to save the changes you made to “{name}” before quitting? کیا آپ باہر نکلنے سے پہلے "{name}" میں کی گئی تبدیلیاں محفوظ کرنا چاہتے ہیں؟ + Do you want to save the changes you made to “{name}” before closing? کیا آپ بند کرنے سے پہلے "{name}" میں کی گئی تبدیلیاں محفوظ کرنا چاہتے ہیں؟ + Doc: {flat}/{layered} دستاویز: {flat}/{layered} + Scratch: {size} اسکریچ: {size} + Untagged {mode} غیر ٹیگ شدہ {mode} + Invalid {mode} profile غلط {mode} پروفائل + Unnamed {mode} profile بے نام {mode} پروفائل + {w} px x {h} px ({ppi} ppi) {w} px x {h} px ({ppi} ppi) + {w} {unit} x {h} {unit} ({ppi} ppi) {w} {unit} x {h} {unit} ({ppi} ppi) + Resolution: {dpi} pixels/inch ریزولوشن: {dpi} پکسلز/انچ + Doc: {w} × {h} px دستاویز: {w} × {h} px + Frame {current} / {total} فریم {current} / {total} + Count: {n} شمار: {n} + BLANK DOCUMENT PRESETS ({n}) خالی دستاویز پری سیٹس ({n}) + Constraints ({n}) پابندیاں ({n}) + Align {what} {what} ترتیب دیں +@plural {n} Layer|{n} Layers {n} تہہ|{n} تہیں +@plural {n} layer|{n} layers {n} تہہ|{n} تہیں +@plural Group · {n} layer|Group · {n} layers گروپ · {n} تہہ|گروپ · {n} تہیں + Additional plugins folder اضافی پلگ انز فولڈر + Adobe Adobe + Adobe rgb Adobe rgb + Allow agent control ایجنٹ کنٹرول کی اجازت دیں + Allow scripts to connect اسکرپٹس کو جڑنے کی اجازت دیں + Always ہمیشہ + Always create smart objects when placing رکھنے کے وقت ہمیشہ سمارٹ آبجیکٹس بنائیں + Animated zoom متحرک زوم + Apply auto tone خودکار ٹون لاگو کریں + Ask پوچھیں + Ask before saving layered tiff تہہ دار tiff محفوظ کرنے سے پہلے پوچھیں + Auto collapse icon panels آئیکن پینلز خودکار طور پر سمیٹیں + Auto show hidden panels چھپے پینلز خودکار طور پر دکھائیں + Auto show home screen ہوم اسکرین خودکار طور پر دکھائیں + Autosave خودکار محفوظ کریں + Autosave minutes خودکار محفوظ کرنے کے منٹ + Beep when done مکمل ہونے پر بیپ کریں + Bicubic automatic بائی کیوبک خودکار + Bicubic sharper بائی کیوبک شارپر + Bicubic smoother بائی کیوبک اسموتھر + Bit depth بٹ گہرائی + Brush preview color برش پیش منظر کا رنگ + Cache levels کیشے لیولز + Cache tile size کیشے ٹائل حجم + Camera Raw Defaults کیمرہ را ڈیفالٹس + Canvas border کینوس بارڈر + Show canvas dots کینوس نقطے دکھائیں + Clip thumbnails to layer bounds تھمب نیلز کو تہہ کی حدود میں کلپ کریں + Clip Thumbnails to Layer Bounds تھمب نیلز کو تہہ کی حدود میں کلپ کریں + Canvas color کینوس کا رنگ + Canvas custom color کینوس کا مخصوص رنگ + Color picker رنگ چنندہ + Color space رنگ کی جگہ + Column width کالم کی چوڑائی + Concise مختصر + Control port کنٹرول پورٹ + Convert to srgb srgb میں تبدیل کریں + Cursors کرسرز + Custom dark مخصوص ڈارک + Custom light مخصوص لائٹ + Dark ڈارک + Dark gray گہرا سرمئی + Dashed lines دھرائی لکیریں + Destination منزل + Detailed تفصیلی + Disks ڈسکس + Display p3 Display p3 + Double click layer mask launches select and mask تہہ ماسک پر ڈبل کلک سلیکٹ اینڈ ماسک شروع کرتا ہے + Drop shadow ڈراپ شیڈو + Dynamic color sliders متحرک رنگ سلائیڈرز + East asian مشرقی ایشیائی + Effect cache mb ایفیکٹ کیشے mb + Enable flick panning فلک پیننگ فعال کریں + Enable floating document window docking فلوٹنگ دستاویز ونڈو ڈاکنگ فعال کریں + Enable narrow options bar تنگ اختیارات بار فعال کریں + Enabled فعال + Enhanced Controls بہتر کنٹرولز + Export clipboard کلپ بورڈ برآمد کریں + Extra large بہت بڑا + File Handling فائل ہینڈلنگ + File path فائل کا راستہ + Fill new type layers with placeholder نئی متن تہوں کو جگہ ساز سے بھریں + Font preview فونٹ پیش منظر + Full size tip مکمل حجم ٹپ + Gamut warning color گیمٹ تنبیہ کا رنگ + Gamut warning opacity گیمٹ تنبیہ کا دھندلاپن + Enable Generator جنریٹر فعال کریں + Gif Gif + Glossy چمکدار + Grid color گرڈ کا رنگ + Grid colors گرڈ رنگ + Grid size گرڈ حجم + Grid style گرڈ اسٹائل + Grid unit گرڈ اکائی + Gridline every ہر گرڈ لائن + Guide color رہنما لکیر کا رنگ + Guide style رہنما لکیر اسٹائل + Guides, Grid & Slices رہنما لکیریں، گرڈ اور سلائسز + Gutter گٹر + History Log تاریخ لاگ + History states تاریخ کی حالتیں + Ignore exif profile tag exif پروفائل ٹیگ نظرانداز کریں + Image interpolation تصویر انٹرپولیشن + Image previews تصویر پیش منظر + Integrations انضمام + Interface انٹرفیس + Jpeg quality Jpeg معیار + Jpg Jpg + Language زبان + Large tabs بڑے ٹیبز + Legacy compositing پرانا کمپوزٹنگ + Light gray ہلکا سرمئی + Line لائن + Lines لائنز + Lossless بے نقصان + Lowercase extension چھوٹے حروف کی ایکسٹینشن + Maximize psd compatibility psd مطابقت زیادہ سے زیادہ کریں + Medium gray درمیانہ سرمئی + Memory usage mb میموری استعمال mb + Low resolution previews کم ریزولوشن پیش منظر + Missing glyph protection غائب گلف تحفظ + Modern جدید + Nearest neighbor قریب ترین پڑوسی + Never کبھی نہیں + Normal tip نارمل ٹپ + Open as smart object سمارٹ آبجیکٹ کے طور پر کھولیں + Open in camera raw کیمرہ را میں کھولیں + Open documents as tabs دستاویزات کو ٹیبز کے طور پر کھولیں + Overscroll اوور اسکرول + Performance کارکردگی + Png Png + Point size پوائنٹ حجم + Precise درست + Preserve details تفصیلات محفوظ رکھیں + Print resolution پرنٹ ریزولوشن + Pro پرو + Pro light پرو لائٹ + Pro light gray پرو لائٹ گرے + Pro medium پرو میڈیم + Pro photo پرو فوٹو + Quick export format فوری برآمد فارمیٹ + Quick export location فوری برآمد مقام + Recent file count حالیہ فائل شمار + LUT folder LUT فولڈر + Recent files حالیہ فائلیں + Recent fonts حالیہ فونٹس + Recover on launch لانچ پر بحال کریں + Remember workspace changes ورک اسپیس تبدیلیاں یاد رکھیں + Resize image during place رکھتے وقت تصویر کا حجم تبدیل کریں + Rotate view with trackpad ٹریک پیڈ سے منظر گھمائیں + Same folder وہی فولڈر + Save in background پس منظر میں محفوظ کریں + Scratch Disks اسکریچ ڈسکس + Screen اسکرین + Screen resolution اسکرین ریزولوشن + Scrubby slider acceleration اسکربی سلائیڈر ایکسیلریشن + Sessions only صرف سیشنز + Sharpen for اس کے لیے تیز کریں + Show channels in color چینلز کو رنگ میں دکھائیں + Show crosshair in brush tip برش ٹپ میں کراس ہیئر دکھائیں + Show extension panels ایکسٹینشن پینلز دکھائیں + Show font names in english فونٹ کے نام انگریزی میں دکھائیں + Show menu colors مینیو رنگ دکھائیں + Show only crosshair while painting پینٹنگ کے دوران صرف کراس ہیئر دکھائیں + Show slice numbers سلائس نمبر دکھائیں + Show tooltips ٹول ٹپس دکھائیں + Enable animations اینیمیشنز فعال کریں + Show highlight on rollover رول اوور پر ہائی لائٹ دکھائیں + Show bounding box when dragging layer تہہ گھسیٹتے وقت باؤنڈنگ باکس دکھائیں + System title bar سسٹم ٹائٹل بار + Show transformation values ہیئت تبدیلی کی قدریں دکھائیں + Slice color سلائس رنگ + Smart guide color سمارٹ رہنما لکیر کا رنگ + Smart quotes سمارٹ کوٹس + Snap vector tools and transforms to pixel grid ویکٹر ٹولز اور ہیئت تبدیلیاں پکسل گرڈ پر اسنیپ کریں + Srgb Srgb + Standard معیاری + Studio اسٹوڈیو + Studio light اسٹوڈیو لائٹ + Adwaita Adwaita + Adwaita dark Adwaita dark + Subdivisions ذیلی تقسیمات + System سسٹم + Text engine متن انجن + Text file متن فائل + Tiny بہت چھوٹا + Touch gestures ٹچ اشارے + Transparency & Gamut شفافیت اور رنگ دائرہ کار + Type units متن اکائیاں + UI font size UI فونٹ حجم + UI scale UI پیمانہ + Units & Rulers اکائیاں اور رولرز + Use additional plugins folder اضافی پلگ انز فولڈر استعمال کریں + Use esc to commit نافذ کرنے کے لیے esc استعمال کریں + Use gpu gpu استعمال کریں + Use legacy free transform پرانی آزاد ہیئت تبدیلی استعمال کریں + Use shift key for tool switch ٹول سوئچ کے لیے shift کی استعمال کریں + Vary round brush hardness on hud ہڈ پر گول برش کی سختی مختلف رکھیں + Webp Webp + World ready ورلڈ ریڈی + Zoom clicked point to center کلک شدہ نقطے کو مرکز میں زوم کریں + Zoom resizes windows زوم ونڈوز کا حجم تبدیل کرتا ہے + Zoom with scroll wheel اسکرول وہیل سے زوم کریں + Zoom with trackpad pinch ٹریک پیڈ پنچ سے زوم کریں + Pass Through پاس تھرو + Dissolve تحلیل + Darker Color گہرا رنگ + Linear Dodge (Add) لکیری ڈاج (جمع) + Lighter Color ہلکا رنگ + Soft Light نرم روشنی + Hard Light سخت روشنی + Vivid Light شوخ روشنی + Linear Light لکیری روشنی + Pin Light پن روشنی + Exclusion اخراج + Divide تقسیم + Luminosity چمک +@plural {n} sample|{n} samples {n} نمونہ|{n} نمونے + {added}, {removed} subtracted {added}, {removed} منہا شدہ + Adjustment Preview ایڈجسٹمنٹ پیش منظر + Airbrush: keeps depositing paint while the pointer rests. ایئر برش: پوائنٹر رکنے کے دوران رنگ ڈالتا رہتا ہے۔ + Angle: زاویہ: + Blend If امتزاج اگر + Close Tab Group ٹیب گروپ بند کریں + Collapse سمیٹیں + Collapse All Groups تمام گروپس سمیٹیں + Collapse Panel Group پینل گروپ سمیٹیں + Collapse group ({key}-click: all groups) گروپ سمیٹیں ({key}-کلک: تمام گروپس) + Create new brush from the current settings موجودہ ترتیبات سے نیا برش بنائیں + Create new brush from these settings ان ترتیبات سے نیا برش بنائیں + Update the current brush with these settings ان ترتیبات کے ساتھ موجودہ برش اپ ڈیٹ کریں + Delete brush برش حذف کریں + Drag the arrow to set the angle, the dots to set the roundness زاویہ مقرر کرنے کے لیے تیر گھسیٹیں، گولائی مقرر کرنے کے لیے نقطے + Expand پھیلائیں + Expand Panel Group پینل گروپ پھیلائیں + Expand group ({key}-click: all groups) گروپ پھیلائیں ({key}-کلک: تمام گروپس) + Fade steps فیڈ مراحل + Hide the layer's effects ({key}-click: all layers) تہہ کے اثرات چھپائیں ({key}-کلک: تمام تہیں) + Import Brushes… (.abr or image) برشز درآمد کریں… (.abr یا تصویر) + Import Brush from Image… تصویر سے برش درآمد کریں… + Move Group Down گروپ نیچے منتقل کریں + Move Group Up گروپ اوپر منتقل کریں + Reset the brush to the defaults برش کو ڈیفالٹس پر ری سیٹ کریں + Restore original size اصل حجم بحال کریں + Roundness: گولائی: + Search Brushes برشز تلاش کریں + Show the layer's effects ({key}-click: all layers) تہہ کے اثرات دکھائیں ({key}-کلک: تمام تہیں) + Brush picker برش چنندہ + Erase مٹائیں + Right click with painting tools پینٹنگ ٹولز کے ساتھ دایاں کلک + System Info… سسٹم کی معلومات… + System Info سسٹم کی معلومات + More panels مزید پینلز + More documents مزید دستاویزات + These settings aren't available in PhotoCraft yet. یہ ترتیبات ابھی PhotoCraft میں دستیاب نہیں ہیں۔ + Graphics گرافکس + Reset GPU Backend GPU بیک اینڈ ری سیٹ کریں + Applies at next launch. اگلی بار شروع ہونے پر لاگو ہوتا ہے۔ + Click to sample the foreground colour · {key}-click for background پیش منظر رنگ کا نمونہ لینے کے لیے کلک کریں · پس منظر کے لیے {key}-کلک + {key}-click to set the source ماخذ مقرر کرنے کے لیے {key}-کلک کریں + {key} to subtract منہا کرنے کے لیے {key} + Clone source {n} ({key}-click with Clone Stamp to set) کلون ماخذ {n} ({key}-کلک کلون اسٹیمپ کے ساتھ مقرر کرنے کے لیے) + Source: not set ({key}-click with Clone Stamp) ماخذ: مقرر نہیں ({key}-کلک کلون اسٹیمپ کے ساتھ) + Pixel Layer پکسل تہہ + Type Layer متن تہہ + Shape Layer شکل تہہ + Group Layer گروپ تہہ + Fill Layer بھرائی تہہ + Smart Object Layer سمارٹ آبجیکٹ تہہ + Create Warped Text موڑا ہوا متن بنائیں + Rasterize Smart Object سمارٹ آبجیکٹ ریسٹرائز کریں + Rasterize Fill Content بھرائی مواد ریسٹرائز کریں + Rasterize Layer Style تہہ اسٹائل ریسٹرائز کریں + Unlock: picking a preset replaces these settings غیر مقفل: پری سیٹ چننا ان ترتیبات کی جگہ لے لیتا ہے + Lock: keep these settings when picking another preset مقفل: دوسرا پری سیٹ چنتے وقت ان ترتیبات کو برقرار رکھیں + Diameter: قطر: + Hardness: سختی: + No brush presets کوئی برش پری سیٹس نہیں + Toggle the Brush Settings panel (F5) برش کی ترتیبات پینل تبدیل کریں (F5) + Create new brush preset from the current settings موجودہ ترتیبات سے نیا برش پری سیٹ بنائیں + Brush Settings… (F5): every option of this brush برش کی ترتیبات… (F5): اس برش کا ہر اختیار + Rename Brush… برش کا نام تبدیل کریں… + Delete Brush برش حذف کریں + New Brush Preset… نیا برش پری سیٹ… + Capture Brush Size in Preset پری سیٹ میں برش کا حجم محفوظ کریں + Include Tool Settings ٹول کی ترتیبات شامل کریں + Include Color رنگ شامل کریں + Enter a name for the brush preset برش پری سیٹ کے لیے ایک نام درج کریں + A brush preset with this name already exists اس نام کا برش پری سیٹ پہلے سے موجود ہے + Brush Preset Options برش پری سیٹ کے اختیارات + Group name گروپ کا نام + Brush name برش کا نام + Brush Name برش کا نام + Brush Stroke برش اسٹروک + Brush Tip برش ٹپ + Off: the speed of the pointer sets the spacing بند: پوائنٹر کی رفتار وقفہ مقرر کرتی ہے + Tilt Scale جھکاؤ کا پیمانہ + Brush Projection برش پروجیکشن + Apply the pen's tilt and rotation to the tip shape قلم کا جھکاؤ اور گردش ٹپ کی شکل پر لاگو کریں + Mixer Brush مکسر برش + Mixer Brush Tool مکسر برش ٹول + Color Replacement Tool کلر ری پلیسمنٹ ٹول + Wet گیلا + Current Brush Load موجودہ برش لوڈ + Load Brush برش لوڈ کریں + Clean Brush برش صاف کریں + Load the brush after each stroke ہر اسٹروک کے بعد برش لوڈ کریں + Clean the brush after each stroke ہر اسٹروک کے بعد برش صاف کریں + Mix ملائیں + Wetness Jitter گیلا پن جیٹر + Mix Jitter ملاپ جیٹر + Show the layer mask as an overlay تہہ ماسک کو اوورلے کے طور پر دکھائیں + Toggle visibility نمائش تبدیل کریں + Unlink the mask from the layer ماسک کو تہہ سے غیر مربوط کریں + Link the mask to the layer ماسک کو تہہ سے مربوط کریں + Gradient گریڈیئنٹ + Gradient Options گریڈیئنٹ اختیارات + Align with layer تہہ کے ساتھ ترتیب دیں + Reset Alignment ترتیب ری سیٹ کریں + Centre the gradient (offset 0, 0) گریڈیئنٹ کو مرکز میں کریں (آفسیٹ 0, 0) + Gradient Editor گریڈیئنٹ ایڈیٹر + Gradient picker گریڈیئنٹ چنندہ + Save As Preset پری سیٹ کے طور پر محفوظ کریں + The gradient the Gradient tool paints with وہ گریڈیئنٹ جس سے گریڈیئنٹ ٹول پینٹ کرتا ہے + Adds the current gradient to the Gradients panel موجودہ گریڈیئنٹ کو گریڈیئنٹس پینل میں شامل کرتا ہے + Gradient stops گریڈیئنٹ اسٹاپس + Select a type layer to edit its character and paragraph settings. کریکٹر اور پیراگراف کی ترتیبات میں ترمیم کے لیے متن تہہ منتخب کریں۔ + Text color متن کا رنگ + Type Options متن کے اختیارات + Anti-aliasing method اینٹی ایلیاسنگ طریقہ + Horizontal type افقی متن + Vertical type عمودی متن + Fill path with foreground color پیش منظر رنگ کے ساتھ پاتھ بھریں + Stroke path with brush برش کے ساتھ پاتھ پر لکیر بنائیں + Load path as a selection پاتھ کو بطور انتخاب لوڈ کریں + Make work path from selection انتخاب سے ورک پاتھ بنائیں + Add vector mask ویکٹر ماسک شامل کریں + Create new path نیا پاتھ بنائیں + Delete path پاتھ حذف کریں + Delete vector mask ویکٹر ماسک حذف کریں + CPU (no GPU acceleration) CPU (کوئی GPU ایکسیلریشن نہیں) + DirectX 12 DirectX 12 + GPU backend GPU بیک اینڈ + Linux display server لینکس ڈسپلے سرور + X11 X11 + Metal Metal + OpenGL OpenGL + Use tablet pressure ٹیبلٹ دباؤ استعمال کریں + Vulkan Vulkan + Alt-click to define a source point to clone from کلون کے لیے ماخذ نقطہ متعین کرنے کے لیے Alt-کلک کریں + No path to make a selection from: draw one with the Pen tool or select one in the Paths panel. انتخاب بنانے کے لیے کوئی پاتھ نہیں: پین ٹول سے ایک بنائیں یا پاتھس پینل میں ایک منتخب کریں۔ + Cancel opening کھلنا منسوخ کریں + Cancelled opening {name} {name} کھولنا منسوخ کر دیا گیا + Damaged Photoshop document خراب شدہ فوٹوشاپ دستاویز + The document “{name}” may be damaged. دستاویز "{name}" خراب ہو سکتی ہے۔ + Some layers, pixels or masks could not be read. Do you want to continue opening it? کچھ تہیں، پکسلز یا ماسک پڑھے نہیں جا سکے۔ کیا آپ اسے کھولنا جاری رکھنا چاہتے ہیں؟ + If you continue, saving over the original may permanently discard unreadable data. Save a copy to keep the original. اگر آپ جاری رکھتے ہیں، تو اصل پر محفوظ کرنا ناقابل مطالعہ ڈیٹا کو مستقل طور پر ضائع کر سکتا ہے۔ اصل کو محفوظ رکھنے کے لیے ایک نقل محفوظ کریں۔ + The document “{name}” does not have an embedded {mode} profile. دستاویز "{name}" میں کوئی ایمبیڈڈ {mode} پروفائل نہیں ہے۔ + The document “{name}” has an embedded color profile that does not match the current {mode} working space. دستاویز "{name}" میں ایک ایمبیڈڈ رنگ پروفائل ہے جو موجودہ {mode} ورکنگ اسپیس سے مماثل نہیں ہے۔ + Working: {working} کام جاری: {working} + Developing {name} {name} ڈیویلپ ہو رہا ہے + Cancelled {label} {label} منسوخ ہو گیا + Esc to cancel منسوخ کرنے کے لیے Esc + Opened {name} {name} کھل گیا + Opening {name} {name} کھل رہا ہے + Saved {name} {name} محفوظ ہو گیا + Saving {name} {name} محفوظ ہو رہا ہے + Saving {percent} محفوظ ہو رہا ہے {percent} + A save to {name} is still running; try again when it finishes {name} میں محفوظ کرنا ابھی جاری ہے؛ مکمل ہونے پر دوبارہ کوشش کریں + {label} is writing the file and can no longer be cancelled {label} فائل لکھ رہا ہے اور اب منسوخ نہیں کیا جا سکتا + Opening {name}… {name} کھل رہا ہے… + Opening… کھل رہا ہے… + Reading… پڑھا جا رہا ہے… + Working… کام جاری ہے… + 3 x 3 3 x 3 + 4 x 4 4 x 4 + 5 x 5 5 x 5 + Grid: گرڈ: + Color Range رنگ کی حد + Adaptive Wide Angle اڈاپٹیو وائیڈ اینگل + Chalk & Charcoal چاک اور چارکول + Charcoal چارکول + Chrome کروم + Conté Crayon کونٹے کریون + Graphic Pen گرافک پین + Halftone Pattern ہاف ٹون پیٹرن + Note Paper نوٹ پیپر + Photocopy فوٹو کاپی + Plaster پلاسٹر + Reticulation ریٹیکولیشن + Stamp اسٹیمپ + Torn Edges پھٹے کنارے + Water Paper واٹر پیپر + Move موو + Pencil پنسل + Clone Stamp کلون اسٹیمپ + Dodge ڈاج + Burn برن + Quick Selection کوئیک سلیکشن + History Brush ہسٹری برش + Color Replacement کلر ری پلیسمنٹ + New Group نیا گروپ + Layer Comp تہہ کمپوزیشن + Alpha الفا + Make میک + Model ماڈل + F F + Artist آرٹسٹ + Spot Color اسپاٹ کلر + Roman رومن + Bold Italic بولڈ ترچھا + Justification جسٹیفیکیشن + Symbols علامات + Punctuation رموز اوقاف + Make Work Path ورک پاتھ بنائیں + Make Selection انتخاب بنائیں + Fill Path پاتھ بھریں + Stroke Path پاتھ پر لکیر بنائیں + Delete Path پاتھ حذف کریں + W W + H H + Ruler رولر + New Layer Comp نئی تہہ کمپوزیشن + Duplicate Layer Comp تہہ کمپوزیشن کی نقل بنائیں + Rename Layer Comp تہہ کمپوزیشن کا نام تبدیل کریں + Apply Layer Comp تہہ کمپوزیشن لاگو کریں + Update Layer Comp تہہ کمپوزیشن اپ ڈیٹ کریں + Method طریقہ + Author مصنف + Software سافٹ ویئر + Pencil Tool پنسل ٹول + Pixel پکسل + Adjustment ایڈجسٹمنٹ + Drag (lasso) or click points (polygonal) · {add} add · {sub} subtract گھسیٹیں (لیسو) یا نقطوں پر کلک کریں (پولیگونل) · {add} شامل کریں · {sub} منہا کریں + Drag a crop box · drag inside to move · edges resize ({ratio} ratio, {centre} centre) · Space moves while drawing · arrows nudge · X swaps orientation · {commit} commits · Esc cancels کراپ باکس گھسیٹیں · منتقل کرنے کے لیے اندر گھسیٹیں · کنارے حجم بدلتے ہیں ({ratio} تناسب، {centre} مرکز) · ڈرائنگ کے دوران Space منتقل کرتا ہے · تیر دھکیلتے ہیں · X سمت بندی تبدیل کرتا ہے · {commit} نافذ کرتا ہے · Esc منسوخ کرتا ہے + {mode} Color · {bits} bit {mode} رنگ · {bits} بٹ + Scrubby Zoom اسکربی زوم + Auto Erase خودکار اریزر + Color Adaptation رنگ موافقت + Preserve Transparency شفافیت برقرار رکھیں + shortcut شارٹ کٹ + Saved محفوظ شدہ + Arc آرک + Arch آرچ + Bulge ابھار + Shell Lower شیل لوئر + Shell Upper شیل اپر + Flag فلیگ + Fish فش + Wave ویو + Rise رائز + Inflate پھولائیں + Twist موڑیں + Squeeze دبائیں + Mask ماسک + Channel چینل + Rectangle مستطیل + New Channel نیا چینل + Save Selection انتخاب محفوظ کریں + Load Selection انتخاب لوڈ کریں +@id edit.purge.undo تاریخ کالعدم کریں + Rendering Mode رینڈرنگ موڈ + Automatic (recommended) خودکار (تجویز کردہ) + CPU / Compatibility CPU / مطابقت + Automatic uses GPU acceleration when available and falls back to CPU rendering on errors. خودکار دستیاب ہونے پر GPU ایکسیلریشن استعمال کرتا ہے اور خرابیوں پر CPU رینڈرنگ پر واپس آ جاتا ہے۔ + Switched to CPU rendering CPU رینڈرنگ پر تبدیل ہو گیا + GPU acceleration could not continue. Your documents are unchanged. GPU ایکسیلریشن جاری نہیں رہ سکا۔ آپ کی دستاویزات تبدیل نہیں ہوئیں۔ + PhotoCraft is using the CPU image compositor. The window may still use your graphics adapter. PhotoCraft CPU تصویری کمپوزیٹر استعمال کر رہا ہے۔ ونڈو پھر بھی آپ کا گرافکس ایڈاپٹر استعمال کر سکتی ہے۔ + Retry GPU requires a restart. Save your work first. GPU دوبارہ کوشش کے لیے دوبارہ آغاز درکار ہے۔ پہلے اپنا کام محفوظ کریں۔ + Retry GPU tries the graphics processor again now. GPU دوبارہ کوشش ابھی گرافکس پروسیسر کو دوبارہ آزماتی ہے۔ + GPU acceleration resumed. GPU ایکسیلریشن بحال ہو گیا۔ + Keep Using CPU CPU استعمال کرتے رہیں + Retry GPU GPU دوبارہ کوشش کریں + Advanced ایڈوانسڈ + GPU Backend GPU بیک اینڈ + Details تفصیلات + Rendering mode رینڈرنگ موڈ + Freeze Lasso: drag to freeze an area, Alt-drag to thaw it (L) فریز لیسو: کسی حصے کو منجمد کرنے کے لیے گھسیٹیں، پگھلانے کے لیے Alt-گھسیٹیں (L) + Shadow Clipping Warning (U) سایہ کلپنگ تنبیہ (U) + Highlight Clipping Warning (O) نمایاں حصہ کلپنگ تنبیہ (O) + Show Lab Color Readouts Lab رنگ ریڈ آؤٹس دکھائیں + Show Vectorscope ویکٹرواسکوپ دکھائیں + Show Red at 3 o'clock سرخ کو 3 بجے کی پوزیشن پر دکھائیں + Show Skin Tone Indicator جلد کے رنگ کا اشارہ دکھائیں + Tone Histogram ٹون ہسٹوگرام + Show Selected Region منتخب خطہ دکھائیں +cameraRaw Light روشنی + Camera Raw Filter ({layer}) کیمرہ را فلٹر ({layer}) + Camera Raw ({name}) کیمرہ را ({name}) +cameraRaw Lights روشن حصے +cameraRaw Darks تاریک حصے +cameraRaw Red سرخ +cameraRaw Orange نارنجی +cameraRaw Yellow پیلا +cameraRaw Green سبز +cameraRaw Aqua آکوا +cameraRaw Blue نیلا +cameraRaw Purple جامنی +cameraRaw Magenta میجنٹا +cameraRaw Blending امتزاج +cameraRaw Tint ٹنٹ +cameraRaw Temperature درجہ حرارت +cameraRaw Amount مقدار + Patch Tool پیچ ٹول + Patch: پیچ: + Lasso around an area, then drag the selection کسی حصے کے گرد لیسو کریں، پھر انتخاب کو گھسیٹیں + Transform On Drop چھوڑنے پر ہیئت تبدیل کریں + Scale or rotate the moved area, then press {key} منتقل شدہ حصے کا پیمانہ یا گردش کریں، پھر {key} دبائیں + Now drag the selection onto another area اب انتخاب کو دوسرے حصے پر گھسیٹیں + Edit Type قسم میں ترمیم کریں + New Style… نیا اسٹائل… + Style {name} saved اسٹائل {name} محفوظ ہو گیا + Create new style (from the selected type) نیا اسٹائل بنائیں (منتخب قسم سے) + Create new style from the selected layer منتخب تہہ سے نیا اسٹائل بنائیں + Make Default ڈیفالٹ بنائیں + Reset to Default ڈیفالٹ پر ری سیٹ کریں + Full-resolution preview unavailable مکمل ریزولوشن پیش منظر دستیاب نہیں + No patterns کوئی نمونے نہیں + Enable {name} {name} فعال کریں + Hold Alt while drawing for straight segments سیدھے حصوں کے لیے ڈرائنگ کے دوران Alt دبائے رکھیں + Drag or click polygon points · hold Alt during lasso for straight segments · {add} add · {sub} before drawing subtracts پولیگون نقطوں پر گھسیٹیں یا کلک کریں · سیدھے حصوں کے لیے لیسو کے دوران Alt دبائے رکھیں · {add} شامل کریں · {sub} ڈرائنگ سے پہلے منہا کرتا ہے + Extend بڑھائیں + Structure: ساخت: + Content-Aware Move Tool مواد سے آگاہ موو ٹول + TIFF Options TIFF اختیارات + Targa Options Targa اختیارات + JPEG Options JPEG اختیارات + Image Options تصویر کے اختیارات + Format Options فارمیٹ کے اختیارات + Baseline ("Standard") بیس لائن ("معیاری") + Baseline Optimized بیس لائن اوپٹیمائزڈ + 24 bits/pixel 24 بٹس/پکسل + 32 bits/pixel 32 بٹس/پکسل + Including layers will increase file size. تہیں شامل کرنے سے فائل کا حجم بڑھ جائے گا۔ + Discard Layers and Save a Copy تہیں ضائع کریں اور ایک نقل محفوظ کریں + Don't show again دوبارہ نہ دکھائیں + Save failed: {error} محفوظ کرنا ناکام ہوا: {error} + Save cancelled محفوظ کرنا منسوخ ہوا + Magnetic Lasso Tool میگنیٹک لیسو ٹول + Frequency فریکوئنسی + Use tablet pressure to change pen width قلم کی چوڑائی بدلنے کے لیے ٹیبلٹ دباؤ استعمال کریں + About بارے میں + Contributors شراکت دار + Models ماڈلز + Sort ترتیب دیں + Username صارف نام + Display name ظاہری نام + Real name اصلی نام + Reverse the order ترتیب الٹ دیں + Grab bag گریب بیگ + Table جدول + Name (A–Z) نام (A–Z) + Merged PRs ضم شدہ PRs + Commits کمٹس + Lines added شامل کردہ لائنیں + Lines deleted حذف شدہ لائنیں + Line delta لائن کا فرق + Binary assets added شامل کردہ بائنری اثاثے + Binary assets removed ہٹائے گئے بائنری اثاثے + First commit پہلا کمٹ + First پہلا + Last commit آخری کمٹ + Last آخری + Contributors: {contributors} · Commits: {commits} شراکت دار: {contributors} · کمٹس: {commits} + No contributor data was built into this copy. اس کاپی میں کوئی شراکت دار ڈیٹا شامل نہیں کیا گیا۔ + No model credits were built into this copy. اس کاپی میں کوئی ماڈل کریڈٹس شامل نہیں کیے گئے۔ + Company کمپنی + Version ورژن + % of all commits تمام کمٹس کا % + Lines +/− لائنیں +/− + @{login}: {prs} PRs, {commits} commits, +{added} / −{deleted} lines (Δ {delta}), +{binAdded} / −{binDeleted} binary assets, {first} – {last} @{login}: {prs} PRs، {commits} کمٹس، +{added} / −{deleted} لائنیں (Δ {delta})، +{binAdded} / −{binDeleted} بائنری اثاثے، {first} – {last} + Create new swatch نیا نمونہ بنائیں + New Swatch… نیا نمونہ… + New Swatch Group… نیا نمونہ گروپ… + Import Swatches… نمونے درآمد کریں… + Replace Swatches… نمونے تبدیل کریں… + Export Swatches… نمونے برآمد کریں… + Export Swatches for Exchange… تبادلے کے لیے نمونے برآمد کریں… + Reset Swatches نمونے ری سیٹ کریں + Add to Swatches نمونوں میں شامل کریں + Blend If: امتزاج اگر: + Current Layer: موجودہ تہہ: + Channels: چینلز: + Knockout ناک آؤٹ + Apply At Canvas Bounds کینوس کی حدود پر لاگو کریں + Color Picker (Text Color) رنگ چنندہ (متن کا رنگ) + Color Picker ({name}) رنگ چنندہ ({name}) + Color Picker (Fill Color) رنگ چنندہ (بھرائی رنگ) + Fill color بھرائی رنگ + Color Picker (Stroke Color) رنگ چنندہ (لکیر رنگ) + Stroke color لکیر رنگ + Pick screen color اسکرین رنگ چنیں + Sample a pixel anywhere on the screen اسکرین پر کہیں بھی پکسل کا نمونہ لیں + Click to pick · Esc to cancel چننے کے لیے کلک کریں · منسوخ کرنے کے لیے Esc + Pick a screen pixel or press Esc to cancel اسکرین پکسل چنیں یا منسوخ کرنے کے لیے Esc دبائیں + Scroll to zoom زوم کے لیے اسکرول کریں + Drag to pan · Scroll to zoom · Double-click to fit پین کرنے کے لیے گھسیٹیں · زوم کے لیے اسکرول کریں · فٹ کرنے کے لیے ڈبل کلک کریں + Show/Hide All Panels تمام پینلز دکھائیں/چھپائیں + Show/Hide Panels پینلز دکھائیں/چھپائیں + Could not open کھل نہیں سکا + {path}: the path is not valid Unicode; rename the file and open it again. {path}: راستہ درست یونیکوڈ نہیں ہے؛ فائل کا نام تبدیل کریں اور دوبارہ کھولیں۔ + Contents: مواد: + Custom Pattern: مخصوص نمونہ: + Foreground Color پیش منظر رنگ + Color… رنگ… + 50% Gray 50% سرمئی + {size} (was {old}) {size} (پہلے {old} تھا) + Cone کون + Cone (Inverted) کون (الٹا) + Domed گنبد نما + Domed (Inverted) گنبد نما (الٹا) + Diagonal (Descending) ترچھا (نیچے جاتا) + Contour Editor کونٹور ایڈیٹر + Anti-aliased اینٹی ایلیاسڈ + Corner کونا + Gloss Contour گلوس کونٹور + Contour کونٹور + Cone - Inverted کون - الٹا + Cove - Deep کوو - گہرا + Cove - Shallow کوو - کم گہرا + Half Round نیم گول + Ring رنگ + Ring - Double رنگ - ڈبل + Rolling Slope - Descending رولنگ ڈھلان - نیچے جاتی + Rounded Steps گول قدمیں + Sawtooth 1 آری دانت 1 + Red Eye Tool ریڈ آئی ٹول + Red Eye ریڈ آئی + Pupil Size پتلی کا حجم + Darken Amount گہرا کرنے کی مقدار + Click a red pupil to neutralize it بے اثر کرنے کے لیے سرخ پتلی پر کلک کریں + open source اوپن سورس + …and {n} more …اور {n} مزید + Eyedroppers: آئی ڈراپرز: + Set Black Point بلیک پوائنٹ مقرر کریں + Set Neutral Gray Point نیوٹرل گرے پوائنٹ مقرر کریں + Set White Point وائٹ پوائنٹ مقرر کریں + Unavailable in this color mode اس رنگ موڈ میں دستیاب نہیں + Selection Preview: انتخاب پیش منظر: + Black Matte بلیک میٹ + White Matte وائٹ میٹ + Seafoam سی فوم + Indigo انڈیگو + Fuchsia فیوشیا + Violet وایلیٹ + Reset ری سیٹ کریں + Large document: redrawing on the CPU بڑی دستاویز: CPU پر دوبارہ ڈرائنگ ہو رہی ہے + Redrawing دوبارہ ڈرائنگ ہو رہی ہے + This redraw took {seconds} s on the CPU. یہ دوبارہ ڈرائنگ CPU پر {seconds} سیکنڈ لگی۔ + Edits that change the whole document, such as a layer's blend mode, opacity or visibility, redraw all of it. تبدیلیاں جو پوری دستاویز کو تبدیل کرتی ہیں، جیسے تہہ کا امتزاج موڈ، دھندلاپن یا نمائش، پوری دستاویز کو دوبارہ ڈرائنگ کرتی ہیں۔ + The GPU compositor wasn't used: {reason} GPU کمپوزیٹر استعمال نہیں ہوا: {reason} +fontWeight Thin پتلا +fontWeight ExtraLight بہت ہلکا +fontWeight Light ہلکا +fontWeight Regular عام +fontWeight Medium درمیانہ +fontWeight SemiBold نیم بولڈ +fontWeight Bold بولڈ +fontWeight ExtraBold زیادہ بولڈ +fontWeight Black بہت گہرا +fontWeight Italic ترچھا + Pattern Stamp Tool پیٹرن اسٹیمپ ٹول + Pattern Stamp پیٹرن اسٹیمپ + Impressionist امپریشنسٹ + Rotate View منظر گھمائیں + Rotate View Tool منظر گھمانے کا ٹول + Reset View منظر ری سیٹ کریں + Drag around the centre to rotate the view · Shift constrains to 15° منظر گھمانے کے لیے مرکز کے گرد گھسیٹیں · Shift 15° پر محدود کرتا ہے + Dual Axis دوہرا محور + Diagonal ترچھا + Transform Symmetry سمیٹری تبدیل کریں + Point Sample پوائنٹ نمونہ + 3 by 3 Average 3 بذریعہ 3 اوسط + 5 by 5 Average 5 بذریعہ 5 اوسط + 11 by 11 Average 11 بذریعہ 11 اوسط + 31 by 31 Average 31 بذریعہ 31 اوسط + 51 by 51 Average 51 بذریعہ 51 اوسط + 101 by 101 Average 101 بذریعہ 101 اوسط + Sample Size: نمونہ حجم: + All Layers No Adjustments تمام تہیں بغیر ایڈجسٹمنٹ + Current & Below No Adjustments موجودہ اور نیچے بغیر ایڈجسٹمنٹ + Show Sampling Ring نمونہ گیری رنگ دکھائیں + Out of gamut for printing: click for the nearest printable colour پرنٹنگ کے لیے گیمٹ سے باہر: قریب ترین قابل پرنٹ رنگ کے لیے کلک کریں + Not a web colour: click for the nearest web colour ویب رنگ نہیں: قریب ترین ویب رنگ کے لیے کلک کریں + Color to Alpha… رنگ کو الفا میں… + Transparency Threshold شفافیت کی حد + Opacity Threshold دھندلاپن کی حد + PhotoCraft — Screen Color Picker PhotoCraft — اسکرین رنگ چنندہ + Rasterize svg groups deeper than SVG گروپس کو اس سے گہرے ریسٹرائز کریں + 0 turns this threshold off; SVG groups nested deeper than 100 levels are always rasterized. 0 اس حد کو بند کر دیتا ہے؛ 100 سطحوں سے گہرے نیسٹڈ SVG گروپس ہمیشہ ریسٹرائز ہوتے ہیں۔ + Rule of Thirds ایک تہائی کا اصول + Triangle تکون + Golden Ratio گولڈن تناسب + Golden Spiral گولڈن اسپائرل + Auto Show Overlay اوورلے خودکار دکھائیں + Always Show Overlay اوورلے ہمیشہ دکھائیں + Never Show Overlay اوورلے کبھی نہ دکھائیں + Cycle Overlay اوورلے تبدیل کریں + Cycle Orientation سمت بندی تبدیل کریں + Set the overlay options for the Crop tool کراپ ٹول کے لیے اوورلے اختیارات مقرر کریں + Alt-click went to the desktop, which moves windows with Alt-drag. Set its window-move key to Super, or latch Alt in Window › Modifier Keys. Alt-کلک ڈیسک ٹاپ پر گیا، جو Alt-گھسیٹنے سے ونڈوز منتقل کرتا ہے۔ اس کی ونڈو منتقلی کی کی کو Super پر مقرر کریں، یا ونڈو > موڈیفائر کیز میں Alt کو لاک کریں۔ + Color Picker (Layer Style Color) رنگ چنندہ (تہہ اسٹائل رنگ) + Auto Hide Notifications اطلاعات خودکار چھپائیں + Notification Duration (seconds) اطلاع کا دورانیہ (سیکنڈ) + Bundle Arrow-Key Nudges ایرو-کی دھکوں کو جمع کریں + Nudge Bundle Pause (ms) دھکا جمع کرنے کا وقفہ (ms) + Appearance Mode ظاہری شکل موڈ + Dark Theme ڈارک تھیم + Light Theme لائٹ تھیم + Pro Medium پرو میڈیم + Studio Light اسٹوڈیو لائٹ + Next Appearance Mode اگلا ظاہری شکل موڈ + Sync with system سسٹم کے ساتھ ہم آہنگ کریں + Active فعال + Color Picker (Solid Color) رنگ چنندہ (ٹھوس رنگ) + Straighten the image by drawing a line on it اس پر لائن کھینچ کر تصویر سیدھی کریں + Set additional Crop options اضافی کراپ اختیارات مقرر کریں + Show Cropped Area تراشا ہوا حصہ دکھائیں + Enable Crop Shield کراپ شیلڈ فعال کریں + Match Canvas کینوس سے مماثل کریں + Auto Adjust Opacity دھندلاپن خودکار ایڈجسٹ کریں + Crop Shield color کراپ شیلڈ کا رنگ + Color Picker (Crop Shield Color) رنگ چنندہ (کراپ شیلڈ کا رنگ) + From Center مرکز سے + Link radii ریڈیائی طور پر مربوط کریں + Star Ratio: ستارہ تناسب: + Create Rectangle مستطیل بنائیں + Create Ellipse بیضوی بنائیں + Create Triangle تکون بنائیں + Create Polygon پولیگون بنائیں + Pressure curve دباؤ کا وکر + Click to add a point, right-click to remove نقطہ شامل کرنے کے لیے کلک کریں، ہٹانے کے لیے دایاں کلک کریں + Some brush presets could not be loaded کچھ برش پری سیٹس لوڈ نہیں ہو سکے + Retry saving presets پری سیٹس محفوظ کرنے کی دوبارہ کوشش کریں + Brush preset changes are not saved: {error} برش پری سیٹ کی تبدیلیاں محفوظ نہیں ہوئیں: {error} + Keep this tab open to retain your brushes. اپنے برشز برقرار رکھنے کے لیے یہ ٹیب کھلا رکھیں۔ + Browser storage is unavailable; brushes are session-only. Keep this tab open to retain them. براؤزر اسٹوریج دستیاب نہیں؛ برشز صرف سیشن کے لیے ہیں۔ انہیں برقرار رکھنے کے لیے یہ ٹیب کھلا رکھیں۔ + Saving brush presets… Keep this tab open until saving finishes. برش پری سیٹس محفوظ ہو رہے ہیں… محفوظ ہونے تک یہ ٹیب کھلا رکھیں۔ + Reflect عکس + Glow چمک + Negation نیگیشن + XOR XOR + Color Burn (Paint.NET) کلر برن (Paint.NET) + Color Dodge (Paint.NET) کلر ڈاج (Paint.NET) + Stroke Options لکیر کے اختیارات + Solid ٹھوس + Dashed دھرائی ہوئی + Dotted نقطہ دار + Alignment ترتیب + Caps سرے + Butt / Flat بٹ / فلیٹ + Corners کونے + Miter مائٹر + Round گول + Bevel بیول + Miter limit مائٹر کی حد + Dashed line دھرائی ہوئی لائن + Dash ڈیش + Gap خلا + Dash / gap lengths × stroke width ڈیش / خلا کی لمبائی × لکیر کی چوڑائی + Add pair جوڑا شامل کریں + Remove pair جوڑا ہٹائیں + Dash offset ڈیش آفسیٹ + Open paths use centered strokes کھلے پاتھ درمیان میں لکیر استعمال کرتے ہیں + Use finite lengths and a positive pattern total محدود لمبائیاں اور مثبت پیٹرن کل استعمال کریں + No subject found — try Object Selection or the Lasso کوئی موضوع نہیں ملا — آبجیکٹ سلیکشن یا لیسو آزمائیں + Quick Selection found nothing there کوئیک سلیکشن کو وہاں کچھ نہیں ملا + Object Selection found nothing there — try a tighter rectangle آبجیکٹ سلیکشن کو وہاں کچھ نہیں ملا — تنگ مستطیل آزمائیں + No subject found — try a rectangle around the object کوئی موضوع نہیں ملا — شے کے گرد ایک مستطیل آزمائیں + Click the first point or press {key} to close · {del} removes a point · Esc cancels پہلے نقطے پر کلک کریں یا بند کرنے کے لیے {key} دبائیں · {del} نقطہ ہٹاتا ہے · Esc منسوخ کرتا ہے + Click, then move along an edge · click to fasten a point · {alt}-click for a straight segment · double-click to close کلک کریں، پھر کنارے کے ساتھ منتقل ہوں · نقطہ مقرر کرنے کے لیے کلک کریں · سیدھے حصے کے لیے {alt}-کلک · بند کرنے کے لیے ڈبل کلک کریں + Follows only edges this close to the pointer ([ and ] change it) صرف پوائنٹر کے اتنے قریب کناروں کی پیروی کرتا ہے ([ اور ] اسے تبدیل کرتے ہیں) + Higher values follow only edges that contrast sharply with their surroundings زیادہ قدریں صرف وہ کنارے فولو کرتی ہیں جو اپنے گردونواح سے شدید تضاد رکھتے ہیں + How often fastening points are placed by themselves کتنی بار مقررہ نقطے خود بخود رکھے جاتے ہیں + Appearance Settings… ظاہری شکل کی ترتیبات… + Add to favorites پسندیدہ میں شامل کریں + Remove from favorites پسندیدہ سے ہٹائیں + Camera Data کیمرہ ڈیٹا +cameraData Make میک +cameraData Model ماڈل +cameraData Date Taken تصویر لینے کی تاریخ +cameraData Exposure نمائش +cameraData F-Stop F-اسٹاپ +cameraData ISO Speed ISO اسپیڈ +cameraData Focal Length فوکل لمبائی +cameraData Focal Length (35 mm) فوکل لمبائی (35 ملی میٹر) +cameraData Lens لینز + Activate Panel پینل فعال کریں + Change Panel Group پینل گروپ تبدیل کریں + Change Panel Layout پینل لے آؤٹ تبدیل کریں + Close Panel پینل بند کریں + Dock Panel پینل ڈاک کریں + Float Panel پینل فلوٹ کریں + Move Panel پینل منتقل کریں + Group with اس کے ساتھ گروپ کریں + Panel menu پینل مینیو + Resize panel window پینل ونڈو کا حجم بدلیں + Resize panels پینلز کا حجم بدلیں + Distribution تقسیم + Uniform یکساں + Gaussian گاؤسی + Monochromatic مونوکرومیٹک + Seed سیڈ + Strength طاقت + Reduce Color Noise رنگ کا شور کم کریں + Remove Jpeg Artifact Jpeg آرٹیفیکٹ ہٹائیں + Sharpen Details تفصیلات تیز کریں + Reduce Noise شور کم کریں + Use Classic Mode کلاسک موڈ استعمال کریں + Auto Center Preview خودکار مرکز پیش منظر + Next Document اگلی دستاویز + Previous Document پچھلی دستاویز + W x H x Resolution چوڑائی x اونچائی x ریزولوشن + Front Image سامنے کی تصویر + Frame Tool فریم ٹول + Create a new rectangular frame نیا مستطیل فریم بنائیں + Create a new elliptical frame نیا بیضوی فریم بنائیں + Include in playback پلے بیک میں شامل کریں + Perspective Crop Tool تناظری کراپ ٹول + Show Grid گرڈ دکھائیں + Drag a box or click four corners · drag the corners onto the edges of a skewed shape · {commit} commits · Esc cancels ایک باکس گھسیٹیں یا چار کونوں پر کلک کریں · کونوں کو ترچھی شکل کے کناروں پر گھسیٹیں · {commit} نافذ کرتا ہے · Esc منسوخ کرتا ہے + Artboard Tool آرٹ بورڈ ٹول + Make Portrait عمودی بنائیں + Make Landscape افقی بنائیں + Add New Artboard نیا آرٹ بورڈ شامل کریں + Freeform Pen Tool فری فارم پین ٹول + Curvature Pen Tool کرویچر پین ٹول + Curve Fit: وکر فٹ: + Drag: draw freehand · {alt}-click: straight segment · Release on the start point: close گھسیٹیں: آزادانہ ڈرائنگ کریں · {alt}-کلک: سیدھا حصہ · ابتدائی نقطے پر چھوڑیں: بند کریں + Click: smooth point · Double-click: corner · Drag a point: move · Click first point: close · {key} finish کلک: ہموار نقطہ · ڈبل کلک: کونا · نقطہ گھسیٹیں: منتقل کریں · پہلے نقطے پر کلک: بند کریں · {key} مکمل + New Crop Preset… نیا کراپ پری سیٹ… + Delete Crop Preset… کراپ پری سیٹ حذف کریں… + Select the crop presets to delete: حذف کرنے کے لیے کراپ پری سیٹس منتخب کریں: + Select the crop presets to delete حذف کرنے کے لیے کراپ پری سیٹس منتخب کریں + Enter a name for the crop preset کراپ پری سیٹ کے لیے ایک نام درج کریں + There is no crop size or ratio to save محفوظ کرنے کے لیے کوئی کراپ حجم یا تناسب نہیں + Scale: پیمانہ: + Snap to Origin اصل مقام پر اسنیپ کریں + Search settings… ترتیبات تلاش کریں… + No matching settings کوئی مماثل ترتیبات نہیں + Sampling Brush Tool سیمپلنگ برش ٹول + Sampling Area Overlay سیمپلنگ ایریا اوورلے + Show Sampling Area سیمپلنگ ایریا دکھائیں + Indicates ظاہر کرتا ہے + Sampling Area سیمپلنگ ایریا + Excluded Area خارج شدہ ایریا + Sampling Area Options سیمپلنگ ایریا کے اختیارات + Rectangular مستطیل + Fill Settings بھرائی کی ترتیبات + Rotation Adaptation گردش موافقت + Very High بہت زیادہ + Full مکمل + Mirror آئینہ + Output Settings آؤٹ پٹ ترتیبات + Output To آؤٹ پٹ تا + Animation Options اینیمیشن کے اختیارات + Entire Document مکمل دستاویز + Filter Options فلٹر کے اختیارات + Layer Bounds تہہ کی حدود + Layers Panel Options تہہ پینل کے اختیارات + Lock Layers تہیں مقفل کریں + New Artboard… نیا آرٹ بورڈ… + New Group… نیا گروپ… + New Layer… نئی تہہ… + Panel Options… پینل کے اختیارات… + Prevent Auto-Nesting خودکار نیسٹنگ روکیں + Show Layers تہیں دکھائیں + Thumbnail Contents تھمب نیل کا مواد + Thumbnail Size تھمب نیل کا حجم + Use Default Masks on Fill Layers بھرائی تہوں پر ڈیفالٹ ماسک استعمال کریں + Expand New Effects نئے اثرات پھیلائیں + Add “copy” to Copied Layers and Groups کاپی شدہ تہوں اور گروپس میں "کاپی" شامل کریں + Preview on canvas when reordering layers تہیں دوبارہ ترتیب دیتے وقت کینوس پر پیش منظر دکھائیں + Show layer mask badges تہہ ماسک بیجز دکھائیں + Blending Options ({filter}) امتزاج کے اختیارات ({filter}) + Hide the layer's effects and Smart Filters ({key}-click: all layers) تہہ کے اثرات اور سمارٹ فلٹرز چھپائیں ({key}-کلک: تمام تہیں) + Show the layer's effects and Smart Filters ({key}-click: all layers) تہہ کے اثرات اور سمارٹ فلٹرز دکھائیں ({key}-کلک: تمام تہیں) + Wait for the current job to finish. موجودہ کام مکمل ہونے کا انتظار کریں۔ + The document or Smart Filter changed. Reopen its dialog. دستاویز یا سمارٹ فلٹر تبدیل ہو گیا۔ اس کا ڈائیلاگ دوبارہ کھولیں۔ + Opacity must be between 0% and 100%. دھندلاپن 0% اور 100% کے درمیان ہونا چاہیے۔ + Dissolve is approximated: it blends without Photoshop's dither. تحلیل کا تخمینہ لگایا گیا ہے: یہ فوٹوشاپ کے ڈیدر کے بغیر ملاتا ہے۔ + Loading fonts… فونٹس لوڈ ہو رہے ہیں… + Response curve ردعمل کا وکر + Tool ٹول + Simulate Pressure دباؤ کی تقلید کریں + Stroke Path… پاتھ پر لکیر بنائیں… + Background Eraser بیک گراؤنڈ اریزر + Healing Brush ہیلنگ برش + Spot Healing Brush اسپاٹ ہیلنگ برش + Smudge اسمج + Sponge اسپنج + Amount: مقدار: + Protect: محفوظ رکھیں: + Protect skin tones جلد کے رنگ محفوظ رکھیں + Edit points to modify the curve وکر تبدیل کرنے کے لیے نقطوں میں ترمیم کریں + Draw to modify the curve وکر تبدیل کرنے کے لیے ڈرائنگ کریں +curves Smooth ہموار + Smooth the curve values وکر کی قدریں ہموار کریں + Drag to draw the curve · {key}-click draws a straight line وکر کھینچنے کے لیے گھسیٹیں · {key}-کلک سیدھی لائن کھینچتا ہے + Edit Plane سطح میں ترمیم کریں + Create Plane سطح بنائیں + Grid Size: گرڈ حجم: + Vanishing Point: click four corners to create a plane وینشنگ پوائنٹ: سطح بنانے کے لیے چار کونوں پر کلک کریں + Vanishing Point is not active وینشنگ پوائنٹ فعال نہیں ہے + Apply Vanishing Point ({key}) وینشنگ پوائنٹ لاگو کریں ({key}) + Fix the red plane first: its corners must form a convex quad پہلے سرخ سطح ٹھیک کریں: اس کے کونے ایک محدب چوکور بنانا ضروری ہیں + Alt-click a plane to set the clone source کلون ماخذ مقرر کرنے کے لیے کسی سطح پر Alt-کلک کریں + Too many clone strokes: apply Vanishing Point first بہت زیادہ کلون اسٹروکس: پہلے وینشنگ پوائنٹ لاگو کریں + Onion Skin آنین اسکن + Marching Ants مارچنگ اینٹس + On Black سیاہ پر + On White سفید پر + On Layers تہوں پر + Show Edge کنارہ دکھائیں + Show Original اصل دکھائیں + F cycles the views; hold X to see the image F منظر تبدیل کرتا ہے؛ تصویر دیکھنے کے لیے X دبائے رکھیں + Refine Edge Brush (R) کنارہ بہتر کرنے والا برش (R) + Expand Detection Area تشخیص کا حصہ بڑھائیں + Restore Original Edge اصل کنارہ بحال کریں + Paint over hair or fur on the image; Alt paints the other mode تصویر میں بال یا رواں پر پینٹ کریں؛ Alt دوسرا موڈ پینٹ کرتا ہے + Clear Brush Strokes برش اسٹروکس صاف کریں + Show rulers رولرز دکھائیں + Presentation پریزنٹیشن + Click to place · Alt-click or drag off-canvas to remove رکھنے کے لیے کلک کریں · ہٹانے کے لیے Alt-کلک یا کینوس سے باہر گھسیٹیں + No document open کوئی دستاویز کھلی نہیں + {n} of {max} sample points {max} میں سے {n} نمونہ نقطے + New Snapshot… نیا اسنیپ شاٹ… + History Options… تاریخ کے اختیارات… + Allow Non-Linear History غیر لکیری تاریخ کی اجازت دیں + Make Layer Visibility Changes Undoable تہہ کی نمائش کی تبدیلیوں کو کالعدم کے قابل بنائیں + Emulsion Down ایملشن نیچے + Functions فنکشنز + Print Resolution: پرنٹ ریزولوشن: + Use Previous Layer to Create Clipping Mask کلپنگ ماسک بنانے کے لیے پچھلی تہہ استعمال کریں + Fill with {mode}-neutral color (white) {mode}-نیوٹرل رنگ (سفید) سے بھریں + Fill with {mode}-neutral color (black) {mode}-نیوٹرل رنگ (سیاہ) سے بھریں + Fill with {mode}-neutral color (50% gray) {mode}-نیوٹرل رنگ (50% سرمئی) سے بھریں + (No neutral color exists for {mode} mode.) ({mode} موڈ کے لیے کوئی نیوٹرل رنگ موجود نہیں۔) + Apply mask to layer before removing? ہٹانے سے پہلے ماسک تہہ پر لاگو کریں؟ + The layer or its mask changed. Drag the mask onto the Trash again. تہہ یا اس کا ماسک تبدیل ہو گیا۔ ماسک کو دوبارہ ٹریش پر گھسیٹیں۔ + Delete the vector mask? ویکٹر ماسک حذف کریں؟ +@plural Exported {n} swatch to {file}|Exported {n} swatches to {file} {file} میں {n} نمونہ برآمد ہوا|{file} میں {n} نمونے برآمد ہوئے +@plural Imported {n} brush from {group}|Imported {n} brushes from {group} {group} سے {n} برش درآمد ہوا|{group} سے {n} برشز درآمد ہوئے +@plural Imported {n} swatch from {file}|Imported {n} swatches from {file} {file} سے {n} نمونہ درآمد ہوا|{file} سے {n} نمونے درآمد ہوئے +@plural Played {n} step|Played {n} steps {n} قدم چلایا گیا|{n} قدم چلائے گئے +@plural Updated {n} linked smart object changed on disk|Updated {n} linked smart objects changed on disk ڈسک پر تبدیل شدہ {n} لنک شدہ سمارٹ آبجیکٹ اپ ڈیٹ ہوا|ڈسک پر تبدیل شدہ {n} لنک شدہ سمارٹ آبجیکٹس اپ ڈیٹ ہوئے +@plural Saved for Web: {n} file|Saved for Web: {n} files ویب کے لیے محفوظ: {n} فائل|ویب کے لیے محفوظ: {n} فائلیں +@plural {n} layer recorded by this comp was deleted. Update the comp, or clear the warning.|{n} layers recorded by this comp were deleted. Update the comp, or clear the warning. اس کمپوزیشن سے ریکارڈ شدہ {n} تہہ حذف ہو گئی۔ کمپوزیشن اپ ڈیٹ کریں، یا تنبیہ صاف کریں۔|اس کمپوزیشن سے ریکارڈ شدہ {n} تہیں حذف ہو گئیں۔ کمپوزیشن اپ ڈیٹ کریں، یا تنبیہ صاف کریں۔ +@plural {n} plane|{n} planes {n} سطح|{n} سطحیں +@plural {n} preset|{n} presets {n} پری سیٹ|{n} پری سیٹس +@plural {n} sample point removed|{n} sample points removed {n} نمونہ نقطہ ہٹایا گیا|{n} نمونہ نقطے ہٹائے گئے +@plural {n} slice|{n} slices {n} سلائس|{n} سلائسز +@plural {n} step|{n} steps {n} قدم|{n} قدم +@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} مزید برش پری سیٹ تنبیہ)|{warning} (+{n} مزید برش پری سیٹ تنبیہات) +@plural {what} with {n} warning|{what} with {n} warnings {what} میں {n} تنبیہ|{what} میں {n} تنبیہات + Light Blue ہلکا نیلا + Light Red ہلکا سرخ + Medium Blue درمیانہ نیلا + Light Gray ہلکا سرمئی + Object Finder آبجیکٹ فائنڈر + No object found there — drag a rectangle around it وہاں کوئی شے نہیں ملی — اس کے گرد ایک مستطیل گھسیٹیں + The active layer has no pixels here — turn on Sample All Layers or select a layer with pixels فعال تہہ میں یہاں کوئی پکسل نہیں — تمام تہیں نمونہ لیں فعال کریں یا پکسلز والی تہہ منتخب کریں + Remove after each stroke ہر اسٹروک کے بعد ہٹائیں + Apply the removal ({key}) ہٹانا لاگو کریں ({key}) + Strokes to remove: {n} (Enter applies, Esc cancels) ہٹانے کے لیے اسٹروکس: {n} (Enter لاگو کرتا ہے، Esc منسوخ کرتا ہے) + Load Contours… کونٹورز لوڈ کریں… + Replace Contours… کونٹورز تبدیل کریں… + Save Contours… کونٹورز محفوظ کریں… + Delete Contour کونٹور حذف کریں + Loaded contours from {file} {file} سے کونٹورز لوڈ ہو گئے + Saved contours to {file} کونٹورز {file} میں محفوظ ہو گئے +@id select.all سب منتخب کریں + Delete Smart Filters سمارٹ فلٹرز حذف کریں + Enable Smart Filters سمارٹ فلٹرز فعال کریں + Delete Layer… تہہ حذف کریں… + Select Similar Colors ملتے جلتے رنگ منتخب کریں + Canvas rotation کینوس کی گردش + Extensions ایکسٹینشنز + Libraries لائبریریاں + 3D 3D + Toolbars ٹول بارز + Wand وانڈ + Healing ہیلنگ + Pen پین + Hand ہینڈ + Sampler سیمپلر + Magnetic Lasso میگنیٹک لیسو + Art History Brush آرٹ ہسٹری برش + Spot Healing اسپاٹ ہیلنگ + Patch پیچ + Content-Aware Move مواد سے آگاہ موو + Perspective Crop تناظری کراپ + Dodge/Burn ڈاج/برن + Dynamics حرکیات + Tilt جھکاؤ + Defaults restored. ڈیفالٹس بحال ہو گئیں۔ + Stop روکیں + Create new set نیا سیٹ بنائیں + Technology Previews ٹیکنالوجی پیش منظر + Create new layer نئی تہہ بنائیں + Group · {n} layer گروپ · {n} تہہ + General Blend عمومی امتزاج + Advanced Blending ایڈوانسڈ امتزاج + RGB RGB + Spot Channel اسپاٹ چینل + Working Gray Plate ورکنگ گرے پلیٹ + HSL/Grayscale HSL/گرے اسکیل + Tone Curve ٹون وکر + Split Toning اسپلٹ ٹوننگ + Lens Corrections لینز تصحیحات + Camera Calibration کیمرہ کیلیبریشن + Snapshots اسنیپ شاٹس + Recovery بحالی + Fill Light فل لائٹ + Convert to Grayscale گرے اسکیل میں تبدیل کریں + Sharpness شارپنیس + Color Noise Reduction رنگ شور میں کمی + Luminance Smoothness چمک کی ہمواری + Lens لینز + ISO ISO + Focal Length35mm فوکل لمبائی 35mm + Aspect Ratio تناسب + Time وقت + Enter description… وضاحت درج کریں… + ColorSync ColorSync + ProPhoto ProPhoto + ACES ACES + Industry Standard صنعتی معیار + Uncoated CMYK ان کوٹڈ CMYK + Newspaper نیوز پیپر + Working Spaces ورکنگ اسپیسز + Color Management Policies رنگ انتظام کی پالیسیاں + Detect Faces چہرے تلاش کریں + Localize Color Clusters رنگ کے جھرمٹ مقامی کریں + Duplicated selection name نقل شدہ انتخاب کا نام + Operation عمل + New channel only صرف نیا چینل + Color indicates رنگ ظاہر کرتا ہے + Create Snapshot اسنیپ شاٹ بنائیں + Delete Snapshot اسنیپ شاٹ حذف کریں + New Snapshot نیا اسنیپ شاٹ + Snapshot 1 اسنیپ شاٹ 1 + Step Forward آگے قدم + Step Backward پیچھے قدم + Nonlinear History غیر لکیری تاریخ + Set New Snapshot as Default نیا اسنیپ شاٹ ڈیفالٹ کے طور پر مقرر کریں + Automatically Create First Snapshot خودکار طور پر پہلا اسنیپ شاٹ بنائیں + Automatically Create New Snapshot When Saving محفوظ کرتے وقت خودکار طور پر نیا اسنیپ شاٹ بنائیں + Show New Snapshot Dialog by Default ڈیفالٹ کے طور پر نیا اسنیپ شاٹ ڈائیلاگ دکھائیں + Clear History تاریخ صاف کریں + View menu منظر مینیو + Keep view in sync منظر ہم آہنگ رکھیں + {zoom}% {zoom}% + Mouse Controls ماؤس کنٹرولز + Initial Direction of Stroke اسٹروک کی ابتدائی سمت + Direction of Stroke اسٹروک کی سمت + Humidity نمی + Auto Clean Brush برش خودکار صاف کریں + Spacing: وقفہ: + New Layer from Brush برش سے نئی تہہ + New Brush نیا برش + New Tool Preset نیا ٹول پری سیٹ + Auto-Leading خودکار لیڈنگ + Scale Horizontally افقی طور پر پیمانہ کریں + Scale Vertically عمودی طور پر پیمانہ کریں + Mac LCD Mac LCD + Mac Sharp Mac تیز + Mac Crisp Mac صاف + Mac Strong Mac مضبوط + Mac Smooth Mac ملائم + Superscript بالائی اسکرپٹ + Subscript زیریں اسکرپٹ + Ligature لگیچر + Alternative متبادل + Ultra Light الٹرا لائٹ + Extra Light ایکسٹرا لائٹ + Semi Bold سیمی بولڈ + Extra Bold ایکسٹرا بولڈ + Ultra Bold الٹرا بولڈ + Condensed کنڈینسڈ + First Line Indent پہلی لائن حاشیہ + Hanging Punctuation ہینگنگ رموز اوقاف + Roman Hanging Punctuation رومن ہینگنگ رموز اوقاف + Avoid Widows/Orphans ودوز/اورفنز سے گریز کریں + Compose کمپوز کریں + Adobe Single-line Composer Adobe سنگل لائن کمپوزر + Adobe Every-line Composer Adobe ایوری لائن کمپوزر + Word Spacing لفظ کا وقفہ + Letter Spacing حرف کا وقفہ + Glyph Scaling گلف اسکیلنگ + Auto-leading % خودکار لیڈنگ % + Single Word Justification سنگل لفظ جسٹیفیکیشن + Justify جسٹیفائی + Glyph گلف + Alternates for Current Selection موجودہ انتخاب کے متبادل + Digits ہندسے + Path: پاتھ: + Path to Illustrator… پاتھ الیسٹریٹر کو… + Clipping Path کلپنگ پاتھ + New Path نیا پاتھ + Duplicate Path پاتھ کی نقل بنائیں + Rename Path… پاتھ کا نام تبدیل کریں… + Auto-Hide خودکار چھپائیں + X X + Y Y + Frame Sync فریم سنک + Quick Sync فوری سنک + Audio آڈیو + Frame Duration فریم کا دورانیہ + Loop لوپ + Split at Playhead پلے ہیڈ پر تقسیم کریں + Flatten Frames Into Clips فریمز کو کلپس میں چپٹا کریں + Flatten Frames Into Layers فریمز کو تہوں میں چپٹا کریں + Convert Frames > Video Layers فریمز > ویڈیو تہوں میں تبدیل کریں + New Video Layer نئی ویڈیو تہہ + New Video Group نیا ویڈیو گروپ + Limit Playback پلے بیک محدود کریں + Enable Timeline Quick Config ٹائم لائن فوری ترتیب فعال کریں + Set Start Timecode… آغاز ٹائم کوڈ مقرر کریں… + Timecode ٹائم کوڈ + 30 fps 30 fps + 25 fps 25 fps + 24 fps 24 fps + 15 fps 15 fps + 10 fps 10 fps + Current Time موجودہ وقت + Out باہر + In اندر + Duration دورانیہ + Repeat دہرائیں + Play Once ایک بار چلائیں + Info Options… معلومات کے اختیارات… + First Color Readout پہلا رنگ ریڈ آؤٹ + Second Color Readout دوسرا رنگ ریڈ آؤٹ + Actual Color حقیقی رنگ + Grayscale Slider گرے اسکیل سلائیڈر + Web Color ویب رنگ + HSB Color HSB رنگ + Total Ink کل سیاہی + Opacity Mask دھندلاپن ماسک + Document Size دستاویز کا حجم + Timing وقت بندی + Status Information حالت کی معلومات + Saved Multichannel محفوظ شدہ ملٹی چینل + Mouse Coordinates ماؤس کوآرڈینیٹس + Ruler Units رولر اکائیاں + Hide چھپائیں + Restore last viewed comp آخری دیکھی گئی کمپوزیشن بحال کریں + Select All Layers تمام تہیں منتخب کریں + Keep proportions تناسب برقرار رکھیں + Interpolation انٹرپولیشن + Caption کیپشن + Caption Credits کیپشن کریڈٹس + Keywords کلیدی الفاظ + Copyright Info URL کاپی رائٹ معلومات URL + Copyright Status کاپی رائٹ کی حالت + Copyright Notice کاپی رائٹ نوٹس + Document Title دستاویز کا عنوان + Copyrighted کاپی رائٹ شدہ + Public Domain عوامی ڈومین + Unknown نامعلوم + Credit کریڈٹ + Transmission Reference ٹرانسمیشن حوالہ + Urgency عجلت + High زیادہ + Low کم + Category زمرہ + Supplemental Categories ضمنی زمرے + Object Name / Title شے کا نام / عنوان + Date Created تاریخ تخلیق + City شہر + Province / State صوبہ / ریاست + Country ملک + Byline بائی لائن + Byline Title بائی لائن کا عنوان + Phone فون + Email ای میل + URLs URLs + Last Modified آخری ترمیم + EXIF EXIF + GPS GPS + Camera Model کیمرہ ماڈل + Camera Make کیمرہ میک + EXIF Version EXIF ورژن + Exposure Program نمائش پروگرام + Aperture اپرچر + Shutter Speed شٹر اسپیڈ + Metering Mode میٹرنگ موڈ + Light Source روشنی کا ماخذ + Flash فلیش + Lens Info لینز کی معلومات + ISO Speed ISO اسپیڈ + Subject Distance موضوع کا فاصلہ + DateTime Original اصل تاریخ وقت + Create Date تاریخ تخلیق + Modify Date تاریخ ترمیم + Raw Data را ڈیٹا + Import… درآمد کریں… + PDF Presentation… PDF پریزنٹیشن… + Create Multiple Picture Packages متعدد پکچر پیکجز بنائیں + Picture Package… پکچر پیکج… + Web Photo Gallery… ویب فوٹو گیلری… + Choose… چنیں… + Select Folder… فولڈر منتخب کریں… + Override Action "Save" Commands ایکشن "محفوظ کریں" کمانڈز اووررائیڈ کریں + File Naming فائل کا نام + Compatibility مطابقت + Mac OS Mac OS + Unix Unix + Include ICC Profile ICC پروفائل شامل کریں + Error File خرابی کی فائل + Stop For Errors خرابیوں پر روکیں + Log Errors To File خرابیاں فائل میں لاگ کریں + Errors خرابیاں + Settings ترتیبات + Settings: ترتیبات: + Working Space ورکنگ اسپیس + RGB: RGB: + CMYK: CMYK: + Gray: گرے: + Spot: اسپاٹ: + Advanced Controls ایڈوانسڈ کنٹرولز + Desaturate Monitor Colors By مانیٹر رنگوں کو بے رنگ کریں بذریعہ + Blend RGB Colors Using Gamma 1.0 گاما 1.0 استعمال کرتے ہوئے RGB رنگ ملائیں + Profile Mismatches: Ask When Opening پروفائل عدم مطابقت: کھولتے وقت پوچھیں + Ask When Pasting چسپاں کرتے وقت پوچھیں + Missing Profiles: Ask When Opening غائب پروفائلز: کھولتے وقت پوچھیں + Embed profiles پروفائلز ایمبیڈ کریں + Ask Before Saving Saved Embedded ایمبیڈڈ محفوظ کرنے سے پہلے پوچھیں + Coerce to sRGB sRGB میں تبدیل کریں + sRGB IEC61966-2.1 sRGB IEC61966-2.1 + Adobe RGB (1998) Adobe RGB (1998) + ProPhoto RGB ProPhoto RGB + ColorMatch RGB ColorMatch RGB + Wide Gamut RGB Wide Gamut RGB + Apple RGB Apple RGB + NTSC (1953) NTSC (1953) + PAL/SECAM PAL/SECAM + SMPTE C SMPTE C + HDTV (Rec. 709) HDTV (Rec. 709) + CIE RGB CIE RGB + Minimalistic مینیملسٹک + Expand All Groups تمام گروپس پھیلائیں + Photo (2 × 3 in) فوٹو (2 × 3 انچ) + Photo (4 × 6 in) فوٹو (4 × 6 انچ) + Photo (5 × 7 in) فوٹو (5 × 7 انچ) + Photo (8 × 10 in) فوٹو (8 × 10 انچ) + Recent Items حالیہ اشیاء + Delete Preset… پری سیٹ حذف کریں… + Preset Name: پری سیٹ کا نام: + Width and Height چوڑائی اور اونچائی + Color Profile رنگ پروفائل + Units اکائیاں + Create new count group نیا شمار گروپ بنائیں + Adjustment Layer ایڈجسٹمنٹ تہہ + Drag to move the layer تہہ منتقل کرنے کے لیے گھسیٹیں + Go to Layer تہہ پر جائیں + After (X) بعد میں (X) + Reference point location حوالہ نقطے کا مقام + Toggle reference point حوالہ نقطہ تبدیل کریں + Add Pins پنز شامل کریں + Delete Pins پنز حذف کریں + Rotate Auto خودکار گھمائیں + Rotate Fixed مقررہ گھمائیں + Select Plane سطح منتخب کریں + Measure پیمائش کریں + Heal ہیل کریں + Heal Off ہیل بند + Heal On ہیل آن + Heal Auto ہیل خودکار + Blend امتزاج + Brush Size برش کا حجم + Heal Color ہیل رنگ + Result نتیجہ + Duplicate نقل بنائیں + Fast تیز + Accurate درست + Add to میں شامل کریں + Subtract from سے منہا کریں + Intersect with کے ساتھ جوڑیں + Capture Comp کمپوزیشن قبضہ کریں + No Layer Comps کوئی تہہ کمپوزیشن نہیں + Adobe PDF Presets… Adobe PDF پری سیٹس… + 3D… 3D… + Technology Previews… ٹیکنالوجی پیش منظر… + Add a mask (from the selection; ⌥ inverts) ماسک شامل کریں (انتخاب سے؛ ⌥ الٹ دیتا ہے) + Add to selection (⇧) انتخاب میں شامل کریں (⇧) + Airbrush: keeps painting while the pointer rests. ایئر برش: پوائنٹر رکنے کے دوران پینٹنگ جاری رکھتا ہے۔ + Click the first point or press ↵ to close · Esc cancels پہلے نقطے پر کلک کریں یا بند کرنے کے لیے ↵ دبائیں · Esc منسوخ کرتا ہے + Click to add a point · drag off or ⌘/Ctrl-click or Delete to remove نقطہ شامل کرنے کے لیے کلک کریں · ہٹانے کے لیے باہر گھسیٹیں یا ⌘/Ctrl-کلک یا Delete + Click to apply, ⌥-click to clear overrides, double-click for Style Options لاگو کرنے کے لیے کلک کریں، اووررائیڈز صاف کرنے کے لیے ⌥-کلک، اسٹائل اختیارات کے لیے ڈبل کلک + Click to zoom in · ⌥-click to zoom out بڑا کرنے کے لیے کلک کریں · چھوٹا کرنے کے لیے ⌥-کلک + Click: corner · Drag: smooth · Click first point: close · ↩ finish · Esc cancel کلک: کونا · گھسیٹنا: ہموار · پہلے نقطے پر کلک: بند کریں · ↩ مکمل · Esc منسوخ + Commit Perspective Warp (↩) تناظری وارپ نافذ کریں (↩) + Commit Puppet Warp (↩) پپٹ وارپ نافذ کریں (↩) + Commit any current edits (⌘↩) کوئی بھی موجودہ ترمیم نافذ کریں (⌘↩) + Commit current crop operation (↵) موجودہ تراش کا عمل نافذ کریں (↵) + Commit transform (↩) ہیئت تبدیلی نافذ کریں (↩) + Commit warp (↩) موڑ نافذ کریں (↩) + Create a new layer (⇧⌘N) نئی تہہ بنائیں (⇧⌘N) + Custom pattern مخصوص نمونہ + General Brushes عمومی برشز + Grid (⌘') گرڈ (⌘') + Intersect with selection (⇧⌥) انتخاب کے ساتھ جوڑیں (⇧⌥) + New document… ⌘N نئی دستاویز… ⌘N + Open… ⌘O کھولیں… ⌘O + Rulers (⌘R) رولرز (⌘R) + Search commands (⌘K) کمانڈز تلاش کریں (⌘K) + Show Guides (⌘;) رہنما لکیریں دکھائیں (⌘;) + Subtract from selection (⌥) انتخاب سے منہا کریں (⌥) + Uses the foreground and background colors. پیش منظر اور پس منظر رنگ استعمال کرتا ہے۔ + ↑↓ navigate ↵ run esc close ↑↓ نیویگیٹ کریں ↵ چلائیں esc بند کریں + Adds grain to the soft edges of the brush tip. برش ٹپ کے نرم کناروں پر دانا شامل کرتا ہے۔ + Keeps the current texture when switching presets. پری سیٹس تبدیل کرتے وقت موجودہ ساخت برقرار رکھتا ہے۔ + Watercolour look: lighter interior, darker rims. واٹر کلر شکل: ہلکا اندرونی حصہ، گہرے کنارے۔ + Collapse group (⌥-click: all groups) گروپ سمیٹیں (⌥-کلک: تمام گروپس) + Expand group (⌥-click: all groups) گروپ پھیلائیں (⌥-کلک: تمام گروپس) + Hide the layer's effects (⌥-click: all layers) تہہ کے اثرات چھپائیں (⌥-کلک: تمام تہیں) + Show the layer's effects (⌥-click: all layers) تہہ کے اثرات دکھائیں (⌥-کلک: تمام تہیں) +cameraRaw Blacks سیاہیاں +cameraRaw Masking ماسکنگ +@id edit.stroke لکیر… +@id edit.transform.scale پیمانہ +cameraRaw Luminance لومینینس +cameraRaw Color رنگ +cameraRaw Vibrance رونق +cameraRaw Color Grading رنگ گریڈنگ +cameraRaw Global عالمی +cameraRaw Hue رنگت +cameraRaw Luminance Detail لومینینس تفصیل +cameraRaw Color Detail رنگ کی تفصیل +cameraRaw Roughness کھردرا پن +cameraRaw Whites سفیدیاں +layerLabel No Color بلا رنگ + Preferences… ترجیحات… + Actual Pixels اصل پکسلز + Clipping Mask کلپنگ ماسک + Tool Options ٹول کے اختیارات + Color Swatches رنگ کے نمونے + Linear Dodge لکیری ڈاج + Preview Image پیش منظر تصویر + Save As بطور محفوظ کریں + Remove All سب ہٹائیں + Unlock غیر مقفل کریں + Enable فعال کریں + Disable غیر فعال کریں + On آن + Clear Selection انتخاب صاف کریں + Invert Selection انتخاب الٹائیں + Select Inverse انتخاب الٹ منتخب کریں + Contract تنگ کریں + Sample Size نمونہ حجم + Gamma گاما + Input ان پٹ + Input Levels ان پٹ لیولز + Output Levels آؤٹ پٹ لیولز + Layer Styles تہہ اسٹائلز + Blending Mode امتزاج موڈ + Stroke Width لکیر کی چوڑائی + Shadow سایہ + Adjustment Layers ایڈجسٹمنٹ تہیں + Text Layer متن تہہ + Documents دستاویزات + File Name فائل کا نام + File Format فائل فارمیٹ + Compression کمپریشن + Artboards آرٹ بورڈز + Snap to Grid گرڈ پر اسنیپ کریں + Full Screen فل اسکرین + Fullscreen فل اسکرین + Workspaces ورک اسپیسز + Show All سب دکھائیں + Hidden چھپا ہوا + Duplicate Layer تہہ کی نقل بنائیں + Ungroup گروپ ختم کریں + Guide Layout… رہنما خاکہ… + Page Setup… صفحہ سیٹ اپ… + Reset Preferences ترجیحات ری سیٹ کریں + Documentation دستاویزات + Check for Updates اپ ڈیٹس چیک کریں + Loading… لوڈ ہو رہا ہے… + Processing… پروسیسنگ ہو رہی ہے… + Saving… محفوظ ہو رہا ہے… + Exporting… برآمد ہو رہا ہے… + Please wait… براہ کرم انتظار کریں… + No selection کوئی انتخاب نہیں + No layers کوئی تہیں نہیں + No recent files کوئی حالیہ فائلیں نہیں + Unsupported file format غیر سپورٹڈ فائل فارمیٹ + Failed to open file فائل کھولنا ناکام ہوا + Failed to save file فائل محفوظ کرنا ناکام ہوا + Operation canceled عمل منسوخ ہوا + Changes have not been saved. تبدیلیاں محفوظ نہیں ہوئیں۔ + Are you sure? کیا آپ کو یقین ہے؟ + Discard Changes تبدیلیاں ضائع کریں + Open File فائل کھولیں + Save File فائل محفوظ کریں + Save Changes تبدیلیاں محفوظ کریں + Rendering… رینڈر ہو رہا ہے… + Importing… درآمد ہو رہا ہے… + Ready تیار + Failed ناکام + Warning تنبیہ + Information معلومات + Retry دوبارہ کوشش کریں + Continue جاری رکھیں + Skip چھوڑیں + Resume دوبارہ شروع کریں + Reset All سب ری سیٹ کریں + Defaults ڈیفالٹس + Apply to All سب پر لاگو کریں + Confirm تصدیق کریں + Finish مکمل کریں + Back پیچھے + Next اگلا + Previous پچھلا + More مزید + Less کم + Manual دستی + Disabled غیر فعال + Locked مقفل + Unlocked غیر مقفل + Delete… حذف کریں… + Create… بنائیں… + Edit… ترمیم کریں… + Change… تبدیل کریں… + Transformation ہیئت تبدیلی + Scaling پیمانہ کاری + Canvas Size کینوس کا حجم + Percentage فیصد + Degrees درجے + Middle درمیان + Diameter قطر + Intensity شدت + Sensitivity حساسیت + Softness نرمی + Feather Radius فیدر ریڈیس + Library لائبریری + Layer Properties تہہ کی خصوصیات + Groups گروپس + Masks ماسکس + Add Mask ماسک شامل کریں + Delete Mask ماسک حذف کریں + Invert Mask ماسک الٹائیں + Enable Mask ماسک فعال کریں + Disable Mask ماسک غیر فعال کریں + Apply Mask ماسک لاگو کریں + Import Settings ترتیبات درآمد کریں + Export Settings ترتیبات برآمد کریں + Shortcuts شارٹ کٹس + Keyboard کی بورڈ + Mouse ماؤس + Tablet ٹیبلٹ + Display ڈسپلے + Panel پینل + Hide Grid گرڈ چھپائیں + Fit to Window ونڈو پر فٹ کریں + Live Preview لائیو پیش منظر + Before پہلے + After بعد + Compare موازنہ + File Size فائل کا حجم + Filename فائل کا نام + Open Folder فولڈر کھولیں + Choose Folder فولڈر چنیں + Browse براؤز کریں + Find تلاش کریں + Replace تبدیل کریں + Date تاریخ + Learn More مزید جانیں + Report a Bug بگ رپورٹ کریں + Updates اپ ڈیٹس + Update اپ ڈیٹ + Restart Required دوبارہ آغاز درکار ہے + Restart دوبارہ آغاز کریں + Quit چھوڑیں + Quit PhotoCraft PhotoCraft چھوڑیں + Close Window ونڈو بند کریں + New Window نئی ونڈو + Open Image تصویر کھولیں + Save Image تصویر محفوظ کریں + Export Image تصویر برآمد کریں + Import Image تصویر درآمد کریں + Export As بطور برآمد کریں + Export to برآمد کریں تا + Export Options برآمدی اختیارات + Import Options درآمدی اختیارات + No Selection کوئی انتخاب نہیں + No Image کوئی تصویر نہیں + No Layers کوئی تہیں نہیں + No Results کوئی نتائج نہیں + No Results Found کوئی نتائج نہیں ملے + Nothing to Undo کالعدم کرنے کے لیے کچھ نہیں + Nothing to Redo دوبارہ کرنے کے لیے کچھ نہیں + Changes Saved تبدیلیاں محفوظ ہو گئیں + Save before closing? بند کرنے سے پہلے محفوظ کریں؟ + Are you sure you want to quit? کیا آپ واقعی چھوڑنا چاہتے ہیں؟ + The file could not be opened. فائل کھلی نہیں جا سکی۔ + The file could not be saved. فائل محفوظ نہیں ہو سکی۔ + Unsupported format غیر سپورٹڈ فارمیٹ + Out of memory میموری ختم + Permission denied اجازت مسترد + File not found فائل نہیں ملی + Operation failed عمل ناکام ہوا + Operation completed عمل مکمل ہوا + Operation cancelled عمل منسوخ ہوا + Sharpen Amount شارپن کی مقدار + Sharpen Radius شارپن ریڈیس + Sharpen Detail شارپن تفصیل + Sharpen Masking شارپن ماسکنگ + Noise Luminance شور لومینینس + Noise Luminance Detail شور لومینینس تفصیل + Noise Color شور رنگ + Noise Color Detail شور رنگ تفصیل + Grain Amount دانے کی مقدار + Grain Size دانے کا حجم + Grain Roughness دانے کا کھردرا پن + Vignette Roundness ویگنیٹ گولائی + Vignette Feather ویگنیٹ فیدر + Vignette Highlights ویگنیٹ نمایاں حصے + Vignette Style ویگنیٹ اسٹائل + Planes سطحیں + Plane سطح + Shadow Amount سائے کی مقدار + Shadow Tone سائے کا ٹون + Shadow Radius سائے کا ریڈیس + Highlight Amount نمایاں حصے کی مقدار + Highlight Tone نمایاں حصے کا ٹون + Highlight Radius نمایاں حصے کا ریڈیس + Midtone درمیانی ٹون + Black Clip بلیک کلپ + White Clip وائٹ کلپ + Fuzziness مبہم پن + Source Layer ماخذ تہہ + Neutralize بے اثر کریں + Use Selection In Source ماخذ میں انتخاب استعمال کریں + Use Selection In Target ہدف میں انتخاب استعمال کریں + Flame Type شعلے کی قسم + Randomize Length بے ترتیب لمبائی + Interval وقفہ + Adjust Interval For Loops لوپس کے لیے وقفہ ایڈجسٹ کریں + Use Custom Color مخصوص رنگ استعمال کریں + Flame Lines شعلے کی لائنیں + Flame Bottom Alignment شعلے کی نیچے کی ترتیب + Flame Style شعلے کا اسٹائل + Flame Shape شعلے کی شکل + Randomize Shapes شکلیں بے ترتیب کریں + Frame فریم + Arrangement ترتیب + Thickness موٹائی + Vine Color بیل کا رنگ + Flower Color پھول کا رنگ + Leaf Color پتے کا رنگ + Base Tree Type بنیادی درخت کی قسم + Light Direction روشنی کی سمت + Leaves Amount پتوں کی مقدار + Leaves Size پتوں کا حجم + Branches Height شاخوں کی اونچائی + Branches Thickness شاخوں کی موٹائی + Default Leaves ڈیفالٹ پتے + Leaves Color پتوں کا رنگ + Custom Branch Color مخصوص شاخ کا رنگ + Branches Color شاخوں کا رنگ + Flat Shading فلیٹ شیڈنگ + Date and Time تاریخ اور وقت + Scale Units پیمانے کی اکائیاں + Scale Factor پیمانے کا فیکٹر + Area رقبہ + Perimeter فریم کا احاطہ + Circularity دائرہ پن + Gray Value (Minimum) گرے قدر (کم از کم) + Gray Value (Maximum) گرے قدر (زیادہ سے زیادہ) + Gray Value (Mean) گرے قدر (اوسط) + Gray Value (Median) گرے قدر (درمیانی) + Integrated Density مجموعی کثافت + Length لمبائی + In Black اندر سیاہ + In White اندر سفید + Out Black باہر سیاہ + Out White باہر سفید + Tint Color ٹنٹ رنگ + Stops اسٹاپس + Center X مرکز X + Center Y مرکز Y + Cell Size سیل کا حجم + Generators جنریٹرز + Wavelength Min ویو لینتھ کم از کم + Wavelength Max ویو لینتھ زیادہ سے زیادہ + Amplitude Min ایمپلیٹیوڈ کم از کم + Amplitude Max ایمپلیٹیوڈ زیادہ سے زیادہ + Undefined Areas غیر متعین حصے + Preserve محفوظ رکھیں + Max Radius زیادہ سے زیادہ ریڈیس + Depth Mode گہرائی موڈ + Solid Front Faces ٹھوس سامنے کے چہرے + Mask Incomplete Blocks نامکمل بلاکس ماسک کریں + Stylization اسٹائلائزیشن + Cleanliness صفائی + Bristle Detail برسل کی تفصیل + Lighting روشنی + Shine چمک + Max Offset زیادہ سے زیادہ آفسیٹ + Map Document نقشہ دستاویز + Map Path نقشہ پاتھ + Map Layer نقشہ تہہ + Ridges دھاریاں + Light Type روشنی کی قسم + Light X روشنی X + Light Y روشنی Y + Light Z روشنی Z + Target X ہدف X + Target Y ہدف Y + Hotspot ہاٹ اسپاٹ + Elevation بلندی + Ambient ایمبیئنٹ + Warmth گرمائش + Gloss چمک + Metallic میٹالک + Ambience ماحول + White Is High سفید بلند ہے + Blade Curvature بلیڈ کا خم + Depth Map گہرائی کا نقشہ + Focal Distance فوکل فاصلہ + Focus فوکس + Transition منتقلی + Radius X ریڈیس X + Radius Y ریڈیس Y + Pins پنز + Speed رفتار + Taper ٹیپر + Start X آغاز X + Start Y آغاز Y + End X اختتام X + End Y اختتام Y + Kernel کرنل + Input Mode ان پٹ موڈ + Row Order قطار کی ترتیب + Eliminate ختم کریں + Create By اس کے ذریعے بنائیں + List فہرست + Pencil Width پنسل کی چوڑائی + Stroke Pressure اسٹروک کا دباؤ + Paper Brightness کاغذ کی چمک + Number Of Levels سطحوں کی تعداد + Edge Simplicity کنارے کی سادگی + Edge Fidelity کنارے کی وفاداری + Brush Detail برش کی تفصیل + Highlight Area نمایاں حصے کا رقبہ + Glow Size چمک کا حجم + Glow Brightness چمک کی روشنی + Brush Type برش کی قسم + Stroke Size اسٹروک کا حجم + Stroke Detail اسٹروک کی تفصیل + Highlight Strength نمایاں حصے کی طاقت + Smoothness ہمواری + Edge Thickness کنارے کی موٹائی + Edge Intensity کنارے کی شدت + Posterization پوسٹرائزیشن + Stroke Length اسٹروک کی لمبائی + Relief ریلیف + Definition وضاحت + Texture Coverage ساخت کا احاطہ + Shadow Intensity سائے کی شدت + Edge Width کنارے کی چوڑائی + Edge Brightness کنارے کی روشنی + Direction Balance سمت کا توازن + Black Intensity سیاہ کی شدت + White Intensity سفید کی شدت + Dark Intensity تاریک کی شدت + Custom Pixel Aspect Ratio مخصوص پکسل تناسب + 32-bit Preview Options 32-بٹ پیش منظر کے اختیارات + New Guide نئی رہنما لکیر + Join the ArtCraft Discord ArtCraft ڈسکارڈ میں شامل ہوں + Report an Issue مسئلہ رپورٹ کریں + Load Files into Stack اسٹیک میں فائلیں لوڈ کریں + Statistics اعداد و شمار + Duplicate Layers تہیں کی نقل بنائیں + Edit Toolbar ٹول بار میں ترمیم کریں + Import Brushes برشز درآمد کریں + Load 3D LUT 3D LUT لوڈ کریں + Press keys کیز دبائیں + Rename Group گروپ کا نام تبدیل کریں + Rename Tool Preset ٹول پری سیٹ کا نام تبدیل کریں + Search commands, tools and panels کمانڈز، ٹولز اور پینلز تلاش کریں + Slice Options سلائس اختیارات + Rename Brush برش کا نام تبدیل کریں + Opening کھل رہا ہے + Reading پڑھا جا رہا ہے + Working کام جاری ہے + Accented Edges نمایاں کنارے + Angled Strokes ترچھی لکیریں + Anisotropic اینیسوٹروپک + Around Center مرکز کے گرد + Artistic فنکارانہ + Bamboo بانس + Bas Relief باس ریلیف + Berries بیریاں + Blast دھماکہ + Bleach Bypass بلیچ بائی پاس + Blocks بلاکس + Brick اینٹ + Brush Strokes برش کی لکیریں + Burlap برلیپ + Candle Light شمع کی روشنی + Circle دائرہ + Clumped اکٹھا شدہ + Coarse Dots موٹے نقطے + Colored Pencil رنگین پنسل + Contrasty تضاد والا + Cool ٹھنڈا + Craquelure کریکیلر + Cross کراس + Cross Process کراس پراسیس + Crosshatch کراس ہیچ + Cutout کٹ آؤٹ + Daisies ڈیزیز + Dark Rough گہرا کھردرا + Dark Strokes گہری لکیریں + Darken Only صرف گہرا کریں + Day For Night دن کو رات کے طور پر + Deep Blue گہرا نیلا + Deep Emerald گہرا زمردی + Deep Red گہرا سرخ + Deep Yellow گہرا پیلا + Dot نقطہ + Double Line دوہری لائن + Draft ڈرافٹ + Dry Brush خشک برش + Duplication نقل + Edge Extension کنارے کی توسیع + Edge Only صرف کنارہ + Enlarged بڑا کیا گیا + Even Fields یکساں فیلڈز + Faded Film مدھم فلم + Film Grain فلم کا دانا + Fine باریک + Fine Dots باریک نقطے + Flat فلیٹ + Fresco فریسکو + From Left بائیں سے + From Right دائیں سے + Frosted برفیلا + Generic عمومی + Glass شیشہ + Glowing Edges چمکتے کنارے + Grainy Dots دانے دار نقطے + Hearts دل + Heptagon ہیپٹاگون + Hexagon ہیکساگون + Horizontal Only صرف افقی + Infinite لامحدود + Ink Outlines سیاہی کے خاکے + Ivy آیوی + Left Diagonal بائیں ترچھا + Level Based سطح پر مبنی + Light Rough ہلکا کھردرا + Lighten Only صرف ہلکا کریں + Long Lines لمبی لائنیں + Long Strokes لمبی لکیریں + Lower نیچے + Medium Dots درمیانے نقطے + Medium Lines درمیانی لائنیں + Medium Strokes درمیانی لکیریں + Mono Contrast مونو تضاد + Mosaic Tiles موزیک ٹائلز + Multiple Flames Along Path پاتھ کے ساتھ متعدد شعلے + Multiple Flames One Direction ایک سمت میں متعدد شعلے + Multiple Flames Path Directions متعدد شعلے پاتھ سمتیں + Multiple Flames Various Length مختلف لمبائی کے متعدد شعلے + Octagon آکٹاگون + Odd Fields طاق فیلڈز + One Flame Along Path پاتھ کے ساتھ ایک شعلہ + Out From Center مرکز سے باہر + Oval بیضوی + Overlay Edge اوورلے کنارہ + Palette Knife پیلیٹ نائف + Parallel متوازی + Patchwork پیچ ورک + Pentagon پینٹاگون + Point نقطہ + Pointed نوکدار + Pond Ripples تالاب کی لہریں + Pyramids اہرام + Random بے ترتیب + Right Diagonal دائیں ترچھا + Rope رسی + Roses گلاب + Sandstone ریت پتھر + Scallops اسکیلپس + Sepia سیپیا + Short Lines مختصر لائنیں + Short Strokes مختصر لکیریں + Simple سادہ + Light Intensity روشنی کی شدت + Spray Radius اسپرے ریڈیس + Stroke Direction اسٹروک کی سمت + Graininess دانے دار پن + Glow Amount چمک کی مقدار + Clear Amount صفائی کی مقدار + Distortion بگاڑ + Ripple Size لہر کا حجم + Ripple Magnitude لہر کی شدت + Charcoal Area چارکول کا رقبہ + Chalk Area چاک کا رقبہ + Charcoal Thickness چارکول کی موٹائی + Light Dark Balance روشن اور تاریک توازن + Foreground Level پیش منظر کی سطح + Background Level پس منظر کی سطح + Pattern Type پیٹرن کی قسم + Image Balance تصویر کا توازن + Darkness تاریکی + Fiber Length ریشے کی لمبائی + Crack Spacing دراڑ کا وقفہ + Crack Depth دراڑ کی گہرائی + Crack Brightness دراڑ کی روشنی + Grain Type دانے کی قسم + Tile Size ٹائل کا حجم + Grout Width گراؤٹ کی چوڑائی + Lighten Grout گراؤٹ ہلکا کریں + Square Size مربع کا حجم + Border Thickness بارڈر کی موٹائی + Correct Distortion بگاڑ درست کریں + Correct Vignette ویگنیٹ درست کریں + Correct C A C A درست کریں + Auto Scale خودکار پیمانہ + Red Cyan سرخ سیان + Blue Yellow نیلا پیلا + Vignette Amount ویگنیٹ کی مقدار + Vignette Midpoint ویگنیٹ کا درمیانی نقطہ + Constraints پابندیاں + Curve Highlights وکر نمایاں حصے + Curve Lights وکر روشن حصے + Curve Darks وکر تاریک حصے + Curve Shadows وکر سائے + Curve Splits وکر تقسیمات + Point Curve پوائنٹ وکر + Point Curve Red پوائنٹ وکر سرخ + Point Curve Green پوائنٹ وکر سبز + Point Curve Blue پوائنٹ وکر نیلا + Hsl Hue Hsl رنگت + Hsl Sat Hsl اشباع + Hsl Lum Hsl چمک + Grade Shadows گریڈ سائے + Grade Midtones گریڈ درمیانی ٹونز + Grade Highlights گریڈ نمایاں حصے + Grade Global گریڈ عالمی + Grade Blending گریڈ امتزاج + Grade Balance گریڈ توازن + Sine سائن + Sketch خاکہ + Snowflakes برف کے گالے + Sparkle چمک + Spatter چھڑکاؤ + Speckle دھبہ + Spin اسپن + Sprinkles چھڑکاؤ + Squareness مربع پن + Stagger ترتیب وار + Stained Glass رنگین شیشہ + Star ستارہ + Stars ستارے + Stippled نقطہ دار + Stretch کھینچیں + Teal Orange فیروزی نارنجی + Tiny Lens چھوٹا لینز + To Center مرکز کی طرف + Unaltered غیر تبدیل شدہ + Underpainting انڈر پینٹنگ + Underwater زیر آب + Upper بالائی + Vertical Only صرف عمودی + Vine With Flowers پھولوں والی بیل + Vine With Leaves پتوں والی بیل + Violent شدید + Warm گرم + Watercolor واٹر کلر + Waves لہریں + Wide Blurry وسیع دھندلا + Wide Sharp وسیع تیز + Wrap لپیٹیں + Zigzag زگ زیگ + Wetness گیلا پن + AI Integrations AI انضمام + Add Noise شور شامل کریں + Apply Data Set ڈیٹا سیٹ لاگو کریں + Apply Image تصویر لاگو کریں + Arbitrary صوابدیدی + Artboard from Group گروپ سے آرٹ بورڈ + Artboard from Layers تہوں سے آرٹ بورڈ + Artboards to Files آرٹ بورڈز کو فائلوں میں + Artboards to PDF آرٹ بورڈز کو PDF میں + Assign Profile پروفائل تفویض کریں + At بجے + Auto-Align Layers تہیں خودکار ہم آہنگ کریں + Auto-Blend Layers تہیں خودکار ملائیں + Batch بیچ + Border بارڈر + Box Blur باکس دھندلاپن + Calculations حسابات + Camera Raw کیمرہ را + Camera Raw Filter کیمرہ را فلٹر + Channel1 چینل1 + Channel2 چینل2 + Channel3 چینل3 + Channel4 چینل4 + Clone کلون + Color Decontaminate رنگ آلودگی دور کریں + Color Halftone رنگین ہاف ٹون + Color Lookup Tables رنگ تلاش جدولیں + Color Settings رنگ کی ترتیبات + Color Table رنگ جدول + Conditional Mode Change مشروط موڈ تبدیلی + Content-Aware Fill مواد سے آگاہ بھرائی + Convert to Linked لنک شدہ میں تبدیل کریں + Convert to Profile پروفائل میں تبدیل کریں + Crystallize کرسٹلائز کریں + Data ڈیٹا + Data Sets as Files ڈیٹا سیٹس بطور فائلیں + De-Interlace ڈی انٹرلیس + Define Brush Preset برش پری سیٹ متعین کریں + Define Custom Shape مخصوص شکل متعین کریں + Define Pattern نمونہ متعین کریں + Defringe کنارہ صفائی + Diffuse پھیلائیں + Diffuse Glow پھیلتی چمک + Displace نقل مکانی + Do you want to save you made to “{name}” before quitting? کیا آپ باہر نکلنے سے پہلے "{name}" میں کی گئی تبدیلیاں محفوظ کرنا چاہتے ہیں؟ + Dust & Scratches گرد و خراش + Export Contents مواد برآمد کریں + Export Preferences برآمدی ترجیحات + Export/Import Presets پری سیٹس برآمد/درآمد کریں + Extrude نکالیں + Fibers ریشے + Field Blur فیلڈ دھندلاپن + File Info فائل کی معلومات + Filter Gallery فلٹر گیلری + Find and Replace Text متن تلاش اور تبدیل کریں + Fit Image تصویر فٹ کریں + Flame شعلہ + Focus Area فوکس ایریا + Gaussian Blur گاؤسی دھندلاپن + Global Light عالمی روشنی + Group from Layers تہوں سے گروپ + HDR Toning HDR ٹوننگ + High Pass ہائی پاس + Highlight نمایاں حصہ + Image Processor امیج پروسیسر + Install Plug-in پلگ ان نصب کریں + Interpret Footage فوٹیج کی تشریح کریں + Iris Blur آئیرس دھندلاپن + Jag جیگ + Label لیبل + Layer Comps to Files تہہ کمپوزیشنز فائلوں میں + Layer Content Options تہہ مواد کے اختیارات + Layer From Background پس منظر سے تہہ + Layer from Background پس منظر سے تہہ + Layers to Files تہیں فائلوں میں + Legacy پرانا + Lens Blur لینز دھندلاپن + Lens Correction لینز تصحیح + Lens Flare لینز فلیئر + Lighting Effects روشنی کے اثرات + Liquify لیکویفائی + Lum چمک + Match Color رنگ ملائیں + Merge to HDR Pro HDR پرو میں ضم کریں + Mezzotint میزوٹنٹ + Mosaic موزیک + Motion Blur حرکت دھندلاپن + Native file drag-and-drop is not supported on Wayland yet. Use File › Open, or run PhotoCraft under XWayland with `WAYLAND_DISPLAY= photocraft`. نیٹو فائل ڈریگ اینڈ ڈراپ ابھی تک Wayland پر سپورٹ نہیں ہے۔ فائل > کھولیں استعمال کریں، یا PhotoCraft کو XWayland کے تحت `WAYLAND_DISPLAY= photocraft` کے ساتھ چلائیں۔ + Neon Glow نیون چمک + New Guide Layout نیا رہنما خاکہ + New Video Layer from File فائل سے نئی ویڈیو تہہ + Ocean Ripple اوشین رپل + Oil Paint آئل پینٹ + Open As بطور کھولیں + Package پیکج + Paint Daubs پینٹ ڈاب + Path Blur پاتھ دھندلاپن + Paths to Illustrator پاتھ الیسٹریٹر کو + Photomerge فوٹو مرج + Picture Frame تصویری فریم + Pinch چٹکی + Place Embedded ایمبیڈڈ رکھیں + Place Linked لنک شدہ رکھیں + Place Scale Marker پیمانہ نشان رکھیں + Plastic Wrap پلاسٹک ریپ + Pointillize پوائنٹلائز کریں + Polar Coordinates قطبی متناسقات + Polar To Rectangular قطبی سے مستطیل + Poster Edges پوسٹر کنارے + Preset Manager پری سیٹ مینیجر + Profile پروفائل + Radial Blur شعاعی دھندلاپن + Raw Defaults را ڈیفالٹس + Rectangular To Polar مستطیل سے قطبی + Relink to File فائل سے دوبارہ لنک کریں + Render Video ویڈیو رینڈر کریں + Replace Color رنگ بدلیں + Replace Contents مواد تبدیل کریں + Replace Footage فوٹیج تبدیل کریں + Resolve Missing Fonts غائب فونٹس حل کریں + Ripple لہر + Rough Pastels موٹے پیسٹلز + Sat اشباع + Save a Copy ایک نقل محفوظ کریں + Save for Web (Legacy) ویب کے لیے محفوظ کریں (پرانا) + Scale Effects اثرات کا پیمانہ + Script Events Manager اسکرپٹ ایونٹس مینیجر + Search menus مینیوز تلاش کریں + Select and Mask منتخب کریں اور ماسک کریں + Set Measurement Scale پیمائش کا پیمانہ مقرر کریں + Shadows/Highlights سائے/نمایاں حصے + Shape Blur شکل دھندلاپن + Shear قینچی پن + Smart Blur سمارٹ دھندلاپن + Smart Sharpen سمارٹ شارپن + Smudge Stick اسمج اسٹک + Solid Color ٹھوس رنگ + Spherize کروی بنائیں + Spin Blur اسپن دھندلاپن + Spot اسپاٹ + Sprayed Strokes چھڑکی ہوئی لکیریں + Strokes اسٹروکس + Sumi-e سومی-ای + Surface Blur سطحی دھندلاپن + Texturizer ٹیکسچرائزر + Tiles ٹائلز + Tilt-Shift ٹلٹ شفٹ + Trace Contour خاکہ کھینچیں + Trap ٹریپ + Tree درخت + Trim تراش + Turbulent ہنگامہ خیز + Twirl بل دیں + Unsharp Mask ان شارپ ماسک + Use File › Open to open an image. تصویر کھولنے کے لیے فائل > کھولیں استعمال کریں۔ + Vanishing Point وینشنگ پوائنٹ + Variable Data Sets متغیر ڈیٹا سیٹس + Video Frames to Layers ویڈیو فریمز کو تہوں میں + WIA Support WIA سپورٹ + Warp Text متن موڑیں + Wind ہوا + Vertical Type Tool عمودی ٹائپ ٹول + About {app} {app} کے بارے میں + Hide {app} {app} چھپائیں + Quit {app} {app} چھوڑیں + Services سروسز + Hide Others دیگر چھپائیں + Lut Lut + Cooling L B B کولنگ L B B + Cooling80 کولنگ80 + Cooling82 کولنگ82 + Hsb Hsb + Hsl Hsl + Movie Prime موی پرائم + Prime105 پرائم105 + Prime35 پرائم35 + Warming L B A وارمنگ L B A + Warming81 وارمنگ81 + Warming85 وارمنگ85 +@id filter.sharpen.sharpen تیز کریں + Good اچھا + Best بہترین + Adjustment Properties ایڈجسٹمنٹ کی خصوصیات + Default Foreground and Background Colors ڈیفالٹ پیش منظر اور پس منظر رنگ + Move Layer تہہ منتقل کریں + Rectangular Selection مستطیل انتخاب + Reorder Layer تہہ کی ترتیب نو + Select Layer تہہ منتخب کریں + Set Colors رنگ مقرر کریں + Switch Foreground and Background Colors پیش منظر اور پس منظر رنگ تبدیل کریں + Target ہدف + Make Work Path… ورک پاتھ بنائیں… + Create Vector Mask ویکٹر ماسک بنائیں + Make Selection… انتخاب بنائیں… + Fill Path… پاتھ بھریں… + Clipping Path… کلپنگ پاتھ… + Free Transform Path پاتھ آزاد ہیئت تبدیلی + Unite Shapes at Overlap اوورلیپ پر شکلیں یکجا کریں + Subtract Shapes at Overlap اوورلیپ پر شکلیں منہا کریں + Copy Fill بھرائی کاپی کریں + Copy Complete Stroke مکمل لکیر کاپی کریں + Paste Fill بھرائی چسپاں کریں + Paste Complete Stroke مکمل لکیر چسپاں کریں + Make Symmetry Path سمیٹری پاتھ بنائیں + Disable Symmetry Path سمیٹری پاتھ غیر فعال کریں + Select Custom Color… مخصوص رنگ منتخب کریں… + Color Picker (Custom Canvas Color) رنگ چنندہ (مخصوص کینوس رنگ) + Duplicate Channel چینل کی نقل بنائیں + Delete Channel چینل حذف کریں + Rename Channel… چینل کا نام تبدیل کریں… + Merge Spot Channel اسپاٹ چینل ضم کریں + Convert to Alpha Channel الفا چینل میں تبدیل کریں + Exit Quick Mask کوئیک ماسک سے باہر نکلیں + New Channel… نیا چینل… + New Spot Channel… نیا اسپاٹ چینل… + Split Channels چینلز تقسیم کریں + Merge Channels… چینلز ضم کریں… + Color Indicates Masked Areas رنگ ماسک شدہ حصوں کی نشاندہی کرتا ہے + Color Indicates Selected Areas رنگ منتخب حصوں کی نشاندہی کرتا ہے + ✓ Color Indicates Masked Areas ✓ رنگ ماسک شدہ حصوں کی نشاندہی کرتا ہے + ✓ Color Indicates Selected Areas ✓ رنگ منتخب حصوں کی نشاندہی کرتا ہے + Up اوپر + To تا + Shallow کم گہرا + Deep زیادہ گہرا + Blend Interior Effects as Group اندرونی اثرات کو گروپ کے طور پر ملائیں + Blend Clipped Layers as Group کلپڈ تہوں کو گروپ کے طور پر ملائیں + Transparency Shapes Layer شفافیت شکل تہہ + Layer Mask Hides Effects تہہ ماسک اثرات چھپاتا ہے + Vector Mask Hides Effects ویکٹر ماسک اثرات چھپاتا ہے + General Blending عمومی امتزاج + Underlying Layer: بنیادی تہہ: + Nothing to paste: the clipboard holds no image چسپاں کرنے کے لیے کچھ نہیں: کلپ بورڈ میں کوئی تصویر نہیں + Preferences saved ترجیحات محفوظ ہو گئیں + Invalid panel layout; restored the default dock غلط پینل لے آؤٹ؛ ڈیفالٹ ڈاک بحال ہو گیا + Preferences were reset: {error} ترجیحات ری سیٹ ہو گئیں: {error} + Recovered {name} {name} بحال ہوا + Couldn't save preferences: {error}. Retrying… ترجیحات محفوظ نہیں ہو سکیں: {error}۔ دوبارہ کوشش ہو رہی ہے… + Autosave failed: {error} خودکار محفوظ کرنا ناکام ہوا: {error} + Exported presets to {path} پری سیٹس {path} میں برآمد ہو گئے + Ran script {name} اسکرپٹ {name} چلایا گیا + Sent to the printer ({spooler}) پرنٹر کو بھیجا گیا ({spooler}) + Printed to {path} {path} پر پرنٹ ہوا + Exported {path} ({size}) {path} برآمد ہوا ({size}) + Exported {path} {path} برآمد ہوا + Added swatch {name} نمونہ {name} شامل ہوا + Step {step} ({id}) failed: {error} قدم {step} ({id}) ناکام ہوا: {error} + Could not rename the action: {error} ایکشن کا نام تبدیل نہیں ہو سکا: {error} + Action playback failed: {error} ایکشن چلانا ناکام ہوا: {error} + Clone source set at {x}, {y} کلون ماخذ {x}, {y} پر مقرر ہوا + Color management: {error} رنگ کا انتظام: {error} + Opened {url} {url} کھلا + No custom shape "{name}": pick one in the options bar or Window › Shapes کوئی مخصوص شکل "{name}" نہیں: اختیارات بار میں یا ونڈو > شکلیں میں ایک چنیں + Saved a copy as {path} ایک نقل {path} کے طور پر محفوظ ہوئی + Exported contents to {path} مواد {path} میں برآمد ہوا + {label} is not available: {reason} {label} دستیاب نہیں: {reason} + Saved {path}; image assets: {n} in {dir} {path} محفوظ ہوا؛ تصویری اثاثے: {n} بذریعہ {dir} + {message} (notes: {n}; {warning}) {message} (نوٹس: {n}; {warning}) + Preferences can't be saved ترجیحات محفوظ نہیں ہو سکتیں + PhotoCraft keeps retrying; until a save succeeds, preference changes are lost when it closes. PhotoCraft دوبارہ کوشش جاری رکھتا ہے؛ جب تک محفوظ کرنا کامیاب نہ ہو، بند ہونے پر ترجیحی تبدیلیاں ضائع ہو جاتی ہیں۔ + GPU retry scheduled GPU دوبارہ کوشش شیڈول ہو گئی + Save your work and restart PhotoCraft to retry GPU acceleration. CPU rendering remains active for this session. اپنا کام محفوظ کریں اور GPU ایکسیلریشن کی دوبارہ کوشش کے لیے PhotoCraft کو دوبارہ شروع کریں۔ CPU رینڈرنگ اس سیشن کے لیے فعال رہتی ہے۔ + GPU device was lost; using the CPU renderer. GPU ڈیوائس ضائع ہو گئی؛ CPU رینڈرر استعمال ہو رہا ہے۔ + GPU error; using the CPU renderer. GPU خرابی؛ CPU رینڈرر استعمال ہو رہا ہے۔ + Couldn't open {name}: {error} {name} کھل نہیں سکا: {error} + Toggle the Brush Settings panel برش کی ترتیبات پینل تبدیل کریں + New Brush Preset نیا برش پری سیٹ + Grid view گرڈ منظر + List view فہرست منظر + {verb} {mask} {layer} {verb} {mask} {layer} + Unlink غیر مربوط کریں + Link مربوط کریں + Commit transform ہیئت تبدیلی نافذ کریں + Cancel transform ہیئت تبدیلی منسوخ کریں + Scroll menu up مینیو اوپر اسکرول کریں + Scroll menu down مینیو نیچے اسکرول کریں + This type layer must be rasterized before proceeding. Its text will no longer be editable. Rasterize the type? آگے بڑھنے سے پہلے اس متن تہہ کو ریسٹرائز کرنا ضروری ہے۔ اس کا متن مزید قابل ترمیم نہیں رہے گا۔ کیا قسم کو ریسٹرائز کریں؟ + This shape layer must be rasterized before proceeding. It will no longer be editable as a shape. Rasterize the shape? آگے بڑھنے سے پہلے اس شکل تہہ کو ریسٹرائز کرنا ضروری ہے۔ یہ مزید شکل کے طور پر قابل ترمیم نہیں رہے گی۔ کیا شکل کو ریسٹرائز کریں؟ + This Smart Object must be rasterized before proceeding. Its contents will no longer be editable. Rasterize the Smart Object? آگے بڑھنے سے پہلے اس سمارٹ آبجیکٹ کو ریسٹرائز کرنا ضروری ہے۔ اس کا مواد مزید قابل ترمیم نہیں رہے گا۔ کیا سمارٹ آبجیکٹ کو ریسٹرائز کریں؟ + This fill layer must be rasterized before proceeding. Its fill content will no longer be editable. Rasterize the layer? آگے بڑھنے سے پہلے اس بھرائی تہہ کو ریسٹرائز کرنا ضروری ہے۔ اس کا بھرائی مواد مزید قابل ترمیم نہیں رہے گا۔ کیا تہہ کو ریسٹرائز کریں؟ + This layer must be rasterized before proceeding. آگے بڑھنے سے پہلے اس تہہ کو ریسٹرائز کرنا ضروری ہے۔ + Color Picker (Background Color) رنگ چنندہ (پس منظر کا رنگ) + Color Picker (Foreground Color) رنگ چنندہ (پیش منظر کا رنگ) + Adwaita (Light) Adwaita (لائٹ) + Adwaita (Dark) Adwaita (ڈارک) + Open Recent is unavailable on the web ویب پر حالیہ کھولیں دستیاب نہیں + Graphics adapter: {adapter} گرافکس ایڈاپٹر: {adapter} + Backend: {backend} ({type}) بیک اینڈ: {backend} ({type}) + Driver: {driver} ڈرائیور: {driver} + GPU backend preference: {backend} GPU بیک اینڈ ترجیح: {backend} + Selected at launch: {backend} آغاز پر منتخب شدہ: {backend} + Image compositor: {processor} تصویری کمپوزیٹر: {processor} + Fallback: {reason} فال بیک: {reason} + This session: {reason} یہ سیشن: {reason} + Window renderer: {renderer} ونڈو رینڈرر: {renderer} + Software adapter سافٹ ویئر ایڈاپٹر + Graphics adapter گرافکس ایڈاپٹر + unknown type نامعلوم قسم + Platform: {os} {arch} پلیٹ فارم: {os} {arch} + previous reading kept; the last re-read failed: {reason} پچھلی ریڈنگ برقرار رکھی گئی؛ آخری دوبارہ پڑھنا ناکام ہوا: {reason} + Monitor profile: {profile} مانیٹر پروفائل: {profile} + Display profiles: {reason} ڈسپلے پروفائلز: {reason} + Monitor profile in use on {display}: {profile} {display} پر استعمال شدہ مانیٹر پروفائل: {profile} + Monitor profile in use: {profile} استعمال شدہ مانیٹر پروفائل: {profile} + The canvas is shown as sRGB. Choose a monitor profile in Edit › Color Settings. کینوس sRGB کے طور پر دکھایا جاتا ہے۔ ترمیم > رنگ کی ترتیبات میں مانیٹر پروفائل چنیں۔ + The canvas on {display} is shown as sRGB. Choose a monitor profile in Edit › Color Settings. {display} پر کینوس sRGB کے طور پر دکھایا جاتا ہے۔ ترمیم > رنگ کی ترتیبات میں مانیٹر پروفائل چنیں۔ + Display profile not used ڈسپلے پروفائل استعمال نہیں ہوا + Monitor profile on {display} (main window): {profile} {display} پر مانیٹر پروفائل (مین ونڈو): {profile} + Monitor profile on {display}: {profile} {display} پر مانیٹر پروفائل: {profile} + fallback فال بیک + The document does not have an embedded colour profile. Working space: {working}. دستاویز میں کوئی ایمبیڈڈ رنگ پروفائل نہیں ہے۔ ورکنگ اسپیس: {working}۔ + The document has an embedded colour profile that does not match the working space.\nEmbedded: {embedded}\nWorking: {working} دستاویز میں ایک ایمبیڈڈ رنگ پروفائل ہے جو ورکنگ اسپیس سے مماثل نہیں ہے۔\nایمبیڈڈ: {embedded}\nورکنگ: {working} + Importing {what} from {file}… {file} سے {what} درآمد ہو رہا ہے… +@plural Imported {n} brush from {file}|Imported {n} brushes from {file} {file} سے {n} برش درآمد ہوا|{file} سے {n} برشز درآمد ہوئے +@plural Imported {n} gradient from {file}|Imported {n} gradients from {file} {file} سے {n} گریڈیئنٹ درآمد ہوا|{file} سے {n} گریڈیئنٹس درآمد ہوئے +@plural Imported {n} pattern from {file}|Imported {n} patterns from {file} {file} سے {n} نمونہ درآمد ہوا|{file} سے {n} نمونے درآمد ہوئے + Data Set: {name} ({index}/{total}) ڈیٹا سیٹ: {name} ({index}/{total}) + (none) (کوئی نہیں) +navigator Zoom زوم + Apply {option}: {state} {option} لاگو کریں: {state} + This adjustment ({key}) is kept as imported and can't be edited yet. یہ ایڈجسٹمنٹ ({key}) درآمد شدہ کے طور پر رکھی گئی ہے اور ابھی ترمیم کے قابل نہیں۔ + Join the ArtCraft Discord ({url}) ArtCraft ڈسکارڈ میں شامل ہوں ({url}) + {index} of {total} {total} میں سے {index} + {shortcut} assigned. {shortcut} تفویض ہو گیا۔ + {shortcut} is already in use by {commands} and will be removed from it when you click OK. {shortcut} پہلے سے {commands} کے زیر استعمال ہے اور OK پر کلک کرنے پر اس سے ہٹا دیا جائے گا۔ + The current gradient (pick one in Window › Gradients) موجودہ گریڈیئنٹ (ونڈو > گریڈیئنٹس میں ایک چنیں) + auto خودکار + Baseline Shift بیس لائن شفٹ + Breeze Dark بریز ڈارک + Breeze Light بریز لائٹ + brushes برشز + Color Picker رنگ چنندہ + Current موجودہ + Dark Gray گہرا سرمئی + Fill Color بھرائی رنگ + gradients گریڈیئنٹس + Graphic and web گرافک اور ویب + layer mask تہہ ماسک + Lock All سب مقفل کریں + Lock Image Pixels تصویر پکسلز مقفل کریں + Lock Position پوزیشن مقفل کریں + Lock Transparent Pixels شفاف پکسلز مقفل کریں + manual دستی + Medium Gray درمیانہ سرمئی + New document نئی دستاویز + New Selection نیا انتخاب + No Document کوئی دستاویز نہیں + Note tool نوٹ ٹول + off بند + on آن + Recent Files حالیہ فائلیں + Rgb Rgb + Shortcut شارٹ کٹ + Show Rulers رولرز دکھائیں + Solarized Dark سولرائزڈ ڈارک + sRGB sRGB + Stroke Color لکیر رنگ + unknown نامعلوم + Unsaved Changes غیر محفوظ شدہ تبدیلیاں + vector mask ویکٹر ماسک + ZigZag زگ زیگ + Show home recent files ہوم حالیہ فائلیں دکھائیں + Clear Brush Controls برش کنٹرولز صاف کریں + Reset All Locked Settings تمام مقفل ترتیبات ری سیٹ کریں + Copy Texture to Other Tools ساخت کو دوسرے ٹولز میں کاپی کریں + Load Actions… ایکشنز لوڈ کریں… + Save Actions… ایکشنز محفوظ کریں… + New Action… نیا ایکشن… + Start Recording ریکارڈنگ شروع کریں + Stop Recording ریکارڈنگ روکیں + {name} (Photoshop) {name} (فوٹوشاپ) + {message} ({note}) {message} ({note}) +@plural Loaded {n} action from {file}|Loaded {n} actions from {file} {file} سے {n} ایکشن لوڈ ہوا|{file} سے {n} ایکشنز لوڈ ہوئے +@plural {n} step has no PhotoCraft equivalent yet|{n} steps have no PhotoCraft equivalent yet {n} قدم کا ابھی PhotoCraft میں کوئی مساوی نہیں|{n} قدموں کا ابھی PhotoCraft میں کوئی مساوی نہیں +@plural Saved {n} action to {file}|Saved {n} actions to {file} {n} ایکشن {file} میں محفوظ ہوا|{n} ایکشنز {file} میں محفوظ ہوئے +@plural {n} step with no Photoshop equivalent left out|{n} steps with no Photoshop equivalent left out {n} قدم جس کا فوٹوشاپ میں کوئی مساوی نہیں چھوڑ دیا گیا|{n} قدم جن کا فوٹوشاپ میں کوئی مساوی نہیں چھوڑ دیے گئے + Starting serial ابتدائی سیریل + Insert Stop… اسٹاپ شامل کریں… + Save Set… سیٹ محفوظ کریں… + Message: پیغام: + Allow Continue جاری رکھنے کی اجازت دیں + Show dialog during playback پلے بیک کے دوران ڈائیلاگ دکھائیں + Select an action first پہلے ایک ایکشن منتخب کریں + Action playback stopped ایکشن پلے بیک رک گیا + Step {step} is waiting for its dialog قدم {step} اپنے ڈائیلاگ کا انتظار کر رہا ہے +@plural {n} action|{n} actions {n} ایکشن|{n} ایکشنز + Background (Default) پس منظر (ڈیفالٹ) + Include All Subfolders تمام ذیلی فولڈرز شامل کریں + Auto Add/Delete خودکار شامل/حذف کریں + Don't also tick Mirror Image in Print Settings…: the two flips cancel out. پرنٹ ترتیبات… میں مرر امیج بھی نشان زد نہ کریں: دونوں پلٹیں ایک دوسرے کو منسوخ کر دیتی ہیں۔ + Print Settings… پرنٹ ترتیبات… + Remember to turn off the printer's own colour management in Print Settings… پرنٹر کا اپنا رنگ انتظام بند کرنا یاد رکھیں، پرنٹ ترتیبات… + Sent to {printer} {printer} کو بھیجا گیا + set in Print Settings… پرنٹ ترتیبات میں مقرر… + ICO is limited to 256 × 256 pixels ICO 256 × 256 پکسلز تک محدود ہے + Show Favorite Fonts پسندیدہ فونٹس دکھائیں + No favorite fonts yet: click the star beside a font to add it. ابھی تک کوئی پسندیدہ فونٹس نہیں: شامل کرنے کے لیے فونٹ کے ساتھ ستارے پر کلک کریں۔ + Favorite fonts پسندیدہ فونٹس + Add to Favorites پسندیدہ میں شامل کریں + Remove from Favorites پسندیدہ سے ہٹائیں + Show All Fonts تمام فونٹس دکھائیں + All Classes تمام کلاسز + Blackletter بلیک لیٹر + Decorative آرائشی + Font preview: فونٹ پیش منظر: + Handwritten ہاتھ سے لکھا ہوا + Hide Font Classes فونٹ کلاسز چھپائیں + Hide Styles اسٹائلز چھپائیں + Monospace مونو اسپیس + No fonts match these filters. ان فلٹرز سے کوئی فونٹ مماثل نہیں۔ + No similar fonts: the current font doesn't say what it looks like. کوئی مماثل فونٹس نہیں: موجودہ فونٹ یہ نہیں بتاتا کہ یہ کیسا نظر آتا ہے۔ + OpenType font OpenType فونٹ + Sans Serif سینز سیرف + Script اسکرپٹ + Serif سیرف + Show Font Classes فونٹ کلاسز دکھائیں + Show Similar Fonts مماثل فونٹس دکھائیں + Show Styles اسٹائلز دکھائیں + Show Variable Fonts متغیر فونٹس دکھائیں + Slab Serif سلیب سیرف + TrueType font TrueType فونٹ + Variable font متغیر فونٹ + Calibration کیلیبریشن + Red Primary سرخ بنیادی + Green Primary سبز بنیادی + Blue Primary نیلا بنیادی + Write xmp sidecars xmp سائیڈ کار لکھیں + Set the tone sliders from the image تصویر سے ٹون سلائیڈرز مقرر کریں + Settings from {name} {name} سے ترتیبات + Settings from {name}; {count} not supported: {names} {name} سے ترتیبات؛ {count} سپورٹڈ نہیں: {names} + Could not write {name}: {error} {name} نہیں لکھا جا سکا: {error} + Kept {name}: written by another application {name} رکھا گیا: دوسری ایپلیکیشن نے لکھا تھا + Shadow Tint سائے کا ٹنٹ + Check for Updates… اپ ڈیٹس چیک کریں… + PhotoCraft Updates PhotoCraft اپ ڈیٹس + Checking for updates… اپ ڈیٹس چیک ہو رہی ہیں… + Open the release page to choose an installer for your system. اپنے سسٹم کے لیے انسٹالر چننے کے لیے ریلیز صفحہ کھولیں۔ + Open Download Page ڈاؤن لوڈ صفحہ کھولیں + PhotoCraft is up to date. PhotoCraft اپ ٹو ڈیٹ ہے۔ + Could not check for updates. اپ ڈیٹس چیک نہیں ہو سکیں۔ + Updates have not been checked yet. اپ ڈیٹس ابھی تک چیک نہیں کی گئیں۔ + Check Again دوبارہ چیک کریں + Automatically Check for Updates خودکار طور پر اپ ڈیٹس چیک کریں + Installed version: {version} انسٹال شدہ ورژن: {version} + PhotoCraft {version} is available. PhotoCraft {version} دستیاب ہے۔ + Paints from the History panel's source state ہسٹری پینل کی ماخذ حالت سے پینٹ کرتا ہے + Sets the source for the history brush ہسٹری برش کے لیے ماخذ مقرر کرتا ہے + Highlight Mode نمایاں حصے کا موڈ + Highlight Color نمایاں حصے کا رنگ + Highlight Opacity نمایاں حصے کا دھندلاپن + Shadow Mode سائے کا موڈ + Shadow Color سائے کا رنگ + Shadow Opacity سائے کا دھندلاپن + Use the embedded profile ({profile}) ایمبیڈڈ پروفائل ({profile}) استعمال کریں + Convert to the working space ({profile}) ورکنگ اسپیس ({profile}) میں تبدیل کریں + Remember this choice for future images مستقبل کی تصاویر کے لیے یہ انتخاب یاد رکھیں + Turn the prompt back on with Ask On Mismatch in Edit › Color Settings. ترمیم > رنگ کی ترتیبات میں Ask On Mismatch سے اشارہ دوبارہ آن کریں۔ + Button Mode بٹن موڈ + Button Mode On بٹن موڈ آن + Darken Interface انٹرفیس تاریک کریں + Lighten Interface انٹرفیس ہلکا کریں + Technique تکنیک + Chisel Hard چیزل سخت + Chisel Soft چیزل نرم + Open color-less EXR as ACEScg بے رنگ EXR کو ACEScg کے طور پر کھولیں + Do not append "copy" to filename when saving a copy نقل محفوظ کرتے وقت فائل کے نام میں "copy" شامل نہ کریں + Edit Selected Guides منتخب رہنما لکیریں ترمیم کریں + Clear Selected Guides منتخب رہنما لکیریں صاف کریں + Bicubic Automatic بائی کیوبک خودکار + Bicubic Smoother بائی کیوبک اسموتھر + Bicubic Sharper بائی کیوبک شارپر + Pasting from other apps is unavailable دوسری ایپس سے چسپاں کرنا دستیاب نہیں + PhotoCraft can't reach the system clipboard in this session. On Wayland, a Flatpak sandbox hides the protocol that images from other apps are read through. PhotoCraft اس سیشن میں سسٹم کلپ بورڈ تک نہیں پہنچ سکا۔ Wayland پر، Flatpak سینڈ باکس وہ پروٹوکول چھپاتا ہے جس سے دوسری ایپس کی تصاویر پڑھی جاتی ہیں۔ + To paste from other apps, start PhotoCraft under XWayland: `{command}` دوسری ایپس سے چسپاں کرنے کے لیے، PhotoCraft کو XWayland کے تحت شروع کریں: `{command}` + Nothing to paste: PhotoCraft can't read the system clipboard here چسپاں کرنے کے لیے کچھ نہیں: PhotoCraft یہاں سسٹم کلپ بورڈ نہیں پڑھ سکتا + Delete this set یہ سیٹ حذف کریں + New Set… نیا سیٹ… + PhotoCraft Defaults PhotoCraft ڈیفالٹس + Save a list of these shortcuts as a web page ان شارٹ کٹس کی فہرست ویب صفحے کے طور پر محفوظ کریں + Save the changes to this set اس سیٹ میں تبدیلیاں محفوظ کریں + Save these shortcuts as a .kys file یہ شارٹ کٹس .kys فائل کے طور پر محفوظ کریں + Save these shortcuts as a new set یہ شارٹ کٹس نئے سیٹ کے طور پر محفوظ کریں + Set deleted. سیٹ حذف ہو گیا۔ + Set saved. سیٹ محفوظ ہو گیا۔ + Set: سیٹ: + Summarize… خلاصہ کریں… + There are too many sets: delete one first. بہت زیادہ سیٹس ہیں: پہلے ایک حذف کریں۔ + set name سیٹ کا نام + {set} (modified) {set} (ترمیم شدہ) + Show file name in title ٹائٹل میں فائل کا نام دکھائیں + 50% Threshold 50% حد + Pattern Dither پیٹرن ڈیدر + Diffusion Dither ڈفیوزن ڈیدر + Halftone Screen ہاف ٹون اسکرین + Custom Pattern مخصوص نمونہ + Frequency: فریکوئنسی: + Lines/Inch لائنیں/انچ + Lines/Centimeter لائنیں/سینٹی میٹر + Ellipse بیضوی + Accept and Go to Conflict قبول کریں اور تنازع پر جائیں + Changes undone. تبدیلیاں واپس لی گئیں۔ + Choose a new shortcut for this command, or leave it without one. اس کمانڈ کے لیے نیا شارٹ کٹ چنیں، یا اسے بغیر کسی کے چھوڑ دیں۔ + Put this command's shortcuts back as they were اس کمانڈ کے شارٹ کٹس کو جیسے تھے واپس رکھیں + Take the shortcut from the other command and select it دوسری کمانڈ سے شارٹ کٹ لیں اور اسے منتخب کریں + Undo Changes تبدیلیاں کالعدم کریں + {shortcut} is reserved by the system and can't be assigned. {shortcut} سسٹم کے لیے محفوظ ہے اور تفویض نہیں کیا جا سکتا۔ + Low-Latency Drawing (vsync off, applies at next launch) کم تاخیر ڈرائنگ (vsync بند، اگلی بار شروع ہونے پر لاگو ہوتا ہے) + Free Transform is still being applied; try again when it has finished. آزاد ہیئت تبدیلی ابھی لاگو ہو رہی ہے؛ مکمل ہونے پر دوبارہ کوشش کریں۔ + The transform couldn't be applied. ہیئت تبدیلی لاگو نہیں ہو سکی۔ + Its layers need {needed} of GPU memory; the budget leaves them {budget}. اس کی تہوں کو {needed} GPU میموری درکار ہے؛ بجٹ انہیں {budget} چھوڑتا ہے۔ + Set GPU Memory in Preferences › Performance to what your graphics card can hold, at most 3/8 of its memory. Automatic follows Memory Usage, within a quarter of this computer's memory and 3/8 of the card's, and doesn't count the document against a card whose memory is known. The status bar shows GPU Memory Full while they don't fit. ترجیحات > کارکردگی میں GPU میموری کو اس قدر مقرر کریں جو آپ کا گرافکس کارڈ رکھ سکے، زیادہ سے زیادہ اس کی میموری کا 3/8۔ خودکار میموری استعمال کی پیروی کرتا ہے، اس کمپیوٹر کی میموری کے ایک چوتھائی اور کارڈ کی میموری کے 3/8 کے اندر، اور کسی ایسے کارڈ کے خلاف دستاویز کو شمار نہیں کرتا جس کی میموری معلوم ہو۔ جب وہ فٹ نہیں ہوتیں تو اسٹیٹس بار GPU میموری بھرا ہوا دکھاتا ہے۔ + GPU Memory Full GPU میموری بھری ہوئی + The layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. تہوں کو {needed} GPU میموری درکار ہے اور شاید {budget} رکھ سکیں، لہٰذا وہ تبدیلیاں جو پوری دستاویز کو دوبارہ ڈرائنگ کرتی ہیں CPU پر ہوتی ہیں۔ GPU میموری مقرر کرنے کے لیے کلک کریں۔ + GPU memory budget: {budget} GPU میموری بجٹ: {budget} + Graphics memory: {size} گرافکس میموری: {size} + This document's layers: {needed} of {budget} for layers اس دستاویز کی تہیں: تہوں کے لیے {budget} میں سے {needed} + This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU اس دستاویز کی تہوں کو {needed} درکار ہے لیکن شاید {budget} رکھ سکیں: پوری دستاویز کی دوبارہ ڈرائنگ CPU استعمال کرتی ہے + GPU Memory (MB, 0 = Automatic) GPU میموری (MB, 0 = خودکار) + {path}: the path is not valid Unicode; save under another name. {path}: راستہ درست یونیکوڈ نہیں ہے؛ دوسرے نام سے محفوظ کریں۔ + {name} was changed by another app after it was opened or saved here. {name} کو یہاں کھولنے یا محفوظ کرنے کے بعد دوسری ایپ نے تبدیل کیا۔ + Replace it with this document, or cancel and use File › Save As to keep both. اسے اس دستاویز سے تبدیل کریں، یا منسوخ کریں اور دونوں رکھنے کے لیے فائل > محفوظ کریں بطور استعمال کریں۔ + Decrease Brush Size برش کا حجم کم کریں + Increase Brush Size برش کا حجم بڑھائیں + Decrease Brush Hardness برش کی سختی کم کریں + Increase Brush Hardness برش کی سختی بڑھائیں + Demosaic ڈیموزیک + 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. کیمرے کا رنگ فلٹر موزیک کس طرح بھرا جاتا ہے۔ یہ فائل کھلنے پر لاگو ہوتا ہے؛ پیش منظر وہ طریقہ دکھاتا ہے جس سے یہ کھلی تھی۔ + AHD (adaptive homogeneity) AHD (موافق یکسانیت) + Malvar–He–Cutler مالوار–ہی–کٹلر + Hirakawa–Parks: the cleanest edges and the least colour fringing, the slowest. ہیراکاوا–پارکس: صاف ترین کنارے اور کم ترین رنگ کی دھاریاں، سب سے سست۔ + Gradient-corrected interpolation: sharp and fast, with some colour fringing on fine detail. گریڈیئنٹ درست انٹرپولیشن: تیز اور سریع، باریک تفصیل پر کچھ رنگ کی دھاریوں کے ساتھ۔ + The fastest and the softest, with colour fringing on fine detail. سب سے تیز اور سب سے نرم، باریک تفصیل پر رنگ کی دھاریوں کے ساتھ۔ + “{name}” already exists. Replace it? "{name}" پہلے سے موجود ہے۔ اسے تبدیل کریں؟ + The name in the save dialog was “{name}”. محفوظ کرنے کے ڈائیلاگ میں نام "{name}" تھا۔ + Previous Brush پچھلا برش + Next Brush اگلا برش + First Brush پہلا برش + Last Brush آخری برش + Preview size پیش منظر کا حجم + Memory Usage میموری استعمال + Per-document RAM limit (MB) فی دستاویز RAM حد (MB) + Installed RAM: {ram} MB; this limit: {percent}% انسٹال شدہ RAM: {ram} MB؛ یہ حد: {percent}% + Limits each open document's pixels plus History. Oldest undo states are discarded when the limit is exceeded. ہر کھلی دستاویز کے پکسلز کے ساتھ تاریخ کو محدود کرتا ہے۔ حد سے تجاوز ہونے پر سب سے پرانی کالعدم حالتیں ضائع کر دی جاتی ہیں۔ + Applies immediately when saved. Memory is not reserved in advance. محفوظ ہونے پر فوری طور پر لاگو ہوتا ہے۔ میموری پہلے سے محفوظ نہیں کی جاتی۔ + With GPU Memory set to Automatic, this also limits the GPU layer budget. That budget is capped at one quarter of installed RAM and, when known, three eighths of the graphics card's memory, with a 512 MB minimum. Raising this limit beyond those caps does not increase the GPU budget. GPU میموری خودکار پر مقرر ہونے کے ساتھ، یہ GPU تہہ بجٹ کو بھی محدود کرتا ہے۔ یہ بجٹ انسٹال شدہ RAM کے ایک چوتھائی اور، جب معلوم ہو، گرافکس کارڈ کی میموری کے 3/8 تک محدود ہے، کم از کم 512 MB کے ساتھ۔ اس حد کو ان حدود سے زیادہ بڑھانا GPU بجٹ میں اضافہ نہیں کرتا۔ + Use استعمال کریں + In Front سامنے + Behind پیچھے + DDS Options DDS اختیارات + Generate Mipmaps Mipmaps بنائیں + There is no color table to save. محفوظ کرنے کے لیے کوئی رنگ جدول نہیں۔ +@plural Saved {n} color to {file}|Saved {n} colors to {file} {file} میں {n} رنگ محفوظ ہوا|{file} میں {n} رنگ محفوظ ہوئے + GPU adapter GPU ایڈاپٹر + Import Styles… اسٹائلز درآمد کریں… + Export Selected Styles… منتخب اسٹائلز برآمد کریں… + Export Styles… اسٹائلز برآمد کریں… + {file} is not a style library (.asl) {file} اسٹائل لائبریری (.asl) نہیں ہے +@plural Imported {n} style from {file}|Imported {n} styles from {file} {file} سے {n} اسٹائل درآمد ہوا|{file} سے {n} اسٹائلز درآمد ہوئے +@plural Exported {n} style to {file}|Exported {n} styles to {file} {file} میں {n} اسٹائل برآمد ہوا|{file} میں {n} اسٹائلز برآمد ہوئے + Confirm or cancel the open action step dialog first پہلے کھلے ایکشن قدم ڈائیلاگ کی تصدیق یا منسوخی کریں + Pro Medium Gray پرو میڈیم گرے + Solarized سولرائزڈ + Breeze بریز + Pro Light Gray پرو لائٹ گرے + Pro Light پرو لائٹ + Resize Windows to Fit ونڈوز کا حجم فٹ کرنے کے لیے بدلیں + EXR EXR + Automatic paragraph direction خودکار پیراگراف سمت + Left-to-right paragraph direction بائیں سے دائیں پیراگراف سمت + Right-to-left paragraph direction دائیں سے بائیں پیراگراف سمت + Not rendered: this adjustment ({key}) is kept as imported. رینڈر نہیں ہوا: یہ ایڈجسٹمنٹ ({key}) درآمد شدہ کے طور پر رکھی گئی ہے۔ + Print preview image پرنٹ پیش منظر تصویر + Hue Cube رنگت کیوب + Brightness Cube چمک کیوب + Color Wheel رنگ کا پہیہ + RGB Sliders RGB سلائیڈرز + HSB Sliders HSB سلائیڈرز + CMYK Sliders CMYK سلائیڈرز + Lab Sliders Lab سلائیڈرز + Web Color Sliders ویب رنگ سلائیڈرز + Copy Color as HTML رنگ کو HTML کے طور پر کاپی کریں + Copy Color's Hex Code رنگ کا ہیکس کوڈ کاپی کریں + RGB Spectrum RGB سپیکٹرم + CMYK Spectrum CMYK سپیکٹرم + Grayscale Ramp گرے اسکیل ریمپ + Current Colors موجودہ رنگ + Make Ramp Web Safe ریمپ کو ویب سیف بنائیں + The path was kept as the Work Path پاتھ ورک پاتھ کے طور پر رکھا گیا + The path was discarded پاتھ ضائع کر دیا گیا + Art History Brush Tool آرٹ ہسٹری برش ٹول + Tight Short تنگ مختصر + Tight Medium تنگ درمیانہ + Tight Long تنگ لمبا + Loose Medium ڈھیلا درمیانہ + Loose Long ڈھیلا لمبا + Dab ڈیب + Tight Curl تنگ کرل + Loose Curl ڈھیلا کرل + Stylized dabs from a history state ہسٹری حالت سے اسٹائلائزڈ ڈیبز + Font size presets فونٹ حجم پری سیٹس + Leading presets لیڈنگ پری سیٹس + Tracking presets ٹریکنگ پری سیٹس + Color Aware رنگ سے آگاہ + Decontaminate Colors رنگ آلودگی دور کریں + Edge Detection کنارہ کی شناخت + Global Refinements عالمی بہتری + High Quality Preview اعلی معیار پیش منظر + Object Aware آبجیکٹ سے آگاہ + Real-Time Refinement ریئل ٹائم بہتری + Refine Edge Brush Tool کنارہ بہتر کرنے والا برش ٹول + Refine Hair بال بہتر کریں + Refine Mode بہتری کا موڈ + Remember Settings ترتیبات یاد رکھیں + View Mode منظر کا موڈ + Object Aware needs a segmentation model, which isn't available yet آبجیکٹ سے آگاہ کو سیگمنٹیشن ماڈل درکار ہے، جو ابھی دستیاب نہیں + Refine Hair needs hair detection, which isn't available yet بال بہتر کرنے کے لیے بال کی شناخت درکار ہے، جو ابھی دستیاب نہیں + Select and Mask was closed: its document is no longer the active one منتخب کریں اور ماسک کریں بند ہو گیا: اس کی دستاویز مزید فعال نہیں ہے + Select and Mask was closed: another layer was selected منتخب کریں اور ماسک کریں بند ہو گیا: ایک اور تہہ منتخب کی گئی + Select Layer Under Cursor کرسر کے نیچے تہہ منتخب کریں + Drag to move the selected path منتخب پاتھ منتقل کرنے کے لیے گھسیٹیں + Drag to move the active shape's path or the Work Path فعال شکل کا پاتھ یا ورک پاتھ منتقل کرنے کے لیے گھسیٹیں + Export As: {name} بطور برآمد کریں: {name} + Color Sampler Tool کلر سیمپلر ٹول + Proof Setup… پروف سیٹ اپ… + Toggle Layer Mask Overlay تہہ ماسک اوورلے تبدیل کریں + Increase Type Size قسم کا حجم بڑھائیں + Decrease Type Size قسم کا حجم کم کریں + Increase Type Size by 10 قسم کا حجم 10 سے بڑھائیں + Decrease Type Size by 10 قسم کا حجم 10 سے کم کریں + Make Selection from Path پاتھ سے انتخاب بنائیں + Target Composite Channel ہدف کمپوزٹ چینل + Target Channel 3 ہدف چینل 3 + Target Channel 4 ہدف چینل 4 + Target Channel 5 ہدف چینل 5 + Target Channel 6 ہدف چینل 6 + Target Channel 7 ہدف چینل 7 + Target Channel 8 ہدف چینل 8 + Target Channel 9 ہدف چینل 9 + Fill with Foreground Color پیش منظر رنگ سے بھریں + Fill with Background Color پس منظر رنگ سے بھریں + Fill with Foreground Color, Preserve Transparency پیش منظر رنگ سے بھریں، شفافیت برقرار رکھیں + Fill with Background Color, Preserve Transparency پس منظر رنگ سے بھریں، شفافیت برقرار رکھیں + Temporary عارضی + Space Space + Hand Tool (hold) ہینڈ ٹول (دبائے رکھیں) + Zoom In (hold, drag to scrub) زوم ان (دبائے رکھیں، اسکرب کے لیے گھسیٹیں) + Zoom Out (hold) زوم آؤٹ (دبائے رکھیں) + Erase with Brush or Pencil (hold) برش یا پنسل سے مٹائیں (دبائے رکھیں) + Author Title مصنف کا عنوان + Copyright Url کاپی رائٹ URL + Title عنوان + Working-cmyk ورکنگ-cmyk + Coated-cmyk کوٹڈ-cmyk + Linear-srgb لکیری-srgb + Gray-gamma-2.2 گرے-گاما-2.2 + Adobe-rgb-compat Adobe-rgb-مطابق + Prophoto-compat Prophoto-مطابق + Display-p3 Display-p3 + Intent ارادہ + Bpc Bpc + Simulate Paper کاغذ کی تقلید کریں + Warming Filter (85) وارمنگ فلٹر (85) + Cw Cw + Ccw Ccw + Nearest قریب ترین + Mask Channel ماسک چینل + R G B R G B + Source Channel ماخذ چینل + Source Invert ماخذ الٹائیں + Source1 Channel ماخذ1 چینل + Source1 Invert ماخذ1 الٹائیں + Source2 Channel ماخذ2 چینل + Source2 Invert ماخذ2 الٹائیں + W: W: + A: A: + Pattern Fill… نمونہ بھرائی… + Any کوئی بھی + Cmyk Cmyk + Dont Enlarge بڑا نہ کریں + Change Find تلاش تبدیل کریں + Case Sensitive حروف کی بڑائی چھوٹائی کا خیال + Whole Word مکمل لفظ + Forward آگے + Based On کی بنیاد پر + This Layer: یہ تہہ: + Checkerboard چیکر بورڈ + Arc Lower آرک لوئر + Arc Upper آرک اپر + Bend موڑ + Horizontal Distortion افقی بگاڑ + Vertical Distortion عمودی بگاڑ + Move Up اوپر منتقل کریں + Move Down نیچے منتقل کریں + CPU Rendering CPU رینڈرنگ + Calculating… حساب ہو رہا ہے… + Click to refresh histogram with uncached data بغیر کیشے کے ڈیٹا کے ساتھ ہسٹوگرام تازہ کرنے کے لیے کلک کریں + Count: شمار: + Drawn on the CPU: {reason}. Click for System Info. CPU پر ڈرائن ہوا: {reason}۔ سسٹم کی معلومات کے لیے کلک کریں۔ + Level: سطح: + Percentile: پرسنٹائل: + Release Notes ریلیز نوٹس + Show Channels in Color چینلز کو رنگ میں دکھائیں + Show Statistics اعداد و شمار دکھائیں + Source: ماخذ: + Uncached Refresh بغیر کیشے کے تازہ کریں + Update and Restart اپ ڈیٹ کریں اور دوبارہ شروع کریں + +# Color picker, gradient map and font list strings added on main + No matching fonts کوئی مماثل فونٹ نہیں + Recently Used Colors حال ہی میں استعمال شدہ رنگ + Shapes can't use patterns yet شکلیں ابھی نمونے استعمال نہیں کر سکتیں + Stop Color اسٹاپ کا رنگ + +# Strings added on main after the catalog was completed (2026-11-06) + A command was cancelled or stopped during batch processing. Continue with the next file or stop? بیچ پروسیسنگ کے دوران ایک کمانڈ منسوخ یا روک دی گئی۔ اگلی فائل کے ساتھ جاری رکھیں یا روک دیں؟ + A file is still being placed; try again when it has finished. ایک فائل ابھی رکھی جا رہی ہے؛ مکمل ہونے کے بعد دوبارہ کوشش کریں۔ + A frame supports affine transforms; select its image for perspective transforms فریم صرف affine تبدیلیوں کی حمایت کرتا ہے؛ پرسپیکٹو تبدیلیوں کے لیے اس کی تصویر منتخب کریں + A frame supports affine transforms; select its image to warp it فریم صرف affine تبدیلیوں کی حمایت کرتا ہے؛ وارپ کرنے کے لیے اس کی تصویر منتخب کریں + Accelerated تیز رفتار + Answer the open import question first, then import this file again. پہلے درآمد کا زیرِ التوا سوال جواب دیں، پھر یہ فائل دوبارہ درآمد کریں۔ + Arrowhead options تیر کے سرے کے اختیارات + Arrowheads تیر کے سرے + Attribute خصوصیت + Background (default) پس منظر (ڈیفالٹ) + Batch preview بیچ کا پیش منظر + Cancelled placing {name} {name} کو رکھنا منسوخ ہو گیا + Channel Options… چینل کے اختیارات… + Concavity مقعریت + Convert to Frame… فریم میں تبدیل کریں… + Create a new custom frame نیا حسبِ ضرورت فریم بنائیں + Create a new polygonal frame نیا کثیرالاضلاع فریم بنائیں + Create a new triangular frame نیا مثلثی فریم بنائیں + Create a single history state ایک واحد تاریخ کی حالت بنائیں + Data Sets as Files is unavailable on the web ڈیٹا سیٹس بطور فائلیں ویب پر دستیاب نہیں + Dropped files weren't placed: their document was closed. چھوڑی گئی فائلیں نہیں رکھی گئیں: ان کی دستاویز بند ہو چکی تھی۔ + Dropped files weren't placed: too many are waiting for their document. چھوڑی گئی فائلیں نہیں رکھی گئیں: بہت سی فائلیں اپنی دستاویز کی منتظر ہیں۔ + Effect اثر + Empty خالی + End اختتام + Filter for embedded smart objects ایمبیڈڈ سمارٹ آبجیکٹس کے لیے فلٹر کریں + Filter for linked smart objects that are missing غائب لنک شدہ سمارٹ آبجیکٹس کے لیے فلٹر کریں + Filter for smart objects linked locally مقامی طور پر لنک شدہ سمارٹ آبجیکٹس کے لیے فلٹر کریں + Fit Content to Frame مواد کو فریم میں فٹ کریں + Fit Frame to Content فریم کو مواد میں فٹ کریں + Frame coordinates must be finite and within 600000 pixels فریم کے نقاط محدود اور 600000 پکسلز کے اندر ہونے چاہئیں + High Memory Photoshop Document زیادہ میموری والی Photoshop دستاویز + Image Compression تصویر کی کمپریشن + Import Image… تصویر درآمد کریں… + Import as New Group نئے گروپ کے طور پر درآمد کریں + Import as New Group keeps “{group}” and adds the file as a new group beside it. نئے گروپ کے طور پر درآمد “{group}” کو برقرار رکھتا ہے اور فائل کو اس کے ساتھ ایک نئے گروپ کے طور پر شامل کرتا ہے۔ + Invalid frame transform فریم کی غلط تبدیلی + Invalid nested file drop غلط نیسٹڈ فائل ڈراپ + LZW LZW + Layer Effects تہہ کے اثرات + Learn سیکھیں + Lining لائننگ + Linked لنک شدہ + New Frame نیا فریم + New file نئی فائل + No Adv. Blending ایڈوانسڈ امتزاج نہیں + No Layer Effects تہہ کے اثرات نہیں + No Layer Mask تہہ ماسک نہیں + No Vector Mask ویکٹر ماسک نہیں + No import is waiting. Import the file again. کوئی درآمد زیرِ التوا نہیں۔ فائل دوبارہ درآمد کریں۔ + Not Clipped کلپڈ نہیں + Not Empty خالی نہیں + Not Linked لنک شدہ نہیں + Not Locked مقفل نہیں + Not Visible نظر نہ آنے والا + Numerals اعداد + On your computer آپ کے کمپیوٹر پر + Open anyway پھر بھی کھولیں + Opening this document uses more memory and may slow down your computer or other running applications. یہ دستاویز کھولنے میں زیادہ میموری استعمال ہوتی ہے اور یہ آپ کے کمپیوٹر یا دیگر چلتی ایپلیکیشنز کو سست کر سکتی ہے۔ + Opening “{name}” requires an estimated {est} GiB of memory ({avail} GiB available). “{name}” کھولنے کے لیے اندازاً {est} GiB میموری درکار ہے ({avail} GiB دستیاب)۔ + Opening “{name}” requires an estimated {est} GiB of memory. The available memory could not be measured. “{name}” کھولنے کے لیے اندازاً {est} GiB میموری درکار ہے۔ دستیاب میموری کی پیمائش نہیں ہو سکی۔ + Pause For اس کے لیے توقف + Pause For: اس کے لیے توقف: + Playback Options… پلے بیک کے اختیارات… + Proportional متناسب + Proportional Lining متناسب لائننگ + Proportional Oldstyle متناسب پرانے انداز + Replace Image… تصویر تبدیل کریں… + Replace deletes everything in “{group}” first, including presets you edited or moved there. This can't be undone. تبدیل کرنا پہلے “{group}” میں موجود سب کچھ حذف کر دیتا ہے، بشمول وہ پری سیٹس جو آپ نے وہاں ترمیم یا منتقل کیے۔ اسے واپس نہیں کیا جا سکتا۔ + Save Image Pyramid تصویری اہرام محفوظ کریں + Save Transparency شفافیت محفوظ کریں + Set سیٹ + Set 1 سیٹ 1 + Set 10 سیٹ 10 + Set 11 سیٹ 11 + Set 12 سیٹ 12 + Set 13 سیٹ 13 + Set 14 سیٹ 14 + Set 15 سیٹ 15 + Set 16 سیٹ 16 + Set 17 سیٹ 17 + Set 18 سیٹ 18 + Set 19 سیٹ 19 + Set 2 سیٹ 2 + Set 20 سیٹ 20 + Set 3 سیٹ 3 + Set 4 سیٹ 4 + Set 5 سیٹ 5 + Set 6 سیٹ 6 + Set 7 سیٹ 7 + Set 8 سیٹ 8 + Set 9 سیٹ 9 + Set as default ڈیفالٹ کے طور پر سیٹ کریں + Source: {name} ماخذ: {name} + Specify Channels: چینلز متعین کریں: + Start آغاز + Step by Step قدم بہ قدم + Stylistic Sets اسلوبیاتی سیٹس + Tabular جدولی + Tabular Lining جدولی لائننگ + Tabular Oldstyle جدولی پرانے انداز + The GPU compositor is still being prepared GPU کمپوزیٹر ابھی تیار ہو رہا ہے + The History Brush source was deleted: set a new source in the History panel ہسٹری برش کا ماخذ حذف کر دیا گیا: ہسٹری پینل میں نیا ماخذ مقرر کریں + The frame is locked فریم مقفل ہے + The frame is unavailable فریم دستیاب نہیں + Transparent (default) شفاف (ڈیفالٹ) + Use these settings for new arrows نئے تیروں کے لیے یہ ترتیبات استعمال کریں + Website ویب سائٹ + ZIP ZIP + seconds سیکنڈ + {message} into “{group}” {message} “{group}” میں + {ok} written to {dir} {ok} کو {dir} میں لکھا گیا + {set} from {file} replaced the one from {earlier} {file} سے {set} نے {earlier} والے کی جگہ لے لی +@plural The brush group “{group}” already has {n} brush of yours.|The brush group “{group}” already has {n} brushes of yours. برش گروپ “{group}” میں پہلے ہی آپ کا {n} برش موجود ہے۔|برش گروپ “{group}” میں پہلے ہی آپ کے {n} برشز موجود ہیں۔ +@plural The gradient group “{group}” already exists ({n} gradient).|The gradient group “{group}” already exists ({n} gradients). گریڈیئنٹ گروپ “{group}” پہلے سے موجود ہے ({n} گریڈیئنٹ)۔|گریڈیئنٹ گروپ “{group}” پہلے سے موجود ہے ({n} گریڈیئنٹس)۔ +@plural {n} action file loaded|{n} action files loaded {n} ایکشن فائل لوڈ ہوئی|{n} ایکشن فائلیں لوڈ ہوئیں +@plural {n} file could not be loaded: {errors}|{n} files could not be loaded: {errors} {n} فائل لوڈ نہیں ہو سکی: {errors}|{n} فائلیں لوڈ نہیں ہو سکیں: {errors} +@plural {what}: {n} Image Assets output failed|{what}: {n} Image Assets outputs failed {what}: {n} تصویری اثاثہ آؤٹ پٹ ناکام ہوا|{what}: {n} تصویری اثاثے آؤٹ پٹس ناکام ہوئے diff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsv index 9890267d85..ce02e3e9c6 100644 --- a/crates/ui-egui/src/i18n/vi.tsv +++ b/crates/ui-egui/src/i18n/vi.tsv @@ -823,7 +823,7 @@ Modifier Keys Phím bổ trợ Motion Chuyển động Navigator Điều hướng - New Window Cửa sổ mới cho tài liệu + New Window Cửa sổ mới New Workspace… Không gian làm việc mới… Next Theme Chủ đề tiếp theo Options Thanh tùy chọn @@ -854,6 +854,12 @@ Timeline Dòng thời gian Tool Presets Thiết lập sẵn công cụ Tools Công cụ + Contextual Task Bar Thanh tác vụ theo ngữ cảnh + Hide bar Ẩn thanh + Reset bar position Đặt lại vị trí thanh + Pin bar position Ghim vị trí thanh + Move bar Di chuyển thanh + More options Tùy chọn khác Workspace Không gian làm việc Move Tool Công cụ Di chuyển Rectangular Marquee Tool Công cụ Vùng chọn chữ nhật @@ -1398,6 +1404,7 @@ ✓ Color Indicates Selected Areas ✓ Màu chỉ vùng được chọn Work Path Đường dẫn làm việc Make Selection Tạo vùng chọn + Make Shape Tạo hình Fill Path Tô đường dẫn Stroke Path Đi nét đường dẫn Save Path Lưu đường dẫn @@ -3678,7 +3685,6 @@ cameraData Lens Ống kính New Document With Mask Tài liệu mới có mặt nạ New Layer With Mask Lớp mới có mặt nạ Convert Point Tool Công cụ Chuyển đổi điểm - Enable animations Bật hiệu ứng chuyển động Gloss Contour Đường bao bóng Cone - Inverted Hình nón - Đảo ngược Cove - Deep Lõm - Sâu diff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsv index e1039a735d..e60dd2d2a5 100644 --- a/crates/ui-egui/src/i18n/zh-hans.tsv +++ b/crates/ui-egui/src/i18n/zh-hans.tsv @@ -854,7 +854,7 @@ Consolidate All to Tabs 将所有窗口合并为选项卡 Float in Window 在窗口中浮动 Float All in Windows 使所有文档在窗口中浮动 - New Window 为文档新建窗口 + New Window 新建窗口 Workspace 工作区 Essentials 基本功能 Graphic and Web 图形与 Web @@ -917,6 +917,12 @@ Timeline 时间轴 Tool Presets 工具预设 Tools 工具 + Contextual Task Bar 上下文任务栏 + Hide bar 隐藏栏 + Reset bar position 重置栏位置 + Pin bar position 固定栏位置 + Move bar 移动栏 + More options 更多选项 About PhotoCraft 关于 PhotoCraft PhotoCraft Website PhotoCraft 网站 PhotoCraft on GitHub PhotoCraft 的 GitHub 页面 @@ -2186,7 +2192,6 @@ Show only crosshair while painting 绘画时仅显示十字线 Show slice numbers 显示切片编号 Show tooltips 显示工具提示 - Enable animations 启用动画 Show highlight on rollover 鼠标悬停时显示高亮 Show bounding box when dragging layer 拖动图层时显示边界框 System title bar 系统标题栏 @@ -3040,6 +3045,7 @@ curves Smooth 平滑 Edit Selected Guides 编辑所选参考线 Clear Selected Guides 清除所选参考线 Make Selection 建立选区 + Make Shape 建立形状 Bicubic Automatic 双三次(自动) Bicubic Smoother 双三次(较平滑) Bicubic Sharper 双三次(较锐利) diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsv index 0630f30f06..32dff30921 100644 --- a/crates/ui-egui/src/i18n/zh-hant.tsv +++ b/crates/ui-egui/src/i18n/zh-hant.tsv @@ -853,7 +853,7 @@ Consolidate All to Tabs 全部合併至標籤頁 Float in Window 在視窗中浮動 Float All in Windows 全部在視窗中浮動 - New Window 為文件新增視窗 + New Window 新增視窗 Workspace 工作區 Essentials 基本功能 Graphic and Web 繪圖和網頁 @@ -916,6 +916,12 @@ Timeline 時間軸 Tool Presets 工具預設集 Tools 工具 + Contextual Task Bar 內容相關工作列 + Hide bar 隱藏工作列 + Reset bar position 重設工作列位置 + Pin bar position 固定工作列位置 + Move bar 移動工作列 + More options 更多選項 About PhotoCraft 關於 PhotoCraft PhotoCraft Website PhotoCraft 網站 PhotoCraft on GitHub GitHub 上的 PhotoCraft @@ -2154,7 +2160,6 @@ Show only crosshair while painting 繪圖時僅顯示十字線 Show slice numbers 顯示切片編號 Show tooltips 顯示工具提示 - Enable animations 啟用動畫 Show highlight on rollover 滑鼠懸停時顯示醒目提示 Show bounding box when dragging layer 拖曳圖層時顯示邊界框 System title bar 系統標題列 @@ -3001,6 +3006,7 @@ curves Smooth 平滑 Edit Selected Guides 編輯所選參考線 Clear Selected Guides 清除所選參考線 Make Selection 建立選取範圍 + Make Shape 建立形狀 Bicubic Automatic 雙三次 (自動) Bicubic Smoother 雙三次 (較平滑) Bicubic Sharper 雙三次 (較銳利) diff --git a/crates/ui-egui/src/icon_data.rs b/crates/ui-egui/src/icon_data.rs index d66b8b8fbe..93103b34a3 100644 --- a/crates/ui-egui/src/icon_data.rs +++ b/crates/ui-egui/src/icon_data.rs @@ -126,6 +126,7 @@ pub static ICONS: &[(&str, &[u8])] = &[ ("pencil", include_bytes!("../../../assets/icons/pencil.svg")), ("pentagon", include_bytes!("../../../assets/icons/pentagon.svg")), ("perspective-crop", include_bytes!("../../../assets/icons/perspective-crop.svg")), + ("pin", include_bytes!("../../../assets/icons/pin.svg")), ("pipette", include_bytes!("../../../assets/icons/pipette.svg")), ("play", include_bytes!("../../../assets/icons/play.svg")), ("pause", include_bytes!("../../../assets/icons/pause.svg")), @@ -135,6 +136,7 @@ pub static ICONS: &[(&str, &[u8])] = &[ ("rectangle-horizontal", include_bytes!("../../../assets/icons/rectangle-horizontal.svg")), ("rectangle-vertical", include_bytes!("../../../assets/icons/rectangle-vertical.svg")), ("redo-2", include_bytes!("../../../assets/icons/redo-2.svg")), + ("rotate-ccw", include_bytes!("../../../assets/icons/rotate-ccw.svg")), ("rotate-cw", include_bytes!("../../../assets/icons/rotate-cw.svg")), ("ruler", include_bytes!("../../../assets/icons/ruler.svg")), ("sampler", include_bytes!("../../../assets/icons/sampler.svg")), diff --git a/crates/ui-egui/src/input/shortcuts.rs b/crates/ui-egui/src/input/shortcuts.rs index b0304b8237..0abd096530 100644 --- a/crates/ui-egui/src/input/shortcuts.rs +++ b/crates/ui-egui/src/input/shortcuts.rs @@ -851,7 +851,7 @@ fn handle_escape_and_view_keys(app: &mut PhotocraftApp, ctx: &egui::Context) { // and inline type returned above, transform, pen, lasso and crop consumed it, and these own // theirs later in the frame: the palette, the canvas and layer menus, the brush picker, // Rotate View, Adaptive Wide Angle, the Filter Gallery, the TIFF prompt, any open egui popup - // and the toolbar tool flyout. A canvas drag in progress (a marquee being drawn) keeps it too. + // and the toolbar tool and "…" flyouts. A canvas drag in progress (a marquee being drawn) keeps it too. let esc_taken = app.drag.is_some() || app.ui.palette_open || app.ui.canvas_tool_menu.is_some() @@ -863,7 +863,8 @@ fn handle_escape_and_view_keys(app: &mut PhotocraftApp, ctx: &egui::Context) { || app.smart_svg.modal_open() || app.distort.gallery.is_some() || ctx.any_popup_open() - || ctx.data(|d| d.get_temp::<(egui::Id, egui::Rect)>(egui::Id::unique("tool-flyout")).is_some()); + || ctx.data(|d| d.get_temp::<(egui::Id, egui::Rect)>(egui::Id::unique("tool-flyout")).is_some()) + || crate::panels::toolbar::more_flyout_open(ctx); // Both full screen modes (with and without the menu bar) return to Standard, as in Photoshop // (#4116), through the menu command so the window and the Screen Mode check follow. if !esc_taken && app.ui.view.screen_mode != "standard" && pressed(Key::Escape) { diff --git a/crates/ui-egui/src/input_tests.rs b/crates/ui-egui/src/input_tests.rs index aa6b066885..e70f05d257 100644 --- a/crates/ui-egui/src/input_tests.rs +++ b/crates/ui-egui/src/input_tests.rs @@ -651,6 +651,31 @@ fn alt_scroll_zooms_when_the_modifier_state_misses_the_held_alt() { } } +/// #9479: like Photoshop (measured: one notch moves the view in a single frame and nothing +/// after), a wheel notch pans the canvas the whole step at once, with no glide: plain, and +/// sideways with ⇧ or ⌘/Ctrl. +#[test] +fn a_notch_pans_the_canvas_at_once_without_a_glide() { + let ctrl = Modifiers { ctrl: true, command: true, ..Modifiers::NONE }; + let cmd = Modifiers { mac_cmd: true, command: true, ..Modifiers::NONE }; + for (m, axis) in [(Modifiers::NONE, 1), (Modifiers::SHIFT, 0), (ctrl, 0), (cmd, 0)] { + let mut h = harness(); + let p = h.state().last_canvas_rect.center(); + h.hover_at(p); + h.run_steps(2); + let notch = h.ctx.options(|o| o.input_options.line_scroll_speed); + let (z, c0) = (zoom(&h), h.state().ui.views[0].center); + wheel(&h, -1.0, m); + h.run_steps(1); + let c1 = h.state().ui.views[0].center; + assert!(((c1[axis] - c0[axis]) * z - notch).abs() < 0.5, "{m:?}: the whole notch in the first frame: {c0:?} -> {c1:?} at {z}, notch {notch}"); + assert_eq!(c1[1 - axis], c0[1 - axis], "{m:?}: along one axis"); + h.run_steps(30); + assert_eq!(h.state().ui.views[0].center, c1, "{m:?}: no glide after it"); + assert_eq!(zoom(&h), z, "{m:?}: never zooms"); + } +} + #[test] fn type_tool_alt_arrows_kern_the_pair() { use photocraft_doc::text::Kerning; @@ -1250,6 +1275,20 @@ fn escape_with_the_palette_open_does_not_deselect() { assert!(h.state().session.active().unwrap().doc.selection.is_some(), "Esc belongs to the palette"); } +/// The toolbar's "…" flyout owns Esc (it closes there, `toolbar_more_slot_flyout_tests`), so the +/// selection stays. +#[test] +fn escape_with_the_toolbar_more_flyout_open_does_not_deselect() { + let mut h = harness(); + h.state_mut().run("select.all", json!({})).unwrap(); + h.ctx.data_mut(|d| d.insert_temp(egui::Id::unique("toolbar-more-flyout-open"), true)); + h.run_steps(1); + assert!(crate::panels::toolbar::more_flyout_open(&h.ctx)); + h.key_press(Key::Escape); + h.run_steps(2); + assert!(h.state().session.active().unwrap().doc.selection.is_some(), "Esc belongs to the flyout"); +} + /// Targa Options owns Esc (it cancels the save), so the selection stays. #[test] fn escape_with_targa_options_open_does_not_deselect() { diff --git a/crates/ui-egui/src/jobs_ui.rs b/crates/ui-egui/src/jobs_ui.rs index 66ac7a8c45..f8e644fcda 100644 --- a/crates/ui-egui/src/jobs_ui.rs +++ b/crates/ui-egui/src/jobs_ui.rs @@ -187,7 +187,10 @@ pub struct JobsUi { /// (the result is then `{"job": id, "pending": true}` and the edit lands when [`tick`] applies /// it), else synchronously like [`photocraft_engine::Session::execute`]. pub fn run(app: &mut PhotocraftApp, id: &str, params: Value) -> Result { - if !app.background_jobs { + // A place is also a job where there are no threads (the web build): the session steps it a + // slice per frame, and every other command stays synchronous there. + let place = matches!(id, "file.placeEmbedded" | "file.placeLinked") && place_in_background(app); + if !app.background_jobs && !place { return app.session.execute(id, params).map_err(|e| e.to_string()); } match app.session.start(id, params).map_err(|e| e.to_string())? { @@ -202,6 +205,13 @@ pub fn run(app: &mut PhotocraftApp, id: &str, params: Value) -> Result bool { + app.background_jobs || app.session.cooperative_jobs() +} + /// Place a file's bytes in the background (File › Place for a file with no path to read, a dropped /// file read by the browser): like [`run`] for `file.placeEmbedded`, the result is /// `{"job": id, "pending": true}` and the layer lands when [`tick`] applies the job. `linked` diff --git a/crates/ui-egui/src/layers_empty_area_menu_tests.rs b/crates/ui-egui/src/layers_empty_area_menu_tests.rs index 10b0c52212..c426a7e2c8 100644 --- a/crates/ui-egui/src/layers_empty_area_menu_tests.rs +++ b/crates/ui-egui/src/layers_empty_area_menu_tests.rs @@ -122,9 +122,51 @@ fn each_size_pick_sets_the_panel_option_and_saves_it() { } } +/// Picking the size that is already checked closes the menu and leaves the saved options as they +/// were. The harness cannot observe a skipped write directly, so this asserts the saved value is +/// unchanged. +#[test] +fn picking_the_checked_size_closes_the_menu_and_changes_nothing() { + let mut h = panel(true); + h.state_mut().ui.layers_panel_options.thumbnail_size = LayerThumbnailSize::Large; + h.run_steps(2); + crate::panels::layers_panel_ui::persist_options(h.state_mut()); + let saved = |h: &Harness<'static, PhotocraftApp>| h.state().session.prefs().dialogs.get("ui.layersPanelOptions").cloned(); + let before = saved(&h); + assert!(before.is_some(), "an entry is saved to begin with"); + open_menu(&mut h); + assert!(checked(&h, "Large Thumbnails")); + pick(&mut h, "Large Thumbnails"); + assert!(!menu_open(&h), "the menu closes"); + assert_eq!(size(&h), LayerThumbnailSize::Large); + assert_eq!(saved(&h), before, "the saved options are unchanged"); +} + +/// The saved entry can be missing (a preferences reset, an older file) while the panel still +/// shows the size; picking the checked row writes it back. +#[test] +fn picking_the_checked_size_restores_a_missing_saved_entry() { + let mut h = panel(true); + h.state_mut().ui.layers_panel_options.thumbnail_size = LayerThumbnailSize::Large; + h.run_steps(2); + h.state_mut().session.prefs.edit(|p| { + p.dialogs.remove("ui.layersPanelOptions"); + }); + let saved = |h: &Harness<'static, PhotocraftApp>| h.state().session.prefs().dialogs.get("ui.layersPanelOptions").cloned(); + assert!(saved(&h).is_none(), "the saved entry is gone"); + open_menu(&mut h); + assert!(checked(&h, "Large Thumbnails")); + pick(&mut h, "Large Thumbnails"); + assert!(!menu_open(&h), "the menu closes"); + let restored = saved(&h).expect("the pick writes the entry back"); + assert_eq!(restored, serde_json::to_value(&h.state().ui.layers_panel_options).unwrap()); +} + #[test] fn each_clip_pick_sets_the_preference() { let mut h = panel(true); + h.state_mut().run("prefs.set", json!({"path": "interface.clipThumbnailsToLayerBounds", "value": false})).unwrap(); + h.run_steps(2); assert!(!clip(&h)); open_menu(&mut h); pick(&mut h, "Clip Thumbnails to Layer Bounds"); @@ -155,8 +197,12 @@ fn a_left_click_on_the_empty_area_still_deselects_and_a_right_click_does_not() { #[test] fn with_no_document_nothing_opens() { + // The Layers panel is not drawn without a document, so take its rect from the same layout + // with one open. + let rect = crate::panel_docking::probe::panel_rect(&panel(true).ctx, "layers").expect("the Layers panel is drawn"); let mut h = panel(false); - let p = pos2(1100.0, 400.0); + let p = rect.center(); + assert!(rect.contains(p)); click(&mut h, p, PointerButton::Secondary); assert!(!menu_open(&h)); } diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index 25d77a32e2..0c71c94f5f 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -261,7 +261,7 @@ pub use services::{ CaptionStyleFn, ClipboardGetFn, ClipboardGetSvgFn, ClipboardSetFn, ClipboardUnreadableFn, CursorPosFn, DiscardAutosaveFn, EncodePngFn, ExportFn, ExportSettings, ExternalSvgEditor, ExternalSvgSession, ExternalVectorSave, ExternalVectorSource, FileStamp, FileStampFn, FormatChoices, ImportFn, Inbox, LoadTextFn, OpenExternalSvgFn, OpenUrlFn, OsEventsFn, PhotoshopShortcutsFn, PlaceInbox, QuitFn, RecoverFn, Recoverable, RightButtonDownFn, SameFileFn, - SaveFileFn, SaveTextFn, Services, SystemThemeFn, WindowFrameFn, WriteFn, + SaveFileFn, SaveTextFn, Services, SystemThemeFn, TabletPollFn, WindowFrameFn, WriteFn, }; pub use text::bidi_text; pub use text::cjk_fonts; @@ -286,6 +286,7 @@ pub use tools::crop_presets; pub use tools::crop_shield; pub use tools::crop_size; pub use tools::crop_straighten; +pub use tools::crop_task_bar; pub use tools::crop_ui; pub use tools::direct_select; pub use tools::eraser_ui; @@ -812,6 +813,8 @@ mod tool_shift_cycle_order_tests; mod tool_shortcut_tests; #[cfg(test)] mod toolbar_group_order_tests; +#[cfg(test)] +mod toolbar_more_slot_flyout_tests; #[cfg(test)] mod pixel_aspect_tests; diff --git a/crates/ui-egui/src/marquee_tests.rs b/crates/ui-egui/src/marquee_tests.rs index 87ff48ddb4..6cf286b52b 100644 --- a/crates/ui-egui/src/marquee_tests.rs +++ b/crates/ui-egui/src/marquee_tests.rs @@ -454,6 +454,115 @@ fn the_live_outline_matches_the_committed_selection_in_a_rotated_view() { } } +/// The closed outlines the last frame drew as a solid white line under black dashes: the Type +/// tools' drag box (four corners, the first repeated). +fn white_box_outlines(h: &Harness<'static, PhotocraftApp>) -> Vec> { + h.output() + .shapes + .iter() + .filter_map(|c| match &c.shape { + egui::Shape::Path(p) + if matches!(p.stroke.color, egui::epaint::ColorMode::Solid(col) if col == egui::Color32::WHITE) + && p.points.len() == 5 + && p.points.first() == p.points.last() => + { + Some(p.points.clone()) + } + _ => None, + }) + .collect() +} + +/// The slanted edges the last frame drew as marching ants (#7530): each is a white base segment +/// under black dashes (`ants::shapes`); upright edges go into a pixel mesh instead. The Move tool's +/// layer marquee in a rotated view. +fn white_ant_edges(h: &Harness<'static, PhotocraftApp>) -> Vec<[Pos2; 2]> { + h.output() + .shapes + .iter() + .filter_map(|c| match &c.shape { + egui::Shape::LineSegment { points, stroke } if stroke.color == egui::Color32::WHITE => Some(*points), + _ => None, + }) + .collect() +} + +/// Every drawn corner of `outline` maps back, through the view, to the document corner of `want` +/// ([x0, y0, x1, y1]) with the same index, clockwise from the top-left. +fn assert_doc_box(xf: &ViewXform, outline: &[Pos2], want: [f64; 4], what: &str) { + let corners = [[want[0], want[1]], [want[2], want[1]], [want[2], want[3]], [want[0], want[3]]]; + for (i, (p, w)) in outline.iter().zip(corners).enumerate() { + let [x, y] = xf.to_doc(*p); + assert!( + (x - w[0]).abs() <= 1.0 && (y - w[1]).abs() <= 1.0, + "{what}: corner {i} drawn at {p:?} is document ({x:.1}, {y:.1}), the box's corner is {w:?}" + ); + } +} + +/// #7063: in a rotated view the Type tools' drag box previews the document-axis text box the +/// release creates. An upright screen box through two of its corners is another shape (at 45° a +/// dragged square previews as a sliver). +#[test] +fn the_type_drag_box_matches_the_committed_text_box_in_a_rotated_view() { + for rotation in [30.0, 45.0] { + let mut h = harness(Tool::Type); + h.state_mut().ui.extras.snap = false; + h.state_mut().ui.views[0].rotation = rotation; + h.run_steps(2); + press_at(&mut h, 50.0, 50.0, Modifiers::NONE); + move_to(&mut h, 150.0, 90.0); + let xf = view_xform(&h); + let drawn = white_box_outlines(&h); + assert_eq!(drawn.len(), 1, "{rotation}°: one text box is previewed: {drawn:?}"); + release_at(&mut h, 150.0, 90.0, Modifiers::NONE); + // The text box the release created, in document pixels. + let committed = { + let st = h.state().session.active().unwrap(); + let layer = st.doc.layer(st.active_layer.unwrap()).unwrap(); + let photocraft_doc::LayerContent::Text(t) = &layer.content else { panic!("{rotation}°: a type layer") }; + let photocraft_doc::text::TextShape::Box { x, y, width, height } = t.shape else { panic!("{rotation}°: paragraph text") }; + let (tx, ty) = (t.transform.m[4], t.transform.m[5]); + [tx + f64::from(x), ty + f64::from(y), tx + f64::from(x + width), ty + f64::from(y + height)] + }; + assert!((committed[0] - 50.0).abs() <= 1.0 && (committed[3] - 90.0).abs() <= 1.0, "{rotation}°: the drag made {committed:?}"); + assert_doc_box(&xf, &drawn[0], committed, &format!("{rotation}°: the Type preview")); + } +} + +/// #7063: in a rotated view the Move tool's layer marquee (#2844) previews the document-axis box +/// `layer.selectInRect` gets on the release, not an upright screen box through two of its corners. +#[test] +fn the_move_layer_marquee_follows_the_document_axes_in_a_rotated_view() { + for rotation in [30.0, 45.0] { + let mut h = harness(Tool::Move); + let app = h.state_mut(); + app.ui.extras.snap = false; + app.ui.tool_options.move_auto_select = true; + app.ui.views[0].rotation = rotation; + h.run_steps(2); + // On the locked Background, so the drag draws the marquee (#4058). + press_at(&mut h, 50.0, 50.0, Modifiers::NONE); + move_to(&mut h, 150.0, 90.0); + assert!(h.state().layer_box.is_some(), "{rotation}°: the drag draws the layer marquee"); + let xf = view_xform(&h); + // Four slanted ant edges, each from one corner of the document box to the next. An upright + // screen box would have none (its edges go into the ants' pixel mesh). + let edges = white_ant_edges(&h); + assert_eq!(edges.len(), 4, "{rotation}°: the marquee's four edges are drawn slanted: {edges:?}"); + let ends: Vec = edges.iter().map(|e| e[0]).collect(); + assert_doc_box(&xf, &ends, [50.0, 50.0, 150.0, 90.0], &format!("{rotation}°: the layer marquee (edge starts)")); + let ends: Vec = edges.iter().map(|e| e[1]).collect(); + assert_doc_box( + &xf, + &ends[3..].iter().chain(&ends[..3]).copied().collect::>(), + [50.0, 50.0, 150.0, 90.0], + &format!("{rotation}°: the layer marquee (edge ends)"), + ); + release_at(&mut h, 150.0, 90.0, Modifiers::NONE); + } +} + /// 800 %, snapping off, the view centred on (30, 30): the pointer lands between pixel edges. fn zoomed(tool: Tool) -> Harness<'static, PhotocraftApp> { let mut h = harness(tool); diff --git a/crates/ui-egui/src/menu_catalog.rs b/crates/ui-egui/src/menu_catalog.rs index 179c51fd00..92fc8a11ca 100644 --- a/crates/ui-egui/src/menu_catalog.rs +++ b/crates/ui-egui/src/menu_catalog.rs @@ -804,4 +804,5 @@ pub static CATALOG: &[(&[&str], &str, Option<&str>, &str)] = &[ (&["Window"], "---", None, "---"), (&["Window"], "Options", None, "window.panel.options"), (&["Window"], "Tools", None, "window.panel.tools"), + (&["Window"], "Contextual Task Bar", None, "window.panel.contextualTaskBar"), ]; diff --git a/crates/ui-egui/src/menus/enable_rules.rs b/crates/ui-egui/src/menus/enable_rules.rs index 782735e2dd..1060107d79 100644 --- a/crates/ui-egui/src/menus/enable_rules.rs +++ b/crates/ui-egui/src/menus/enable_rules.rs @@ -16,8 +16,10 @@ fn background_blocks(id: &str, has_selection: bool) -> bool { // Global Light and Hide All Effects are document-wide. return !matches!(id, "layer.layerStyle.globalLight" | "layer.layerStyle.hideAllEffects" | "layer.layerStyle.copyLayerStyle"); } - // Transforms need a selection on the Background (they then move the selected pixels). - if !has_selection && (id == "edit.freeTransform" || (id.starts_with("edit.transform.") && id != "edit.transform.again")) { + // Transforms and Content-Aware Scale need a selection on the Background (they then move the + // selected pixels). + if !has_selection && (matches!(id, "edit.freeTransform" | "edit.contentAwareScale") || (id.starts_with("edit.transform.") && id != "edit.transform.again")) + { return true; } matches!( @@ -27,7 +29,6 @@ fn background_blocks(id: &str, has_selection: bool) -> bool { | "layer.mergeDown" | "layer.lockLayers" | "layer.maskAllObjects" - | "edit.contentAwareScale" | "edit.puppetWarp" | "edit.perspectiveWarp" ) @@ -218,6 +219,24 @@ mod tests { assert!(!disabled(&app, "edit.freeTransform") && !disabled(&app, "edit.transform.flipHorizontal")); } + /// Photoshop treats Content-Aware Scale like Free Transform: on the Background it needs a + /// selection, and then scales the selected pixels. + #[test] + fn content_aware_scale_on_the_background_needs_a_selection() { + let mut s = session(); + assert!(off(&s, "edit.contentAwareScale")); + s.execute("select.all", json!({})).unwrap(); + assert!(!off(&s, "edit.contentAwareScale")); + let mut app = crate::PhotocraftApp::new(s, crate::Services::default()); + assert!(!disabled(&app, "edit.contentAwareScale")); + let r = app.session.execute("edit.contentAwareScale", json!({"scaleX": 70})).unwrap(); + assert_eq!(r["to"], json!([14, 20])); + // A normal layer takes it without a selection. + app.session.execute("select.deselect", json!({})).unwrap(); + app.session.execute("layer.new.layer", json!({})).unwrap(); + assert!(!disabled(&app, "edit.contentAwareScale")); + } + /// With several layers selected, Rasterize is judged by the whole selection, not by the layer /// that happens to be active (or was right-clicked). #[test] diff --git a/crates/ui-egui/src/menus/invoke.rs b/crates/ui-egui/src/menus/invoke.rs index b7e8e812d7..6b6a3c373d 100644 --- a/crates/ui-egui/src/menus/invoke.rs +++ b/crates/ui-egui/src/menus/invoke.rs @@ -10,6 +10,7 @@ pub(crate) fn panel_alias(id: &str) -> Option<&'static str> { "navigator" | "info" | "histogram" => "window.toggle.navigator", "tools" => "window.toggle.toolbar", "options" => "window.toggle.options", + "contextualTaskBar" => "window.toggle.contextualTaskBar", "brushSettings" => "window.toggle.brushSettings", "brushes" => "window.toggle.brushes", _ => return None, @@ -803,6 +804,7 @@ fn toggle_panel(app: &mut PhotocraftApp, id: &str) -> Result { "navigator" => &mut panels.navigator, "toolbar" => &mut panels.toolbar, "options" => &mut panels.options_bar, + "contextualTaskBar" => &mut panels.context_task_bar, "brushSettings" => &mut panels.brush_settings, "brushes" => &mut panels.brushes, "dock" => &mut panels.dock, diff --git a/crates/ui-egui/src/menus/menu_keys.rs b/crates/ui-egui/src/menus/menu_keys.rs index cfdf2e9297..c2e90d1337 100644 --- a/crates/ui-egui/src/menus/menu_keys.rs +++ b/crates/ui-egui/src/menus/menu_keys.rs @@ -109,6 +109,19 @@ fn key_char(key: Key) -> Option { } } +/// The ASCII access key a displayed letter can represent. Turkic `i` uppercases to `İ`, +/// which is not an ASCII key; dotless `ı` can represent `I`. Key codes themselves stay ASCII. +pub(crate) fn label_key(c: char) -> Option { + let lang = crate::i18n::current(); + let upper = if matches!(lang.code(), "az" | "tr") && matches!(c, 'i' | 'ı' | 'İ') { + let mut bytes = [0; 4]; + lang.uppercase(c.encode_utf8(&mut bytes)).chars().next()? + } else { + c.to_ascii_uppercase() + }; + upper.is_ascii_alphanumeric().then_some(upper) +} + /// Mnemonics for `labels`, unique within the group: the preferred letter when the label has it, /// else the first unused ASCII letter or digit, trying the first character of each word before /// the others. Compared case-insensitively; the returned letter is upper case. @@ -116,13 +129,13 @@ pub fn assign(labels: &[&str], preferred: &[Option]) -> Vec> let mut used: Vec = Vec::new(); let mut out = Vec::with_capacity(labels.len()); for (i, label) in labels.iter().enumerate() { - let upper: Vec = label.chars().map(|c| c.to_ascii_uppercase()).collect(); + let upper: Vec = label.chars().filter_map(label_key).collect(); let has = |c: char| upper.contains(&c.to_ascii_uppercase()); let mut pick = preferred.get(i).copied().flatten().map(|c| c.to_ascii_uppercase()).filter(|&c| has(c) && !used.contains(&c)); if pick.is_none() { let starts = label.split(|c: char| !c.is_alphanumeric()).filter_map(|w| w.chars().next()); let rest = label.chars(); - pick = starts.chain(rest).filter(char::is_ascii_alphanumeric).map(|c| c.to_ascii_uppercase()).find(|c| !used.contains(c)); + pick = starts.chain(rest).filter_map(label_key).find(|c| !used.contains(c)); } if let Some(c) = pick { used.push(c); @@ -139,13 +152,13 @@ pub fn assign(labels: &[&str], preferred: &[Option]) -> Vec> /// do in those languages ("文件(F)", #5863). Mnemonics stay unique within the group, and a shown /// "(F)" is always the row's key. pub fn localized(labels: &[String], english: &[&str], preferred: &[Option]) -> (Vec, Vec>) { - let typed = |l: &str| l.chars().any(|c| c.is_ascii_alphanumeric()); + let typed = |l: &str| l.chars().any(|c| label_key(c).is_some()); // The key goes before a trailing ellipsis, as Windows writes it: "新建(N)…". let with_key = |l: &str, k: char| match l.strip_suffix('…').map(|b| (b, "…")).or_else(|| l.strip_suffix("...").map(|b| (b, "..."))) { Some((base, tail)) => format!("{base}({k}){tail}"), None => format!("{l}({k})"), }; - let english_keys = assign(english, preferred); + let english_keys = crate::i18n::with_language(crate::i18n::Lang::EN, || assign(english, preferred)); let mut shown = Vec::with_capacity(labels.len()); let mut pref = Vec::with_capacity(labels.len()); for (i, label) in labels.iter().enumerate() { @@ -181,7 +194,7 @@ pub fn mnemonic_text(ui: &Ui, prefix: &str, label: &str, mnemonic: Option, let color = color.unwrap_or(Color32::PLACEHOLDER); let font = egui::TextStyle::Button.resolve(ui.style()); let plain = egui::TextFormat { font_id: font.clone(), color, ..Default::default() }; - let at = mnemonic.and_then(|m| label.char_indices().find(|(_, c)| c.to_ascii_uppercase() == m).map(|(i, c)| (i, c.len_utf8()))); + let at = mnemonic.and_then(|m| label.char_indices().find(|(_, c)| label_key(*c) == Some(m)).map(|(i, c)| (i, c.len_utf8()))); let Some((i, len)) = at else { return egui::RichText::new(format!("{prefix}{label}")).color(color).into(); }; @@ -225,7 +238,7 @@ pub fn menu_row_text(ui: &Ui, checked: bool, label: &str, mnemonic: Option job.append(CHECK_MARK, 0.0, plain.clone()); lead = 0.0; } - let at = mnemonic.and_then(|m| label.char_indices().find(|(_, c)| c.to_ascii_uppercase() == m).map(|(i, c)| (i, c.len_utf8()))); + let at = mnemonic.and_then(|m| label.char_indices().find(|(_, c)| label_key(*c) == Some(m)).map(|(i, c)| (i, c.len_utf8()))); let parts = match at { Some((i, len)) => [label.get(..i), label.get(i..i + len), label.get(i + len..)], None => [Some(label), None, None], diff --git a/crates/ui-egui/src/menus/menu_keys/harness_tests.rs b/crates/ui-egui/src/menus/menu_keys/harness_tests.rs index f4a5b796a7..3e60bbe1d1 100644 --- a/crates/ui-egui/src/menus/menu_keys/harness_tests.rs +++ b/crates/ui-egui/src/menus/menu_keys/harness_tests.rs @@ -280,6 +280,34 @@ fn underlined_text_marks_the_mnemonic_once_and_keeps_the_prefix() { out.textures_delta.clear(); } +/// Access keys preserve visible spelling and underline only the locale-correct I pair. +#[test] +fn azerbaijani_and_turkish_mnemonics_keep_the_two_i_pairs_distinct() { + for code in ["az", "tr"] { + let lang = crate::i18n::Lang::from_code(code).unwrap(); + crate::i18n::with_language(lang, || { + assert_eq!(crate::menu_keys::assign(&["ix", "ı"], &[Some('I'), Some('I')]), [Some('X'), Some('I')]); + assert_eq!(crate::menu_keys::localized(&["i".into()], &["Image"], &[Some('I')]), (vec!["i(I)".into()], vec![Some('I')])); + let ctx = egui::Context::default(); + let mut out = ctx.run_ui(Default::default(), |ui| { + for text in [crate::menu_keys::mnemonic_text(ui, "", "İıi", Some('I'), None), crate::menu_keys::menu_row_text(ui, false, "İıi", Some('I'))] + { + let egui::WidgetText::LayoutJob(job) = text else { panic!("an access key makes a layout job") }; + assert!(job.text.ends_with("İıi"), "visible text is retained verbatim"); + let underlined: Vec<&str> = job + .sections + .iter() + .filter(|s| s.format.underline != egui::Stroke::NONE) + .map(|s| &job.text[s.byte_range.start.0..s.byte_range.end.0]) + .collect(); + assert_eq!(underlined, ["ı"]); + } + }); + out.textures_delta.clear(); + }); + } +} + /// The whole app: with the bar focused a letter opens a menu instead of picking a tool, and the /// arrows don't nudge the layer. #[test] diff --git a/crates/ui-egui/src/menus/parity.rs b/crates/ui-egui/src/menus/parity.rs index a185b3576e..36a4d7bd28 100644 --- a/crates/ui-egui/src/menus/parity.rs +++ b/crates/ui-egui/src/menus/parity.rs @@ -7,7 +7,7 @@ use crate::menu_catalog::CATALOG; use crate::menus::is_live; /// Minimum number of live catalog items. Raise it when parity grows; never lower it. -pub const FLOOR: usize = 660; +pub const FLOOR: usize = 661; /// One top-level menu's coverage. #[derive(Clone, Debug, serde::Serialize)] diff --git a/crates/ui-egui/src/menus/search.rs b/crates/ui-egui/src/menus/search.rs index f51172892d..0636c1d754 100644 --- a/crates/ui-egui/src/menus/search.rs +++ b/crates/ui-egui/src/menus/search.rs @@ -5,18 +5,24 @@ use super::state::translated_menu_label; /// Most results the Help menu search lists. pub(super) const HELP_SEARCH_MAX: usize = 15; -/// How well `query` (lowercase) matches a menu item: its label starting with it, then a word of +/// How well `query` matches an English menu item without case distinctions: its label starting with it, then a word of /// the label starting with it, then anywhere in the label, then anywhere in its menu path. /// `None` when it doesn't match at all. pub fn search_rank(query: &str, label: &str, path: &[String]) -> Option { - let l = label.to_lowercase(); - if l.starts_with(query) { + search_rank_in(crate::i18n::Lang::EN, query, label, path) +} + +/// Compare the query, label and path under the same language's casing rules. +fn search_rank_in(lang: crate::i18n::Lang, query: &str, label: &str, path: &[String]) -> Option { + let query = lang.lowercase(query); + let l = lang.lowercase(label); + if l.starts_with(&query) { Some(0) - } else if l.split(|c: char| !c.is_alphanumeric()).any(|w| w.starts_with(query)) { + } else if l.split(|c: char| !c.is_alphanumeric()).any(|w| w.starts_with(&query)) { Some(1) - } else if l.contains(query) { + } else if l.contains(&query) { Some(2) - } else if path.iter().any(|p| p.to_lowercase().contains(query)) { + } else if path.iter().any(|p| lang.contains_ignore_case(p, &query)) { Some(3) } else { None @@ -27,14 +33,14 @@ pub fn search_rank(query: &str, label: &str, path: &[String]) -> Option { /// labels and their `lang` translations match, so a search works in the UI language and in /// English; untranslated strings are simply their English text. pub fn search_items<'a>(items: &'a [MenuItem], query: &str, lang: crate::i18n::Lang) -> Vec<&'a MenuItem> { - let q = query.trim().to_lowercase(); + let q = query.trim(); if q.is_empty() { return Vec::new(); } let rank = |it: &MenuItem| { - let english = search_rank(&q, &it.label, &it.path); + let english = search_rank(q, &it.label, &it.path); let path: Vec = it.path.iter().map(|p| crate::i18n::tr(lang, p).to_string()).collect(); - let local = search_rank(&q, &translated_menu_label(lang, it), &path); + let local = search_rank_in(lang, q, &translated_menu_label(lang, it), &path); english.into_iter().chain(local).min() }; let mut hits: Vec<(u8, usize, &MenuItem)> = diff --git a/crates/ui-egui/src/menus/state.rs b/crates/ui-egui/src/menus/state.rs index f6a3c55534..2dd79b06b5 100644 --- a/crates/ui-egui/src/menus/state.rs +++ b/crates/ui-egui/src/menus/state.rs @@ -199,6 +199,7 @@ pub(super) fn checked(app: &PhotocraftApp, id: &str) -> Option { "window.toggle.dock" => p.dock, "window.togglePanels" => p.toolbar || p.options_bar || p.dock, "window.toggle.options" => p.options_bar, + "window.toggle.contextualTaskBar" => p.context_task_bar, "window.toggle.brushSettings" => p.brush_settings, "window.toggle.brushes" => p.brushes, _ => return None, diff --git a/crates/ui-egui/src/menus/tests.rs b/crates/ui-egui/src/menus/tests.rs index c3ec327b15..0eab47280f 100644 --- a/crates/ui-egui/src/menus/tests.rs +++ b/crates/ui-egui/src/menus/tests.rs @@ -310,6 +310,19 @@ fn help_search_matches_the_ui_language_and_english() { assert!(ids("zzzzqqq").is_empty()); } +/// Azerbaijani menu text and paths keep dotted I distinct; English aliases still work. +#[test] +fn azerbaijani_help_search_uses_the_language_of_each_alias() { + let az = crate::i18n::Lang::from_code("az").unwrap(); + let app = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default()); + let items = menu_items(&app); + let hits = |query: &str| search_items(&items, query, az).iter().map(|item| item.id.clone()).collect::>(); + assert!(!hits("ŞƏKİL").is_empty(), "uppercase dotted I matches Şəkil paths"); + assert_eq!(hits("ŞƏKİL"), hits("şəkil")); + assert!(hits("ŞƏKIL").is_empty(), "dotless I must not match dotted i"); + assert!(hits("DISTORT").contains(&"edit.transform.distort".to_string()), "English aliases keep English casing"); +} + /// #1447, #1438: a click on Help leaves its search field focused, so typing searches at once, /// and clicking into the field and typing keeps the menu open. Whole app, real clicks (press /// and release in separate frames), with the custom title bar (Windows, Linux) and without. diff --git a/crates/ui-egui/src/menus/view_cmds/arrange.rs b/crates/ui-egui/src/menus/view_cmds/arrange.rs index 9cf7a61d80..3b81474605 100644 --- a/crates/ui-egui/src/menus/view_cmds/arrange.rs +++ b/crates/ui-egui/src/menus/view_cmds/arrange.rs @@ -107,7 +107,11 @@ pub(super) fn arrange(app: &mut PhotocraftApp, k: &str, p: &Value) -> Result = app.session.documents().iter().map(|d| [d.doc.size.width, d.doc.size.height]).collect(); - let apply = |v: &mut crate::state::View, doc: usize| { + // A default-mode crop turns the active view's camera; that turn is the crop's, not the + // view's own rotation (which picking the Crop tool made 0), so it isn't copied (#9308). + let crop = crate::crop_mode::turns_view(app); + let rotation = if crop { 0.0 } else { src.rotation }; + let apply = |v: &mut crate::state::View, doc: usize, cropped: bool| { if zoom { v.zoom = crate::zoom_levels::clamp(src.zoom, sizes.get(doc).copied().unwrap_or(v.doc_size)); v.request_zoom_animation(animated_zoom); @@ -115,14 +119,15 @@ pub(super) fn arrange(app: &mut PhotocraftApp, k: &str, p: &Value) -> Result Err(format!("unknown arrangement {k}")), } diff --git a/crates/ui-egui/src/move_auto_select_tests.rs b/crates/ui-egui/src/move_auto_select_tests.rs index 792c30e50e..568a3e6aa5 100644 --- a/crates/ui-egui/src/move_auto_select_tests.rs +++ b/crates/ui-egui/src/move_auto_select_tests.rs @@ -257,3 +257,48 @@ fn shift_click_adds_shape_layers_one_after_another() { selected.sort_by_key(|l| l.0); assert_eq!(selected, ids); } + +/// Opens B's transform controls (Show Transform Controls on) and resizes the box to twice B's +/// size from its top-left corner, so it covers (40..72)². +fn resized_box() -> (PhotocraftApp, LayerId, LayerId) { + let (mut app, a, b) = app(); + app.ui.tool_options.move_show_transform = true; + crate::transform_tool::begin(&mut app, &egui::Context::default()).unwrap(); + let t = app.ui.transform.as_mut().unwrap(); + t.quad[2] = [t.quad[2][0] + 16.0, t.quad[2][1] + 16.0]; + t.quad[1][0] += 16.0; + t.quad[3][1] += 16.0; + (app, a, b) +} + +/// A plain click (press and release without moving) at document point `p`. +fn click(app: &mut PhotocraftApp, p: [f64; 2]) { + crate::canvas::tool_event(app, ToolEvent::Down { x: p[0], y: p[1], pressure: 1.0 }, egui::Modifiers::NONE); + crate::canvas::tool_event(app, ToolEvent::Up { x: p[0], y: p[1] }, egui::Modifiers::NONE); +} + +/// #8208, #11100, as measured in the reference application: a click outside a resized box on +/// another layer's pixels commits the resize as one Free Transform step and keeps the transformed +/// layer selected; the second click on that layer is the one that picks it. +#[test] +fn a_click_on_another_layer_accepts_a_resized_box_and_the_next_one_picks_it() { + let (mut app, a, b) = resized_box(); + click(&mut app, [16.0, 16.0]); + assert!(app.ui.transform.is_none(), "the click on A accepted the box"); + assert_eq!(bounds(&app, b), Rect::new(40, 40, 72, 72), "B keeps its resize"); + let last = app.session.active().unwrap().history.entries().last().map(ToString::to_string); + assert_eq!(last.as_deref(), Some("Free Transform")); + assert_eq!(active(&app), Some(b), "the accepting click leaves B selected"); + click(&mut app, [16.0, 16.0]); + assert_eq!(active(&app), Some(a), "the second click picks A"); +} + +/// #11100: a click outside the box where only the Background has pixels keeps it open, B still +/// selected. +#[test] +fn a_click_on_the_background_alone_keeps_the_resized_box_open() { + let (mut app, _, b) = resized_box(); + click(&mut app, [30.0, 30.0]); + assert!(app.ui.transform.is_some(), "the box stays open"); + assert_eq!(active(&app), Some(b)); +} diff --git a/crates/ui-egui/src/panels/adjust_ui.rs b/crates/ui-egui/src/panels/adjust_ui.rs index 2d70592c52..1074cbfd24 100644 --- a/crates/ui-egui/src/panels/adjust_ui.rs +++ b/crates/ui-egui/src/panels/adjust_ui.rs @@ -1,85 +1,18 @@ -//! Properties-panel editors for the Selective Color and Color Lookup adjustment layers. +//! Properties-panel editor for the Color Lookup adjustment layer. //! -//! Both commit through `layer.setAdjustment` (which merges these kinds' params into the current -//! values). Selective Color previews live while a slider drags, via `app.live_adjust` carrying -//! the full parameter set; Color Lookup commits on every change (its table isn't in the params). +//! It commits through `layer.setAdjustment` (which merges the params into the current values) on +//! every change, since its table isn't in the params. The other kinds, Selective Color included, +//! are edited by `adjust_editors`. use std::sync::{Arc, Mutex, PoisonError}; use photocraft_doc::{Adjustment, LayerId}; -use photocraft_engine::adjust_cmds::RANGES; use serde_json::{Value, json}; use crate::PhotocraftApp; use crate::theme::Tokens; use crate::widgets; -const RANGE_LABELS: [&str; 9] = ["Reds", "Yellows", "Greens", "Cyans", "Blues", "Magentas", "Whites", "Neutrals", "Blacks"]; - -/// The full parameter set of a Selective Color adjustment (every range as `[c, m, y, k]`). -pub fn selective_values(adj: &Adjustment) -> Value { - let Adjustment::SelectiveColor { relative, adjustments } = adj else { - return json!({}); - }; - let mut v = json!({"method": if *relative { "relative" } else { "absolute" }}); - for (i, key) in RANGES.iter().enumerate() { - v[*key] = json!(adjustments[i]); - } - v -} - -pub fn selective_color_editor(app: &mut PhotocraftApp, ui: &mut egui::Ui, id: LayerId, adj: &Adjustment) { - let t = Tokens::get(ui.ctx()); - let committed = selective_values(adj); - let mut values = match &app.live_adjust { - Some((l, v)) if *l == id && v.get("reds").is_some() => v.clone(), - _ => committed, - }; - let key = egui::Id::unique(("selc-range", id.0)); - let mut range: usize = ui.data(|d| d.get_temp(key)).unwrap_or(0); - ui.horizontal(|ui| { - ui.label(egui::RichText::new(tl!("Colors")).color(t.text_dim)); - let opts: Vec<(usize, &str)> = RANGE_LABELS.iter().copied().enumerate().collect(); - if widgets::dropdown(ui, &format!("selc-colors-{}", id.0), tl!("Color"), &mut range, &opts, 150.0) { - ui.data_mut(|d| d.insert_temp(key, range)); - } - }); - ui.add_space(4.0); - let mut live = false; - let mut commit = false; - for (k, label) in [tl!("Cyan"), tl!("Magenta"), tl!("Yellow"), tl!("Black")].iter().enumerate() { - let mut v = values[RANGES[range]][k].as_f64().unwrap_or(0.0) as f32; - let r = widgets::slider_row(ui, label, &mut v, -100.0..=100.0, "%", None); - if r.changed() { - values[RANGES[range]][k] = json!(v.round()); - live = true; - } - if r.drag_stopped() || (r.changed() && !r.dragged()) { - commit = true; - } - } - ui.add_space(4.0); - let mut method = values["method"].as_str().unwrap_or("relative").to_string(); - ui.horizontal(|ui| { - for (m, label) in [("relative", tl!("Relative")), ("absolute", tl!("Absolute"))] { - if ui.radio(method == m, label).clicked() && method != m { - method = m.to_string(); - values["method"] = json!(m); - commit = true; - } - } - }); - if live { - app.live_adjust = Some((id, values.clone())); - } - if commit { - let mut p = values; - p["layer"] = json!(id.0); - let _ = app.run("layer.setAdjustment", p); - app.live_adjust = None; - } -} - /// Ask the platform for one LUT. Send embedded text through the same engine command on /// desktop and web, so the result doesn't depend on ambient filesystem permissions. fn browse_color_lookup(app: &mut PhotocraftApp, layer: LayerId) -> Result { diff --git a/crates/ui-egui/src/panels/layer_filter_ui.rs b/crates/ui-egui/src/panels/layer_filter_ui.rs index a56c349833..1c439872a3 100644 --- a/crates/ui-egui/src/panels/layer_filter_ui.rs +++ b/crates/ui-egui/src/panels/layer_filter_ui.rs @@ -3,8 +3,8 @@ //! picks one effect kind (#10880), Mode picks one blend mode, Attribute one layer attribute or //! its opposite (#10881), Color one layer colour label (#5898), Smart Object toggles linked, //! missing and embedded smart objects, Artboard lists only the artboards that hold the selected -//! layers. The criteria live in `UiState` (`layer_filter*`), so the control channel can read and -//! set them. +//! layers, Group every group with its contents (#10883). The criteria live in `UiState` +//! (`layer_filter*`), so the control channel can read and set them. use std::collections::HashSet; @@ -28,6 +28,7 @@ pub enum FilterBy { Color, SmartObject, Artboard, + Group, } /// The filter criteria, copied out of `UiState` for one frame of the Layers panel. @@ -46,7 +47,8 @@ pub struct Filter { /// The linked files the Smart Object filter's Missing toggle lists /// ([`photocraft_engine::Session::missing_links`]). pub missing: HashSet, - /// The rows the Artboard filter lists ([`board_rows`]); empty lists every row. + /// The rows the Artboard filter ([`board_rows`]) or the Group filter ([`group::listed`]) + /// lists; empty lists every row under Artboard and none under Group. pub board_rows: HashSet, /// The empty layers the Attribute filter's Empty and Not Empty use /// ([`attribute::empty_layers`]); `None` reads each layer's pixels. @@ -83,6 +85,9 @@ impl Filter { if f.by == FilterBy::Artboard { f.board_rows = board_rows(doc, selection); } + if f.by == FilterBy::Group { + f.board_rows = group::listed(doc); + } if f.by == FilterBy::Attribute { f.empty = attribute::empty_layers(app, f.attribute); } @@ -99,7 +104,7 @@ impl Filter { } /// Whether the panel is filtered. Like Photoshop, Effect, Mode, Attribute and Color always - /// filter (by Bevel & Emboss, by Normal, by Visible and by no colour at first); Kind, Name and + /// filter (by Bevel & Emboss, by Normal, by Visible and by no colour at first), and so does Group; Kind, Name and /// Smart Object only once a toggle is on or some text is typed; Artboard only while some layers /// are selected and each of them is in an artboard. pub fn active(&self) -> bool { @@ -109,9 +114,16 @@ impl Filter { FilterBy::Effect | FilterBy::Mode | FilterBy::Attribute | FilterBy::Color => true, FilterBy::SmartObject => !self.smart.is_empty(), FilterBy::Artboard => !self.board_rows.is_empty(), + FilterBy::Group => true, } } + /// Whether the panel lists the contents of closed groups: while it is filtered, except by + /// Group, which lists whole groups and keeps each one open or closed as it is (#10883). + pub fn show_all(&self) -> bool { + self.active() && self.by != FilterBy::Group + } + /// Whether `l` is listed under this filter. pub fn shows(&self, l: &Layer) -> bool { if !self.active() { @@ -133,6 +145,7 @@ impl Filter { }) } FilterBy::Artboard => self.board_rows.contains(&l.id), + FilterBy::Group => self.board_rows.contains(&l.id), } } } @@ -180,12 +193,12 @@ pub const SMART: [&str; 3] = ["linked", "missing", "embedded"]; /// `ui.set {layerFilter: {by?, kinds?, name?, effect?, mode?, attribute?, color?, smart?}}`: /// `current` with the given fields replaced, or an error naming the bad field (nothing changes -/// then). `by` is `kind`, `name`, `effect`, `mode`, `attribute`, `color`, `smartObject` or -/// `artboard`; `kinds` a list of [`KINDS`]; `effect` an [`effect::EffectKind`] id; `mode` one of +/// then). `by` is `kind`, `name`, `effect`, `mode`, `attribute`, `color`, `smartObject`, +/// `artboard` or `group`; `kinds` a list of [`KINDS`]; `effect` an [`effect::EffectKind`] id; `mode` one of /// the layer blend modes such as `Multiply` (not Pass Through, which the Mode list doesn't offer, /// #10878); `attribute` an [`attribute::Attribute`] id; `color` a label colour id (`none`, `red`, /// … `gray`, [`LabelColor::id`]); `smart` a list of [`SMART`]. Artboard has no criteria of its -/// own: the selected layers pick the artboards. +/// own: the selected layers pick the artboards; nor has Group. pub fn patched(current: &UiState, v: &serde_json::Value) -> Result { let Some(o) = v.as_object() else { return Err("layerFilter must be an object".into()) }; if let Some(k) = o.keys().find(|k| !["by", "kinds", "name", "effect", "mode", "attribute", "color", "smart"].contains(&k.as_str())) { @@ -194,7 +207,7 @@ pub fn patched(current: &UiState, v: &serde_json::Value) -> Result {} + // Group has no controls either: it lists every group ([`group::listed`]). + FilterBy::Group => {} } }); selection::follow(app, ui.ctx()); } pub mod effect; +mod group; pub mod selection; #[cfg(test)] @@ -369,3 +386,6 @@ mod tests; #[cfg(test)] mod kind_mode_tests; + +#[cfg(test)] +mod group_tests; diff --git a/crates/ui-egui/src/panels/layer_filter_ui/group.rs b/crates/ui-egui/src/panels/layer_filter_ui/group.rs new file mode 100644 index 0000000000..8e0e5ed571 --- /dev/null +++ b/crates/ui-egui/src/panels/layer_filter_ui/group.rs @@ -0,0 +1,22 @@ +//! The Layers panel's Group filter (#10883): every group with its whole subtree; layers in no +//! group are hidden. An artboard row is not a group here, but the groups inside it are. + +use std::collections::HashSet; + +use photocraft_doc::{Document, Layer, LayerContent, LayerId}; + +/// The ids of the layers the Group filter lists. The tree is walked once, with a stack rather +/// than recursion, so a deep document can't overflow it. +pub fn listed(doc: &Document) -> HashSet { + let mut out = HashSet::new(); + let mut pending: Vec<(&Layer, bool)> = doc.layers.iter().map(|l| (l, false)).collect(); + while let Some((l, inside)) = pending.pop() { + let artboard = matches!(&l.content, LayerContent::Group(g) if g.artboard.is_some()); + let inside = inside || (l.is_group() && !artboard); + if inside { + out.insert(l.id); + } + pending.extend(l.children().unwrap_or_default().iter().map(|c| (c, inside))); + } + out +} diff --git a/crates/ui-egui/src/panels/layer_filter_ui/group_tests.rs b/crates/ui-egui/src/panels/layer_filter_ui/group_tests.rs new file mode 100644 index 0000000000..c2f9ebb727 --- /dev/null +++ b/crates/ui-egui/src/panels/layer_filter_ui/group_tests.rs @@ -0,0 +1,144 @@ +//! #10883: the Layers panel's Group filter. + +use photocraft_engine::Session; +use serde_json::json; + +use super::{Filter, FilterBy}; +use crate::PhotocraftApp; +use crate::state::UiState; + +fn new_session() -> Session { + let mut s = Session::new(); + s.execute("file.new", json!({"width": 64, "height": 48})).unwrap(); + s +} + +/// The app with `s` open and the Layers panel filtered by Group. +fn app(s: Session) -> PhotocraftApp { + let mut app = PhotocraftApp::new(s, crate::Services::default()); + app.ui.layer_filter_by = FilterBy::Group; + app +} + +fn id(s: &Session, name: &str) -> u64 { + s.active().unwrap().doc.walk().into_iter().find(|(_, _, l)| l.name == name).map(|(_, _, l)| l.id.0).unwrap_or_else(|| panic!("no layer {name}")) +} + +fn select(s: &mut Session, name: &str) { + let layer = id(s, name); + s.execute("layer.select", json!({"layer": layer})).unwrap(); +} + +/// A new layer above the one selected (inside its group, if it is in one). +fn add(s: &mut Session, name: &str) { + s.execute("layer.new.layer", json!({"name": name})).unwrap(); +} + +/// Groups the layer `name`. +fn group(s: &mut Session, name: &str, group_name: &str) { + select(s, name); + s.execute("layer.groupLayers", json!({"name": group_name})).unwrap(); +} + +fn set_expanded(s: &mut Session, name: &str, expanded: bool) { + let layer = id(s, name); + s.execute("layer.setExpanded", json!({"layer": layer, "expanded": expanded})).unwrap(); +} + +/// The rows the panel draws, top to bottom, two spaces per level: the rows and the filter the +/// Layers panel uses for the frame. +fn listed(app: &PhotocraftApp) -> Vec { + let doc = &app.session.active().unwrap().doc; + let f = Filter::of_app(app); + crate::layer_tree_ui::panel_rows(app, doc).into_iter().filter(|(_, l)| f.shows(l)).map(|(depth, l)| format!("{}{}", " ".repeat(depth), l.name)).collect() +} + +/// The selected layers' names. +fn selected(app: &PhotocraftApp) -> Vec { + let st = app.session.active().unwrap(); + st.selected_layers().iter().filter_map(|id| st.doc.layer(*id)).map(|l| l.name.clone()).collect() +} + +/// Top Pixel · Outer { Inner { Deep } } · Background. +fn nested() -> Session { + let mut s = new_session(); + add(&mut s, "Top Pixel"); + add(&mut s, "Deep"); + group(&mut s, "Deep", "Inner"); + group(&mut s, "Inner", "Outer"); + s.execute("layer.setExpanded", json!({"all": true, "expanded": true})).unwrap(); + s +} + +#[test] +fn lists_nested_groups_with_their_contents_and_hides_loose_layers() { + let app = app(nested()); + assert!(Filter::of_app(&app).active(), "Group filters at once"); + assert_eq!(listed(&app), ["Outer", " Inner", " Deep"]); +} + +#[test] +fn collapsed_groups_stay_collapsed() { + let mut app = app(nested()); + set_expanded(&mut app.session, "Inner", false); + assert_eq!(listed(&app), ["Outer", " Inner"], "a collapsed nested group hides its children"); + set_expanded(&mut app.session, "Outer", false); + assert_eq!(listed(&app), ["Outer"], "a collapsed group hides everything inside"); + set_expanded(&mut app.session, "Outer", true); + assert_eq!(listed(&app), ["Outer", " Inner"], "each group keeps its own state"); +} + +#[test] +fn an_artboard_is_not_listed_but_its_groups_are() { + let mut s = new_session(); + add(&mut s, "G child"); + group(&mut s, "G child", "Plain G"); + select(&mut s, "Background"); + add(&mut s, "A child"); + s.execute("layer.new.artboardFromLayers", json!({"name": "Artboard 1"})).unwrap(); + select(&mut s, "A child"); + add(&mut s, "GA child"); + group(&mut s, "GA child", "G in AB"); + s.execute("layer.setExpanded", json!({"all": true, "expanded": true})).unwrap(); + let mut app = app(s); + assert_eq!(listed(&app), [" G in AB", " GA child", "Plain G", " G child"]); + set_expanded(&mut app.session, "Artboard 1", false); + assert_eq!(listed(&app), ["Plain G", " G child"], "a collapsed artboard hides the groups inside it"); +} + +#[test] +fn the_list_does_not_depend_on_the_selection() { + let mut app = app(nested()); + select(&mut app.session, "Deep"); + let with_deep = listed(&app); + app.session.execute("select.deselectLayers", json!({})).unwrap(); + assert_eq!(listed(&app), with_deep, "same list with nothing selected"); +} + +#[test] +fn applying_it_keeps_a_selected_layer_in_a_group_and_deselects_a_loose_one() { + let mut app = app(nested()); + select(&mut app.session, "Deep"); + super::selection::deselect_hidden(&mut app); + assert_eq!(selected(&app), ["Deep"], "a listed layer stays selected"); + select(&mut app.session, "Top Pixel"); + super::selection::deselect_hidden(&mut app); + assert!(selected(&app).is_empty(), "a layer in no group is hidden, so it is deselected"); +} + +#[test] +fn group_is_set_by_name_through_the_control_channel() { + let ui = UiState::default(); + let f = super::patched(&ui, &json!({"by": "group"})).unwrap(); + assert_eq!(f.by, FilterBy::Group); + let err = super::patched(&ui, &json!({"by": "nope"})).unwrap_err(); + assert!(err.contains("group"), "the error lists group: {err}"); +} + +#[test] +fn lists_empty_groups_and_nothing_without_groups() { + let mut app = app(new_session()); + assert!(listed(&app).is_empty(), "no group: nothing is listed"); + app.session.execute("layer.new.group", json!({"name": "Empty Group"})).unwrap(); + assert_eq!(listed(&app), ["Empty Group"], "an empty group is listed as a group row"); +} diff --git a/crates/ui-egui/src/panels/layer_tree_ui.rs b/crates/ui-egui/src/panels/layer_tree_ui.rs index 0bd071c520..1d7586f4c6 100644 --- a/crates/ui-egui/src/panels/layer_tree_ui.rs +++ b/crates/ui-egui/src/panels/layer_tree_ui.rs @@ -40,7 +40,7 @@ pub fn display_rows(doc: &Document, show_all: bool) -> Vec<(usize, &Layer)> { /// Mask session's working text, which is no layer to the user: Photoshop shows only the mask /// overlay while you type (#3036). pub fn panel_rows<'a>(app: &PhotocraftApp, doc: &'a Document) -> Vec<(usize, &'a Layer)> { - let mut rows = display_rows(doc, crate::layer_filter_ui::Filter::of(&app.ui).active()); + let mut rows = display_rows(doc, crate::layer_filter_ui::Filter::of(&app.ui).show_all()); if let Some(working) = app.ui.text_edit.as_ref().filter(|ed| ed.mask).map(|ed| ed.layer) { rows.retain(|(_, l)| l.id.0 != working); } diff --git a/crates/ui-egui/src/panels/layers_panel_ui.rs b/crates/ui-egui/src/panels/layers_panel_ui.rs index 5bf63ac814..a7dc5f9fb2 100644 --- a/crates/ui-egui/src/panels/layers_panel_ui.rs +++ b/crates/ui-egui/src/panels/layers_panel_ui.rs @@ -9,9 +9,13 @@ use crate::state::{LayerThumbnailContents, LayerThumbnailSize, LayersPanelDialog const OPTIONS_PREF: &str = "ui.layersPanelOptions"; -/// Save independently of Workspace > Remember Workspace Changes, as Photoshop does. +/// Save independently of Workspace > Remember Workspace Changes, as Photoshop does. A pick of the +/// current value writes nothing unless the saved entry is missing or stale. pub fn persist_options(app: &mut PhotocraftApp) { if let Ok(value) = serde_json::to_value(&app.ui.layers_panel_options) { + if app.session.prefs().dialogs.get(OPTIONS_PREF) == Some(&value) { + return; + } app.session.prefs.edit(|p| { p.dialogs.insert(OPTIONS_PREF.into(), value); }); diff --git a/crates/ui-egui/src/panels/mask_thumbs_ui/tests.rs b/crates/ui-egui/src/panels/mask_thumbs_ui/tests.rs index aeb8538256..7548beec64 100644 --- a/crates/ui-egui/src/panels/mask_thumbs_ui/tests.rs +++ b/crates/ui-egui/src/panels/mask_thumbs_ui/tests.rs @@ -844,28 +844,45 @@ fn selecting_an_adjustment_layer_from_another_layer_targets_its_mask() { // The reference application: an adjustment layer picked by its name targets its mask; a // masked pixel layer targets its contents; the content thumbnail still targets contents. for command in ["layer.newAdjustmentLayer.hueSaturation", "layer.newAdjustmentLayer.curves"] { - let (mut s, masked, other) = session(); - s.execute(command, json!({})).unwrap(); - let id = s.active().unwrap().active_layer.unwrap().0; - let mut h = harness(s, 0, 1.0, 360.0); - assert!(layer(&h, id).mask.is_some(), "{command}: the adjustment layer has a mask"); - let name_of = - |h: &Harness<'_, PhotocraftApp>, l: u64| crate::layer_row_ui::recorded(&h.ctx).into_iter().find(|r| r.layer == l).unwrap().name.unwrap().center(); - let at = name_of(&h, other); - click_with(&mut h, at, Modifiers::NONE); - let at = name_of(&h, id); - click_with(&mut h, at, Modifiers::NONE); - assert_eq!(h.state().session.active().unwrap().active_layer.unwrap().0, id); - assert!(h.state().ui.mask_target && !h.state().ui.vector_mask_target, "{command}: a name click targets the mask"); - assert_eq!(crate::canvas::paint_target(h.state()), json!("mask")); - // The content thumbnail targets the contents. - let thumb = layer_thumb_center(&h, id); - click_with(&mut h, thumb, Modifiers::NONE); - assert!(!h.state().ui.mask_target, "{command}: the content thumbnail targets contents"); - // A masked pixel layer picked by its name targets its contents. - let at = name_of(&h, masked); - click_with(&mut h, at, Modifiers::NONE); - assert_eq!(h.state().session.active().unwrap().active_layer.unwrap().0, masked); - assert!(!h.state().ui.mask_target && !h.state().ui.vector_mask_target, "{command}: a pixel layer targets its contents"); + for ppp in [1.0, 2.0] { + let (mut s, masked, other) = session(); + s.execute(command, json!({})).unwrap(); + let id = s.active().unwrap().active_layer.unwrap().0; + let path = json!({"subpaths": [{"knots": [[20, 10], [120, 10], [120, 90], [20, 90]]}]}); + s.execute("layer.vectorMask.add", json!({"layer": id, "path": path})).unwrap(); + let mut h = harness(s, 0, ppp, 360.0); + assert!(layer(&h, id).mask.is_some(), "{command}: the adjustment layer has a mask"); + let name_of = |h: &Harness<'_, PhotocraftApp>, l: u64| { + crate::layer_row_ui::recorded(&h.ctx).into_iter().find(|r| r.layer == l).unwrap().name.unwrap().center() + }; + // Each mask thumbnail targets its own mask. + for kind in [MaskKind::Pixel, MaskKind::Vector] { + let at = mask_rect(&h, id, kind).center(); + click_with(&mut h, at, Modifiers::NONE); + assert_eq!(h.state().ui.mask_target, kind == MaskKind::Pixel, "{command} @{ppp}x {kind:?}"); + assert_eq!(h.state().ui.vector_mask_target, kind == MaskKind::Vector, "{command} @{ppp}x {kind:?}"); + } + let at = name_of(&h, other); + click_with(&mut h, at, Modifiers::NONE); + let at = name_of(&h, id); + click_with(&mut h, at, Modifiers::NONE); + assert_eq!(h.state().session.active().unwrap().active_layer.unwrap().0, id); + assert!(h.state().ui.mask_target && !h.state().ui.vector_mask_target, "{command} @{ppp}x: a name click targets the mask"); + assert_eq!(crate::canvas::paint_target(h.state()), json!("mask")); + // Fill goes to the mask and leaves the adjustment as it is. + let content = layer(&h, id).content; + h.state_mut().run("edit.fill", json!({"contents": "black"})).unwrap(); + assert_eq!(layer(&h, id).content, content, "{command} @{ppp}x: filling must preserve the adjustment"); + assert_eq!(layer(&h, id).mask.unwrap().surface.sample_channel(50, 50, 0), 0.0, "{command} @{ppp}x: Fill edits the mask"); + // The content thumbnail targets the contents. + let thumb = layer_thumb_center(&h, id); + click_with(&mut h, thumb, Modifiers::NONE); + assert!(!h.state().ui.mask_target && !h.state().ui.vector_mask_target, "{command} @{ppp}x: the content thumbnail targets contents"); + // A masked pixel layer picked by its name targets its contents. + let at = name_of(&h, masked); + click_with(&mut h, at, Modifiers::NONE); + assert_eq!(h.state().session.active().unwrap().active_layer.unwrap().0, masked); + assert!(!h.state().ui.mask_target && !h.state().ui.vector_mask_target, "{command} @{ppp}x: a pixel layer targets its contents"); + } } } diff --git a/crates/ui-egui/src/panels/smart_ui.rs b/crates/ui-egui/src/panels/smart_ui.rs index 7fda8c2ee4..34258ab909 100644 --- a/crates/ui-egui/src/panels/smart_ui.rs +++ b/crates/ui-egui/src/panels/smart_ui.rs @@ -507,6 +507,7 @@ pub fn open_editor(app: &mut PhotocraftApp, ctx: &egui::Context, layer: u64, sm: }) else { return; }; + let mode = app.session.active().map(|st| st.doc.mode); if let Some(d) = app.ui.dialog_mut(id) { d.fields.insert("__smartFilter".into(), target); if let Value::Object(p) = &f.params { @@ -516,6 +517,9 @@ pub fn open_editor(app: &mut PhotocraftApp, ctx: &egui::Context, layer: u64, sm: } } } + if let Some(mode) = mode { + crate::adjust_dialog::seed_from_recorded(&mut d.fields, &f.params, mode); + } } } @@ -778,6 +782,61 @@ mod tests { assert_eq!(sm.smart_filters[0].params.get("contrast").and_then(Value::as_f64), Some(-10.0)); } + /// #11463: a Selective Color smart filter recorded in the single-colour form, re-edited. Its + /// old `cyan` and `relative` must not survive replacement and override the edit when the filter + /// renders and reopens. + #[test] + fn a_selective_color_smart_filter_in_the_old_form_keeps_its_edit() { + let mut s = photocraft_engine::Session::new(); + s.execute("file.new", json!({"width": 64, "height": 48})).unwrap(); + s.execute("layer.new.layer", json!({})).unwrap(); + s.execute("edit.fill", json!({"contents": "color", "color": "#2030c0"})).unwrap(); + let id = s.execute("layer.smartObjects.convertToSmartObject", json!({})).unwrap()["layer"].as_u64().unwrap(); + s.execute("image.adjustments.selectiveColor", json!({"colors": "blues", "cyan": 30, "relative": false})).unwrap(); + let mut app = PhotocraftApp::new(s, crate::Services::default()); + app.background_jobs = false; + let recorded = |app: &PhotocraftApp| match &app.session.active().unwrap().doc.layer(photocraft_doc::LayerId(id)).unwrap().content { + LayerContent::Smart(sm) => sm.clone(), + other => panic!("expected a smart object, got {other:?}"), + }; + let sm = recorded(&app); + assert_eq!(sm.smart_filters[0].params.get("cyan").and_then(Value::as_f64), Some(30.0), "recorded in the old form"); + let mut h = egui_kittest::Harness::builder().with_size(egui::vec2(1200.0, 900.0)).build_ui_state(|ui, app| crate::dialogs::show(app, ui.ctx()), app); + PhotocraftApp::setup_context(&h.ctx, crate::theme::ThemeKind::ALL[0]); + let ctx = h.ctx.clone(); + open_editor(h.state_mut(), &ctx, id, &sm, 0); + let dialog = h.state().ui.dialogs.last().unwrap().id; + h.run_steps(3); + let fields = &h.state_mut().ui.dialog_mut(dialog).unwrap().fields; + assert!(!fields.contains_key("cyan") && !fields.contains_key("relative"), "folded: {fields:?}"); + assert_eq!(fields["colors"], json!("blues"), "normalization keeps the selected colour"); + assert_eq!(fields["blues"][0].as_f64(), Some(30.0)); + assert_eq!(fields["method"], json!("absolute")); + // Edit the row and the Method, then OK. + let fields = &mut h.state_mut().ui.dialog_mut(dialog).unwrap().fields; + fields.insert("blues".into(), json!([10.0, 0.0, 0.0, 0.0])); + fields.insert("method".into(), json!("relative")); + h.run_steps(2); + crate::dialogs::confirm(h.state_mut(), dialog).unwrap(); + let sm = recorded(h.state()); + assert_eq!(sm.smart_filters.len(), 1, "no filter was stacked"); + let photocraft_doc::Adjustment::SelectiveColor { relative, adjustments } = + photocraft_engine::adjust_cmds::selective_from_params(&sm.smart_filters[0].params, None).unwrap() + else { + panic!("Selective Color params"); + }; + assert!(relative, "the edited Method renders"); + assert_eq!(adjustments[4], [10.0, 0.0, 0.0, 0.0], "the edited row renders"); + // And reopens as edited. + open_editor(h.state_mut(), &ctx, id, &sm, 0); + let dialog = h.state().ui.dialogs.last().unwrap().id; + h.run_steps(3); + let fields = &h.state_mut().ui.dialog_mut(dialog).unwrap().fields; + assert_eq!(fields["colors"], json!("blues"), "reopening keeps the selected colour"); + assert_eq!(fields["blues"][0].as_f64(), Some(10.0)); + assert_eq!(fields["method"], json!("relative")); + } + /// #6324: a smart filter opened for editing previews, and its preview replaces the filter in /// the stack (as OK does) instead of stacking a second one. #[test] diff --git a/crates/ui-egui/src/panels/smart_ui/editor_tests.rs b/crates/ui-egui/src/panels/smart_ui/editor_tests.rs index 6e0b9d14f8..26b80f561b 100644 --- a/crates/ui-egui/src/panels/smart_ui/editor_tests.rs +++ b/crates/ui-egui/src/panels/smart_ui/editor_tests.rs @@ -103,7 +103,7 @@ fn adjustment_editor_reopens_stored_parameters_and_updates_instead_of_appending( super::open_editor(&mut app, &ctx, layer.0, &sm, 2); let id = app.ui.dialogs.last().unwrap().id; let fields = &mut app.ui.dialog_mut(id).unwrap().fields; - assert_eq!(fields["hue"], json!(35)); + assert_eq!(fields["hue"].as_f64(), Some(35.0)); assert!(crate::adjust_dialog::owns(fields)); fields.insert("hue".into(), json!(75)); let idx = app.session.active_index().unwrap(); @@ -122,6 +122,109 @@ fn adjustment_editor_reopens_stored_parameters_and_updates_instead_of_appending( assert!(app.ui.dialogs.is_empty(), "Invert has no parameter editor"); } +/// Records `command` on a Smart Object in a `mode` document, opens the filter's editor, lets it +/// draw and confirms with no edit. The filter's stored params afterwards. +fn stored_after_confirming_unedited(mode: &str, command: &str, recorded: &serde_json::Value) -> serde_json::Value { + let (mut app, layer) = app(8, mode); + app.run(command, recorded.clone()).unwrap(); + let sm = smart(&app, layer).clone(); + let index = sm.smart_filters.len() - 1; + assert_eq!(sm.smart_filters[index].command, command); + let mut h = Harness::builder().with_size(vec2(1200.0, 900.0)).build_ui_state(|ui, app: &mut PhotocraftApp| crate::dialogs::show(app, ui.ctx()), app); + PhotocraftApp::setup_context(&h.ctx, crate::theme::ThemeKind::ALL[0]); + let ctx = h.ctx.clone(); + super::open_editor(h.state_mut(), &ctx, layer.0, &sm, index); + let dialog = h.state().ui.dialogs.last().unwrap().id; + h.run_steps(3); + crate::dialogs::confirm(h.state_mut(), dialog).unwrap(); + let after = smart(h.state(), layer); + assert_eq!(after.smart_filters.len(), sm.smart_filters.len(), "{command}: no filter was stacked"); + after.smart_filters[index].params.clone() +} + +/// Opening an adjustment smart filter and pressing OK changes nothing it renders, whichever of a +/// setting's equivalent keys it was recorded with: the keys the dialog starts with must not be +/// read over the recorded ones. +#[test] +fn confirming_an_unedited_adjustment_smart_filter_keeps_what_it_renders() { + use photocraft_doc::ColorMode::{Cmyk, Lab, Rgb}; + use photocraft_engine::adjust_params::{default_for, from_params}; + let dim = json!([[0, 0], [128, 64], [255, 255]]); + let lift = json!([[0, 40], [255, 255]]); + let drawn: Vec = (0..photocraft_doc::adjust::CURVE_MAP_LEN).map(|level| level as f64 * 0.5).collect(); + let jagged: Vec = (0..photocraft_doc::adjust::CURVE_MAP_LEN).map(|level| if level % 2 == 0 { 40.0 } else { 200.0 }).collect(); + let cases = [ + ("lab", Lab, "curves", json!({"pencil": true, "smooth": 2, "points": jagged})), + ("rgb", Rgb, "curves", json!({"pencil": true, "smooth": 2, "points": jagged})), + ("lab", Lab, "curves", json!({"points": dim})), + ("lab", Lab, "curves", json!({"points": dim, "a": lift})), + ("lab", Lab, "curves", json!({"lightness": dim})), + ("lab", Lab, "curves", json!({"pencil": true, "points": drawn})), + ("lab", Lab, "levels", json!({"inBlack": 30, "gamma": 1.5})), + ("lab", Lab, "levels", json!({"inWhite": 200, "a": {"inBlack": 12}})), + ("lab", Lab, "levels", json!({"lightness": {"inBlack": 30}})), + ("rgb", Rgb, "curves", json!({"points": dim, "red": lift})), + ("rgb", Rgb, "curves", json!({"gray": dim})), + ("rgb", Rgb, "curves", json!({"pencil": true, "points": drawn})), + ("rgb", Rgb, "levels", json!({"inWhite": 200, "blue": {"gamma": 0.8}})), + ("cmyk", Cmyk, "curves", json!({"points": dim})), + ("cmyk", Cmyk, "curves", json!({"black": dim})), + ("cmyk", Cmyk, "levels", json!({"inBlack": 30})), + ("rgb", Rgb, "photoFilter", json!({"filter": "red"})), + ("rgb", Rgb, "channelMixer", json!({"monochrome": true})), + ("rgb", Rgb, "hueSaturation", json!({"colorize": true})), + ("rgb", Rgb, "brightnessContrast", json!({"brightness": 40})), + ]; + let mut changed = Vec::new(); + for (mode, color_mode, kind, recorded) in cases { + let read = |params: &serde_json::Value| from_params(kind, params, None, color_mode).unwrap(); + assert_ne!(read(&recorded), default_for(kind, color_mode).unwrap(), "{mode} {kind} {recorded}: the case must record something"); + let stored = stored_after_confirming_unedited(mode, &format!("image.adjustments.{kind}"), &recorded); + if read(&stored) != read(&recorded) { + changed.push(format!("{mode} {kind} {recorded} became {stored}")); + } + } + assert!(changed.is_empty(), "{}", changed.join("\n")); +} + +/// The editor's controls show what the filter renders: in Lab the top-level `points` and Levels +/// keys are the Lightness channel, which the dialog edits under `lightness`. +#[test] +fn a_lab_tone_smart_filter_opens_with_its_settings_on_the_lightness_channel() { + let (mut app, layer) = app(8, "lab"); + let dim = json!([[0.0, 0.0], [128.0, 64.0], [255.0, 255.0]]); + app.run("image.adjustments.curves", json!({"points": dim})).unwrap(); + app.run("image.adjustments.levels", json!({"inBlack": 30})).unwrap(); + let sm = smart(&app, layer).clone(); + let ctx = egui::Context::default(); + + super::open_editor(&mut app, &ctx, layer.0, &sm, 2); + let dialog = app.ui.dialogs.last().unwrap(); + assert_eq!(dialog.fields["lightness"], dim); + assert_eq!(dialog.fields["points"], dim, "both keys say the same"); + let id = dialog.id; + crate::dialogs::cancel(&mut app, id).unwrap(); + + super::open_editor(&mut app, &ctx, layer.0, &sm, 3); + let fields = &app.ui.dialogs.last().unwrap().fields; + assert_eq!(fields["lightness"]["inBlack"].as_f64(), Some(30.0)); + assert_eq!(fields["inBlack"].as_f64(), Some(30.0), "both keys say the same"); +} + +/// Settings the engine can't read still open, as recorded, for OK to report on; the dialog and the +/// Smart Filter are left as they are, without a panic. +#[test] +fn an_unreadable_adjustment_smart_filter_opens_with_its_recorded_values() { + let (mut app, layer) = app(8, "lab"); + app.run("image.adjustments.curves", json!({"points": [[0, 0], [255, 255]]})).unwrap(); + let mut sm = smart(&app, layer).clone(); + sm.smart_filters[2].params = json!({"points": "not a curve"}); + super::open_editor(&mut app, &egui::Context::default(), layer.0, &sm, 2); + let fields = &app.ui.dialogs.last().unwrap().fields; + assert_eq!(fields["points"], json!("not a curve")); + assert!(fields.contains_key("__smartFilter")); +} + /// The Smart Filters mask and the layer mask of one layer are cached as separate thumbnails. #[test] fn smart_and_layer_masks_have_separate_thumbnail_cache_entries() { @@ -185,3 +288,114 @@ fn filter_editor_starts_missing_parameters_from_defaults_not_remembered_values() let id = crate::filter_dialog::open(&mut app, command).unwrap(); assert_eq!(app.ui.dialog_mut(id).unwrap().fields["reduceNoise"].as_f64(), Some(60.0)); } + +/// A smart object in a `mode` document with `command` recorded as its one smart filter, and its layer id. +fn adjustment_filter(mode: &str, command: &str, params: serde_json::Value) -> (PhotocraftApp, u64) { + let mut s = photocraft_engine::Session::new(); + s.execute("file.new", json!({"width": 64, "height": 48, "mode": mode})).unwrap(); + s.execute("layer.new.layer", json!({})).unwrap(); + s.execute("edit.fill", json!({"contents": "black"})).unwrap(); + let id = s.execute("layer.smartObjects.convertToSmartObject", json!({})).unwrap()["layer"].as_u64().unwrap(); + s.execute(command, params).unwrap(); + let mut app = PhotocraftApp::new(s, crate::Services::default()); + app.background_jobs = false; + (app, id) +} + +/// The smart object on layer `id`. +fn recorded(app: &PhotocraftApp, id: u64) -> photocraft_doc::SmartObject { + match &app.session.active().unwrap().doc.layer(photocraft_doc::LayerId(id)).unwrap().content { + photocraft_doc::LayerContent::Smart(sm) => sm.clone(), + other => panic!("expected a smart object, got {}", other.kind_name()), + } +} + +/// The app in a harness with the editor of the layer's first smart filter open, and the dialog's id. +fn edit_first_filter(app: PhotocraftApp, id: u64) -> (Harness<'static, PhotocraftApp>, u64) { + let sm = recorded(&app, id); + let mut h = Harness::builder().with_size(vec2(1200.0, 900.0)).build_ui_state(|ui, app: &mut PhotocraftApp| crate::dialogs::show(app, ui.ctx()), app); + PhotocraftApp::setup_context(&h.ctx, crate::theme::ThemeKind::ALL[0]); + let ctx = h.ctx.clone(); + super::open_editor(h.state_mut(), &ctx, id, &sm, 0); + let dialog = h.state().ui.dialogs.last().unwrap().id; + h.run_steps(3); + (h, dialog) +} + +/// Monochrome off removes `gray` from the dialog's values; a stored one read over the Red row +/// would keep the old mix, whatever the Red sliders say, on OK and on every later edit. +#[test] +fn a_channel_mixer_smart_filter_turned_off_monochrome_keeps_its_red_row() { + let (app, id) = adjustment_filter("rgb", "image.adjustments.channelMixer", json!({"monochrome": true, "gray": [30, 30, 40, 0]})); + let (mut h, dialog) = edit_first_filter(app, id); + h.get_by_label("Monochrome").click(); + h.run_steps(3); + let fields = &mut h.state_mut().ui.dialog_mut(dialog).unwrap().fields; + assert_eq!(fields.get("monochrome"), Some(&json!(false))); + assert!(!fields.contains_key("gray"), "the editor removed the gray row: {fields:?}"); + fields.insert("red".into(), json!([70.0, 30.0, 0.0, 0.0])); + h.run_steps(2); + crate::dialogs::confirm(h.state_mut(), dialog).unwrap(); + + let sm = recorded(h.state(), id); + assert_eq!(sm.smart_filters.len(), 1, "no filter was stacked"); + let adjustment = photocraft_engine::adjust_params::from_params("channelMixer", &sm.smart_filters[0].params, None, photocraft_doc::ColorMode::Rgb).unwrap(); + let photocraft_doc::Adjustment::ChannelMixer { matrix, monochrome } = adjustment else { panic!("Channel Mixer params") }; + assert!(!monochrome); + assert!(matrix[0].iter().zip([0.7, 0.3, 0.0, 0.0]).all(|(a, b)| (a - b).abs() < 1e-5), "the edited Red row renders: {:?}", matrix[0]); +} + +/// In Lab, top-level `points` aliases Lightness and the editor removes it on an edit. A stored +/// one must not override the edit: the Lightness the editor sends is what the filter renders. +#[test] +fn a_lab_curves_smart_filter_keeps_a_lightness_edit() { + let old = json!([[0, 0], [128, 64], [255, 255]]); + let (app, id) = adjustment_filter("lab", "image.adjustments.curves", json!({"points": old, "lightness": old})); + let (mut h, dialog) = edit_first_filter(app, id); + // Add a point on the Lightness curve, the channel the dialog shows first. + let graph = h.ctx.data(|d| d.get_temp::(crate::adjust_dialog::dialog_mem("curves").with("curves-graph"))).unwrap(); + click(&mut h, egui::pos2(graph.left() + graph.width() * 0.75, graph.top() + graph.height() * 0.1)); + let fields = &h.state_mut().ui.dialog_mut(dialog).unwrap().fields; + assert!(!fields.contains_key("points"), "the editor removed the alias: {fields:?}"); + let edited = fields["lightness"].clone(); + assert_ne!(edited, old, "the click edited Lightness"); + crate::dialogs::confirm(h.state_mut(), dialog).unwrap(); + + let sm = recorded(h.state(), id); + assert_eq!(sm.smart_filters.len(), 1, "no filter was stacked"); + let read = |params: &serde_json::Value| photocraft_engine::adjust_params::from_params("curves", params, None, photocraft_doc::ColorMode::Lab).unwrap(); + let photocraft_doc::Adjustment::Curves { per_channel, .. } = read(&sm.smart_filters[0].params) else { panic!("Curves params") }; + let photocraft_doc::Adjustment::Curves { per_channel: wanted, .. } = read(&json!({"lightness": edited})) else { panic!("Curves params") }; + assert_eq!(per_channel[0], wanted[0], "the edited Lightness renders"); + assert!(sm.smart_filters[0].params.get("points").is_none(), "the removed alias is not stored"); +} + +/// Emptying a text field removes its key from the Color Lookup dialog, which draws from the +/// command's schema. A stored `data` would be read over the `lut` chosen instead. +#[test] +fn a_color_lookup_smart_filter_with_its_data_cleared_uses_the_chosen_lut() { + let mut cube = String::from("LUT_3D_SIZE 2\n"); + for b in 0..2 { + for g in 0..2 { + for r in 0..2 { + cube.push_str(&format!("{} {} {}\n", 1 - r, 1 - g, 1 - b)); + } + } + } + let (app, id) = adjustment_filter("rgb", "image.adjustments.colorLookup", json!({"data": cube, "fileName": "invert.cube"})); + let (mut h, dialog) = edit_first_filter(app, id); + let fields = &mut h.state_mut().ui.dialog_mut(dialog).unwrap().fields; + assert_eq!(fields.get("data"), Some(&json!(cube)), "opens on the recorded settings"); + fields.insert("data".into(), json!("")); + fields.insert("lut".into(), json!("warm")); + h.run_steps(2); + let fields = &h.state_mut().ui.dialog_mut(dialog).unwrap().fields; + assert!(!fields.contains_key("data"), "the dialog removed the emptied field"); + crate::dialogs::confirm(h.state_mut(), dialog).unwrap(); + + let sm = recorded(h.state(), id); + assert_eq!(sm.smart_filters.len(), 1, "no filter was stacked"); + let params = &sm.smart_filters[0].params; + assert!(params.get("data").is_none(), "the removed data is not stored: {params}"); + assert_eq!(params.get("lut"), Some(&json!("warm"))); +} diff --git a/crates/ui-egui/src/panels/toolbar.rs b/crates/ui-egui/src/panels/toolbar.rs index 839e461177..a81ca7653a 100644 --- a/crates/ui-egui/src/panels/toolbar.rs +++ b/crates/ui-egui/src/panels/toolbar.rs @@ -93,6 +93,63 @@ pub(super) fn tool_flyout_release(row: Rect, pointer: Option, released: bo released && from_button && pointer.is_some_and(|p| row.contains(p)) } +fn more_flyout_id() -> egui::Id { + egui::Id::unique("toolbar-more-flyout-open") +} + +/// Whether the "…" button's flyout is open: it owns Escape then (`shortcuts::handle`). +pub(crate) fn more_flyout_open(ctx: &egui::Context) -> bool { + ctx.data(|d| d.get_temp::(more_flyout_id())).unwrap_or(false) +} + +/// Right-click on the "…" button opens a flyout with one row, "Edit Toolbar…", drawn like a tool +/// flyout. The row runs `edit.toolbar` and closes the flyout; Escape or a press outside closes it +/// without running anything. +fn more_slot_flyout(app: &mut PhotocraftApp, ui: &mut egui::Ui, button: &egui::Response, t: &Tokens) { + let open_id = more_flyout_id(); + let open = ui.data(|d| d.get_temp::(open_id)).unwrap_or(false); + if button.secondary_clicked() { + ui.data_mut(|d| d.insert_temp(open_id, !open)); + ui.ctx().request_repaint(); + return; + } + if !open { + return; + } + let (pivot, pos) = if crate::direction::is_rtl() { + (egui::Align2::RIGHT_BOTTOM, button.rect.left_bottom() - vec2(6.0, 0.0)) + } else { + (egui::Align2::LEFT_BOTTOM, button.rect.right_bottom() + vec2(6.0, 0.0)) + }; + let area = egui::Area::new(egui::Id::unique("toolbar-more-flyout")).order(egui::Order::Foreground).pivot(pivot).fixed_pos(pos).show(ui.ctx(), |ui| { + egui::Frame::popup(ui.style()).show(ui, |ui| { + let label = tl!("Edit Toolbar…"); + let label_w = ui.painter().layout_no_wrap(label.to_string(), egui::FontId::proportional(12.5), t.text).size().x; + let (r, row) = ui.allocate_exact_size(vec2((label_w + 24.0).max(180.0), 26.0), Sense::click()); + row.widget_info(|| egui::WidgetInfo::labeled(egui::Role::Button, true, label)); + if row.hovered() { + ui.painter().rect_filled(r, 3.0, t.hover); + } + ui.painter().text(pos2(r.left() + 12.0, r.center().y), Align2::LEFT_CENTER, label, egui::FontId::proportional(12.5), t.text); + row.clicked() + }) + }); + if area.inner.inner { + ui.data_mut(|d| d.remove::(open_id)); + let ctx = ui.ctx().clone(); + if let Err(e) = crate::menus::invoke(app, &ctx, "edit.toolbar", json!({})) { + app.ui.status = e; + app.ui.status_error = true; + } + return; + } + let pressed_outside = + ui.input(|i| i.pointer.any_pressed() && i.pointer.press_origin().is_some_and(|p| !area.response.rect.contains(p) && !button.rect.contains(p))); + if pressed_outside || ui.input(|i| i.key_pressed(egui::Key::Escape)) { + ui.data_mut(|d| d.remove::(open_id)); + } +} + pub fn toolbar(app: &mut PhotocraftApp, ui: &mut egui::Ui) { let t = Tokens::get(ui.ctx()); let (w1, bx, m) = if t.pro { (40.0, 30.0, 5i8) } else { (50.0, 36.0, 7i8) }; @@ -351,9 +408,14 @@ pub fn toolbar(app: &mut PhotocraftApp, ui: &mut egui::Ui) { }); } } - if icons::button(ui, "ellipsis", bx, false, tl!("Edit Toolbar…")).clicked() { - let _ = crate::menus::invoke(app, &ctx, "edit.toolbar", json!({})); + let more = icons::button(ui, "ellipsis", bx, false, tl!("Edit Toolbar…")); + if more.clicked() + && let Err(e) = crate::menus::invoke(app, &ctx, "edit.toolbar", json!({})) + { + app.ui.status = e; + app.ui.status_error = true; } + more_slot_flyout(app, ui, &more, &t); reveal_focused_control(ui); }); ui.add_space(if t.pro { 8.0 } else { 14.0 }); diff --git a/crates/ui-egui/src/prefs/prefs_ui/appearance.rs b/crates/ui-egui/src/prefs/prefs_ui/appearance.rs index 87405f606e..69bb926142 100644 --- a/crates/ui-egui/src/prefs/prefs_ui/appearance.rs +++ b/crates/ui-egui/src/prefs/prefs_ui/appearance.rs @@ -185,21 +185,6 @@ pub(super) fn sync_tooltips(app: &PhotocraftApp, ctx: &egui::Context) { } } -/// Interface › Enable Animations: off, egui's fades and slides take no time and scroll areas jump -/// straight to their target (#3273). Re-checked every frame because a theme change rebuilds the -/// style; both the dark and light styles are set, so a system appearance switch keeps it. -pub(super) fn sync_animations(app: &PhotocraftApp, ctx: &egui::Context) { - let on = app.session.prefs().interface.enable_animations; - let time = if on { egui::Style::default().animation_time } else { 0.0 }; - if ctx.global_style().animation_time != time { - let scroll = if on { egui::style::ScrollAnimation::default() } else { egui::style::ScrollAnimation::none() }; - ctx.all_styles_mut(|s| { - s.animation_time = time; - s.scroll_animation = scroll; - }); - } -} - /// Resolve the saved appearance mode without changing it or either theme slot. pub(crate) fn sync_appearance(app: &mut PhotocraftApp, ctx: &egui::Context) { // A restored or embedding-supplied pin must not suppress native appearance events. diff --git a/crates/ui-egui/src/prefs/prefs_ui/fields.rs b/crates/ui-egui/src/prefs/prefs_ui/fields.rs index 2accc50371..9737cbb329 100644 --- a/crates/ui-egui/src/prefs/prefs_ui/fields.rs +++ b/crates/ui-egui/src/prefs/prefs_ui/fields.rs @@ -101,8 +101,11 @@ pub(super) fn humanize(key: &str) -> String { .replace("Lut ", "LUT ") } +/// The visible label of a stored choice value (`windowsInk` -> "Windows Ink (default)"). pub(super) fn choice_label(v: &str) -> String { match v { + "windowsInk" => "Windows Ink (default)".into(), + "winTab" => "WinTab".into(), "exr" => "EXR".into(), "cm" => "Centimeters".into(), "mm" => "Millimeters".into(), @@ -148,22 +151,27 @@ pub(super) fn color_of(s: &str) -> Color32 { /// Search the same visible, editable preference labels used in the dialog. pub(super) fn preference_matches(section: &str, key: &str, query: &str) -> bool { let label = humanize(key); - format!("{section}.{key}").to_lowercase().contains(query) || label.to_lowercase().contains(query) || tl!(&label).to_lowercase().contains(query) + let en = crate::i18n::Lang::EN; + en.contains_ignore_case(&format!("{section}.{key}"), query) + || en.contains_ignore_case(&label, query) + || crate::i18n::current().contains_ignore_case(tl!(&label), query) + // The Tablet input row and its Pen Tablet note are the visible terms, not just the key. + || (cfg!(target_os = "windows") && section == "tools" && key == "tabletInput" && en.contains_ignore_case("windows ink pen tablet wintab tablet input", query)) } pub(super) fn preference_sections(values: &Value, search: &str) -> Vec<(&'static str, &'static str)> { - let query = search.trim().to_lowercase(); + let query = search.trim(); SECTIONS .iter() .copied() .filter(|(id, title)| { query.is_empty() - || title.to_lowercase().contains(&query) - || tl!(title).to_lowercase().contains(&query) + || crate::i18n::Lang::EN.contains_ignore_case(title, query) + || crate::i18n::current().contains_ignore_case(tl!(title), query) || values .get(*id) .and_then(Value::as_object) - .is_some_and(|fields| fields.keys().any(|key| !prefs::is_hidden(&format!("{id}.{key}")) && preference_matches(id, key, &query))) + .is_some_and(|fields| fields.keys().any(|key| !prefs::is_hidden(&format!("{id}.{key}")) && preference_matches(id, key, query))) }) .collect() } @@ -230,8 +238,8 @@ fn prefs_body(ui: &mut egui::Ui, f: &mut Map, system: Option, key: &str) -> bool } /// The pause that bundles arrow-key nudges means nothing with Bundle Arrow-Key Nudges off (#2259). +/// WinTab is a Windows-only opt-in. pub(super) fn tools_field_visible(obj: &Map, key: &str) -> bool { - key != "nudgeBundlePauseMs" || obj.get("bundleNudges").and_then(Value::as_bool) != Some(false) + match key { + "tabletInput" => cfg!(target_os = "windows"), + "nudgeBundlePauseMs" => obj.get("bundleNudges").and_then(Value::as_bool) != Some(false), + _ => true, + } } /// A titled, outlined group of settings (Photoshop's Interface page has Appearance, @@ -374,7 +387,7 @@ pub(super) fn field_visible(section: &str, obj: &Map, k: &str, qu // The browser presents frames itself: Low-Latency Drawing does nothing there. || (cfg!(target_arch = "wasm32") && path == "performance.lowLatencyDrawing") || (section == "export" && !export_field_visible(obj, k)) - || (section == "tools" && !tools_field_visible(obj, k)); + || (section == "tools" && (!tools_field_visible(obj, k) || k == "tabletInput")); (query.is_empty() || preference_matches(section, k, query)) && !drawn_elsewhere && !prefs::is_hidden(&path) @@ -392,20 +405,43 @@ pub(super) fn section_fields( system: Option, search: &str, ) { - let query = search.to_lowercase(); + let query = search.trim(); let mut keys: Vec = order.iter().filter(|k| obj.contains_key(*k)).cloned().collect(); keys.extend(obj.keys().filter(|k| !order.contains(k)).cloned()); if section == "interface" { - interface_groups(ui, obj, &keys, lang, system, &query); + interface_groups(ui, obj, &keys, lang, system, query); return; } - if section == "performance" && (query.is_empty() || preference_matches(section, "renderingMode", &query)) { + if section == "performance" && (query.is_empty() || preference_matches(section, "renderingMode", query)) { rendering_mode_row(ui, obj); } - if section == "performance" && (query.is_empty() || preference_matches(section, "memoryUsageMb", &query)) { + if section == "performance" && (query.is_empty() || preference_matches(section, "memoryUsageMb", query)) { memory_usage_row(ui, obj); } - keys.retain(|k| field_visible(section, obj, k, &query)); + // WinTab is an explicit Windows choice; Windows Ink stays the default everywhere else. + if section == "tools" + && cfg!(target_os = "windows") + && (query.is_empty() || preference_matches(section, "tabletInput", query)) + && obj.contains_key("tabletInput") + { + let t = Tokens::get(ui.ctx()); + pref_group(ui, "Pen Tablet", |ui| { + egui::Grid::new("prefs-grid-pen-tablet").num_columns(2).spacing([14.0, 7.0]).show(ui, |ui| { + field_rows(ui, section, obj, vec!["tabletInput".to_string()], lang); + }); + ui.add( + egui::Label::new( + RichText::new(tl!( + "WinTab reads pressure, tilt, rotation and the eraser end from the tablet driver. Turn off Windows Ink in your tablet's software utility (for example Wacom Center) before using it." + )) + .small() + .color(t.text_dim), + ) + .wrap(), + ); + }); + } + keys.retain(|k| field_visible(section, obj, k, query)); egui::Grid::new(("prefs-grid", section)).num_columns(2).spacing([14.0, 7.0]).show(ui, |ui| field_rows(ui, section, obj, keys, lang)); } @@ -457,7 +493,12 @@ fn field_rows(ui: &mut egui::Ui, section: &str, obj: &mut Map, ke let labels: Vec = opts.iter().map(|o| choice_label(o)).collect(); let pairs: Vec<(String, &str)> = opts.iter().map(|o| o.to_string()).zip(labels.iter().map(String::as_str)).collect(); let mut cur = s.clone(); - crate::widgets::dropdown(ui, &format!("pref-{path}"), tl!(&label), &mut cur, &pairs, 220.0); + ui.vertical(|ui| { + crate::widgets::dropdown(ui, &format!("pref-{path}"), tl!(&label), &mut cur, &pairs, 220.0); + if read_at_launch(&path) { + ui.label(RichText::new(tl!("Applies at next launch.")).color(t.text_dim)); + } + }); obj.insert(k, json!(cur)); } Value::String(s) if prefs::is_color(&path) => { @@ -522,6 +563,15 @@ fn field_rows(ui: &mut egui::Ui, section: &str, obj: &mut Map, ke if ui.small_button(tl!("Add disk")).clicked() { items.push(json!({"enabled": true, "path": ""})); } + let scratch = photocraft_raster::spill::stats(); + if scratch.free_space_unmeasured { + let dir = scratch.dir.as_deref().map(|p| p.display().to_string()).unwrap_or_else(|| tl!("Unknown").into()); + let warning = crate::i18n::fmt( + tl!("The current scratch directory ({path}) doesn't report its free space, so PhotoCraft can't stop before it fills up, and large files get no extra room from it without a Scratch Size Limit. This warning applies to the current configuration; changes above take effect on Apply or OK. Set a limit or use a local disk."), + &[("path", &dir)], + ); + ui.add(egui::Label::new(RichText::new(warning).color(t.warning)).wrap()); + } }); obj.insert(k, Value::Array(items)); } @@ -537,3 +587,19 @@ fn field_rows(ui: &mut egui::Ui, section: &str, obj: &mut Map, ke ui.end_row(); } } + +#[cfg(test)] +mod tests { + use super::preference_matches; + + /// The Tablet input row matches its visible search terms. + #[test] + fn wintab_row_matches_its_visible_terms() { + if cfg!(target_os = "windows") { + for query in ["windows ink", "pen tablet", "wintab", "tablet input"] { + assert!(preference_matches("tools", "tabletInput", query), "{query}"); + } + } + assert!(preference_matches("tools", "useTabletPressure", "tablet pressure")); + } +} diff --git a/crates/ui-egui/src/prefs/prefs_ui/graphics.rs b/crates/ui-egui/src/prefs/prefs_ui/graphics.rs index 166f5ed299..45b2e9ccdb 100644 --- a/crates/ui-egui/src/prefs/prefs_ui/graphics.rs +++ b/crates/ui-egui/src/prefs/prefs_ui/graphics.rs @@ -136,6 +136,8 @@ pub(super) fn read_at_launch(path: &str) -> bool { "interface.systemTitleBar" => cfg!(all(not(target_arch = "wasm32"), not(target_os = "macos"))), // The desktop app decides on the control server before its window opens. "integrations.allowAgentControl" | "integrations.controlPort" => cfg!(not(target_arch = "wasm32")), + // The WinTab context is opened once, when the window starts. + "tools.tabletInput" => cfg!(target_os = "windows"), _ => false, } } diff --git a/crates/ui-egui/src/prefs/prefs_ui/save.rs b/crates/ui-egui/src/prefs/prefs_ui/save.rs index 9dba6f78f2..e3917ba9cd 100644 --- a/crates/ui-egui/src/prefs/prefs_ui/save.rs +++ b/crates/ui-egui/src/prefs/prefs_ui/save.rs @@ -1,4 +1,4 @@ -use super::appearance::{canvas_style, sync_animations, sync_appearance, sync_display_scale, sync_tooltips}; +use super::appearance::{canvas_style, sync_appearance, sync_display_scale, sync_tooltips}; use super::startup::{load, presets_store, recovery, sync_rulers}; use super::{DocId, HashMap, PhotocraftApp, Value, prefs}; @@ -14,7 +14,6 @@ pub fn tick(app: &mut PhotocraftApp, ctx: &egui::Context) { crate::theme::set_ui_font_size(ctx, app.session.prefs().interface.ui_font_size); presets_store(app); sync_tooltips(app, ctx); - sync_animations(app, ctx); app.sync_recent(); // Monotonic, not `ctx.input(|i| i.time)`: logic also runs on hidden ticks, where egui's input // time is that of the last UI pass. diff --git a/crates/ui-egui/src/prefs/prefs_ui/shortcut_capture_tests.rs b/crates/ui-egui/src/prefs/prefs_ui/shortcut_capture_tests.rs index 20a2695a97..13b4cfc55a 100644 --- a/crates/ui-egui/src/prefs/prefs_ui/shortcut_capture_tests.rs +++ b/crates/ui-egui/src/prefs/prefs_ui/shortcut_capture_tests.rs @@ -48,6 +48,18 @@ fn field(h: &Harness<'_, PhotocraftApp>, id: u64, name: &str) -> Value { h.state().ui.dialogs.iter().find(|d| d.id == id).unwrap().fields.get(name).cloned().unwrap_or(Value::Null) } +/// The actual shortcut grid matches Azerbaijani uppercase text and English command aliases. +#[test] +fn azerbaijani_shortcuts_search_handles_dotted_i_and_english() { + let (mut h, id) = dialog(1.0, "image.imageSize", "ŞƏKİL ÖLÇÜSÜ"); + h.state_mut().run("prefs.set", json!({"path":"interface.language", "value":"az"})).unwrap(); + h.run_steps(4); + h.get_by_label(" Şəkil ölçüsü…"); + h.state_mut().ui.dialog_mut(id).unwrap().fields.insert("filter".into(), json!("IMAGE SIZE")); + h.run_steps(3); + h.get_by_label(" Şəkil ölçüsü…"); +} + #[test] fn toolbar_shortcut_can_be_captured_and_restored_on_restart() { let (mut h, id) = dialog(1.0, "tools.select.pencil", "Pencil Tool"); diff --git a/crates/ui-egui/src/prefs/prefs_ui/shortcuts.rs b/crates/ui-egui/src/prefs/prefs_ui/shortcuts.rs index 3c0bf1d4a4..3f6679f0a6 100644 --- a/crates/ui-egui/src/prefs/prefs_ui/shortcuts.rs +++ b/crates/ui-egui/src/prefs/prefs_ui/shortcuts.rs @@ -324,7 +324,7 @@ pub(super) fn shortcuts_body(app: &mut PhotocraftApp, ui: &mut egui::Ui, f: &mut } } } - let needle = filter.to_ascii_lowercase(); + let needle = filter.trim(); egui::ScrollArea::vertical().max_height(420.0).id_salt("shortcuts-scroll").show(ui, |ui| { let mut last_top = String::new(); egui::Grid::new("shortcut-grid").num_columns(3).spacing([12.0, 3.0]).striped(true).show(ui, |ui| { @@ -336,10 +336,12 @@ pub(super) fn shortcuts_body(app: &mut PhotocraftApp, ui: &mut egui::Ui, f: &mut let alts = eff_alts(&alt_overrides, id, cur.as_deref()); let (shown_path, shown_label) = shown(id, label, path); // Match what is shown and the English name (commands are documented in English). - let hay = - format!("{} {} {} {} {} {}", shown_path.join(" "), shown_label, path.join(" "), label, cur.clone().unwrap_or_default(), alts.join(" ")) - .to_lowercase(); - if !needle.is_empty() && !hay.contains(&needle) && !id.to_ascii_lowercase().contains(&needle) { + let local = format!("{} {}", shown_path.join(" "), shown_label); + let english = format!("{} {} {} {} {id}", path.join(" "), label, cur.clone().unwrap_or_default(), alts.join(" ")); + if !needle.is_empty() + && !crate::i18n::current().contains_ignore_case(&local, needle) + && !crate::i18n::Lang::EN.contains_ignore_case(&english, needle) + { continue; } if tab == 0 && path.is_empty() && def.is_none() && cur.is_none() && alts.is_empty() { diff --git a/crates/ui-egui/src/prefs/prefs_ui/tests.rs b/crates/ui-egui/src/prefs/prefs_ui/tests.rs index 21994b7352..dabde320b8 100644 --- a/crates/ui-egui/src/prefs/prefs_ui/tests.rs +++ b/crates/ui-egui/src/prefs/prefs_ui/tests.rs @@ -142,6 +142,19 @@ fn preferences_search_matches_editable_fields_across_sections() { assert_eq!(preference_sections(&values, "").len(), SECTIONS.len()); } +/// The preview language controls translated search; English schema paths keep their aliases. +#[test] +fn azerbaijani_preferences_search_keeps_dotted_i_and_schema_aliases() { + let az = crate::i18n::Lang::from_code("az").unwrap(); + crate::i18n::with_language(az, || { + let values = prefs::Preferences::default().to_json(); + assert!(preference_sections(&values, "İNTERFEYS").iter().any(|(id, _)| *id == "interface")); + assert!(super::fields::preference_matches("interface", "language", "DİL")); + assert!(!super::fields::preference_matches("interface", "language", "DIL")); + assert!(super::fields::preference_matches("interface", "uiScale", "INTERFACE.UISCALE")); + }); +} + #[test] fn preferences_dialog_width_follows_its_resizable_area() { let prefs = serde_json::json!({"__prefsui": "prefs"}); @@ -1415,28 +1428,27 @@ fn show_tooltips_preferences_turn_tooltips_off() { } #[test] -fn enable_animations_off_stops_fades_and_scroll_glides_and_is_remembered() { - let on = egui::Style::default().animation_time; - let both = |ctx: &egui::Context| [egui::Theme::Dark, egui::Theme::Light].map(|t| ctx.style_of(t).animation_time); - // Saved off: the first frame after a restart applies it to both appearance styles. - let (mut app, _) = app_with_saved(Some(json!({"interface": {"enableAnimations": false}}).to_string())); - let ctx = egui::Context::default(); - tick(&mut app, &ctx); - assert_eq!(both(&ctx), [0.0, 0.0]); - assert_eq!(ctx.global_style().scroll_animation.duration.max, 0.0); - // A theme change rebuilds the style; the next frame turns animations off again. - app.apply_theme(&ctx, crate::theme::ThemeKind::StudioLight); - tick(&mut app, &ctx); - assert_eq!(both(&ctx), [0.0, 0.0]); - app.run("prefs.set", json!({"values": {"interface.enableAnimations": true}})).unwrap(); - tick(&mut app, &ctx); - assert_eq!(both(&ctx), [on, on]); - assert!(on > 0.0 && ctx.global_style().scroll_animation.duration.max > 0.0); - // A hand-edited value of the wrong type doesn't crash: the defaults (animations on) stay. - let (mut bad, _) = app_with_saved(Some(json!({"interface": {"enableAnimations": "nope"}}).to_string())); - let ctx2 = egui::Context::default(); - tick(&mut bad, &ctx2); - assert_eq!(both(&ctx2), [on, on]); +fn a_saved_enable_animations_loads_and_leaves_egui_animating() { + // #9479: Interface › Enable animations is gone (Photoshop has none). A file saved with it + // off still loads whole, and egui's fades and scroll glides keep their defaults. + let style = egui::Style::default(); + let both = + |ctx: &egui::Context| [egui::Theme::Dark, egui::Theme::Light].map(|t| (ctx.style_of(t).animation_time, ctx.style_of(t).scroll_animation.duration.max)); + let expected = (style.animation_time, style.scroll_animation.duration.max); + assert!(expected.0 > 0.0 && expected.1 > 0.0); + for value in [json!(false), json!(true), json!("nope")] { + let saved = json!({"version": 2, "interface": {"enableAnimations": value, "showTooltips": false}}); + let (mut app, _) = app_with_saved(Some(saved.to_string())); + let ctx = egui::Context::default(); + tick(&mut app, &ctx); + assert!(app.ui.status.is_empty(), "{value}: {}", app.ui.status); + assert!(!app.session.prefs().interface.show_tooltips, "{value}: the rest of the file loads"); + assert_eq!(both(&ctx), [expected, expected], "{value}"); + app.apply_theme(&ctx, crate::theme::ThemeKind::StudioLight); + tick(&mut app, &ctx); + assert_eq!(both(&ctx), [expected, expected], "{value}: after a theme change"); + assert!(app.run("prefs.set", json!({"values": {"interface.enableAnimations": true}})).is_err()); + } } #[test] diff --git a/crates/ui-egui/src/psd_open_tests.rs b/crates/ui-egui/src/psd_open_tests.rs index 719c760f35..02c18313f5 100644 --- a/crates/ui-egui/src/psd_open_tests.rs +++ b/crates/ui-egui/src/psd_open_tests.rs @@ -758,6 +758,27 @@ fn memory_prompt_states_unknown_capacity_and_the_eight_gib_warning() { assert!(app.ui.dialogs.is_empty()); } +/// The prompt warns when opening the file would leave less than 1 GiB of the measured free +/// memory, and stays quiet when there is room to spare. +#[test] +fn memory_prompt_warns_when_little_memory_would_be_left() { + let gb = 1u64 << 30; + let mut app = app(); + let available = 3 * gb + gb / 2; + let id = store_preflight(&mut app, "tight.psd", 3 * gb, Some(available)); + let tab = crate::jobs_ui::OpenTab { job: photocraft_engine::jobs::JobId(3), name: "tight.psd".into(), path: None, slot: None, order: None }; + crate::jobs_ui::finish_open_tab( + &mut app, + &tab, + &json!({"pendingPreflight": id, "estimated": 3 * gb, "availableRam": available, "capacityUnknown": false, "uncertainCapacityWarning": false}), + ) + .unwrap(); + let message = app.ui.dialogs[0].fields["message"].as_str().unwrap(); + assert!(message.contains("Little memory would be left") && message.contains("may run out of memory"), "{message}"); + let dialog = app.ui.dialogs[0].id; + assert_eq!(call(&mut app, "ui.dialog.cancel", json!({"dialog": dialog}))["ok"], true); +} + /// #10897: reopening an ordinary file whose high-memory prompt is already waiting shows that /// prompt instead of queueing a second one and a second open; a template still opens again as /// another Untitled, like one that is still loading. diff --git a/crates/ui-egui/src/services.rs b/crates/ui-egui/src/services.rs index 8224b28698..a9d511fb48 100644 --- a/crates/ui-egui/src/services.rs +++ b/crates/ui-egui/src/services.rs @@ -79,6 +79,9 @@ pub type ImportFn = Box Re pub struct ExportSettings { /// JPEG quality 1–100 (None = codec default). pub jpeg_quality: Option, + /// JPEG chroma sampling: `true` is 4:2:0, `false` keeps full 4:4:4 colour detail. + /// Export As keeps full chroma above quality 50 so saturated text and graphics stay sharp. + pub jpeg_chroma_subsampling: bool, /// JPEG Options › Format Options: baseline, baseline optimized or progressive. pub jpeg_format: photocraft_codecs::JpegFormat, /// WebP: lossless (VP8L) rather than lossy (VP8 at [`Self::webp_quality`]). @@ -133,6 +136,7 @@ impl Default for ExportSettings { fn default() -> Self { ExportSettings { jpeg_quality: None, + jpeg_chroma_subsampling: true, jpeg_format: photocraft_codecs::JpegFormat::Baseline, webp_lossless: true, webp_quality: None, @@ -163,6 +167,7 @@ impl ExportSettings { if let Some(q) = self.jpeg_quality { opts.encode.jpeg_quality = q; } + opts.encode.jpeg_chroma_subsampling = self.jpeg_chroma_subsampling; opts.encode.jpeg_format = self.jpeg_format; opts.encode.webp_lossless = self.webp_lossless; if let Some(q) = self.webp_quality { @@ -400,6 +405,10 @@ pub type CaptionStyleFn = Box CaptionStyle>; /// Physical right mouse button or stylus barrel button down (Windows; read for brush resize). pub type RightButtonDownFn = Box bool + Send + Sync>; +/// Polls the platform's optional WinTab packet queue into the app's stylus feed (Windows), with +/// whether the app window is focused (to re-assert WinTab overlap priority on activation). +pub type TabletPollFn = Box; + /// Platform services injected by the app binary (file dialogs, codecs), keeping this crate free of /// I/O dependencies. #[derive(Default)] @@ -522,6 +531,8 @@ pub struct Services { pub caption_style: Option, /// Physical right mouse button or pen barrel button currently down. pub right_button_down: Option, + /// WinTab packet poll (Windows with Windows Ink disabled; see `photocraft_tablet::wintab`). + pub tablet_poll: Option, /// The persistent brush preset store, loading in the background (desktop; see /// `photocraft_engine::preset_store`). Attached to the session once it arrives; without /// one, brush presets are session-only unless the shell attached a store before startup. diff --git a/crates/ui-egui/src/state.rs b/crates/ui-egui/src/state.rs index be7123f04a..a0389e58ad 100644 --- a/crates/ui-egui/src/state.rs +++ b/crates/ui-egui/src/state.rs @@ -65,6 +65,26 @@ pub struct Panels { /// floating window rather than a modal so the canvas stays usable while a gradient is edited. #[serde(default)] pub gradient_editor: bool, + /// Window › Contextual Task Bar (#10890): the small floating bar under the Crop tool's frame + /// (`crop_task_bar`). Its ⋯ menu's Hide bar clears it too. + #[serde(default = "yes")] + pub context_task_bar: bool, + /// Where that bar sits: following its frame, or dragged or pinned (`widgets::task_bar`). + #[serde(default)] + pub task_bar: TaskBarPlace, +} + +/// Where the contextual task bar sits (#10890). Part of [`Panels`], so it is kept with the panel +/// layout across restarts, and `ui.set {panels: {task_bar: …}}` sets it. +#[derive(Clone, Copy, Debug, Default, PartialEq, Serialize, Deserialize)] +pub struct TaskBarPlace { + /// Pin bar position: the bar stays where it is while its frame changes. + #[serde(default)] + pub pinned: bool, + /// The bar's top-left corner in points from the canvas area's top-left, once it was dragged + /// by its grip or pinned; `None` follows the frame. Reset bar position clears both. + #[serde(default)] + pub at: Option<[f32; 2]>, } impl Default for Panels { @@ -88,6 +108,8 @@ impl Default for Panels { rail: true, menu_bar: true, gradient_editor: false, + context_task_bar: true, + task_bar: TaskBarPlace::default(), } } } @@ -405,6 +427,10 @@ pub struct UiState { /// Frame tool (see `frame_tool`). #[serde(default)] pub frame_tool: crate::frame_tool::FrameToolUi, + /// The contextual task bar as drawn in the last frame: its screen rect `[x0, y0, x1, y1]` in + /// points, `None` while no bar shows (`ui.inspect` › `taskBar`). + #[serde(skip)] + pub task_bar_shown: Option<[f32; 4]>, /// Artboard tool (see `artboard_tool`). pub artboard_tool: crate::artboard_tool::ArtboardToolUi, /// Modifier Keys panel, custom pixel aspect ratios, workspace dialogs (see `workspace_ui`). @@ -580,6 +606,7 @@ impl Default for UiState { timeline: Default::default(), slices: Default::default(), frame_tool: Default::default(), + task_bar_shown: None, artboard_tool: Default::default(), shell: Default::default(), layer_filter: Vec::new(), diff --git a/crates/ui-egui/src/state/tool_options.rs b/crates/ui-egui/src/state/tool_options.rs index d511e32f66..6aa128817b 100644 --- a/crates/ui-egui/src/state/tool_options.rs +++ b/crates/ui-egui/src/state/tool_options.rs @@ -96,6 +96,9 @@ pub struct ToolOptions { /// draws it as "combine"), "combine", "subtract", "intersect" or "exclude". #[serde(default = "default_pen_path_op")] pub pen_path_op: String, + /// Shape tools: "shape" (a shape layer) or "path" (the work path), as Photoshop's tool mode + /// (#9453). Shape by default, where the Pen's own mode defaults to Path. + pub shape_mode: String, /// Shape tools: fill with the foreground colour, stroke width (0 = none), rectangle corner /// radius, polygon sides, line weight. pub shape_fill: bool, @@ -434,6 +437,7 @@ impl Default for ToolOptions { enhance_edge: false, vector_mode: "path".into(), pen_path_op: default_pen_path_op(), + shape_mode: "shape".into(), shape_fill: true, stroke_width: 0.0, shape_stroke: Default::default(), diff --git a/crates/ui-egui/src/text/direction.rs b/crates/ui-egui/src/text/direction.rs index 44bc7cf67f..d662df8532 100644 --- a/crates/ui-egui/src/text/direction.rs +++ b/crates/ui-egui/src/text/direction.rs @@ -54,6 +54,11 @@ pub fn direction_scope(dir: Dir) -> impl Drop { } fn env_override() -> Option { + // Unit tests follow the language or a `direction_scope`, whatever the developer's shell sets + // (the value is cached per process, so a test can't clear it). + if cfg!(test) { + return None; + } static ENV: OnceLock> = OnceLock::new(); *ENV.get_or_init(|| parse_dir(&std::env::var("PHOTOCRAFT_UI_DIRECTION").ok()?)) } diff --git a/crates/ui-egui/src/text/direction/tests.rs b/crates/ui-egui/src/text/direction/tests.rs index c15b1927f6..0414e0e51c 100644 --- a/crates/ui-egui/src/text/direction/tests.rs +++ b/crates/ui-egui/src/text/direction/tests.rs @@ -6,6 +6,7 @@ use super::*; use crate::PhotocraftApp; use crate::i18n::{self, Lang}; use egui_kittest::{Harness, kittest::Queryable}; +use photocraft_text::scripts; use serde_json::json; #[test] @@ -17,9 +18,10 @@ fn right_to_left_scripts_by_language_code() { for code in ["en", "ja", "zh-hans", "pt-br", "ku", "arn", ""] { assert_eq!(i18n::dir_for_code(code), Dir::Ltr, "{code}"); } - // Arabic is the one right-to-left catalog; every other registered language stays left to right. + // Arabic, Hebrew and Urdu are the right-to-left catalogs; every other registered language stays + // left to right. for lang in Lang::all() { - let want = if lang.code() == "ar" { Dir::Rtl } else { Dir::Ltr }; + let want = if matches!(lang.code(), "ar" | "he" | "ur") { Dir::Rtl } else { Dir::Ltr }; assert_eq!(lang.dir(), want, "{}", lang.code()); } } @@ -62,7 +64,11 @@ fn env_values_parse_strictly() { } fn harness() -> Harness<'static, PhotocraftApp> { - let mut h = Harness::builder().with_size(egui::vec2(1200.0, 800.0)).with_max_steps(64).build_eframe(|cc| { + harness_with(Harness::builder()) +} + +fn harness_with(builder: egui_kittest::HarnessBuilder) -> Harness<'static, PhotocraftApp> { + let mut h = builder.with_size(egui::vec2(1200.0, 800.0)).with_max_steps(64).build_eframe(|cc| { PhotocraftApp::setup_context(&cc.egui_ctx, crate::theme::ThemeKind::ProMedium); let mut app = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default()); app.run("file.new", json!({"width": 64, "height": 64})).expect("new document"); @@ -113,6 +119,45 @@ fn the_shell_mirrors_in_a_right_to_left_ui() { } } +/// Choosing a right-to-left catalog (not just forcing the direction) mirrors the shell, and the +/// shell's fonts draw its letters; English mirrors back. Panel interiors and dialogs stay +/// left-to-right for now (module docs), so only the dock side is checked. +#[test] +fn hebrew_and_urdu_mirror_the_shell_and_draw_their_letters() { + let _lang = i18n::language_scope(Lang::EN); + for (code, letter) in [("he", 'ש'), ("ur", 'ر')] { + let lang = Lang::from_code(code).expect("registered language"); + // Builds with craft-fonts (CI: `CRAFT_FONTS_REQUIRED`) draw these letters from the first + // frame and check them. Without it the host's fonts decide, so the harness allows tofu + // and only the mirroring is checked. + let fonts = craft_font_covers(letter); + if !fonts { + eprintln!("{code}: no craft-fonts face for {letter}; glyphs not checked (build with CRAFT_FONTS_DIR)"); + } + let mut h = if fonts { harness() } else { harness_with(Harness::builder().allow_missing_glyphs()) }; + h.state_mut().run("prefs.set", json!({"path": "interface.language", "value": code})).expect("choose language"); + h.run_steps(4); + assert_eq!(i18n::current(), lang); + assert!(is_rtl(), "{code} draws right-to-left"); + assert!(dock_x(&h) < 600.0, "{code}: the dock moves to the left"); + for label in ["File", "Help", "Layers"] { + let text = i18n::tr(lang, label); + assert!(!text.is_ascii(), "{code}: {label} is translated"); + assert!(!fonts || h.ctx.fonts_mut(|f| f.has_glyphs(&egui::FontId::proportional(12.0), text)), "{code}: {text} has glyphs"); + } + h.state_mut().run("prefs.set", json!({"path": "interface.language", "value": "en"})).expect("back to English"); + h.run_steps(4); + assert!(!is_rtl() && dock_x(&h) > 600.0, "{code} -> en: the shell mirrors back"); + } +} + +/// Whether craft-fonts has a face for `letter`. Only those are served in the first frame (the +/// eager provider); installed fonts arrive a frame later through the lazy loader, which the +/// harness's strict missing-glyph policy doesn't wait for (`cjk_fonts` tests). +fn craft_font_covers(letter: char) -> bool { + photocraft_text::craft_fonts::CRAFT_FONTS.iter().any(|f| !f.bytes.is_empty() && scripts::covering_face(f.bytes, letter).is_some()) +} + #[test] fn arrow_keys_step_through_the_menu_bar_in_screen_order() { let _lang = i18n::language_scope(Lang::EN); diff --git a/crates/ui-egui/src/toolbar_more_slot_flyout_tests.rs b/crates/ui-egui/src/toolbar_more_slot_flyout_tests.rs new file mode 100644 index 0000000000..f34623ea97 --- /dev/null +++ b/crates/ui-egui/src/toolbar_more_slot_flyout_tests.rs @@ -0,0 +1,125 @@ +//! Right-click on the toolbar's "…" button opens a one-row flyout, "Edit Toolbar…"; the row runs +//! `edit.toolbar`, Escape or a press outside closes it, and a left click still opens Edit Toolbar. + +use egui::{Event, Pos2, Rect, vec2}; + +use crate::PhotocraftApp; +use crate::panels::toolbar::{TOOL_SECTIONS, toolbar}; +use crate::theme::Tokens; + +fn frame(app: &mut PhotocraftApp, ctx: &egui::Context, time: f64, events: Vec) { + let mut out = ctx.run_ui( + egui::RawInput { time: Some(time), events, screen_rect: Some(Rect::from_min_size(Pos2::ZERO, vec2(1200.0, 1800.0))), ..Default::default() }, + |ui| toolbar(app, ui), + ); + out.textures_delta.clear(); +} + +fn setup() -> (PhotocraftApp, egui::Context, Pos2) { + let mut app = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default()); + let ctx = egui::Context::default(); + PhotocraftApp::setup_context(&ctx, crate::theme::ThemeKind::ALL[0]); + frame(&mut app, &ctx, 0.0, vec![]); + frame(&mut app, &ctx, 0.1, vec![]); + let bx = if Tokens::get(&ctx).pro { 30.0 } else { 36.0 }; + let mut buttons: Vec = ctx.viewport(|v| { + v.prev_pass.widgets.layers().flat_map(|(_, w)| w.iter()).filter(|w| w.rect.size() == vec2(bx, bx) && w.sense.senses_click()).map(|w| w.rect).collect() + }); + buttons.sort_by(|a, b| a.top().total_cmp(&b.top())); + // The "…" button sits right below the last tool slot. + let slots = TOOL_SECTIONS.iter().map(|s| s.len()).sum::(); + let at = buttons[slots].center(); + (app, ctx, at) +} + +fn button(pos: Pos2, which: egui::PointerButton, pressed: bool) -> Event { + Event::PointerButton { pos, button: which, pressed, modifiers: Default::default() } +} + +fn right_click(app: &mut PhotocraftApp, ctx: &egui::Context, at: Pos2, t: f64) { + frame(app, ctx, t, vec![Event::PointerMoved(at), button(at, egui::PointerButton::Secondary, true)]); + frame(app, ctx, t + 0.05, vec![button(at, egui::PointerButton::Secondary, false)]); + frame(app, ctx, t + 0.1, vec![]); +} + +fn open(ctx: &egui::Context) -> bool { + ctx.data(|d| d.get_temp::(egui::Id::unique("toolbar-more-flyout-open"))).unwrap_or(false) +} + +fn flyout(ctx: &egui::Context) -> Option { + ctx.memory(|m| m.area_rect(egui::Id::unique("toolbar-more-flyout"))) +} + +#[test] +fn right_click_on_more_opens_a_flyout_with_one_row() { + let (mut app, ctx, at) = setup(); + assert!(!open(&ctx)); + right_click(&mut app, &ctx, at, 1.0); + assert!(open(&ctx)); + let rect = flyout(&ctx).expect("the flyout is drawn"); + assert!(rect.height() < 50.0, "one 26 point row, not a list: {rect:?}"); + assert!(app.ui.dialogs.is_empty(), "opening the flyout runs nothing"); +} + +#[test] +fn choosing_edit_toolbar_runs_it_and_closes_the_flyout() { + let (mut app, ctx, at) = setup(); + right_click(&mut app, &ctx, at, 1.0); + let row = flyout(&ctx).unwrap().center(); + frame(&mut app, &ctx, 1.95, vec![Event::PointerMoved(row)]); + frame(&mut app, &ctx, 2.0, vec![button(row, egui::PointerButton::Primary, true)]); + frame(&mut app, &ctx, 2.05, vec![]); + frame(&mut app, &ctx, 2.1, vec![button(row, egui::PointerButton::Primary, false)]); + frame(&mut app, &ctx, 2.15, vec![]); + assert_eq!(app.ui.dialogs.len(), 1, "edit.toolbar opened its dialog"); + assert!(!open(&ctx)); +} + +#[test] +fn escape_closes_the_flyout_without_running_anything() { + let (mut app, ctx, at) = setup(); + right_click(&mut app, &ctx, at, 1.0); + let key = Event::Key { key: egui::Key::Escape, physical_key: None, pressed: true, repeat: false, modifiers: Default::default() }; + frame(&mut app, &ctx, 2.0, vec![key]); + assert!(!open(&ctx)); + assert!(app.ui.dialogs.is_empty()); +} + +#[test] +fn a_press_outside_closes_the_flyout_without_running_anything() { + let (mut app, ctx, at) = setup(); + right_click(&mut app, &ctx, at, 1.0); + let away = Pos2::new(900.0, 900.0); + frame(&mut app, &ctx, 2.0, vec![Event::PointerMoved(away), button(away, egui::PointerButton::Primary, true)]); + frame(&mut app, &ctx, 2.05, vec![button(away, egui::PointerButton::Primary, false)]); + assert!(!open(&ctx)); + assert!(app.ui.dialogs.is_empty()); +} + +#[test] +fn a_left_click_still_opens_edit_toolbar_directly() { + let (mut app, ctx, at) = setup(); + frame(&mut app, &ctx, 1.0, vec![Event::PointerMoved(at), button(at, egui::PointerButton::Primary, true)]); + frame(&mut app, &ctx, 1.05, vec![button(at, egui::PointerButton::Primary, false)]); + frame(&mut app, &ctx, 1.1, vec![]); + assert_eq!(app.ui.dialogs.len(), 1); + assert!(!open(&ctx), "no flyout for a left click"); +} + +#[test] +fn a_failed_edit_toolbar_from_the_flyout_reports_its_error_in_the_status_bar() { + let (mut app, ctx, at) = setup(); + app.automation_input = true; + app.services.automation_command = Some(Box::new(|id, _| if id == "edit.toolbar" { Err("toolbar edits denied".into()) } else { Ok(()) })); + right_click(&mut app, &ctx, at, 1.0); + let row = flyout(&ctx).unwrap().center(); + frame(&mut app, &ctx, 1.95, vec![Event::PointerMoved(row)]); + frame(&mut app, &ctx, 2.0, vec![button(row, egui::PointerButton::Primary, true)]); + frame(&mut app, &ctx, 2.05, vec![]); + frame(&mut app, &ctx, 2.1, vec![button(row, egui::PointerButton::Primary, false)]); + frame(&mut app, &ctx, 2.15, vec![]); + assert!(app.ui.dialogs.is_empty(), "the denied command opened nothing"); + assert!(!open(&ctx)); + assert_eq!(app.ui.status, "toolbar edits denied"); + assert!(app.ui.status_error); +} diff --git a/crates/ui-egui/src/tools.rs b/crates/ui-egui/src/tools.rs index 537ecd342e..9878bf41a4 100644 --- a/crates/ui-egui/src/tools.rs +++ b/crates/ui-egui/src/tools.rs @@ -14,6 +14,7 @@ pub mod crop_presets; pub mod crop_shield; pub mod crop_size; pub mod crop_straighten; +pub mod crop_task_bar; pub mod crop_ui; pub mod direct_select; pub mod eraser_ui; diff --git a/crates/ui-egui/src/tools/cas_transform.rs b/crates/ui-egui/src/tools/cas_transform.rs index 1e1a0f51ff..362f226724 100644 --- a/crates/ui-egui/src/tools/cas_transform.rs +++ b/crates/ui-egui/src/tools/cas_transform.rs @@ -295,4 +295,24 @@ mod tests { let b = st.doc.layer(st.active_layer.unwrap()).unwrap().surface().unwrap().content_bounds(); assert_eq!([b.x0, b.y0, b.width() as i32, b.height() as i32], [8, 8, 24, 24]); } + + /// On the Background the box's preview shows the vacated area in the background colour, as + /// the command leaves it. + #[test] + fn on_the_background_the_preview_vacates_to_the_background_colour() { + for depth in [8, 16] { + let mut app = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default()); + let ctx = egui::Context::default(); + app.run("file.new", json!({"width": 64, "height": 48, "depth": depth, "background": "white"})).unwrap(); + app.session.tools.background = [0.0, 0.0, 1.0, 1.0]; + app.run("select.rect", json!({"x": 8, "y": 8, "width": 40, "height": 24})).unwrap(); + app.sync_views(); + crate::menus::invoke(&mut app, &ctx, COMMAND, json!({})).unwrap(); + let pv = app.transform_preview.as_ref().unwrap(); + let id = app.session.active().unwrap().active_layer.unwrap(); + let px = |x, y| pv.doc.layer(id).unwrap().surface().unwrap().rgba(x, y); + assert_eq!(px(20, 20), [0.0, 0.0, 1.0, 1.0], "{depth}-bit: under the box"); + assert_eq!(px(4, 4), [1.0, 1.0, 1.0, 1.0], "{depth}-bit: outside it"); + } + } } diff --git a/crates/ui-egui/src/tools/crop_mode/tests.rs b/crates/ui-egui/src/tools/crop_mode/tests.rs index c0afceb0d1..cb5041a2fe 100644 --- a/crates/ui-egui/src/tools/crop_mode/tests.rs +++ b/crates/ui-egui/src/tools/crop_mode/tests.rs @@ -458,6 +458,61 @@ fn commit_is_the_same_in_both_modes_and_the_view_stays_upright() { assert!(out[0].1 == out[1].1, "same pixels"); } +/// #9308: the default mode's camera turn is the crop's, not a view rotation, so Match Rotation +/// and Match All copy 0 to the other views and leave the active view showing the box upright. +#[test] +fn match_rotation_leaves_a_pending_crops_turn_out() { + let ctx = egui::Context::default(); + for id in ["window.arrange.matchRotation", "window.arrange.matchAll"] { + let mut app = app(); + app.run("file.new", json!({"width": 300, "height": 150})).unwrap(); + app.sync_views(); + assert!(app.session.set_active(0)); + app.sync_views(); + let v = &mut app.ui.views[0]; + (v.zoom, v.center, v.fit_pending, v.rotation) = (1.0, [100.0, 50.0], false, 0.0); + app.ui.views[1].rotation = 15.0; + let view = app.ui.views[1].clone(); + app.ui.windows.push(crate::state::DocWindow { id: 7, document: 1, view, open: true, position: None, floating: false, focused: false }); + with_frame(&mut app); + screen_drag(&mut app, &[pos2(450.0, 300.0), pos2(440.0, 320.0), pos2(370.0, 380.0)], NONE); + assert!((view_rotation(&app) - 90.0).abs() < 0.01, "{id}: the view turned with the frame"); + let r = crate::menus::invoke(&mut app, &ctx, id, json!({})).unwrap(); + assert_eq!(r["rotation"], 0.0, "{id}: {r}"); + assert_eq!(app.ui.views[1].rotation, 0.0, "{id}: the other document's view"); + assert_eq!(app.ui.windows[0].view.rotation, 0.0, "{id}: the floating window"); + assert!((view_rotation(&app) - 90.0).abs() < 0.01, "{id}: the crop still drives its own view"); + crate::canvas::commit_crop(&mut app); + app.ui.tool = Tool::Brush; + assert_eq!(view_rotation(&app), 0.0, "{id}: after ↵"); + assert_eq!(app.ui.views[1].rotation, 0.0, "{id}: the other view isn't left turned"); + } +} + +/// Match Zoom and Match Location copy no rotation, so with a crop turning the active view they +/// report its camera's turn as it is and leave every view's rotation alone (#9308). +#[test] +fn match_zoom_and_location_report_the_turned_camera() { + let ctx = egui::Context::default(); + for id in ["window.arrange.matchZoom", "window.arrange.matchLocation"] { + let mut app = app(); + app.run("file.new", json!({"width": 300, "height": 150})).unwrap(); + app.sync_views(); + assert!(app.session.set_active(0)); + app.sync_views(); + let v = &mut app.ui.views[0]; + (v.zoom, v.center, v.fit_pending, v.rotation) = (1.0, [100.0, 50.0], false, 0.0); + app.ui.views[1].rotation = 15.0; + with_frame(&mut app); + screen_drag(&mut app, &[pos2(450.0, 300.0), pos2(440.0, 320.0), pos2(370.0, 380.0)], NONE); + let turned = view_rotation(&app); + assert!((turned - 90.0).abs() < 0.01, "{id}: the view turned with the frame"); + let r = crate::menus::invoke(&mut app, &ctx, id, json!({})).unwrap(); + assert!((r["rotation"].as_f64().unwrap() - f64::from(turned)).abs() < 0.01, "{id}: {r}"); + assert_eq!(app.ui.views[1].rotation, 15.0, "{id}: the other view keeps its rotation"); + } +} + /// #9202: switching documents drops a turned pending crop and turns its own document's view /// upright, as Esc would, not only the view of the document switched to. #[test] diff --git a/crates/ui-egui/src/tools/crop_presets.rs b/crates/ui-egui/src/tools/crop_presets.rs index 0ee8733ca1..a68f577425 100644 --- a/crates/ui-egui/src/tools/crop_presets.rs +++ b/crates/ui-egui/src/tools/crop_presets.rs @@ -576,6 +576,8 @@ mod tests { PhotocraftApp::setup_context(&cc.egui_ctx, Default::default()); let mut app = app(); whr(&mut app, "", "", "", PX_PER_IN); + // Only the options bar's dropdown: the contextual task bar shows the same one (#10890). + app.ui.panels.context_task_bar = false; app }); h.run_steps(4); diff --git a/crates/ui-egui/src/tools/crop_task_bar.rs b/crates/ui-egui/src/tools/crop_task_bar.rs new file mode 100644 index 0000000000..728cd69422 --- /dev/null +++ b/crates/ui-egui/src/tools/crop_task_bar.rs @@ -0,0 +1,86 @@ +//! The Crop tool's contextual task bar (#10890): what the Crop tool puts in the reusable bar of +//! `widgets::task_bar`, under the crop frame, as in the reference application. Left to right: +//! +//! 1. the grip (the widget's); +//! 2. *Generative Expand goes here* once generative fill comes through the shared AI layer (#41, +//! #1199); until then it is left out, not shown disabled; +//! 3. the preset dropdown: the options bar's own (`crop_presets::dropdown`), so the two stay in +//! sync; +//! 4. Straighten: the options bar's Straighten button; +//! 5. the ⋯ menu (the widget's); +//! 6. while a crop is pending ([`crop_ui::pending`]): Cancel and Done, which the options bar's +//! cancel and commit buttons do. +//! +//! Shown while the Crop tool shows a frame on the active document, Window › Contextual Task Bar +//! is ticked and no dialog is open. + +use crate::PhotocraftApp; +use crate::canvas::ViewXform; +use crate::crop_ui; +use crate::state::Tool; +use crate::widgets::task_bar; + +/// The Straighten icon. TODO(#10888): the spirit-level glyph once that options-bar item lands. +const STRAIGHTEN_ICON: &str = "ruler"; + +/// The crop frame on screen: the bounds of its (possibly turned) corners. +fn frame_on_screen(app: &PhotocraftApp, xf: &ViewXform) -> Option { + let r = app.ui.crop_rect?; + let pts = crop_ui::corners(r, app.ui.crop_angle).map(|[x, y]| xf.to_screen(x as f32, y as f32)); + Some(egui::Rect::from_points(&pts)) +} + +/// The bar shows: the Crop tool with a frame, the Window toggle on, no dialog over the canvas. +fn wanted(app: &PhotocraftApp) -> bool { + app.ui.tool == Tool::Crop && app.ui.panels.context_task_bar && app.ui.dialogs.is_empty() && app.session.active().is_some() +} + +/// Whether the bar can show now: [`wanted`] and a crop frame. `ui.inspect` checks it, so a bar +/// hidden by `ui.set` before the next draw no longer reports last frame's rect. +pub fn eligible(app: &PhotocraftApp) -> bool { + wanted(app) && app.ui.crop_rect.is_some() +} + +/// Draws the bar under the active document's crop frame (the canvas's overlay pass calls it on +/// that document's tile). +pub fn draw(app: &mut PhotocraftApp, ui: &mut egui::Ui, xf: &ViewXform) { + if !wanted(app) { + return; + } + let Some(anchor) = frame_on_screen(app, xf) else { return }; + let ctx = ui.ctx().clone(); + let mut place = app.ui.panels.task_bar; + let shown = task_bar::show(&ctx, &mut place, anchor, xf.rect, |ui, more| contents(app, ui, more)); + app.ui.panels.task_bar = place; + let Some(shown) = shown else { return }; + if shown.hide { + app.ui.panels.context_task_bar = false; + return; + } + let r = shown.rect; + app.ui.task_bar_shown = Some([r.min.x, r.min.y, r.max.x, r.max.y]); +} + +/// The Crop tool's controls in the bar. +fn contents(app: &mut PhotocraftApp, ui: &mut egui::Ui, more: &mut task_bar::MoreMenu) { + // Generative Expand (#41) goes here, before the preset dropdown. + let before_ratio = crop_ui::preset_ratio(app); + // Its own id: the options bar shows the same dropdown. + ui.push_id("crop-task-bar", |ui| crate::crop_presets::dropdown(app, ui)); + if crop_ui::preset_ratio(app) != before_ratio { + crop_ui::apply_ratio(app); + } + let armed = app.crop.straighten.armed; + if crate::icons::button_with_icon_size_tip(ui, STRAIGHTEN_ICON, task_bar::BUTTON, 14.0, armed, tl!("Straighten"), false).clicked() { + crate::crop_straighten::toggle(app); + } + more.show(ui); + if crop_ui::pending(app) { + if ui.button(tl!("Cancel")).clicked() { + crop_ui::dismiss(app); + } + if ui.button(tl!("Done")).clicked() { + crate::canvas::commit_crop(app); + } + } +} diff --git a/crates/ui-egui/src/tools/move_box.rs b/crates/ui-egui/src/tools/move_box.rs index 05f12222b4..20edea5850 100644 --- a/crates/ui-egui/src/tools/move_box.rs +++ b/crates/ui-egui/src/tools/move_box.rs @@ -82,8 +82,7 @@ pub(crate) fn pointer(app: &mut PhotocraftApp, ev: ToolEvent) -> bool { /// The marquee as marching ants. pub(crate) fn draw(app: &PhotocraftApp, painter: &egui::Painter, xf: &ViewXform) { let Some(b) = app.layer_box else { return }; - let r = egui::Rect::from_two_pos(xf.to_screen(b.start[0] as f32, b.start[1] as f32), xf.to_screen(b.end[0] as f32, b.end[1] as f32)); - crate::tool_feedback::draw_ants(painter, &[r.left_top(), r.right_top(), r.right_bottom(), r.left_bottom()], true); + crate::tool_feedback::draw_ants(painter, &crate::canvas::doc_box_corners(xf, b.start, b.end), true); } #[cfg(test)] diff --git a/crates/ui-egui/src/tools/move_mods.rs b/crates/ui-egui/src/tools/move_mods.rs index 9c91eff38c..b4237c2a29 100644 --- a/crates/ui-egui/src/tools/move_mods.rs +++ b/crates/ui-egui/src/tools/move_mods.rs @@ -202,7 +202,25 @@ pub fn abandon(app: &mut PhotocraftApp) { } } -/// Arrow keys with the Move tool (or while Free Transform is active): nudge 1 px, ⇧ 10 px; +/// The document pixels one plain arrow press moves layers by with the Move tool: one screen +/// pixel, as in Photoshop (#9511). Zoomed out that is several document pixels (2 at 50 %, 4 at +/// 25 %; 1 at 66.7 %: whole pixels only), zoomed in still one. No cap: the zoom bottoms out +/// with the document's shorter side 2 px on screen (`zoom_levels::min`), so a step is at most +/// half that side. ⇧'s 10 px don't scale. Free Transform keeps 1 px. +fn screen_pixel_step(app: &PhotocraftApp) -> f64 { + let zoom = f64::from(app.current_zoom()); + if app.ui.transform.is_some() || !zoom.is_finite() || zoom <= 0.0 { + return 1.0; + } + // A ladder rung is a hair off in f32 (0.1 % is 1 / 999.99995): snap a reciprocal within f32 + // precision of a whole number to it, and floor any other zoom (0.3333334 is 2, not 3). + let (r, whole) = (1.0 / zoom, (1.0 / zoom).round()); + let steps = if (r - whole).abs() <= r * f64::from(f32::EPSILON) { whole } else { r.floor() }; + steps.max(1.0) +} + +/// Arrow keys with the Move tool (or while Free Transform is active): nudge one screen pixel +/// (1 px at 100 %, [`screen_pixel_step`]), ⇧ 10 px; /// ⌥ duplicates the layers first. ⌘-arrows (Ctrl off the Mac) do the same from most other tools, /// where ⌘ is the temporary Move tool (`hold_keys::cmd_nudges`, #2474). Returns true when a key /// was used. @@ -222,7 +240,7 @@ pub fn arrow_keys(app: &mut PhotocraftApp, ctx: &egui::Context) -> bool { // Most specific first: `consume_key` ignores extra ⇧ / ⌥ (`matches_logically`). for mods in [Modifiers::SHIFT | Modifiers::ALT, Modifiers::SHIFT, Modifiers::ALT, Modifiers::NONE] { if ctx.input_mut(|i| i.consume_key(base | mods, key)) { - let k = if mods.shift { 10.0 } else { 1.0 }; + let k = if mods.shift { 10.0 } else { screen_pixel_step(app) }; app.nudge_bundle.now = ctx.input(|i| i.time); nudge(app, ux * k, uy * k, mods.alt); return true; diff --git a/crates/ui-egui/src/tools/move_mods/tests.rs b/crates/ui-egui/src/tools/move_mods/tests.rs index 1e4c45b784..c7591abf9e 100644 --- a/crates/ui-egui/src/tools/move_mods/tests.rs +++ b/crates/ui-egui/src/tools/move_mods/tests.rs @@ -335,6 +335,28 @@ fn a_run_of_arrow_nudges_is_one_history_step() { assert_eq!(bounds(&app, id), photocraft_geom::Rect::new(20, 18, 36, 34), "and one Redo does it again"); } +/// #9511: zoomed out, where each press moves several document pixels, a run of nudges is still +/// one History state. +#[test] +fn a_run_of_arrow_nudges_is_one_history_step_zoomed_out() { + let mut app = app_with_layer(); + let id = app.session.active().unwrap().active_layer.unwrap(); + app.ui.views[0].zoom = 0.5; + let h0 = history(&app); + // Twelve taps of 2 px each at 50 %, then ⇧ for ten more px: still the same run. + for i in 0..12 { + assert!(press_at(&mut app, egui::Key::ArrowRight, egui::Modifiers::NONE, 5.0 + 0.2 * f64::from(i))); + } + assert!(press_at(&mut app, egui::Key::ArrowDown, egui::Modifiers::SHIFT, 7.6)); + assert_eq!(bounds(&app, id), photocraft_geom::Rect::new(32, 18, 48, 34)); + assert_eq!(history(&app), h0 + 1, "thirteen presses, one state"); + assert_eq!(app.session.active().unwrap().history.undo_label(), Some("Nudge")); + assert!(app.session.undo()); + assert_eq!(bounds(&app, id), photocraft_geom::Rect::new(8, 8, 24, 24), "one Undo takes back the run"); + assert!(app.session.redo()); + assert_eq!(bounds(&app, id), photocraft_geom::Rect::new(32, 18, 48, 34), "and one Redo does it again"); +} + /// A pause longer than Nudge Bundle Pause starts a new run; a longer pause setting keeps it. #[test] fn a_pause_ends_the_run() { @@ -500,6 +522,19 @@ fn free_transform_nudges_bundle_into_one_undo_step() { assert_eq!(quad(&app), moved(2.0, 0.0)); } +/// #9511: Free Transform keeps Photoshop's 1 document pixel per arrow press at any zoom; only +/// the Move tool's nudge is one screen pixel. +#[test] +fn free_transform_nudges_one_document_pixel_zoomed_out() { + let mut app = app_with_layer(); + app.ui.views[0].zoom = 0.5; + let ctx = egui::Context::default(); + crate::transform_tool::begin(&mut app, &ctx).unwrap(); + let q0 = app.ui.transform.as_ref().unwrap().quad; + assert!(press(&mut app, egui::Key::ArrowRight, egui::Modifiers::NONE)); + assert_eq!(app.ui.transform.as_ref().unwrap().quad, q0.map(|q| [q[0] + 1.0, q[1]]), "→ at 50 % moves the box 1 px"); +} + /// Arrow keys while editing text must not nudge layers, leaving the keys to the type tool (#5355). #[test] fn arrow_keys_ignored_during_text_edit() { @@ -523,3 +558,37 @@ fn arrow_keys_ignored_during_text_edit() { assert!(!press(&mut app, egui::Key::ArrowLeft, egui::Modifiers::ALT)); assert_eq!(bounds(&app, id), b0, "arrow keys do not nudge while editing text"); } + +/// #9511: as in Photoshop, a plain arrow nudge is one screen pixel, so zoomed out it moves the +/// layer several document pixels (floor of 1 / zoom: 4 at 25 %, 2 at 50 %, 1 at 66.7 %, 1 at +/// 100 % and above, up to 1600 %); ⇧ is 10 document pixels at any zoom. +#[test] +fn a_nudge_is_one_screen_pixel() { + for (zoom, step) in [(0.25, 4), (0.5, 2), (2.0 / 3.0, 1), (1.0, 1), (2.0, 1), (16.0, 1)] { + let mut app = app_with_layer(); + let id = app.session.active().unwrap().active_layer.unwrap(); + app.ui.views[0].zoom = zoom; + assert!(press(&mut app, egui::Key::ArrowRight, egui::Modifiers::NONE)); + assert_eq!(left_edge(&app, id), 8 + step, "→ at {zoom}"); + assert!(press(&mut app, egui::Key::ArrowLeft, egui::Modifiers::SHIFT)); + assert_eq!(left_edge(&app, id), 8 + step - 10, "⇧← at {zoom}"); + } +} + +/// #9511: below 0.1 % (a large document zooms out until its shorter side is 2 px) the nudge is +/// still one screen pixel: 6000 document pixels at a 12,000 × 12,000 px document's lowest zoom, +/// not capped at 1000. The ladder's f32 rungs (0.1 %, 0.2 %) still give whole steps (1000, +/// not 999). +#[test] +fn a_nudge_is_one_screen_pixel_below_a_tenth_of_a_percent() { + let lowest = crate::zoom_levels::min([12_000, 12_000]); + // 0.3333334 is just above a third, off the ladder (pinch, Zoom tool drag): 2.9999994 screen + // pixels' worth floors to 2, while the ladder's own f32 third still gives 3 (#10438 review). + for (zoom, step) in [(0.002, 500), (0.001, 1000), (0.0005, 2000), (lowest, 6000), (0.333_333_4, 2), (1.0 / 3.0, 3)] { + let mut app = app_with_layer(); + let id = app.session.active().unwrap().active_layer.unwrap(); + app.ui.views[0].zoom = zoom; + assert!(press(&mut app, egui::Key::ArrowRight, egui::Modifiers::NONE)); + assert_eq!(left_edge(&app, id), 8 + step, "→ at {zoom}"); + } +} diff --git a/crates/ui-egui/src/tools/shape_options.rs b/crates/ui-egui/src/tools/shape_options.rs index f7ca997539..8aabe45922 100644 --- a/crates/ui-egui/src/tools/shape_options.rs +++ b/crates/ui-egui/src/tools/shape_options.rs @@ -32,7 +32,9 @@ fn selected_shape(session: &photocraft_engine::Session) -> Option } } -pub(crate) fn options_bar(app: &mut PhotocraftApp, ui: &mut egui::Ui, tool: Tool) { +/// The Shape tools' options. `paint` shows Fill and Stroke: off in Path mode, where a drag draws +/// only an outline, but the tool's geometry (radius, sides, weight, custom shape) stays. +pub(crate) fn options_bar(app: &mut PhotocraftApp, ui: &mut egui::Ui, tool: Tool, paint: bool) { let t = Tokens::get(ui.ctx()); let lbl = |ui: &mut egui::Ui, s: &str| { let label = ui.label(egui::RichText::new(s).color(t.text_dim).size(12.0)); @@ -40,7 +42,8 @@ pub(crate) fn options_bar(app: &mut PhotocraftApp, ui: &mut egui::Ui, tool: Tool crate::widgets::scrub_option_label(ui, &label); }; let o = &mut app.ui.tool_options; - let target = selected_shape(&app.session); + // Path mode edits only the next outline: an active shape layer is not the target. + let target = if paint { selected_shape(&app.session) } else { None }; // Fill and Stroke edit the selected shape layer too (#3347), and still set the next shape's. let (fg, bg) = (app.session.tools.foreground, app.session.tools.background); let (mut has_fill, fill, stroke) = match &target { @@ -61,40 +64,43 @@ pub(crate) fn options_bar(app: &mut PhotocraftApp, ui: &mut egui::Ui, tool: Tool let gesture = paint_gesture(ui, gesture_key); let key = |k: &str| target.as_ref().map(|s| format!("shape-options-{:?}-{}-{k}:{}:{gesture}", s.doc, s.layer.0, gesture_key.value())); let mut edit: Option = None; - lbl(ui, tl!("Fill:")); - if crate::widgets::checkbox(ui, &mut has_fill, tl!("Fill")).changed() { - o.shape_fill = has_fill; - edit = Some(json!({"fill": if has_fill { o.shape_fill_gradient.as_ref().map_or_else(|| json!(fg), paint_param) } else { Value::Null }})); - } - let fill_color = swatch(ui, &lib, fill.as_ref(), fg, tl!("Fill color"), &mut gradients); - lbl(ui, tl!("Stroke:")); - let stroke_color = swatch(ui, &lib, stroke.as_ref().map(|s| &s.paint), bg, tl!("Stroke color"), &mut gradients); - if crate::widgets::value_field(ui, &mut width, 0.0..=288.0, "px", 58.0).accessible_name(tl!("Stroke:")).changed() { - o.stroke_width = width; - // A 0 px "change" (an arrow step clamped at the minimum) must not add a stroke. - if stroke.is_some() || width > 0.0 { - let mut p = json!({"width": width}); + let (mut fill_color, mut stroke_color) = (None, None); + if paint { + lbl(ui, tl!("Fill:")); + if crate::widgets::checkbox(ui, &mut has_fill, tl!("Fill")).changed() { + o.shape_fill = has_fill; + edit = Some(json!({"fill": if has_fill { o.shape_fill_gradient.as_ref().map_or_else(|| json!(fg), paint_param) } else { Value::Null }})); + } + fill_color = swatch(ui, &lib, fill.as_ref(), fg, tl!("Fill color"), &mut gradients); + lbl(ui, tl!("Stroke:")); + stroke_color = swatch(ui, &lib, stroke.as_ref().map(|s| &s.paint), bg, tl!("Stroke color"), &mut gradients); + if crate::widgets::value_field(ui, &mut width, 0.0..=288.0, "px", 58.0).accessible_name(tl!("Stroke:")).changed() { + o.stroke_width = width; + // A 0 px "change" (an arrow step clamped at the minimum) must not add a stroke. + if stroke.is_some() || width > 0.0 { + let mut p = json!({"width": width}); + if stroke.is_none() { + p["color"] = o.shape_stroke_gradient.as_ref().map_or_else(|| json!(bg), paint_param); + } + edit = Some(json!({"stroke": p, "coalesce": key("stroke-w")})); + } + } + let preview = target.as_ref().filter(|s| s.stroke.is_some()).map(|s| (s.doc, s.layer)); + if let Some(change) = + crate::shape_stroke_ui::button(ui, "tool-stroke", &style, &mut app.ui.stroke_editor, true, tool != Tool::EllipseShape, preview, stroke_enabled) + { + let mut p = change.options.params(); + if !stroke_enabled { + p["width"] = json!(3.0); + } if stroke.is_none() { p["color"] = o.shape_stroke_gradient.as_ref().map_or_else(|| json!(bg), paint_param); } - edit = Some(json!({"stroke": p, "coalesce": key("stroke-w")})); + edit = Some(json!({"stroke": p, "coalesce": change.coalesce})); + o.shape_stroke = change.options; + o.stroke_width = enabled_stroke_width(o.stroke_width); } } - let preview = target.as_ref().filter(|s| s.stroke.is_some()).map(|s| (s.doc, s.layer)); - if let Some(change) = - crate::shape_stroke_ui::button(ui, "tool-stroke", &style, &mut app.ui.stroke_editor, true, tool != Tool::EllipseShape, preview, stroke_enabled) - { - let mut p = change.options.params(); - if !stroke_enabled { - p["width"] = json!(3.0); - } - if stroke.is_none() { - p["color"] = o.shape_stroke_gradient.as_ref().map_or_else(|| json!(bg), paint_param); - } - edit = Some(json!({"stroke": p, "coalesce": change.coalesce})); - o.shape_stroke = change.options; - o.stroke_width = enabled_stroke_width(o.stroke_width); - } match tool { Tool::Rectangle => { crate::widgets::vline(ui, 22.0); diff --git a/crates/ui-egui/src/tools/tool_reset.rs b/crates/ui-egui/src/tools/tool_reset.rs index 4903dfa40e..d86af561a5 100644 --- a/crates/ui-egui/src/tools/tool_reset.rs +++ b/crates/ui-egui/src/tools/tool_reset.rs @@ -218,7 +218,7 @@ pub fn option_keys(tool: Tool) -> &'static [&'static str] { Tool::CurvaturePen => reset!(vector_mode, pen_path_op), Tool::FreeformPen => reset!(vector_mode, pen_path_op, curve_fit), Tool::Line => reset!( - vector_mode, + shape_mode, shape_fill, stroke_width, shape_stroke, @@ -234,7 +234,7 @@ pub fn option_keys(tool: Tool) -> &'static [&'static str] { arrow_concavity, ), Tool::Rectangle | Tool::EllipseShape | Tool::Triangle | Tool::Polygon | Tool::CustomShape => { - reset!(vector_mode, shape_fill, stroke_width, shape_stroke, shape_fill_gradient, shape_stroke_gradient, corner_radius, polygon_sides, line_weight) + reset!(shape_mode, shape_fill, stroke_width, shape_stroke, shape_fill_gradient, shape_stroke_gradient, corner_radius, polygon_sides, line_weight) } Tool::ColorSampler | Tool::Ruler diff --git a/crates/ui-egui/src/tools/transform_tool/begin.rs b/crates/ui-egui/src/tools/transform_tool/begin.rs index ee5d58e952..3ab5f513a1 100644 --- a/crates/ui-egui/src/tools/transform_tool/begin.rs +++ b/crates/ui-egui/src/tools/transform_tool/begin.rs @@ -315,11 +315,21 @@ pub(crate) fn begin_content_aware( crate::type_tool::commit(app); let rect = [region.x0 as f64, region.y0 as f64, region.x1 as f64, region.y1 as f64]; let session = app.ui.alloc_id(); - // The command clears the area before writing the result (a layer without transparency keeps it). + // The command vacates the area before writing the result, as Delete does: transparent, or on + // the Background the background colour (a layer without transparency otherwise keeps it). + let background = doc.is_background(id).then_some(app.session.tools.background); let mut pd = (*doc).clone(); - if let Some(s) = pd.layer_mut(id).and_then(|l| l.surface_mut()).filter(|s| s.format().alpha) { - let clear = vec![0.0; s.format().channels()]; - s.fill_rect(region, &clear); + if let Some(s) = pd.layer_mut(id).and_then(|l| l.surface_mut()).filter(|s| background.is_some() || s.format().alpha) { + let fmt = s.format(); + let mut fill = vec![0.0; fmt.channels()]; + if let Some([r, g, b, _]) = background { + let mut enc = [0.0f32; 8]; + let n = photocraft_raster::from_rgba_into(&fmt, [r, g, b, 1.0], &mut enc); + if let (Some(dst), Some(src)) = (fill.get_mut(..n), enc.get(..n)) { + dst.copy_from_slice(src); + } + } + s.fill_rect(region, &fill); s.prune(); } let max_side = ctx.input(|i| i.max_texture_side).max(app.gpu.as_ref().map_or(1, |g| g.max_texture_side())); diff --git a/crates/ui-egui/src/tools/transform_tool/pointer.rs b/crates/ui-egui/src/tools/transform_tool/pointer.rs index 0cd9933108..2cd5ba41a8 100644 --- a/crates/ui-egui/src/tools/transform_tool/pointer.rs +++ b/crates/ui-egui/src/tools/transform_tool/pointer.rs @@ -83,6 +83,30 @@ fn on_pasteboard(app: &PhotocraftApp, p: [f64; 2]) -> bool { app.session.active().is_some_and(|st| p[0] < 0.0 || p[1] < 0.0 || p[0] >= f64::from(st.doc.size.width) || p[1] >= f64::from(st.doc.size.height)) } +/// Whether a document point lands on pixels of a layer the box doesn't move: the frontmost hit +/// there, skipping the moved layers and fully locked ones as Auto-Select does, is a visible +/// top-level layer that is not the Background. As measured in the reference application +/// (#11100, #8208), a click there commits a layer transform and leaves the selection as it was; +/// a second click picks that layer. Not measured, so the box stays open as before: Transform +/// Selection, a path or mask target, and hidden, locked or grouped layers (also when a grouped +/// layer covers a top-level one at the click). +fn on_other_layer(app: &PhotocraftApp, t: &TransformSession, p: [f64; 2]) -> bool { + if t.selection || t.path.is_some() || t.target.is_some() || !p[0].is_finite() || !p[1].is_finite() { + return false; + } + let Some(st) = app.session.active() else { return false }; + let doc = &st.doc; + // The layers the commit moves: `edit.transform` takes the link group along as it is then, so a + // layer linked after the box opened counts as moved too. + let moved = photocraft_engine::transform_cmds::box_targets(doc, &super::begin::moving_layers(t)); + let moved = |id: photocraft_doc::LayerId| id.0 == t.layer || moved.contains(&id); + // `as` saturates out-of-range floats; `layers_at` returns nothing off the canvas. + photocraft_engine::pick_cmds::layers_at(doc, p[0].floor() as i32, p[1].floor() as i32) + .into_iter() + .find(|id| !moved(*id) && !doc.effective_locks(*id).all) + .is_some_and(|id| !doc.is_background(id) && doc.layers.iter().any(|l| l.id == id && l.artboard().is_none())) +} + /// Pointer input while transforming. Returns false when no transform is active. pub fn pointer(app: &mut PhotocraftApp, ev: ToolEvent, mods: egui::Modifiers) -> bool { let Some(t) = app.ui.transform.clone() else { return false }; @@ -118,16 +142,18 @@ pub fn pointer(app: &mut PhotocraftApp, ev: ToolEvent, mods: egui::Modifiers) -> if matches!(ev, ToolEvent::Up { .. }) { pv.gesture = None; } - // Clicking the pasteboard (outside the document) commits; a click outside the box on the - // image does nothing and the box stays open (#11100). Dragging the rotation zone and - // Option-clicking to move the pivot keep their existing behavior. + // Clicking the pasteboard (outside the document) or another layer's pixels commits; a + // click outside the box where only the Background has pixels does nothing and the box + // stays open (#11100). The commit doesn't pick the layer under the click: as in the + // reference application, that takes a second click (#8208). Dragging the rotation + // zone and Option-clicking to move the pivot keep their existing behavior. // The press decides: a click that starts on the image and jitters past the edge // before the release is still a click on the image. if matches!(ev, ToolEvent::Up { .. }) && let Some(g) = g && accepts_outside_click(g, [x, y], tol) { - if on_pasteboard(app, g.start) { + if on_pasteboard(app, g.start) || on_other_layer(app, &t, g.start) { commit(app); } else if let Some(s) = app.ui.transform.as_mut() { // Jitter before the release may have turned the box a little: put it back. diff --git a/crates/ui-egui/src/tools/vector_ui.rs b/crates/ui-egui/src/tools/vector_ui.rs index 0749b87434..38eee2b665 100644 --- a/crates/ui-egui/src/tools/vector_ui.rs +++ b/crates/ui-egui/src/tools/vector_ui.rs @@ -30,7 +30,7 @@ pub(crate) use curvature::curvature_anchor_at; pub use curvature::{curvature_down, curvature_move, curvature_toggle, curvature_up}; #[cfg(test)] use options::{corner_radii_patch, solid_paint}; -pub(crate) use options::{enabled_stroke_width, paint_gesture}; +pub(crate) use options::{draws_path, enabled_stroke_width, paint_gesture}; pub use options::{options_bar, shape_properties}; pub use overlay::draw_overlay; pub(crate) use overlay::selected_saved_path_index; @@ -41,7 +41,9 @@ pub(crate) use overlay::{curve_points, path_lines, selected_saved_path, shows_an pub(crate) use overlay::{draw_anchor, draw_handle, draw_outline}; #[cfg(test)] use path_ops::target_path; -pub use path_ops::{active_path_name, path_selection_finish, path_to_selection, pick_shape_at, selected_document_path, takes_path_mask, with_active_path}; +pub use path_ops::{ + active_path_name, make_shape, path_selection_finish, path_to_selection, pick_shape_at, selected_document_path, takes_path_mask, with_active_path, +}; pub(crate) use path_ops::{ active_shape_path, active_type_path, delete_key_deletes_work_path, deselect_loaded_path, free_transform_path, targeted_vector_mask, work_path_shown, }; diff --git a/crates/ui-egui/src/tools/vector_ui/options.rs b/crates/ui-egui/src/tools/vector_ui/options.rs index cd68a6bcb6..b1dbd444ca 100644 --- a/crates/ui-egui/src/tools/vector_ui/options.rs +++ b/crates/ui-egui/src/tools/vector_ui/options.rs @@ -108,13 +108,32 @@ pub fn options_bar(app: &mut PhotocraftApp, ui: &mut egui::Ui, tool: Tool) -> bo app.ui.status = e; app.ui.status_error = true; } + // Make: Shape turns the path into a shape layer with the shape fill and stroke (#10934). + let has_shape_path = super::path_ops::shape_source_path(app).is_some() || app.ui.pen.as_ref().is_some_and(|p| p.knots.len() >= 2); + if ui.add_enabled(has_shape_path, egui::Button::new(tl!("Make Shape"))).clicked() + && let Err(e) = super::make_shape(app) + { + app.ui.status = e; + app.ui.status_error = true; + } } return true; } - let mut mode = "shape".to_string(); - crate::widgets::dropdown(ui, "shape-mode", tl!("Mode"), &mut mode, &[("shape".to_string(), tl!("Shape"))], 80.0); + if is_shape_tool(tool) { + // Shape draws a shape layer, Path adds the outline to the work path (#9453). + let opts = [("shape".to_string(), tl!("Shape")), ("path".to_string(), tl!("Path"))]; + crate::widgets::dropdown(ui, "shape-mode", tl!("Mode"), &mut app.ui.tool_options.shape_mode, &opts, 80.0); + } else { + // Path Selection and Direct Selection edit the selected shape layer: the Shape tools' + // Path mode isn't theirs to show or change. + let mut mode = "shape".to_string(); + crate::widgets::dropdown(ui, "shape-mode", tl!("Mode"), &mut mode, &[("shape".to_string(), tl!("Shape"))], 80.0); + } crate::widgets::vline(ui, 22.0); - crate::shape_options::options_bar(app, ui, tool); + // The Shape tools' Path mode hides Fill and Stroke (an outline has no paint); the tool's + // geometry, the Line's arrowheads included, stays. + let paint = !(is_shape_tool(tool) && draws_path(&app.ui.tool_options)); + crate::shape_options::options_bar(app, ui, tool, paint); // Photoshop-style arrowhead settings at the right of Line options. if tool == Tool::Line { crate::widgets::vline(ui, 22.0); @@ -146,6 +165,11 @@ pub fn options_bar(app: &mut PhotocraftApp, ui: &mut egui::Ui, tool: Tool) -> bo true } +/// Whether the Shape tools are in Path mode: a drag adds its outline to the work path. +pub(crate) fn draws_path(o: &crate::state::ToolOptions) -> bool { + o.shape_mode == "path" +} + /// Whether the active layer supplies the selected-shape options. pub(super) fn selected_shape(session: &photocraft_engine::Session) -> Option { let st = session.active()?; diff --git a/crates/ui-egui/src/tools/vector_ui/paint_tests.rs b/crates/ui-egui/src/tools/vector_ui/paint_tests.rs index 6c738735b0..7e958efe7e 100644 --- a/crates/ui-egui/src/tools/vector_ui/paint_tests.rs +++ b/crates/ui-egui/src/tools/vector_ui/paint_tests.rs @@ -1041,3 +1041,61 @@ fn a_refused_popover_swatch_is_not_a_recently_used_colour() { assert_eq!(recent, ["#00ff00"], "properties={properties}"); } } + +/// CodeRabbit on #9456: Path mode hides Fill and Stroke (a path has no paint), but each tool's +/// geometry stays in the options bar, as in Photoshop's Path tool mode. +#[test] +fn path_mode_keeps_the_geometry_options_and_hides_paint() { + for (tool, geometry) in [(Tool::Rectangle, "Radius:"), (Tool::Polygon, "Sides:"), (Tool::Line, "Weight:"), (Tool::CustomShape, "Shape:")] { + let mut app = app("rgb", 8); + app.ui.tool = tool; + app.ui.tool_options.shape_mode = "path".into(); + let h = harness(app, false); + assert!(h.query_by_label(geometry).is_some(), "{tool:?}: {geometry} stays in Path mode"); + for paint in ["Fill:", "Stroke:", "Fill color", "Stroke color", "Stroke Options"] { + assert!(h.query_by_label(paint).is_none(), "{tool:?}: {paint} is hidden in Path mode"); + } + } +} + +/// CodeRabbit on #9456: in Path mode the Radius field sets the next outline's radius only; it +/// must not edit a shape layer that happens to be active. +#[test] +fn path_mode_radius_leaves_the_active_shape_layer_alone() { + let mut app = app("rgb", 8); + app.run("shape.create", json!({"kind": "rect", "rect": [20, 20, 60, 40], "radii": 10})).unwrap(); + let radii = |app: &PhotocraftApp| match &shape(app).live { + Some(photocraft_doc::LiveShape::Rect { radii, .. }) => *radii, + other => panic!("expected a live rectangle, got {other:?}"), + }; + assert_eq!(radii(&app), [10.0; 4]); + app.ui.tool_options.corner_radius = 3.0; + app.ui.tool_options.shape_mode = "path".into(); + let history = app.session.active().unwrap().history.past_len(); + let mut h = harness(app, false); + h.get_all_by_role(egui::accesskit::Role::SpinButton).next().expect("the radius").click(); + h.run(); + h.key_press_modifiers(Modifiers::COMMAND, Key::A); + h.event(Event::Text("20".into())); + h.key_press(Key::Enter); + h.run_steps(3); + assert_eq!(h.state().ui.tool_options.corner_radius, 20.0, "the next outline's radius"); + assert_eq!(radii(h.state()), [10.0; 4], "the shape layer keeps its radius"); + assert_eq!(h.state().session.active().unwrap().history.past_len(), history, "no edit"); +} + +/// CodeRabbit on #9456: the Shape tools' Path mode is theirs alone. With a shape selected, Path +/// Selection and Direct Selection keep their Fill and Stroke controls whatever that mode is. +#[test] +fn selection_tools_ignore_the_shape_tools_path_mode() { + for tool in [Tool::PathSelection, Tool::DirectSelection] { + let mut app = app("rgb", 8); + app.run("shape.create", json!({"rect": [20, 20, 60, 40]})).unwrap(); + app.ui.tool = tool; + app.ui.tool_options.shape_mode = "path".into(); + let h = harness(app, false); + for label in ["Fill color", "Stroke color"] { + assert!(h.query_by_label(label).is_some(), "{tool:?}: {label} stays"); + } + } +} diff --git a/crates/ui-egui/src/tools/vector_ui/path_ops.rs b/crates/ui-egui/src/tools/vector_ui/path_ops.rs index e6c3a1a6cc..3edef2ad86 100644 --- a/crates/ui-egui/src/tools/vector_ui/path_ops.rs +++ b/crates/ui-egui/src/tools/vector_ui/path_ops.rs @@ -73,6 +73,42 @@ pub fn path_to_selection(app: &mut PhotocraftApp, params: Value) -> Result Result { + super::cancel_stale_pen(app); + if let Some(mut pen) = app.ui.pen.clone().filter(|p| p.knots.len() >= 2) { + if pen.curvature { + super::curvature::curvature_refresh(&mut pen, false); + } + let r = super::pen::make_shape_from_draft(app, &pen)?; + app.ui.pen = None; + app.ui.pen_doc = None; + if app.ui.direct_selection.target == Some(crate::direct_select::PathRef::Pen) { + app.ui.direct_selection = Default::default(); + } + return Ok(r); + } + let name = + shape_source_path(app).ok_or_else(|| tl!("No path to make a shape from: draw one with the Pen tool or select one in the Paths panel.").to_string())?; + let r = app.run("path.toShape", json!({"name": name, "fill": super::shapes::fill_param(app), "stroke": super::shapes::stroke_param(app)}))?; + if name == "work" && app.ui.selected_path.as_deref() == Some("work") { + app.ui.selected_path = None; + } + Ok(r) +} + +/// The path Make Shape makes a shape from without a draft: [`active_path_name`] when it is the +/// Work Path or a saved path, never a layer's own path (that would duplicate the shape or mask). +pub fn shape_source_path(app: &PhotocraftApp) -> Option { + active_path_name(app).filter(|n| n != "layer") +} + /// After the Pen or Path Selection tool made a selection from the path `name` (⌘↩, the canvas /// menu's Make Selection…), Photoshop deselects it in the Paths panel and stops drawing it; the /// path itself stays (#6079). The Work Path is hidden too when a saved path was loaded, so no diff --git a/crates/ui-egui/src/tools/vector_ui/pen.rs b/crates/ui-egui/src/tools/vector_ui/pen.rs index baa536f3b8..b162619bba 100644 --- a/crates/ui-egui/src/tools/vector_ui/pen.rs +++ b/crates/ui-egui/src/tools/vector_ui/pen.rs @@ -445,10 +445,7 @@ fn commit_path_current(app: &mut PhotocraftApp, pen: &PenPath, closed: bool) -> // path selected, a new Work Path replaces the old one. The drawn path ends up selected. // A resumed draft whose subpath changed meanwhile joins the path it came from, as a new // subpath, even with nothing selected in the Paths panel. - let exists = |n: &String| app.session.active().is_some_and(|st| path_exists(&st.doc, n)); - let resumed_from = - pen.resumes.as_ref().filter(|r| r.layer.is_none() && app.session.active().is_some_and(|st| st.doc.id.0 == r.doc)).map(|r| r.path.clone()); - let target = resumed_from.filter(exists).or_else(|| app.ui.selected_path.clone().filter(exists)); + let target = draft_target(app, pen); let name = target.clone().unwrap_or_else(|| "work".into()); let mut params = json!({"name": name, "path": path}); if target.is_some() { @@ -464,6 +461,44 @@ fn commit_path_current(app: &mut PhotocraftApp, pen: &PenPath, closed: bool) -> true } +/// The document path a Path-mode draft joins when committed (not into a vector mask): the path it +/// resumed, else the path selected in the Paths panel. `None`: it becomes a new Work Path. +fn draft_target(app: &PhotocraftApp, pen: &PenPath) -> Option { + let exists = |n: &String| app.session.active().is_some_and(|st| path_exists(&st.doc, n)); + let resumed_from = + pen.resumes.as_ref().filter(|r| r.layer.is_none() && app.session.active().is_some_and(|st| st.doc.id.0 == r.doc)).map(|r| r.path.clone()); + resumed_from.filter(exists).or_else(|| app.ui.selected_path.clone().filter(exists)) +} + +/// What Make Shape turns a Path-mode draft into, without committing it: the path the commit would +/// leave (the draft joined to the path it goes into, with the Path Operation, or alone as a new +/// Work Path), and whether that is the Work Path, which the shape then takes. With a vector mask +/// targeted, the draft alone: the mask stays as it was. `None` with no document. +pub(super) fn draft_shape_path(app: &PhotocraftApp, pen: &PenPath) -> Option<(Value, bool)> { + let drawn = pen_to_json(pen, false); + let doc = &app.session.active()?.doc; + if pen.resumes.as_ref().is_some_and(|r| r.layer.is_some()) || targeted_vector_mask(app).is_some() { + return Some((drawn, false)); + } + if let Some(r) = pen.resumes.as_ref().filter(|r| r.doc == doc.id.0) + && let Some(p) = with_resumed_subpath(doc, r, &drawn) + { + return Some((p, r.path == "work")); + } + // With nothing to join, the commit's new Work Path would replace the old one. + let Some(name) = draft_target(app, pen) else { return Some((drawn, true)) }; + let existing = doc_path(doc, &name)?; + let mut p = photocraft_engine::vector_cmds::path_json(existing); + let op = pen_path_op(&app.ui.tool_options).unwrap_or("combine"); + if let (Some(subs), Some(new)) = (p.get_mut("subpaths").and_then(Value::as_array_mut), drawn.get("subpaths").and_then(Value::as_array)) { + subs.extend(new.iter().cloned().map(|mut sp| { + sp["op"] = json!(op); + sp + })); + } + Some((p, name == "work")) +} + /// Does `doc` have the path the Paths panel calls `name`: "work", or a saved path's name? fn path_exists(doc: &Document, name: &str) -> bool { doc_path(doc, name).is_some() @@ -780,7 +815,21 @@ fn fit_with_straight_segments(trace: &[[f64; 2]], straight: &[usize], fit: f64, use super::{PenOwner, cancel_stale_pen, capture_pen_owner}; fn commit_path(app: &mut PhotocraftApp, pen: &PenPath, closed: bool) -> Result<(), String> { - let Some(owner) = pen.owner.as_ref().filter(|o| o.valid(app)) else { return Err("Pen draft target is stale; no path was changed".into()) }; + let Some(owner) = pen.owner.clone().filter(|o| o.valid(app)) else { return Err("Pen draft target is stale; no path was changed".into()) }; + let result = as_owner(app, &owner, |app| { + let result = commit_path_current(app, pen, closed); + if result && matches!(owner.target, super::PenTarget::Shape { .. } | super::PenTarget::VectorMask(_)) { + app.ui.selected_path = Some("layer".into()); + } + result + }); + if result { Ok(()) } else { Err(app.ui.status.clone()) } +} + +/// Run `f` with the options, colours, active layer, Paths panel selection and vector mask target +/// the draft's `owner` captured when drawing began, then put the current ones back (the Paths +/// panel selection stays as `f` left it). +fn as_owner(app: &mut PhotocraftApp, owner: &PenOwner, f: impl FnOnce(&mut PhotocraftApp) -> R) -> R { let options = std::mem::replace(&mut app.ui.tool_options, owner.options.clone()); let vector_mask = std::mem::replace(&mut app.ui.vector_mask_target, owner.vector_mask); app.ui.selected_path = match &owner.target { @@ -800,10 +849,7 @@ fn commit_path(app: &mut PhotocraftApp, pen: &PenPath, closed: bool) -> Result<( photocraft_engine::channel_cmds::ChannelTarget::Composite }; } - let result = commit_path_current(app, pen, closed); - if result && matches!(owner.target, super::PenTarget::Shape { .. } | super::PenTarget::VectorMask(_)) { - app.ui.selected_path = Some("layer".into()); - } + let result = f(app); if let (Some(st), Some(channel)) = (app.session.active_mut(), channel) { st.channel_view.target = channel; } @@ -811,5 +857,36 @@ fn commit_path(app: &mut PhotocraftApp, pen: &PenPath, closed: bool) -> Result<( app.session.tools.background = background; app.ui.tool_options = options; app.ui.vector_mask_target = vector_mask; - if result { Ok(()) } else { Err(app.ui.status.clone()) } + result +} + +/// Make Shape on a Pen draft (#10934), as one History step: a draft begun in Shape mode is +/// committed (it is a shape already, and a resumed subpath keeps its layer's other subpaths); +/// otherwise a new shape layer, with the shape tools' fill and stroke, of what the commit would +/// have made, worked out as the commit does, with the settings drawing began with. +pub(super) fn make_shape_from_draft(app: &mut PhotocraftApp, pen: &PenPath) -> Result { + let owner = pen.owner.clone(); + if owner.as_ref().is_some_and(|o| !o.valid(app)) { + return Err("Pen draft target is stale; no path was changed".into()); + } + if owner.as_ref().is_some_and(|o| matches!(o.target, super::PenTarget::Shape { .. })) { + return try_pen_commit(app, false).map(|()| Value::Null); + } + let selected = app.ui.selected_path.clone(); + let params = |app: &mut PhotocraftApp| { + let (path, consume) = draft_shape_path(app, pen).ok_or_else(|| tl!("No document").to_string())?; + let params = json!({"path": path, "consumeWorkPath": consume, "fill": fill_param(app), "stroke": stroke_param(app)}); + Ok::<_, String>((params, consume)) + }; + let made = match &owner { + Some(o) => as_owner(app, o, params), + None => params(app), + }; + app.ui.selected_path = selected; + let (params, consume) = made?; + let r = app.run("path.toShape", params); + if r.is_ok() && consume && app.ui.selected_path.as_deref() == Some("work") { + app.ui.selected_path = None; + } + r } diff --git a/crates/ui-egui/src/tools/vector_ui/pen_path_ops_tests.rs b/crates/ui-egui/src/tools/vector_ui/pen_path_ops_tests.rs index 25ae41650b..f20b688cfc 100644 --- a/crates/ui-egui/src/tools/vector_ui/pen_path_ops_tests.rs +++ b/crates/ui-egui/src/tools/vector_ui/pen_path_ops_tests.rs @@ -348,3 +348,197 @@ fn freeform_refuses_a_locked_shape_before_starting_a_stroke() { assert!(app.drag.is_some(), "{lock}: unlocked stroke can start"); } } + +/// #10934: the options bar's Make Shape (Path mode) turns the Work Path into a shape layer filled +/// with the foreground colour, as one History step; the Work Path is the shape's path afterwards. +/// A path still being drawn is finished first. With no path the button is disabled. +#[test] +fn make_shape_turns_the_work_path_into_a_shape_layer() { + let mut h = egui_kittest::Harness::builder().with_size(vec2(1400.0, 400.0)).build_ui_state( + |ui, app: &mut PhotocraftApp| { + if ui.ctx().fonts(|f| f.families().contains(&egui::FontFamily::Name("medium".into()))) { + ui.horizontal(|ui| super::options_bar(app, ui, Tool::Pen)); + } + }, + app(), + ); + PhotocraftApp::setup_context(&h.ctx, crate::theme::ThemeKind::Studio); + h.run_steps(4); + assert!(h.get_by_label("Make Shape").accesskit_node().is_disabled(), "no path yet"); + square(h.state_mut(), 20.0, 20.0, 100.0); + let drawn = work(h.state()); + let (count, steps) = (layers(h.state()), h.state().session.active().unwrap().history.past_len()); + h.run_steps(2); + h.get_by_label("Make Shape").click(); + h.run_steps(3); + let app = h.state(); + assert_eq!(layers(app), count + 1); + assert_eq!(app.session.active().unwrap().history.past_len(), steps + 1, "one History step"); + let (id, path) = shape_path(app); + assert_eq!(path, drawn); + let st = app.session.active().unwrap(); + assert!(st.doc.work_path.is_none()); + let LayerContent::Shape(sh) = &st.doc.layer(id).unwrap().content else { panic!("not a shape layer") }; + let fg = app.session.tools.foreground; + assert_eq!(sh.fill, Some(photocraft_doc::Fill::Solid(photocraft_color::Color::rgba(fg[0], fg[1], fg[2], fg[3])))); + // An open path still being drawn becomes the shape too, still in one History step. + for (x, y) in [(10.0, 150.0), (60.0, 150.0), (60.0, 190.0)] { + pen_down(h.state_mut(), x, y, false); + pen_up(h.state_mut()); + } + let steps = h.state().session.active().unwrap().history.past_len(); + h.run_steps(2); + h.get_by_label("Make Shape").click(); + h.run_steps(3); + let app = h.state(); + assert!(app.ui.pen.is_none()); + assert_eq!(layers(app), count + 2); + assert_eq!(shape_path(app).1.subpaths[0].knots.len(), 3); + assert_eq!(app.session.active().unwrap().history.past_len(), steps + 1, "one History step while drawing"); + assert!(app.session.active().unwrap().doc.work_path.is_none()); +} + +/// Make Shape while drawing with a vector mask targeted makes a shape of the drawn path alone and +/// leaves the mask as it was: the draft isn't committed into the mask first. +#[test] +fn make_shape_while_drawing_leaves_a_targeted_vector_mask_alone() { + let mut app = app(); + let id = app.session.active().unwrap().active_layer.unwrap().0; + app.run("layer.vectorMask.add", json!({"layer": id, "path": {"subpaths": [{"closed": true, "knots": [[0, 0], [100, 0], [100, 100], [0, 100]]}]}})).unwrap(); + app.ui.vector_mask_target = true; + let mask = app.session.active().unwrap().doc.layer(LayerId(id)).unwrap().vector_mask.clone(); + for (x, y) in [(10.0, 150.0), (60.0, 150.0), (60.0, 190.0)] { + pen_down(&mut app, x, y, false); + pen_up(&mut app); + } + let steps = app.session.active().unwrap().history.past_len(); + super::make_shape(&mut app).unwrap(); + let st = app.session.active().unwrap(); + assert_eq!(st.doc.layer(LayerId(id)).unwrap().vector_mask, mask, "the mask changed"); + assert_eq!(st.history.past_len(), steps + 1); + let (_, path) = shape_path(&app); + assert_eq!(path.subpaths.len(), 1); + assert_eq!(path.subpaths[0].knots[0].anchor, photocraft_geom::Point::new(10.0, 150.0)); +} + +/// Make Shape while drawing into a selected saved path: the shape is the saved path plus the +/// drawing, as the commit would have made it, and the saved path stays as it was. +#[test] +fn make_shape_while_drawing_into_a_saved_path_keeps_it() { + let mut app = app(); + square(&mut app, 20.0, 20.0, 50.0); + app.run("path.rename", json!({"name": "work", "to": "Box"})).unwrap(); + app.ui.selected_path = Some("Box".into()); + let saved = app.session.active().unwrap().doc.paths[0].path.clone(); + for (x, y) in [(10.0, 150.0), (60.0, 150.0), (60.0, 190.0)] { + pen_down(&mut app, x, y, false); + pen_up(&mut app); + } + super::make_shape(&mut app).unwrap(); + let st = app.session.active().unwrap(); + assert_eq!(st.doc.paths[0].path, saved); + assert_eq!(shape_path(&app).1.subpaths.len(), saved.subpaths.len() + 1); +} + +/// Make Shape on a saved path selected in the Paths panel keeps that path. +#[test] +fn make_shape_keeps_a_saved_path() { + let mut app = app(); + square(&mut app, 20.0, 20.0, 50.0); + app.run("path.rename", json!({"name": "work", "to": "Box"})).unwrap(); + app.ui.selected_path = Some("Box".into()); + super::make_shape(&mut app).unwrap(); + let st = app.session.active().unwrap(); + assert_eq!(st.doc.paths.first().map(|p| p.name.as_str()), Some("Box")); + assert_eq!(shape_path(&app).1, st.doc.paths[0].path); +} + +/// Clicks an open path with the Pen through `points`, without finishing it. +fn draw(app: &mut PhotocraftApp, points: &[(f64, f64)]) { + for &(x, y) in points { + pen_down(app, x, y, false); + pen_up(app); + } +} + +/// Make Shape while drawing into a saved path uses the path drawing began with, as the commit +/// does, not one selected in the Paths panel since. +#[test] +fn make_shape_while_drawing_uses_the_path_drawing_began_with() { + let mut app = app(); + square(&mut app, 20.0, 20.0, 50.0); + app.run("path.rename", json!({"name": "work", "to": "Box"})).unwrap(); + app.run("path.set", json!({"name": "Other", "path": {"subpaths": [{"closed": true, "knots": [[100, 100], [150, 100], [150, 150]]}]}})).unwrap(); + app.ui.selected_path = Some("Box".into()); + let doc_paths = app.session.active().unwrap().doc.paths.clone(); + draw(&mut app, &[(10.0, 150.0), (60.0, 150.0), (60.0, 190.0)]); + app.ui.selected_path = Some("Other".into()); + super::make_shape(&mut app).unwrap(); + let box_path = &doc_paths.iter().find(|p| p.name == "Box").unwrap().path; + let shape = shape_path(&app).1; + assert_eq!(shape.subpaths.len(), box_path.subpaths.len() + 1, "Box and the drawing"); + assert_eq!(shape.subpaths[0], box_path.subpaths[0]); + assert_eq!(app.session.active().unwrap().doc.paths, doc_paths, "the saved paths stay as they were"); + assert_eq!(app.ui.selected_path.as_deref(), Some("Other"), "the Paths panel selection stays"); +} + +/// With no Work Path and no saved path selected, Make Shape has nothing to make a shape from: the +/// selected shape layer's own path isn't copied into a second shape layer. +#[test] +fn make_shape_doesnt_copy_a_shape_layers_own_path() { + let mut app = app(); + app.ui.tool_options.vector_mode = "shape".into(); + square(&mut app, 20.0, 20.0, 50.0); + app.ui.tool_options.vector_mode = "path".into(); + assert_eq!(super::active_path_name(&app).as_deref(), Some("layer")); + let count = layers(&app); + let steps = app.session.active().unwrap().history.past_len(); + assert!(super::make_shape(&mut app).is_err()); + assert_eq!(layers(&app), count); + assert_eq!(app.session.active().unwrap().history.past_len(), steps); +} + +/// Make Shape while drawing a new path with an unselected Work Path: the commit would have +/// replaced the Work Path with the drawing, so the shape takes the drawing and no Work Path is +/// left behind. +#[test] +fn make_shape_while_drawing_a_new_work_path_replaces_the_old_one() { + let mut app = app(); + square(&mut app, 20.0, 20.0, 50.0); + app.ui.selected_path = None; + draw(&mut app, &[(10.0, 150.0), (60.0, 150.0), (60.0, 190.0)]); + super::make_shape(&mut app).unwrap(); + let st = app.session.active().unwrap(); + assert!(st.doc.work_path.is_none(), "the old Work Path is gone, as after a commit and Make Shape"); + let shape = shape_path(&app).1; + assert_eq!(shape.subpaths.len(), 1); + assert_eq!(shape.subpaths[0].knots[0].anchor, photocraft_geom::Point::new(10.0, 150.0)); +} + +/// A draft begun in Shape mode that carries on an open subpath of a shape layer, with the mode +/// switched to Path before Make Shape: the layer keeps its other subpaths, extended in one step, +/// as the commit does, and no second layer copies part of it. +#[test] +fn make_shape_on_a_resumed_shape_layer_draft_keeps_its_other_subpaths() { + let mut app = app(); + app.ui.tool_options.vector_mode = "shape".into(); + draw(&mut app, &[(20.0, 20.0), (80.0, 20.0)]); + assert!(super::pen_commit(&mut app, false)); + app.ui.tool_options.pen_path_op = "combine".into(); + square(&mut app, 100.0, 100.0, 40.0); + let (id, before) = shape_path(&app); + assert_eq!(before.subpaths.len(), 2); + let count = layers(&app); + let steps = app.session.active().unwrap().history.past_len(); + draw(&mut app, &[(80.0, 20.0), (80.0, 80.0)]); + assert!(app.ui.pen.as_ref().is_some_and(|p| p.resumes.is_some()), "drawing carries on the open subpath"); + app.ui.tool_options.vector_mode = "path".into(); + super::make_shape(&mut app).unwrap(); + assert_eq!(layers(&app), count, "no second layer"); + let (now, after) = shape_path(&app); + assert_eq!(now, id); + assert_eq!(after.subpaths.len(), 2, "the square stays"); + assert_eq!(after.subpaths[0].knots.len(), 3, "the open subpath, extended"); + assert_eq!(after.subpaths[1], before.subpaths[1]); + assert_eq!(app.session.active().unwrap().history.past_len(), steps + 1); +} diff --git a/crates/ui-egui/src/tools/vector_ui/shapes.rs b/crates/ui-egui/src/tools/vector_ui/shapes.rs index fe96e7b177..7b67544721 100644 --- a/crates/ui-egui/src/tools/vector_ui/shapes.rs +++ b/crates/ui-egui/src/tools/vector_ui/shapes.rs @@ -1,4 +1,4 @@ -use super::options::solid_paint; +use super::options::{draws_path, solid_paint}; use super::overlay::path_lines; use super::{Affine, Color32, PhotocraftApp, Tokens, Tool, ToolOptions, Value, ViewXform, json, paint_param}; @@ -100,6 +100,29 @@ pub fn shape_bounds(o: &ToolOptions, tool: Tool, start: [f64; 2], end: [f64; 2], /// Finish a Shape-tool drag: ⇧ constrains proportions, ⌥ draws from the centre. pub fn finish_shape(app: &mut PhotocraftApp, tool: Tool, start: [f64; 2], end: [f64; 2], mods: egui::Modifiers) { + if draws_path(&app.ui.tool_options) { + // Path mode: the outline joins the work path (one more subpath), and no layer is made. + let Some(outline) = shape_outline(app, tool, start, end, mods) else { return }; + // Appended here rather than with `path.set`'s `op`, which would turn a custom shape's + // subtracted subpaths (holes) into combined ones; the shape goes in as one component. + // A new work path takes the outline's fill rule. + let mut path = app + .session + .active() + .and_then(|st| st.doc.work_path.clone()) + .unwrap_or_else(|| photocraft_doc::vector::Path { fill_rule: outline.fill_rule, ..Default::default() }); + let outline = as_one_component(&outline, path.fill_rule).unwrap_or(outline); + path.subpaths.extend(outline.subpaths); + let r = app.run("path.set", json!({"name": "work", "path": photocraft_engine::vector_cmds::path_json(&path)})); + match r { + Ok(_) => app.ui.selected_path = Some("work".into()), + Err(e) => { + app.ui.status = e; + app.ui.status_error = true; + } + } + return; + } let Some(mut p) = shape_geometry(&app.ui.tool_options, tool, start, end, mods) else { return }; if tool == Tool::CustomShape { // ⇧ keeps the shape's proportions (the rect is already squared). @@ -127,22 +150,71 @@ pub fn create_shape(app: &mut PhotocraftApp, mut geometry: Value) -> Result Option { - let o = &app.ui.tool_options; - let geometry = shape_geometry(o, tool, start, end, mods)?; - let path = if tool == Tool::CustomShape { +/// A custom shape as one shape component, the way Photoshop adds it to a path: the subpaths +/// after the first join it, holes wound against it so that `rule` cuts them, so its holes cut +/// the shape only and not the work path under it. `None` for a single subpath, and when joined +/// it would cover a different area (an intersect or exclude subpath, or a cut reaching past +/// the shape, like the Crescent Moon's). +fn as_one_component(outline: &photocraft_doc::vector::Path, rule: photocraft_doc::vector::FillRule) -> Option { + use photocraft_doc::vector::{Path, PathOp, Subpath}; + // Clockwise on screen (y down) or not, from the flattened outline's signed area. + let clockwise = |s: &Subpath| { + let pts = photocraft_vector::flatten_subpath(s, 0.25).pts; + let twice_area: f64 = pts.iter().zip(pts.iter().cycle().skip(1)).map(|(p, q)| p.0 * q.1 - q.0 * p.1).sum(); + twice_area > 0.0 + }; + let (first, rest) = outline.subpaths.split_first()?; + if rest.is_empty() { + return None; + } + let outer = clockwise(first); + let mut joined = Path { fill_rule: rule, ..outline.clone() }; + for s in &mut joined.subpaths[1..] { + let want = match s.op { + PathOp::Join => continue, + PathOp::Combine => outer, + PathOp::Subtract => !outer, + PathOp::Intersect | PathOp::Exclude => return None, + }; + if clockwise(s) != want { + s.knots.reverse(); + for k in &mut s.knots { + std::mem::swap(&mut k.in_ctrl, &mut k.out_ctrl); + } + } + s.op = PathOp::Join; + } + // Compare the two areas at a small fixed size. + const SIDE: f64 = 128.0; + let rect = photocraft_geom::Rect::from_xywh(0, 0, SIDE as u32, SIDE as u32); + let cover = |p: &Path| photocraft_vector::path_coverage(&photocraft_engine::presets::shapes::fit(p, [0.0, 0.0, SIDE, SIDE], true), rect); + let same = cover(outline).iter().zip(cover(&joined)).all(|(a, b)| (a - b).abs() <= 0.5); + same.then_some(joined) +} + +/// The outline a Shape-tool drag draws, as a path (a custom shape fitted to the drag's box). +fn shape_outline(app: &PhotocraftApp, tool: Tool, start: [f64; 2], end: [f64; 2], mods: egui::Modifiers) -> Option { + let geometry = shape_geometry(&app.ui.tool_options, tool, start, end, mods)?; + if tool == Tool::CustomShape { let rect = geometry.get("rect").and_then(|r| serde_json::from_value::<[f64; 4]>(r.clone()).ok())?; let groups = photocraft_engine::presets::shapes::all_groups(&app.session); let shape = groups.iter().flat_map(|g| &g.items).find(|s| s.name == app.ui.presets_ui.shape())?; - photocraft_engine::presets::shapes::fit(&shape.path, rect, mods.shift) + Some(photocraft_engine::presets::shapes::fit(&shape.path, rect, mods.shift)) } else { - photocraft_engine::vector_cmds::shape_path(&geometry).ok()? - }; + photocraft_engine::vector_cmds::shape_path(&geometry).ok() + } +} + +/// The preview and command both use the full float tool colours, including transparent paint. +/// In Path mode only the outline shows, as the drag draws no layer. +pub(super) fn shape_preview(app: &PhotocraftApp, tool: Tool, start: [f64; 2], end: [f64; 2], mods: egui::Modifiers) -> Option { + let o = &app.ui.tool_options; + let path = shape_outline(app, tool, start, end, mods)?; + let paint = !draws_path(o); Some(photocraft_doc::ShapeLayer { path, - fill: o.shape_fill.then(|| tool_paint(app, false)), - stroke: (o.stroke_width > 0.0).then(|| o.shape_stroke.stroke(o.stroke_width, tool_paint(app, true))), + fill: (paint && o.shape_fill).then(|| tool_paint(app, false)), + stroke: (paint && o.stroke_width > 0.0).then(|| o.shape_stroke.stroke(o.stroke_width, tool_paint(app, true))), ..Default::default() }) } diff --git a/crates/ui-egui/src/tools/vector_ui/tests.rs b/crates/ui-egui/src/tools/vector_ui/tests.rs index 6f7438b340..45ec1e9d87 100644 --- a/crates/ui-egui/src/tools/vector_ui/tests.rs +++ b/crates/ui-egui/src/tools/vector_ui/tests.rs @@ -500,6 +500,117 @@ fn shape_drag_creates_layers_with_modifiers() { assert_eq!(app.session.active().unwrap().doc.layers.len(), 4); } +/// #9453: in Path mode a Shape-tool drag adds its outline to the work path, one subpath per +/// drag, and makes no layer, as Photoshop's Path tool mode does. Shape stays the default. +#[test] +fn path_mode_shape_drags_add_to_the_work_path() { + let mut app = app(); + assert_eq!(app.ui.tool_options.shape_mode, "shape", "Shape by default, as in Photoshop"); + let layers = app.session.active().unwrap().doc.layers.len(); + app.ui.tool_options.shape_mode = "path".into(); + finish_shape(&mut app, Tool::EllipseShape, [20.0, 20.0], [70.0, 50.0], egui::Modifiers::NONE); + let doc = &app.session.active().unwrap().doc; + assert_eq!(doc.layers.len(), layers, "no layer"); + let work = doc.work_path.as_ref().expect("a work path"); + assert_eq!(work.subpaths.len(), 1); + assert!(work.subpaths[0].closed); + let b = work.control_bounds().unwrap(); + assert!((b.0 - 20.0).abs() < 0.5 && (b.1 - 20.0).abs() < 0.5 && (b.2 - 70.0).abs() < 0.5 && (b.3 - 50.0).abs() < 0.5, "{b:?}"); + assert_eq!(app.ui.selected_path.as_deref(), Some("work")); + finish_shape(&mut app, Tool::Rectangle, [100.0, 100.0], [140.0, 130.0], egui::Modifiers::NONE); + let doc = &app.session.active().unwrap().doc; + assert_eq!(doc.work_path.as_ref().unwrap().subpaths.len(), 2, "a second drag adds a subpath"); + assert_eq!(doc.layers.len(), layers); + // Back in Shape mode a drag makes a shape layer again. + app.ui.tool_options.shape_mode = "shape".into(); + finish_shape(&mut app, Tool::Rectangle, [10.0, 150.0], [60.0, 180.0], egui::Modifiers::NONE); + assert_eq!(app.session.active().unwrap().doc.layers.len(), layers + 1); +} + +/// CodeRabbit on #9456: Path mode adds a Custom Shape to the work path as one shape component, +/// its hole joined to it, as Photoshop does (the Ring's hole no longer turns into a combined +/// subpath, nor stays a subtracted one that would cut the work path under it). +#[test] +fn path_mode_custom_shape_joins_its_hole_to_it() { + use photocraft_doc::PathOp; + let mut app = app(); + app.ui.tool_options.shape_mode = "path".into(); + finish_shape(&mut app, Tool::Rectangle, [100.0, 100.0], [140.0, 130.0], egui::Modifiers::NONE); + app.ui.presets_ui.custom_shape = "Ring".into(); + finish_shape(&mut app, Tool::CustomShape, [20.0, 20.0], [70.0, 70.0], egui::Modifiers::NONE); + let ops: Vec = app.session.active().unwrap().doc.work_path.as_ref().unwrap().subpaths.iter().map(|s| s.op).collect(); + assert_eq!(ops, [PathOp::Combine, PathOp::Combine, PathOp::Join], "the rectangle, the ring and its hole"); + assert_eq!(work_covered(&app, 45, 45), 0.0, "the ring's hole"); + assert_eq!(work_covered(&app, 22, 45), 1.0, "the ring"); +} + +/// CodeRabbit on #9456, checked in Photoshop 2025: a Ring drawn in Path mode over a rectangle +/// cuts its hole in the ring only; the rectangle stays whole where the hole overlaps it. +#[test] +fn path_mode_custom_shape_hole_leaves_the_work_path_under_it() { + let mut app = app(); + app.ui.tool_options.shape_mode = "path".into(); + finish_shape(&mut app, Tool::Rectangle, [20.0, 20.0], [120.0, 120.0], egui::Modifiers::NONE); + app.ui.presets_ui.custom_shape = "Ring".into(); + finish_shape(&mut app, Tool::CustomShape, [80.0, 80.0], [180.0, 180.0], egui::Modifiers::NONE); + assert_eq!(work_covered(&app, 50, 50), 1.0, "the rectangle"); + assert_eq!(work_covered(&app, 110, 110), 1.0, "the rectangle under the ring's hole"); + assert_eq!(work_covered(&app, 130, 130), 0.0, "the ring's hole"); + assert_eq!(work_covered(&app, 170, 130), 1.0, "the ring"); +} + +/// Every built-in custom shape drawn alone in Path mode covers what the shape does, joined into +/// one component or, where that would change its area (the Crescent Moon's cut reaches past +/// the disc), kept as it is. +#[test] +fn path_mode_custom_shapes_keep_their_area() { + let mut app = app(); + app.ui.tool_options.shape_mode = "path".into(); + let rect = photocraft_geom::Rect::from_xywh(0, 0, 200, 200); + for g in photocraft_engine::presets::shapes::builtin() { + for shape in g.items { + app.run("path.delete", json!({"name": "work"})).ok(); + app.ui.presets_ui.custom_shape = shape.name.clone(); + finish_shape(&mut app, Tool::CustomShape, [10.0, 10.0], [190.0, 190.0], egui::Modifiers::NONE); + let work = app.session.active().unwrap().doc.work_path.clone().expect("a work path"); + let want = photocraft_engine::presets::shapes::fit(&shape.path, [10.0, 10.0, 180.0, 180.0], false); + let (a, b) = (photocraft_vector::path_coverage(&work, rect), photocraft_vector::path_coverage(&want, rect)); + let off = a.iter().zip(&b).filter(|(a, b)| (*a - *b).abs() > 0.5).count(); + assert_eq!(off, 0, "{}: {off} pixels differ", shape.name); + } + } +} + +/// Coverage of the work path at pixel `(x, y)`. +fn work_covered(app: &PhotocraftApp, x: i32, y: i32) -> f32 { + let path = app.session.active().unwrap().doc.work_path.clone().expect("a work path"); + photocraft_vector::fill_rasterizer(&path, photocraft_vector::DEFAULT_TOLERANCE).render(photocraft_geom::Rect::from_xywh(x, y, 1, 1))[0] +} + +/// CodeRabbit on #9456: a custom shape that starts the work path brings its fill rule, so an +/// even-odd star keeps its empty centre. +#[test] +fn path_mode_custom_shape_starts_the_work_path_with_its_fill_rule() { + let mut app = app(); + app.ui.tool_options.shape_mode = "path".into(); + // A pentagram drawn in one stroke: even-odd leaves the pentagon in the middle empty. + let star: Vec<[f64; 2]> = (0..5) + .map(|k| { + let a = std::f64::consts::TAU * (k * 2) as f64 / 5.0 - std::f64::consts::FRAC_PI_2; + [50.0 + 50.0 * a.cos(), 50.0 + 50.0 * a.sin()] + }) + .collect(); + let r = app.run("shape.presets.new", json!({"name": "Even-Odd Star", "path": {"fillRule": "evenodd", "subpaths": [{"knots": star}]}})); + assert!(r.is_ok(), "{r:?}"); + app.ui.presets_ui.custom_shape = "Even-Odd Star".into(); + finish_shape(&mut app, Tool::CustomShape, [20.0, 20.0], [120.0, 120.0], egui::Modifiers::NONE); + let work = app.session.active().unwrap().doc.work_path.clone().expect("a work path"); + assert_eq!(work.fill_rule, photocraft_doc::vector::FillRule::EvenOdd); + let b = work.control_bounds().unwrap(); + let (cx, cy) = (((b.0 + b.2) / 2.0) as i32, ((b.1 + b.3) / 2.0) as i32); + assert_eq!(work_covered(&app, cx, cy), 0.0, "the star's centre stays empty"); +} + #[test] fn shift_pressed_during_a_shape_drag_constrains_it() { // #668: ⇧ only counted when held at the press; Photoshop constrains when it is pressed diff --git a/crates/ui-egui/src/transform_commit_click_tests.rs b/crates/ui-egui/src/transform_commit_click_tests.rs index 085100314d..bd5a36f498 100644 --- a/crates/ui-egui/src/transform_commit_click_tests.rs +++ b/crates/ui-egui/src/transform_commit_click_tests.rs @@ -72,6 +72,105 @@ fn a_click_on_the_pasteboard_commits_one_free_transform_step() { } } +/// #11100, measured in the reference application: a click outside the box on another layer's +/// pixels commits one Free Transform step, and the transformed layer stays the only selected one +/// (the click doesn't pick the layer under it). +#[test] +fn a_click_on_another_layers_pixels_commits_and_keeps_the_selection() { + let mut app = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default()); + app.run("file.new", json!({"width": 200, "height": 200, "background": "white"})).unwrap(); + app.sync_views(); + app.ui.extras.rulers = false; + app.ui.extras.snap = false; + // "Other" has a blue block at x 120..160, y 120..160; "Paint" a red one at x 20..60, y 20..60. + for (name, at, color) in [("Other", 120, "#0000ff"), ("Paint", 20, "#ff0000")] { + let id = app.run("layer.new.layer", json!({"name": name})).unwrap()["layer"].as_u64().unwrap(); + app.run("layer.select", json!({"layer": id})).unwrap(); + app.run("select.rect", json!({"x": at, "y": at, "width": 40, "height": 40})).unwrap(); + app.run("edit.fill", json!({"contents": "color", "color": color})).unwrap(); + app.run("select.deselect", json!({})).unwrap(); + } + let paint = app.session.active().unwrap().active_layer.unwrap(); + crate::menus::invoke(&mut app, &egui::Context::default(), "edit.freeTransform", json!({})).unwrap(); + let t = app.ui.transform.as_mut().unwrap(); + t.quad = t.quad.map(|[x, y]| [x + 10.0, y]); + let before = steps(&app); + click(&mut app, [140.0, 140.0]); + assert!(app.ui.transform.is_none(), "committed"); + assert_eq!(steps(&app), before + 1); + assert_eq!(app.session.active().unwrap().history.entries().last().map(ToString::to_string).as_deref(), Some("Free Transform")); + assert_eq!(app.session.active().unwrap().selected_layers(), vec![paint], "the selection doesn't change"); +} + +/// A layer linked to the transformed one after the box opened moves with the commit +/// (`edit.transform` takes the link group along), so a click on its pixels is not a click on +/// another layer: the box stays open. +#[test] +fn a_click_on_a_layer_linked_after_the_box_opened_keeps_it_open() { + let mut app = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default()); + app.run("file.new", json!({"width": 200, "height": 200, "background": "white"})).unwrap(); + app.sync_views(); + app.ui.extras.rulers = false; + app.ui.extras.snap = false; + let mut ids = Vec::new(); + for (name, at, color) in [("Other", 120, "#0000ff"), ("Paint", 20, "#ff0000")] { + let id = app.run("layer.new.layer", json!({"name": name})).unwrap()["layer"].as_u64().unwrap(); + app.run("layer.select", json!({"layer": id})).unwrap(); + app.run("select.rect", json!({"x": at, "y": at, "width": 40, "height": 40})).unwrap(); + app.run("edit.fill", json!({"contents": "color", "color": color})).unwrap(); + app.run("select.deselect", json!({})).unwrap(); + ids.push(LayerId(id)); + } + crate::menus::invoke(&mut app, &egui::Context::default(), "edit.freeTransform", json!({})).unwrap(); + let t = app.ui.transform.as_mut().unwrap(); + t.quad = t.quad.map(|[x, y]| [x + 10.0, y]); + app.session + .edit("Link Layers", |doc, _| { + for id in &ids { + doc.layer_mut(*id).unwrap().link_group = Some(7); + } + Ok(()) + }) + .unwrap(); + click(&mut app, [140.0, 140.0]); + assert!(app.ui.transform.is_some(), "the linked layer moves with the box: the click doesn't commit"); +} + +/// Only the frontmost layer under the click counts: where a grouped layer (not measured, so the +/// box stays open there) covers a top-level layer's pixels, the click doesn't commit through the +/// covered layer. +#[test] +fn a_click_on_a_grouped_layer_covering_another_layer_keeps_the_box_open() { + let mut app = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default()); + app.run("file.new", json!({"width": 200, "height": 200, "background": "white"})).unwrap(); + app.sync_views(); + app.ui.extras.rulers = false; + app.ui.extras.snap = false; + // "Paint" has a red block at x 20..60, y 20..60; "Other" a blue one at x 120..160, y 120..160, + // covered by a green one on "Cover", which then goes into a group. + let mut ids = Vec::new(); + for (name, at, color) in [("Paint", 20, "#ff0000"), ("Other", 120, "#0000ff"), ("Cover", 120, "#00ff00")] { + let id = app.run("layer.new.layer", json!({"name": name})).unwrap()["layer"].as_u64().unwrap(); + app.run("layer.select", json!({"layer": id})).unwrap(); + app.run("select.rect", json!({"x": at, "y": at, "width": 40, "height": 40})).unwrap(); + app.run("edit.fill", json!({"contents": "color", "color": color})).unwrap(); + app.run("select.deselect", json!({})).unwrap(); + ids.push(id); + } + app.run("layer.groupLayers", json!({})).unwrap(); + let doc = &app.session.active().unwrap().doc; + assert!(doc.layers.iter().all(|l| l.id.0 != ids[2]), "Cover is grouped"); + assert!(doc.layers.iter().any(|l| l.id.0 == ids[1]), "Other is top-level"); + app.run("layer.select", json!({"layer": ids[0]})).unwrap(); + crate::menus::invoke(&mut app, &egui::Context::default(), "edit.freeTransform", json!({})).unwrap(); + let t = app.ui.transform.as_mut().unwrap(); + t.quad = t.quad.map(|[x, y]| [x + 10.0, y]); + let before = steps(&app); + click(&mut app, [140.0, 140.0]); + assert!(app.ui.transform.is_some(), "the box stays open"); + assert_eq!(steps(&app), before); +} + /// The press decides where a click lands: one on the image that jitters past the canvas edge /// before the release keeps the box open, one on the pasteboard that jitters onto the image commits. #[test] diff --git a/crates/ui-egui/src/widgets.rs b/crates/ui-egui/src/widgets.rs index cf5e648190..3b4320dd0d 100644 --- a/crates/ui-egui/src/widgets.rs +++ b/crates/ui-egui/src/widgets.rs @@ -26,6 +26,7 @@ mod scrub; mod slider; pub mod swap_arrow; pub(super) mod tab_strip; +pub mod task_bar; mod text_field; pub mod text_field_menu; pub mod tone; diff --git a/crates/ui-egui/src/widgets/task_bar.rs b/crates/ui-egui/src/widgets/task_bar.rs new file mode 100644 index 0000000000..1d8e48c4ed --- /dev/null +++ b/crates/ui-egui/src/widgets/task_bar.rs @@ -0,0 +1,236 @@ +//! The contextual task bar (#10890): a small floating bar on the canvas that offers the next steps +//! for what is being edited, as in the reference application. A context (today the Crop tool, +//! `crop_task_bar`) supplies only the controls in the middle; this module owns the rest, so other +//! contexts (Remove Background #2815, selections #2708, #7633, #8106) can reuse it: +//! +//! - the **position rule**: centred under the context's anchor (the crop frame's screen bounds) +//! with its top [`GAP`] points below the anchor's bottom edge, following the anchor while it +//! changes; dragged by its grip (or pinned), it stays where it is, its left edge fixed while it +//! grows; always clamped inside the canvas area; +//! - the **grip**: two columns of three dots on the left, drawn in code; +//! - the **⋯ menu**: Hide bar, Reset bar position, Pin bar position (the reference's Watch quick +//! video entry is left out); +//! - the **state**: [`TaskBarPlace`] in `Panels` (kept across restarts with the panel layout, +//! read and set over the control channel), and Hide bar clears Window › Contextual Task Bar. +//! +//! As in the reference application its buttons have no tooltips, only a hover highlight; they +//! still carry accessible names. + +use egui::{Color32, CursorIcon, Id, Pos2, Rect, Sense, Stroke, Ui, Vec2, pos2, vec2}; + +use crate::state::TaskBarPlace; +use crate::theme::Tokens; + +/// The bar's top below its anchor's bottom edge, in points (measured: 11 screen px at 100%). +pub const GAP: f32 = 11.0; + +/// Height of the bar's buttons, in points. +pub const BUTTON: f32 = 26.0; + +/// The bar's one area: only one context shows a bar at a time. +fn area_id() -> Id { + Id::unique("pc-context-task-bar") +} + +/// The bar's ⋯ button, handed to the contents so they place it: the Crop tool shows Cancel and +/// Done after it. Contents that never call [`Self::show`] get it at the end. +pub struct MoreMenu { + place: TaskBarPlace, + shown: bool, + hide: bool, + picked: Option, +} + +impl MoreMenu { + /// Draws the ⋯ button (and its menu while open) here. + pub fn show(&mut self, ui: &mut Ui) { + if std::mem::replace(&mut self.shown, true) { + return; + } + let (hide, picked) = more_menu(ui, &self.place); + self.hide |= hide; + self.picked = picked.or(self.picked); + } +} + +/// What the bar did this frame. +pub struct Shown { + /// The bar's screen rect. + pub rect: Rect, + /// Hide bar was picked: the caller turns Window › Contextual Task Bar off. + pub hide: bool, + /// What the context's contents returned. + pub inner: R, +} + +/// The size the bar had when it was last drawn (its contents decide it), or a guess before. +fn last_size(ctx: &egui::Context) -> Vec2 { + ctx.memory(|m| m.area_rect(area_id())).map_or(vec2(300.0, BUTTON + 8.0), |r| r.size()) +} + +/// Where the bar's top-left goes: dragged or pinned at `place.at`, else centred [`GAP`] below +/// `anchor`; clamped so a bar of `size` stays inside `area`. A non-finite saved place (a +/// hand-edited preferences file, `ui.set`) counts as not placed. +pub fn position(place: &TaskBarPlace, anchor: Rect, area: Rect, size: Vec2) -> Pos2 { + let at = place.at.filter(|p| p.iter().all(|v| v.is_finite())).map(|[x, y]| area.min + vec2(x, y)); + let p = at.unwrap_or_else(|| pos2(anchor.center().x - size.x / 2.0, anchor.bottom() + GAP)); + clamp_into(p, size, area) +} + +/// `p` moved so a rect of `size` at it lies inside `area` (its left/top edge wins when it can't fit). +fn clamp_into(p: Pos2, size: Vec2, area: Rect) -> Pos2 { + let fit = |v: f32, lo: f32, hi: f32| if v.is_finite() { v.min(hi).max(lo) } else { lo }; + pos2(fit(p.x, area.left(), area.right() - size.x), fit(p.y, area.top(), area.bottom() - size.y)) +} + +/// Draws the bar for `anchor` (screen rect) inside the canvas `area`: grip, then `contents`, which +/// place the ⋯ button with [`MoreMenu::show`]. `place` is updated by a drag on the grip and by the +/// menu; `None` when `area` is degenerate. +pub fn show( + ctx: &egui::Context, + place: &mut TaskBarPlace, + anchor: Rect, + area: Rect, + contents: impl FnOnce(&mut Ui, &mut MoreMenu) -> R, +) -> Option> { + if !(anchor.is_finite() && area.is_finite() && area.is_positive()) { + return None; + } + let size = last_size(ctx); + let at = position(place, anchor, area, size); + // Pin bar position, or a pin set over the control channel: the bar freezes where it is now. + if place.pinned && place.at.is_none() { + place.at = Some((at - area.min).into()); + } + let t = Tokens::get(ctx); + let mut moved = None; + let mut menu = MoreMenu { place: *place, shown: false, hide: false, picked: None }; + let out = egui::Area::new(area_id()).order(egui::Order::Middle).fixed_pos(at).constrain(false).show(ctx, |ui| { + egui::Frame::NONE + .fill(t.card) + .stroke(Stroke::new(1.0, t.field_border)) + .corner_radius(t.radius) + .inner_margin(egui::Margin::symmetric(4, 4)) + .show(ui, |ui| { + ui.horizontal(|ui| { + ui.spacing_mut().item_spacing.x = 4.0; + if let Some(d) = grip(ui, t) { + moved = Some(d); + } + let inner = contents(ui, &mut menu); + menu.show(ui); + inner + }) + .inner + }) + .inner + }); + let rect = out.response.rect; + if let Some(d) = moved { + // A dragged bar stays where it is dropped and no longer follows the frame. + let p = clamp_into(at + d, rect.size(), area); + place.at = Some((p - area.min).into()); + } + if let Some(p) = menu.picked { + *place = p; + if place.pinned { + place.at = Some((at - area.min).into()); + } + } + // The first frame only measures the contents: draw again at the measured size. + if rect.size() != size { + ctx.request_repaint(); + } + Some(Shown { rect, hide: menu.hide, inner: out.inner }) +} + +/// The grip: two columns of three dots. Returns the drag's movement this frame. +fn grip(ui: &mut Ui, t: Tokens) -> Option { + let (rect, resp) = ui.allocate_exact_size(vec2(12.0, BUTTON), Sense::drag()); + let resp = resp.on_hover_cursor(CursorIcon::Grab); + resp.widget_info(|| egui::WidgetInfo::labeled(egui::Role::Button, true, tl!("Move bar"))); + let dot: Color32 = if resp.hovered() || resp.dragged() { t.text } else { t.icon }; + for col in [-2.0, 2.0] { + for row in [-4.0, 0.0, 4.0] { + ui.painter().circle_filled(rect.center() + vec2(col, row), 1.1, dot); + } + } + if resp.dragged() { + ui.ctx().set_cursor_icon(CursorIcon::Grabbing); + return Some(resp.drag_delta()).filter(|d| *d != Vec2::ZERO); + } + None +} + +/// The ⋯ button and its menu. Returns whether Hide bar was picked and the place Reset or Pin +/// asks for. +fn more_menu(ui: &mut Ui, place: &TaskBarPlace) -> (bool, Option) { + let r = crate::icons::button_with_icon_size_tip(ui, "ellipsis", BUTTON, 14.0, false, tl!("More options"), false); + let mut out = (false, None); + egui::Popup::menu(&r).show(|ui| { + ui.set_min_width(190.0); + let item = |ui: &mut Ui, icon: &str, label: &str| { + let mut atoms = egui::Atoms::default(); + atoms.push_right(crate::icons::image(icon, 14.0, Tokens::get(ui.ctx()).icon)); + atoms.push_right(label.to_owned()); + ui.add(egui::Button::new(atoms)).clicked() + }; + if item(ui, "eye-off", tl!("Hide bar")) { + out.0 = true; + ui.close(); + } + if item(ui, "rotate-ccw", tl!("Reset bar position")) { + out.1 = Some(TaskBarPlace::default()); + ui.close(); + } + if item(ui, "pin", tl!("Pin bar position")) { + out.1 = Some(TaskBarPlace { pinned: true, ..*place }); + ui.close(); + } + // The reference's Watch quick video entry opens a tutorial video: not offered. + }); + out +} + +#[cfg(test)] +mod tests { + use super::*; + + const AREA: Rect = Rect { min: pos2(0.0, 40.0), max: pos2(800.0, 640.0) }; + const SIZE: Vec2 = vec2(300.0, 34.0); + + #[test] + fn follows_the_anchor_centred_eleven_points_below() { + let anchor = Rect::from_min_max(pos2(100.0, 100.0), pos2(500.0, 400.0)); + assert_eq!(position(&TaskBarPlace::default(), anchor, AREA, SIZE), pos2(150.0, 411.0)); + } + + #[test] + fn stays_inside_the_canvas_area() { + // The frame's bottom edge past the window: the bar sits on the area's bottom edge. + let low = Rect::from_min_max(pos2(-400.0, 300.0), pos2(100.0, 900.0)); + assert_eq!(position(&TaskBarPlace::default(), low, AREA, SIZE), pos2(0.0, 606.0)); + let right = Rect::from_min_max(pos2(700.0, 100.0), pos2(1200.0, 200.0)); + assert_eq!(position(&TaskBarPlace::default(), right, AREA, SIZE).x, 500.0); + } + + #[test] + fn a_placed_bar_keeps_its_place_and_its_left_edge() { + let anchor = Rect::from_min_max(pos2(100.0, 100.0), pos2(500.0, 400.0)); + let place = TaskBarPlace { pinned: false, at: Some([20.0, 30.0]) }; + assert_eq!(position(&place, anchor, AREA, SIZE), pos2(20.0, 70.0)); + let moved = anchor.translate(vec2(90.0, 50.0)); + assert_eq!(position(&place, moved, AREA, vec2(420.0, 34.0)), pos2(20.0, 70.0), "grows to the right, stays put"); + } + + #[test] + fn hostile_places_never_leave_the_area() { + let anchor = Rect::from_min_max(pos2(100.0, 100.0), pos2(500.0, 400.0)); + for at in [[f32::NAN, 0.0], [f32::INFINITY, 1.0], [1e30, -1e30]] { + let p = position(&TaskBarPlace { pinned: true, at: Some(at) }, anchor, AREA, SIZE); + assert!(AREA.contains(p), "{at:?} -> {p:?}"); + } + // A bar wider than the area keeps its left edge on the area's. + assert_eq!(position(&TaskBarPlace::default(), anchor, AREA, vec2(1200.0, 34.0)).x, 0.0); + } +} diff --git a/crates/ui-egui/src/widgets/type_ahead.rs b/crates/ui-egui/src/widgets/type_ahead.rs index 57eebc0f85..ba69370277 100644 --- a/crates/ui-egui/src/widgets/type_ahead.rs +++ b/crates/ui-egui/src/widgets/type_ahead.rs @@ -26,12 +26,16 @@ pub fn list_open(ctx: &egui::Context) -> bool { pub fn keys(ui: &mut Ui, id: Id, current: Option, labels: &[&str]) -> Option { let pass = ui.ctx().cumulative_pass_nr(); ui.data_mut(|d| d.insert_temp(open_id(), pass)); + let lang = crate::i18n::current(); + // One entry per list, tagged with the language its letters were typed in: a prefix typed in + // another language never carries over, however quickly the language comes back. let key = id.with("type-ahead"); - // A list opened anew starts with no letters typed. + // A list opened anew starts with no letters typed, and so does a frame in another language. let shown_id = key.with("pass"); ui.data_mut(|d| { - if d.get_temp::(shown_id).is_none_or(|seen| seen.saturating_add(2) < pass) { - d.remove::<(String, f64)>(key); + let other_language = d.get_temp::<(String, f64, String)>(key).is_some_and(|(_, _, typed_in)| typed_in != lang.code()); + if other_language || d.get_temp::(shown_id).is_none_or(|seen| seen.saturating_add(2) < pass) { + d.remove::<(String, f64, String)>(key); } d.insert_temp(shown_id, pass); }); @@ -52,32 +56,32 @@ pub fn keys(ui: &mut Ui, id: Id, current: Option, labels: &[&str]) -> Opt if typed.is_empty() { return None; } - let (mut prefix, last) = ui.data(|d| d.get_temp::<(String, f64)>(key)).unwrap_or_default(); + let (mut prefix, last, _) = ui.data(|d| d.get_temp::<(String, f64, String)>(key)).unwrap_or_default(); // A pause (or a clock that went backwards) starts over. if !(now >= last && now - last <= PAUSE) { prefix.clear(); } - let lower: Vec = labels.iter().map(|l| l.to_lowercase()).collect(); + let lower: Vec = labels.iter().map(|l| lang.lowercase(l)).collect(); let mut pick = None; for c in typed.chars().filter(|c| !c.is_control()) { // A space only counts inside a prefix ("linear b"), never to start one. if c.is_whitespace() && prefix.is_empty() { continue; } - prefix.extend(c.to_lowercase()); + prefix.push(c); let from = pick.or(current); - let mut found = find(&lower, &prefix, from); + let mut found = find(&lower, &lang.lowercase(&prefix), from); // A letter that leads nowhere after the others starts a new prefix ("m" then "d" is D). if found.is_none() { prefix.clear(); if !c.is_whitespace() { - prefix.extend(c.to_lowercase()); - found = find(&lower, &prefix, from); + prefix.push(c); + found = find(&lower, &lang.lowercase(&prefix), from); } } pick = found.or(pick); } - ui.data_mut(|d| d.insert_temp(key, (prefix, now))); + ui.data_mut(|d| d.insert_temp(key, (prefix, now, lang.code().to_owned()))); pick } @@ -101,6 +105,33 @@ fn find(lower: &[String], prefix: &str, from: Option) -> Option { mod tests { use super::find; + /// Actual dropdown text input keeps dotted/dotless prefixes and decomposed I+dot distinct. + #[test] + fn azerbaijani_dropdown_type_ahead_handles_both_i_pairs() { + use egui::accesskit::Role; + use egui_kittest::{Harness, kittest::Queryable}; + let az = crate::i18n::Lang::from_code("az").unwrap(); + crate::i18n::with_language(az, || { + let mut h = Harness::builder().with_size(egui::vec2(300.0, 400.0)).build_ui_state( + |ui, selected: &mut usize| { + crate::widgets::dropdown(ui, "az-i-pairs", "Mode", selected, &[(0, "Normal"), (1, "İşıq"), (2, "ıraq")], 120.0); + }, + 0, + ); + h.get_by_role(Role::ComboBox).click(); + h.run(); + h.event(egui::Event::Text("İ".into())); + h.run(); + assert_eq!(*h.state(), 1); + h.event(egui::Event::Text("I".into())); + h.run(); + assert_eq!(*h.state(), 2); + h.event(egui::Event::Text("\u{307}".into())); + h.run(); + assert_eq!(*h.state(), 1, "the combining dot completes the original I prefix"); + }); + } + fn labels(l: &[&str]) -> Vec { l.iter().map(|s| s.to_lowercase()).collect() } @@ -167,6 +198,39 @@ mod tests { assert_eq!(*h.state(), 3); } + /// Letters typed before the language changed never extend a prefix typed after it, even when + /// the language comes back within the pause. + #[test] + fn a_language_change_forgets_the_letters_typed_before() { + use egui::accesskit::Role; + use egui_kittest::{Harness, kittest::Queryable}; + let en = crate::i18n::Lang::EN; + let de = crate::i18n::Lang::from_code("de").unwrap(); + // Short frames: the letters arrive well within the pause, so only the language change resets. + let mut h = Harness::builder().with_size(egui::vec2(300.0, 400.0)).with_step_dt(1.0 / 60.0).build_ui_state( + |ui, (selected, lang): &mut (usize, crate::i18n::Lang)| { + crate::i18n::with_language(*lang, || { + let options = [(0, "Normal"), (1, "Dissolve"), (2, "Darken"), (3, "Add")]; + crate::widgets::dropdown(ui, "lang-switch", "Mode", selected, &options, 120.0); + }); + }, + (0, en), + ); + h.get_by_role(Role::ComboBox).click(); + h.run(); + type_key(&h, egui::Key::D, "d"); + h.run(); + assert_eq!(h.state().0, 1); + h.state_mut().1 = de; + h.step(); + h.state_mut().1 = en; + h.step(); + assert!(super::list_open(&h.ctx), "the list stays open across the language change"); + type_key(&h, egui::Key::A, "a"); + h.run(); + assert_eq!(h.state().0, 3, "a starts a new prefix (Add); the d typed before the change would make it da (Darken)"); + } + #[test] fn case_and_scripts_beyond_ascii_match() { let l = labels(&["Normal", "Éclaircir", "Ébène", "Нормальный", "Затемнение"]); diff --git a/crates/ui-egui/tests/it/camera_raw_localization.rs b/crates/ui-egui/tests/it/camera_raw_localization.rs index eedaa6be93..580c565b9d 100644 --- a/crates/ui-egui/tests/it/camera_raw_localization.rs +++ b/crates/ui-egui/tests/it/camera_raw_localization.rs @@ -15,6 +15,9 @@ fn all_registered_languages_render_camera_raw_and_switch_without_resetting_view_ for lang in i18n::Lang::all() { let gpu = std::env::var_os("PHOTOCRAFT_LOCALE_SNAPSHOTS").is_some(); let builder = Harness::builder().with_step_dt(1.0 / 60.0).with_size(vec2(1440.0, 1000.0)); + // A script the central manifest does not ship yet may have no face on a CI runner: the + // app then draws tofu (its production policy), and the label/state checks below still run. + let builder = if AWAITING_CENTRAL_FONT.iter().any(|(code, _)| *code == lang.code()) { builder.allow_missing_glyphs() } else { builder }; let builder = if gpu { builder.wgpu() } else { builder }; let mut h = builder.build_eframe(move |cc| { PhotocraftApp::setup_context(&cc.egui_ctx, ThemeKind::Pro); @@ -29,7 +32,7 @@ fn all_registered_languages_render_camera_raw_and_switch_without_resetting_view_ let ctx = h.ctx.clone(); h.state_mut().set_theme(&ctx, ThemeKind::Pro); // Labels and retained state are under test, not the collapse animation. - h.state_mut().session.prefs.edit(|p| p.interface.enable_animations = false); + h.ctx.all_styles_mut(|style| style.animation_time = 0.0); h.state_mut().session.prefs.edit(|p| p.interface.language = lang.code().into()); h.run_steps(4); let tr = |s| i18n::tr_ctx(lang, "cameraRaw", s); @@ -116,6 +119,10 @@ fn all_registered_languages_render_camera_raw_and_switch_without_resetting_view_ } } +/// UI languages whose script has no face in the pinned central font manifest yet (code, ISO 15924). +/// Tamil arrives with storytold/craft-fonts#63; drop the row once the pin ships it. +const AWAITING_CENTRAL_FONT: &[(&str, &str)] = &[("ta", "Taml")]; + /// Check central font fixtures independently of the language-switching UI assertions. fn assert_required_camera_raw_fonts() { // Required central-font acceptance must not pass only because the host supplies Hindi, @@ -123,6 +130,12 @@ fn assert_required_camera_raw_fonts() { // test renders comes from a real face in the central manifest. The all-language loop then // checks the actual translated labels under egui_kittest's strict missing-glyph policy. if std::env::var_os("CRAFT_FONTS_REQUIRED").is_some() { + for (code, script) in AWAITING_CENTRAL_FONT { + assert!( + !photocraft_text::craft_fonts::CRAFT_FONTS.iter().any(|f| !f.bytes.is_empty() && f.scripts.contains(script)), + "the central manifest now ships {script}: remove {code} from AWAITING_CENTRAL_FONT so its glyphs are checked strictly" + ); + } for (family, script) in [("BIZ UDPGothic", "Jpan"), ("Noto Sans CJK SC", "Hans"), ("NanumGothic", "Kore"), ("Noto Sans Devanagari", "Deva")] { let faces: Vec<_> = photocraft_text::craft_fonts::CRAFT_FONTS .iter() diff --git a/crates/ui-egui/tests/it/crop_default_mode.rs b/crates/ui-egui/tests/it/crop_default_mode.rs index 8f7a952b30..3fc94209c4 100644 --- a/crates/ui-egui/tests/it/crop_default_mode.rs +++ b/crates/ui-egui/tests/it/crop_default_mode.rs @@ -93,6 +93,8 @@ fn setup() -> Option { app.run("edit.fill", json!({"color": "#ff0000"})).expect("fill"); app.run("select.deselect", json!({})).expect("deselect"); app.sync_views(); + // The options bar's Ratio dropdown: the contextual task bar shows the same one (#10890). + app.ui.panels.context_task_bar = false; app.ui.extras.rulers = false; app.ui.extras.snap = false; app.ui.view.show.smart_guides = false; diff --git a/crates/ui-egui/tests/it/crop_popup_keys.rs b/crates/ui-egui/tests/it/crop_popup_keys.rs index facb1be24a..3dc888b24a 100644 --- a/crates/ui-egui/tests/it/crop_popup_keys.rs +++ b/crates/ui-egui/tests/it/crop_popup_keys.rs @@ -49,6 +49,8 @@ fn setup() -> Option { let app = h.state_mut(); app.run("file.new", json!({"width": 200, "height": 100, "background": "white"})).expect("new"); app.sync_views(); + // The options bar's Ratio dropdown: the contextual task bar shows the same one (#10890). + app.ui.panels.context_task_bar = false; } control(&mut h, "ui.set", json!({"tool": "crop", "zoom": 1.0, "center": [100, 50]})); h.get_by_value("Ratio").click(); diff --git a/crates/ui-egui/tests/it/crop_task_bar.rs b/crates/ui-egui/tests/it/crop_task_bar.rs new file mode 100644 index 0000000000..f61df3b251 --- /dev/null +++ b/crates/ui-egui/tests/it/crop_task_bar.rs @@ -0,0 +1,406 @@ +//! Crop tool: the contextual task bar under the crop frame (#10890). +//! +//! Measured in the reference application: the bar is centred under the frame with its top 11 px +//! below the frame's bottom edge and follows the frame; dragged by its grip it stays where it was +//! dropped; Reset bar position brings it back under the frame, Pin bar position keeps it where it +//! is; Hide bar hides it and unticks Window › Contextual Task Bar; Cancel and Done show only +//! while a crop is pending and do what the options bar's cancel and commit do. +//! +//! The whole app runs in an egui_kittest harness (no GPU needed); the bar's own buttons are +//! pressed with pointer events, so a click must reach the bar and not the canvas under it. + +use egui::{Modifiers, PointerButton, Pos2, Rect, Vec2, pos2, vec2}; +use egui_kittest::kittest::Queryable; +use photocraft_ui_egui::PhotocraftApp; +use photocraft_ui_egui::canvas::ViewXform; +use photocraft_ui_egui::control::{ControlRequest, Outcome, handle}; +use photocraft_ui_egui::crop_ui::{corners, pending}; +use serde_json::{Value, json}; + +type Harness = egui_kittest::Harness<'static, PhotocraftApp>; + +/// The bar's top below the frame's bottom edge, measured in the reference application (screen px +/// at 100 %, points here). +const GAP: f32 = 11.0; + +/// The app in English with a 400 × 300 white document at 100 %, the Crop tool picked in Classic +/// Mode (the frame moves over a fixed image, so the frame's screen place is easy to predict). +fn harness() -> Harness { + let mut h = Harness::builder().with_size(vec2(1100.0, 760.0)).with_max_steps(64).build_eframe(|cc| { + PhotocraftApp::setup_context(&cc.egui_ctx, Default::default()); + let mut app = PhotocraftApp::new(photocraft_engine::Session::new(), Default::default()); + // English labels, whatever the system language. + app.session.prefs.edit(|p| p.interface.language = "en".into()); + app.run("file.new", json!({"width": 400, "height": 300, "background": "white"})).expect("new"); + app.ui.extras.snap = false; + app.ui.view.show.smart_guides = false; + app.ui.tool_options.crop_shield.classic_mode = true; + app + }); + h.run_steps(4); + control(&mut h, "ui.set", json!({"tool": "crop", "zoom": 1.0, "center": [200.0, 150.0]})); + h.run_steps(6); + h +} + +/// Runs one control-channel request, which must succeed, then lets the app draw. +fn control(h: &mut Harness, method: &str, params: Value) -> Value { + let ctx = h.ctx.clone(); + let (req, _rx) = ControlRequest::new(method, params.clone()); + let Outcome::Done(v) = handle(h.state_mut(), &ctx, &req) else { panic!("{method} {params}: not done") }; + assert_eq!(v["ok"], true, "{method} {params}: {v}"); + h.run_steps(6); + v +} + +/// Draws a new crop frame from `a` to `b` (document px), as an agent does. +fn draw_frame(h: &mut Harness, a: [f64; 2], b: [f64; 2]) { + let events = json!([ + {"kind": "down", "x": a[0], "y": a[1]}, + {"kind": "move", "x": b[0], "y": b[1]}, + {"kind": "up", "x": b[0], "y": b[1]}, + ]); + control(h, "ui.pointer", json!({"events": events})); +} + +/// The crop frame's screen bounds, as the canvas maps it. +fn frame_on_screen(h: &Harness) -> Rect { + let app = h.state(); + let xf = ViewXform::active(app).expect("a view"); + let r = app.ui.crop_rect.expect("a crop frame"); + Rect::from_points(&corners(r, app.ui.crop_angle).map(|[x, y]| xf.to_screen(x as f32, y as f32))) +} + +/// The task bar's screen rect, as `ui.inspect` reports it. +fn bar(h: &Harness) -> Option { + h.state().ui.task_bar_shown.map(|[x0, y0, x1, y1]| Rect::from_min_max(pos2(x0, y0), pos2(x1, y1))) +} + +fn assert_under_frame(h: &Harness, what: &str) { + let (f, b) = (frame_on_screen(h), bar(h).unwrap_or_else(|| panic!("{what}: no bar"))); + assert!((b.top() - (f.bottom() + GAP)).abs() < 1.0, "{what}: bar top {} vs frame bottom {} + {GAP}", b.top(), f.bottom()); + assert!((b.center().x - f.center().x).abs() < 1.0, "{what}: bar centre {} vs frame centre {}", b.center().x, f.center().x); +} + +fn button(h: &mut Harness, at: Pos2, pressed: bool) { + h.event(egui::Event::PointerButton { pos: at, button: PointerButton::Primary, pressed, modifiers: Modifiers::NONE }); + h.run_steps(1); +} + +/// A real click at `at`: hover, press, release. +fn click_at(h: &mut Harness, at: Pos2) { + h.event(egui::Event::PointerMoved(at)); + h.run_steps(2); + button(h, at, true); + button(h, at, false); + h.run_steps(4); +} + +/// The centre of the widget labelled `label` (which must exist). +fn widget(h: &Harness, label: &str) -> Pos2 { + h.get_by_label(label).rect().center() +} + +fn has(h: &Harness, label: &str) -> bool { + h.query_by_label(label).is_some() +} + +/// Opens the bar's ⋯ menu and picks `entry`. +fn menu(h: &mut Harness, entry: &str) { + let more = widget(h, "More options"); + click_at(h, more); + let at = widget(h, entry); + click_at(h, at); +} + +/// Drags the bar by its grip by `d` screen points. +fn drag_grip(h: &mut Harness, d: Vec2) { + let from = widget(h, "Move bar"); + h.event(egui::Event::PointerMoved(from)); + h.run_steps(2); + button(h, from, true); + for i in 1..=8 { + h.event(egui::Event::PointerMoved(from + d * (i as f32 / 8.0))); + h.run_steps(1); + } + button(h, from + d, false); + h.run_steps(4); +} + +fn window_item_checked(h: &mut Harness) -> Option { + let items = control(h, "ui.menu.list", json!({})); + let item = items["result"].as_array()?.iter().find(|i| i["id"] == "window.panel.contextualTaskBar")?.clone(); + item["checked"].as_bool() +} + +#[test] +fn sits_centred_eleven_points_under_the_frame_and_follows_it() { + let mut h = harness(); + // The untouched default frame (the whole canvas). + assert_under_frame(&h, "default frame"); + draw_frame(&mut h, [40.0, 30.0], [260.0, 200.0]); + assert_under_frame(&h, "drawn frame"); + // Moved: the bar comes along. + let events = json!([ + {"kind": "down", "x": 150.0, "y": 110.0}, + {"kind": "move", "x": 210.0, "y": 150.0}, + {"kind": "up", "x": 210.0, "y": 150.0}, + ]); + control(&mut h, "ui.pointer", json!({"events": events})); + assert_eq!(h.state().ui.crop_rect, Some([100.0, 70.0, 320.0, 240.0]), "the frame moved"); + assert_under_frame(&h, "moved frame"); + let v = control(&mut h, "ui.inspect", json!({})); + assert_eq!(v["result"]["taskBar"]["visible"], true); + assert_eq!(v["result"]["taskBar"]["enabled"], true); + assert_eq!(v["result"]["taskBar"]["pinned"], false); +} + +#[test] +fn shows_only_with_the_crop_tool() { + let mut h = harness(); + assert!(bar(&h).is_some()); + control(&mut h, "ui.set", json!({"tool": "brush"})); + assert!(bar(&h).is_none(), "another tool hides the bar"); + assert!(!has(&h, "More options")); + // No document: no canvas, no bar (and `ui.inspect` doesn't report the last one drawn). + control(&mut h, "ui.set", json!({"tool": "crop"})); + assert!(bar(&h).is_some()); + h.state_mut().run("file.close", json!({})).expect("close"); + h.run_steps(6); + assert!(h.state().session.active().is_none()); + assert!(bar(&h).is_none(), "closing the document clears the bar"); +} + +#[test] +fn a_dragged_bar_stays_put_and_reset_brings_it_back() { + let mut h = harness(); + draw_frame(&mut h, [40.0, 30.0], [260.0, 200.0]); + let before = bar(&h).expect("bar"); + drag_grip(&mut h, vec2(-60.0, -120.0)); + let dropped = bar(&h).expect("bar"); + assert!((dropped.min - (before.min + vec2(-60.0, -120.0))).length() < 1.5, "{before:?} dragged to {dropped:?}"); + assert!(h.state().ui.panels.task_bar.at.is_some()); + assert_eq!(h.state().ui.crop_rect, Some([40.0, 30.0, 260.0, 200.0]), "dragging the bar doesn't touch the frame"); + // A new frame no longer moves it; its left edge stays. + draw_frame(&mut h, [300.0, 200.0], [120.0, 60.0]); + assert_eq!(bar(&h).expect("bar").left_top(), dropped.left_top()); + menu(&mut h, "Reset bar position"); + assert_eq!(h.state().ui.panels.task_bar, Default::default()); + assert_under_frame(&h, "after Reset bar position"); +} + +#[test] +fn pin_keeps_the_bar_where_it_is() { + let mut h = harness(); + draw_frame(&mut h, [40.0, 30.0], [260.0, 200.0]); + menu(&mut h, "Pin bar position"); + let pinned = bar(&h).expect("bar"); + assert!(h.state().ui.panels.task_bar.pinned); + draw_frame(&mut h, [300.0, 200.0], [120.0, 60.0]); + assert_eq!(bar(&h).expect("bar").left_top(), pinned.left_top(), "pinned: the frame changed, the bar didn't move"); + // Pinning over the control channel freezes it the same way. + menu(&mut h, "Reset bar position"); + control(&mut h, "ui.set", json!({"panels": {"task_bar": {"pinned": true, "at": null}}})); + let here = bar(&h).expect("bar"); + draw_frame(&mut h, [20.0, 20.0], [100.0, 80.0]); + assert_eq!(bar(&h).expect("bar").left_top(), here.left_top()); +} + +/// Runs one control-channel request without drawing after it. +fn request(h: &mut Harness, method: &str, params: Value) -> Value { + let ctx = h.ctx.clone(); + let (req, _rx) = ControlRequest::new(method, params.clone()); + let Outcome::Done(v) = handle(h.state_mut(), &ctx, &req) else { panic!("{method} {params}: not done") }; + v +} + +#[test] +fn ui_set_changes_only_the_place_fields_it_names() { + let mut h = harness(); + draw_frame(&mut h, [40.0, 30.0], [260.0, 200.0]); + drag_grip(&mut h, vec2(-60.0, -120.0)); + let dropped = bar(&h).expect("bar"); + let at = h.state().ui.panels.task_bar.at; + // Pinning keeps the dragged place: the bar doesn't jump back under the frame. + control(&mut h, "ui.set", json!({"panels": {"task_bar": {"pinned": true}}})); + assert_eq!(h.state().ui.panels.task_bar.at, at); + assert!(h.state().ui.panels.task_bar.pinned); + assert_eq!(bar(&h).expect("bar").left_top(), dropped.left_top()); + // Placing it keeps the pin. + control(&mut h, "ui.set", json!({"panels": {"task_bar": {"at": [12.0, 34.0]}}})); + assert_eq!(h.state().ui.panels.task_bar, photocraft_ui_egui::state::TaskBarPlace { pinned: true, at: Some([12.0, 34.0]) }); + // A field the bar doesn't have is refused, and nothing changes. + let v = request(&mut h, "ui.set", json!({"panels": {"task_bar": {"pinned": false, "nope": 1}}})); + assert_eq!(v["ok"], false, "{v}"); + assert!(h.state().ui.panels.task_bar.pinned); + // Reset bar position over the control channel. + control(&mut h, "ui.set", json!({"panels": {"task_bar": {"pinned": false, "at": null}}})); + assert_eq!(h.state().ui.panels.task_bar, Default::default()); + assert_under_frame(&h, "after the reset"); +} + +#[test] +fn the_bars_preset_dropdown_is_the_options_bars() { + let mut h = harness(); + let b = bar(&h).expect("bar"); + assert_eq!(h.state().ui.crop_rect, Some([0.0, 0.0, 400.0, 300.0]), "the untouched frame is the canvas"); + // Both bars show the Ratio dropdown: open the task bar's. + let ratio = h.get_all_by_value("Ratio").map(|n| n.rect().center()).find(|p| b.contains(*p)).expect("the task bar's Ratio dropdown"); + click_at(&mut h, ratio); + h.get_by_label("1 : 1 (Square)").click(); + h.run_steps(6); + let [x0, y0, x1, y1] = h.state().ui.crop_rect.expect("a frame"); + assert!(((x1 - x0) - (y1 - y0)).abs() < 1e-6, "a square frame: {:?}", h.state().ui.crop_rect); + assert_eq!(h.get_all_by_value("1 : 1 (Square)").count(), 2, "the options bar shows the same preset"); +} + +#[test] +fn inspect_reports_a_bar_hidden_before_the_next_draw_as_hidden() { + let mut h = harness(); + assert!(bar(&h).is_some()); + for hide in [json!({"panels": {"context_task_bar": false}}), json!({"tool": "brush"})] { + let v = request(&mut h, "ui.set", hide.clone()); + assert_eq!(v["ok"], true, "{v}"); + let v = request(&mut h, "ui.inspect", json!({})); + assert_eq!(v["result"]["taskBar"]["visible"], false, "{hide}"); + assert_eq!(v["result"]["taskBar"]["rect"], Value::Null, "{hide}"); + control(&mut h, "ui.set", json!({"tool": "crop", "panels": {"context_task_bar": true}})); + assert!(bar(&h).is_some()); + } +} + +#[test] +fn with_tiled_documents_the_bar_sits_on_the_active_tile() { + let mut h = harness(); + h.state_mut().run("file.new", json!({"width": 400, "height": 300, "background": "white"})).expect("new"); + h.run_steps(4); + let ctx = h.ctx.clone(); + photocraft_ui_egui::menus::invoke(h.state_mut(), &ctx, "window.arrange.twoUpVertical", json!({})).expect("2-up"); + h.run_steps(6); + // Each tile active in turn (side by side, the first one left): the first tile is drawn before + // the second, so a bar drawn by every tile would end up on the second one both times. + let mut centres = Vec::new(); + for idx in [0, 1] { + assert!(h.state_mut().session.set_active(idx)); + h.run_steps(8); + assert_eq!(h.state().session.active_index(), Some(idx)); + centres.push(bar(&h).unwrap_or_else(|| panic!("document {idx}: no bar")).center().x); + } + // The documents are the same size at the same zoom: the bars are one tile width apart. + assert!(centres[1] - centres[0] > 200.0, "the bar follows the active tile: {centres:?}"); + // A click into the first tile activates its document while the frame is drawn: the second + // tile, drawn after it as the active one, must not put the new document's bar on itself. + let y = bar(&h).expect("bar").top() - 120.0; + let at = pos2(centres[0], y); + h.event(egui::Event::PointerMoved(at)); + h.run_steps(2); + button(&mut h, at, true); + assert_eq!(h.state().session.active_index(), Some(0), "the click activates the first tile"); + if let Some(b) = bar(&h) { + assert!((b.center().x - centres[0]).abs() < 100.0, "the bar is on the first tile, not {} (the second)", b.center().x); + } + button(&mut h, at, false); +} + +#[test] +fn hide_bar_and_the_window_toggle() { + let mut h = harness(); + assert_eq!(window_item_checked(&mut h), Some(true)); + menu(&mut h, "Hide bar"); + assert!(!h.state().ui.panels.context_task_bar); + assert!(bar(&h).is_none()); + assert_eq!(window_item_checked(&mut h), Some(false), "Hide bar unticks Window › Contextual Task Bar"); + let ctx = h.ctx.clone(); + photocraft_ui_egui::menus::invoke(h.state_mut(), &ctx, "window.panel.contextualTaskBar", json!({})).expect("toggle"); + h.run_steps(6); + assert!(bar(&h).is_some(), "Window › Contextual Task Bar shows it again"); + assert_eq!(window_item_checked(&mut h), Some(true)); + control(&mut h, "ui.set", json!({"panels": {"context_task_bar": false}})); + assert!(bar(&h).is_none(), "ui.set hides it"); +} + +#[test] +fn cancel_and_done_only_while_a_crop_is_pending() { + let mut h = harness(); + assert!(!pending(h.state())); + assert!(has(&h, "More options") && !has(&h, "Done") && !has(&h, "Cancel"), "the untouched frame offers no Cancel / Done"); + draw_frame(&mut h, [40.0, 30.0], [260.0, 200.0]); + assert!(pending(h.state())); + assert!(has(&h, "Done") && has(&h, "Cancel")); + let narrow = bar(&h).expect("bar"); + assert!(narrow.width() > 0.0); + // Cancel: the frame goes, as with the options bar's cancel. + let at = widget(&h, "Cancel"); + click_at(&mut h, at); + assert!(!pending(h.state())); + assert_eq!(h.state().session.active().map(|s| (s.doc.size.width, s.doc.size.height)), Some((400, 300))); + // Done commits the crop. + draw_frame(&mut h, [40.0, 30.0], [260.0, 200.0]); + let at = widget(&h, "Done"); + click_at(&mut h, at); + assert_eq!(h.state().session.active().map(|s| (s.doc.size.width, s.doc.size.height)), Some((220, 170)), "Done crops"); +} + +/// The active document's stored zoom. +fn zoom(h: &Harness) -> f32 { + let app = h.state(); + app.session.active_index().and_then(|i| app.ui.views.get(i)).map(|v| v.zoom).expect("a view") +} + +/// Done, like the options bar's commit, fits the cropped document on screen. Fit never zooms past +/// 100 %, so the crop starts at 50 %: the 220 × 170 result fits at 100 %. The bar draws inside the +/// canvas pass, whose write-back of its own camera used to drop that fit. +#[test] +fn done_fits_the_cropped_document() { + let mut h = harness(); + control(&mut h, "ui.set", json!({"zoom": 0.5, "center": [200.0, 150.0]})); + assert!((zoom(&h) - 0.5).abs() < 1e-4); + draw_frame(&mut h, [40.0, 30.0], [260.0, 200.0]); + let at = widget(&h, "Done"); + click_at(&mut h, at); + assert_eq!(h.state().session.active().map(|s| (s.doc.size.width, s.doc.size.height)), Some((220, 170)), "Done crops"); + assert!((zoom(&h) - 1.0).abs() < 1e-4, "Done fits the cropped document: zoom {}", zoom(&h)); + let app = h.state(); + let v = app.session.active_index().and_then(|i| app.ui.views.get(i)).expect("a view"); + assert!(!v.fit_pending && (v.center[0] - 110.0).abs() < 0.5 && (v.center[1] - 85.0).abs() < 0.5, "fitted and centred: {:?}", v.center); +} + +#[test] +fn the_bar_grows_for_cancel_and_done() { + let mut h = harness(); + let idle = bar(&h).expect("bar").width(); + draw_frame(&mut h, [40.0, 30.0], [260.0, 200.0]); + h.run_steps(4); + let busy = bar(&h).expect("bar").width(); + assert!(busy > idle + 40.0, "idle {idle}, pending {busy}"); +} + +#[test] +fn straighten_is_the_options_bar_straighten() { + let mut h = harness(); + assert!(!photocraft_ui_egui::crop_straighten::mode(h.state())); + let at = widget(&h, "Straighten"); + click_at(&mut h, at); + assert!(photocraft_ui_egui::crop_straighten::mode(h.state()), "armed, as by the options bar's button"); + assert_eq!(h.state().ui.crop_rect, Some([0.0, 0.0, 400.0, 300.0]), "the click didn't reach the canvas"); +} + +#[test] +fn hide_and_place_are_kept_with_the_panel_layout() { + let mut h = harness(); + // A layout saved before the bar existed: the bar is on and follows the frame. + let mut old = serde_json::to_value(&h.state().ui.panels).expect("panels"); + old.as_object_mut().map(|o| (o.remove("context_task_bar"), o.remove("task_bar"))); + photocraft_ui_egui::dock::apply(h.state_mut(), &json!({"panels": old})); + assert!(h.state().ui.panels.context_task_bar); + assert_eq!(h.state().ui.panels.task_bar, Default::default()); + // What a restart restores. + let saved = json!({"panels": {"context_task_bar": false, "task_bar": {"pinned": true, "at": [12.0, 34.0]}}}); + let mut panels = serde_json::to_value(&h.state().ui.panels).expect("panels"); + panels.as_object_mut().expect("object").extend(saved["panels"].as_object().expect("object").clone()); + photocraft_ui_egui::dock::apply(h.state_mut(), &json!({"panels": panels})); + let p = &h.state().ui.panels; + assert!(!p.context_task_bar); + assert!(p.task_bar.pinned); + assert_eq!(p.task_bar.at, Some([12.0, 34.0])); +} diff --git a/crates/ui-egui/tests/it/main.rs b/crates/ui-egui/tests/it/main.rs index b8fdb2987d..58154725f6 100644 --- a/crates/ui-egui/tests/it/main.rs +++ b/crates/ui-egui/tests/it/main.rs @@ -17,6 +17,7 @@ mod crop_default_mode; mod crop_overlay_icons; mod crop_popup_keys; mod crop_shift_corner; +mod crop_task_bar; mod crop_turn_grid; mod crop_turn_keeps_frame_inside; mod custom_print_paper; diff --git a/docs/atn.md b/docs/atn.md index 3dfe9a658b..19f2611293 100644 --- a/docs/atn.md +++ b/docs/atn.md @@ -146,7 +146,7 @@ row; the action still adds only one Undo entry. | `CtTL` | cutToLayer | Layer Via Cut | `layer.new.layerViaCut` | | `LnsF` | lensFlare | Lens Flare | `filter.render.lensFlare` | | `Lvls` | levels | Levels | `image.adjustments.levels`, `image.autoTone`, `image.autoContrast` | -| `Mk ` | make | Make | `image.calculations`, `layer.layerStyle.createLayer`, `layer.new.layer`, `layer.new.group`, `layer.groupLayers`, `layer.duplicate`, `layer.new.layerViaCopy`, `layer.new.layerViaCut`, `layer.newFillLayer.solidColor`, `layer.newFillLayer.pattern`, `layer.newAdjustmentLayer.levels`, `layer.newAdjustmentLayer.curves`, `layer.newAdjustmentLayer.hueSaturation`, `layer.newAdjustmentLayer.brightnessContrast`, `layer.newAdjustmentLayer.threshold`, `layer.newAdjustmentLayer.posterize`, `layer.newAdjustmentLayer.invert`, `layer.newAdjustmentLayer.colorBalance`, `layer.newAdjustmentLayer.vibrance`, `layer.newAdjustmentLayer.exposure`, `layer.newAdjustmentLayer.photoFilter`, `layer.newAdjustmentLayer.blackWhite`, `layer.newAdjustmentLayer.channelMixer`, `layer.newAdjustmentLayer.selectiveColor`, `layer.newAdjustmentLayer.gradientMap`, `layer.layerMask.revealAll`, `layer.layerMask.hideAll`, `layer.layerMask.revealSelection`, `layer.layerMask.hideSelection`, `file.new`, `file.newFromClipboard`, `history.newSnapshot`, `type.convertToShape`, `type.createWorkPath` | +| `Mk ` | make | Make | `image.calculations`, `layer.layerStyle.createLayer`, `layer.new.layer`, `layer.new.group`, `layer.groupLayers`, `layer.duplicate`, `layer.new.layerViaCopy`, `layer.new.layerViaCut`, `layer.newFillLayer.solidColor`, `layer.newFillLayer.pattern`, `layer.newFillLayer.gradient`, `layer.newAdjustmentLayer.levels`, `layer.newAdjustmentLayer.curves`, `layer.newAdjustmentLayer.hueSaturation`, `layer.newAdjustmentLayer.brightnessContrast`, `layer.newAdjustmentLayer.threshold`, `layer.newAdjustmentLayer.posterize`, `layer.newAdjustmentLayer.invert`, `layer.newAdjustmentLayer.colorBalance`, `layer.newAdjustmentLayer.vibrance`, `layer.newAdjustmentLayer.exposure`, `layer.newAdjustmentLayer.photoFilter`, `layer.newAdjustmentLayer.blackWhite`, `layer.newAdjustmentLayer.channelMixer`, `layer.newAdjustmentLayer.selectiveColor`, `layer.newAdjustmentLayer.gradientMap`, `layer.layerMask.revealAll`, `layer.layerMask.hideAll`, `layer.layerMask.revealSelection`, `layer.layerMask.hideSelection`, `file.new`, `file.newFromClipboard`, `history.newSnapshot`, `type.convertToShape`, `type.createWorkPath` | | (string ID only) | animationFramesFromLayers | Make Frames from Layers | | | (string ID only) | matchColor | Match Color | `image.adjustments.matchColor` | | `Mxm ` | maximum | Maximum | `filter.other.maximum` | @@ -189,7 +189,7 @@ row; the action still adds only one Undo entry. | (string ID only) | smartBrushWorkspace | Select and Mask | `select.refineEdge` | | (string ID only) | autoCutout | Select Subject | `select.subject` | | `SlcC` | selectiveColor | Selective Color | `image.adjustments.selectiveColor` | -| `setd` | set | Set | `select.all`, `select.deselect`, `select.reselect`, `select.loadSelection`, `select.rect`, `select.lasso`, `select.editInQuickMaskMode`, `tools.setColors`, `layer.setProps`, `layer.renameLayer`, `layer.setLabelColor`, `layer.setAdjustment`, `layer.fill.pattern.set`, `layer.new.layerFromBackground`, `layer.layerStyle.blendingOptions`, `layer.smartFilter.blendingOptions` | +| `setd` | set | Set | `select.all`, `select.deselect`, `select.reselect`, `select.loadSelection`, `select.rect`, `select.lasso`, `select.editInQuickMaskMode`, `tools.setColors`, `layer.setProps`, `layer.renameLayer`, `layer.setLabelColor`, `layer.setAdjustment`, `layer.fill.pattern.set`, `gradient.fill.set`, `layer.new.layerFromBackground`, `layer.layerStyle.blendingOptions`, `layer.smartFilter.blendingOptions` | | (string ID only) | adaptCorrect | Shadows/Highlights | `image.adjustments.shadowsHighlights` | | `Shrp` | sharpen | Sharpen | `filter.sharpen.sharpen` | | `ShrE` | sharpenEdges | Sharpen Edges | `filter.sharpen.sharpenEdges` | @@ -752,6 +752,21 @@ differences that do not change what a step does. `forceNotify`) and default flags (`MkVs` false, `Adjs` false) are not written back. - An adjustment layer's values equal to the defaults are not written back (other values are). - Colours are kept as 8-bit values (51.0031 becomes 51); gradient names become "Custom". +- A loaded Gradient Fill Make or Set (`gradientLayer`) saves back as the recorded descriptor until + it is edited. Otherwise it is written from the params: `#rrggbb` stops on 1/4096 locations and + whole-percent midpoints; a Set also needs its transparency stops, as the event replaces the whole + gradient. Midpoint k is the `Mdpn` of stop k + 1 (the first stop's is 50). A Noise gradient, + smoothness below 100 %, a non-classic interpolation, a transparency midpoint, a midpoint outside + 5..95 %, transparency stops out of range or out of order, and a Set without transparency stops stay + Photoshop steps. +- Blend If (`Blnd` in a layer Set) loads as `layer.layerStyle.blendingOptions`. With only the + Blending Options dialog's keys (`Opct`, `fillOpacity`, `Md `, `Blnd`, the Advanced checkboxes, and + the `Lefx` = {`Scl `} its OK records on a layer without effects) the Set is one step and saves back + as one Set; with any other key, those go through `layer.setProps`. Slider values are whole levels + 0..255 in order, `SrcB`/`Srcl`/`SrcW`/`Srcm` for This Layer and `DstB`/`Dstl`/`DstW`/`Dstt` for + Underlying Layer (black low, black high, white low, white high; measured in the dialog). The gray + channel saves as `Chnl.Gry`; a `Chnl.Cmps` entry loads as gray and saves as `Gry`, as the + application's own dialog writes it back. - Levels and Curves write the composite as `Chnl.Cmps` (the application skips `Ordn.Trgt`, #8543). ### Classic Gradient recordings diff --git a/docs/control-protocol.md b/docs/control-protocol.md index 6cf6bf3956..241586699b 100644 --- a/docs/control-protocol.md +++ b/docs/control-protocol.md @@ -55,7 +55,7 @@ The transport is `apps/photocraft/src/control_server.rs`, and the handlers are i - `ui.set` also accepts `camTransformOnDrop` (boolean), the Content-Aware Move tool's Transform On Drop checkbox: a drop then puts a scale/rotate box on the patch (`ui.inspect` › `camTransform`: its document/revision, drag `offset` and `frame`), driven with `ui.pointer` (handles as Free Transform's; outside the box rotates), committed with `ui.key Enter` (one `paint.contentAwareMove` with `scaleX`, `scaleY`, `rotate`) or dropped with `Escape`. - `ui.set` also accepts `tileGrid` (boolean), a developer overlay of the active layer's storage tiles: the tile grid over the document, every stored tile filled and labelled `tx,ty`, tiles with identical pixels in a shared colour and unique ones in blue. It has no menu item and View › Extras doesn't hide it. `ui.inspect` reports it as `view.tile_grid`. - `ui.set` also accepts `strokeTrace` (`true`, `false`, `"stderr"` or `"off"`): turn the stroke latency trace on or off at runtime; each stroke's summary is in `ui.inspect` `perf.strokeTrace`. A CSV file of every frame is set only at launch (`PHOTOCRAFT_STROKE_TRACE=` / `--stroke-trace `): the control channel doesn't write files outside the automation write root -- `ui.set` also accepts `layerFilter` (#5048), the Layers panel filter row: `{by?, kinds?, name?, effect?, mode?, attribute?, color?, smart?}`, any subset. `by` is `kind`, `name`, `effect`, `mode`, `attribute`, `color`, `smartObject` or `artboard` (the filter-type dropdown); `kinds` lists the Kind toggles that are on (`pixel`, `adjustment`, `type`, `shape`, `smart`); `name` matches part of a layer name, ignoring case; `effect` (#10880) is `bevelEmboss`, `stroke`, `innerShadow`, `innerGlow`, `satin`, `overlay` (Color, Gradient or Pattern Overlay), `outerGlow` or `dropShadow`, and lists the layers with that effect turned on; `mode` is one of the 27 layer blend modes (`Multiply`, `Screen`), not Pass Through, which the Mode list doesn't offer (#10878); `attribute` (#10881) is `visible`, `locked`, `empty`, `linked`, `clipped`, `layerMask`, `vectorMask`, `layerEffects` or `advancedBlending`, or one of their opposites `notVisible`, `notLocked`, `notEmpty`, `notLinked`, `notClipped`, `noLayerMask`, `noVectorMask`, `noLayerEffects`, `noAdvancedBlending`; `color` is a layer colour label id (`none`, `red`, `orange`, `yellow`, `green`, `seafoam`, `blue`, `indigo`, `magenta`, `fuchsia`, `violet`, `gray`; #5898); `smart` lists the Smart Object toggles that are on (`linked`: linked to a file, `missing`: linked to a file that was not there when the app last looked, `embedded`). Kind, Name and Smart Object filter only once a toggle is on or text is typed; Effect, Mode, Attribute and Color always filter, by Bevel & Emboss, by Normal, by Visible and by no colour at first, as in Photoshop. Artboard has no field of its own: it lists the artboards that hold the selected layers, with everything inside them (closed groups stay closed), and does not filter when nothing is selected or a selected layer is in no artboard. Fields left out keep their value; a bad one is an error and changes nothing. +- `ui.set` also accepts `layerFilter` (#5048), the Layers panel filter row: `{by?, kinds?, name?, effect?, mode?, attribute?, color?, smart?}`, any subset. `by` is `kind`, `name`, `effect`, `mode`, `attribute`, `color`, `smartObject`, `artboard` or `group` (the filter-type dropdown); `kinds` lists the Kind toggles that are on (`pixel`, `adjustment`, `type`, `shape`, `smart`); `name` matches part of a layer name, ignoring case; `effect` (#10880) is `bevelEmboss`, `stroke`, `innerShadow`, `innerGlow`, `satin`, `overlay` (Color, Gradient or Pattern Overlay), `outerGlow` or `dropShadow`, and lists the layers with that effect turned on; `mode` is one of the 27 layer blend modes (`Multiply`, `Screen`), not Pass Through, which the Mode list doesn't offer (#10878); `attribute` (#10881) is `visible`, `locked`, `empty`, `linked`, `clipped`, `layerMask`, `vectorMask`, `layerEffects` or `advancedBlending`, or one of their opposites `notVisible`, `notLocked`, `notEmpty`, `notLinked`, `notClipped`, `noLayerMask`, `noVectorMask`, `noLayerEffects`, `noAdvancedBlending`; `color` is a layer colour label id (`none`, `red`, `orange`, `yellow`, `green`, `seafoam`, `blue`, `indigo`, `magenta`, `fuchsia`, `violet`, `gray`; #5898); `smart` lists the Smart Object toggles that are on (`linked`: linked to a file, `missing`: linked to a file that was not there when the app last looked, `embedded`). Kind, Name and Smart Object filter only once a toggle is on or text is typed; Effect, Mode, Attribute and Color always filter, by Bevel & Emboss, by Normal, by Visible and by no colour at first, as in Photoshop. Artboard has no field of its own: it lists the artboards that hold the selected layers, with everything inside them (closed groups stay closed), and does not filter when nothing is selected or a selected layer is in no artboard. Group (#10883) has no field of its own either and filters at once: it lists every group that is not an artboard with everything inside it (the groups inside an artboard too), and hides the layers that are in no group; each group stays open or closed as it is. Fields left out keep their value; a bad one is an error and changes nothing. - `ui.set` also accepts the Histogram panel: `histogramPanel` `{view?, channel?, showChannelsInColor?, showStatistics?, source?}` (any subset, kept with the preferences): `view` is `compact`, `expanded` or `allChannels`; `channel` is `composite`, `red`, `green`, `blue`, `cyan`, `magenta`, `yellow`, `black`, `a`, `b`, `luminosity` or `colors` (one the document's mode lacks shows as its composite); `source` is `entireImage`, `selectedLayer` or `adjustmentComposite` (Entire Image is counted in Compact View, when the document has one layer, or when no adjustment layer is selected for Adjustment Composite). `histogramRange` is `[from, to]` (levels 0..255) or `null`: the dragged tonal range whose Count and Percentile the statistics show. `histogramRefresh: true` is Uncached Refresh: the current state is recounted at cache level 1. `ui.inspect` › `histogram` reports the options, the channel and source as they apply, the channels the document offers, whether the shown histogram is `current` (counted for the document's revision, source and cache level the panel wants now), its `cacheLevel`, `maxCacheLevel` (Preferences › Performance › Cache Levels), `preview` (an adjustment's preview is counted) and `stats` (`mean`, `stdDev`, `median`, `pixels`, `level`, `count`, `percentile`, `clipped` percent at 0 and 255). Histograms are counted while the panel is shown. - Each painting tool keeps its own brush, as in Photoshop: `tools.setBrush` and `ui.set {brushSize}` change the active tool's brush, and switching tools swaps in that tool's own (size, hardness, mode, opacity, flow, dynamics, smoothing). A tool used for the first time starts from the brush in hand. The colours, the erase flag and the stroke seed stay shared. So `ui.set {tool: "eraser", brushSize: 12}` sets the Eraser's size, and `ui.set {tool: "brush"}` afterwards brings the Brush's own size back. - Brush Pose's `pose.overrideTiltX` and `pose.overrideTiltY` are independent booleans. For example, `engine.execute {"command":"tools.setBrush","params":{"pose":{"enabled":true,"tiltX":45,"overrideTiltX":true,"overrideTiltY":false}}}` fixes X at 45° while Y follows the stylus. Pose tilts are degrees (±90); the Brush Settings panel displays percentages (±100). Old stored `overrideTilt` values migrate to both axes. In command patches, `overrideTilt` sets both axes unless an explicit axis field in the same patch overrides it. `brush.get` includes both axis flags and the legacy combined readback (`overrideTilt` is true only when both flags are true). Axis-only journals omit that derived combined key so replay retains the other axis. Present flag values must be booleans; null and other types return an error. @@ -65,6 +65,7 @@ The transport is `apps/photocraft/src/control_server.rs`, and the handlers are i - `ui.set` also accepts `cropFill` (`background`, the Fill dropdown's first entry, which reads Background (default), or Transparent (default) with Delete Cropped Pixels off, or `contentAware`), the Crop tool's Fill dropdown (#3823, #10872): with `contentAware`, committing a turned or extending frame passes `contentAware: true` to `image.crop`, which fills the area the image doesn't cover from its surroundings. `ui.inspect` reports it as `toolOptions.crop_content_aware`. Both gradient modes use the current preset, including its opacity stops. Select `Foreground to Transparent` through `gradient.presets.select`, or pass custom `stops` and `transparency: [[0,100],[1,0]]` (location 0..1, opacity 0..100). Use `applyToLayer: false` to edit only the tool preset. Classic gradient drags dispatch `paint.gradient` without overriding them. - `ui.set` also accepts the Crop tool's gear menu (#1919) as `cropShield`, an object patching any of `show_cropped_area` (Show Cropped Area; off hides everything outside the box behind the canvas colour, H in the app), `enabled` (Enable Crop Shield), `color` (`matchCanvas`, the pasteboard colour, or `custom`), `custom_color` (`[r, g, b]`, 0..255), `opacity` (0..100, default 75), `auto_adjust` (Auto Adjust Opacity: half the opacity while the box is dragged), `classic_mode` (Use Classic Mode, default off: the box turns and moves over the image; off is Photoshop's default mode, where the box stays upright and the view turns and pans the image behind it while the Crop tool shows a frame, P in the app; in both modes picking the tool turns a rotated view upright about its centre, Classic Mode keeping the camera upright with the frame drawn turned, and the view stays upright after a commit or cancel; Classic Mode greys out Show Cropped Area, which then acts as on, and Auto Center Preview) and `auto_center_preview` (default on: in default mode a box being resized keeps its centre where it is on screen, also after a pan, a drawn one moves to the middle of the canvas, and X re-centres it; a move never re-centres the box). `ui.inspect` reports it as `toolOptions.crop_shield`. The pending frame (`crop_rect`, `crop_angle`: its turn on the image) and the `image.crop` a commit runs are the same in both modes. +- The contextual task bar (#10890) is the small floating bar under the Crop tool's frame: a grip, the crop preset dropdown (the options bar's), Straighten, a ⋯ menu (Hide bar, Reset bar position, Pin bar position) and, while a crop is pending, Cancel and Done (the options bar's cancel and commit). It sits centred under the frame with its top 11 points below the frame's bottom edge, follows the frame, and stays inside the canvas area; dragged by its grip or pinned, it stays where it is. `ui.inspect` › `taskBar` reports `enabled` (Window › Contextual Task Bar, `window.panel.contextualTaskBar`), `visible` (a bar shows now), `rect` (its screen rect `[x0, y0, x1, y1]` in points, `null` while hidden), `pinned` and `at` (its top-left in points from the canvas area's top-left once dragged or pinned, `null` while it follows the frame). `ui.set {"panels": {"context_task_bar": false}}` hides it (as Hide bar does) and `true` shows it; `ui.set {"panels": {"task_bar": {"pinned": true}}}` pins it where it is (`"at": null` with it first puts it back under the frame), `{"pinned": false, "at": null}` is Reset bar position, and `at: [x, y]` places it; a field left out keeps its value. Both are kept with the panel layout across restarts. - `ui.dialog.open {kind, fields?}` (kinds `newDocument`, `about`, `layerStyle {effect?}`, `colorPicker {target: foreground|background}`, `command {command}` (`layer.new.group` / `layer.new.groupFromLayers` open the New Group dialog: fields `name`, `color`, `mode`, `opacity`), `newCropPreset` / `deleteCropPreset`: the Crop tool's New / Delete Crop Preset… dialogs, fields `name` and `selected: [names]`; crop presets are `crop` tool presets, so `tool.presets.new/list/edit {"tool":"crop"}` drive them too) / `ui.dialog.set {dialog, field, value}` / `ui.dialog.confirm {dialog, wait?}` / `ui.dialog.cancel {dialog}`. Like `ui.menu.invoke`, `ui.dialog.confirm` waits for a background job its command starts (a filter dialog's OK) and replies with the result; `"wait": false` replies `{job, pending: true}` at once - A Layer Style color field opens the shared picker with `ui.dialog.open {"kind":"colorPicker","parent":12,"effect":"fx2","field":"color"}`. `parent` is the Layer Style dialog id; `effect` is its effect instance id. `field` must be one of that instance's color parameters (`color`, or `from`/`to` for Gradient Overlay). The picker previews over the pending style without changing the document. Picker OK changes only the parent parameter; Cancel discards the preview. Confirm the parent afterwards to apply the style. Parent confirmation is refused while its picker is open; parent cancellation closes both. The binding is exposed in `ui.inspect` as `__layerStyleColor`; changed/closed targets or a document switch invalidate it. @@ -87,10 +88,10 @@ The transport is `apps/photocraft/src/control_server.rs`, and the handlers are i - Image › Adjustments › Curves on top, no eyedropper armed (#7325): a `down` with `command: true` adds a point on the curve the dialog shows (its Channel popup), at the pixel's tone (RGB: Rec. 709 luma; Gray: the mean) and at the curve's current output there, so the preview does not change; with `shift: true` as well, one point on each of Red, Green and Blue at that channel's value. It samples the merged image like the eyedroppers, never moves an existing point (a point already within 2 levels is selected instead, a 16-point curve takes no more), and the tool is not driven. Nothing is added with a pencil-drawn curve, in Lab or CMYK, or with a mask, saved channel or Quick Mask targeted. - Levels or Curves adjustment layer, Properties eyedropper armed (`layerPicker` in `ui.inspect`: `{layer, point, tool}`, set by the panel's Set Black/Neutral Gray/White Point buttons): a `down` sets that point from the image below the layer as one `layer.setAdjustment {"layer", "eyedropper": {"point", "at": [x, y], "size"}}` (send that command directly to skip the UI) and the tool is not driven; Esc, another tool or another layer disarms it. - With a painting tool, Shift+right-click (without Alt, Ctrl or Command) opens that tool's menu, as in the reference application, even when right-click painting is set to Erase: Edit Brush… (opens the Brush Preset picker at the click) and then the tool's own Mode list from its options bar. Brush and Pencil: Edit Brush…, the painting modes with Behind and Clear; Clone Stamp, Pattern Stamp, History Brush: Edit Brush…, the blend modes; Mixer Brush, Color Replacement, Background Eraser, Blur, Sharpen, Smudge: Edit Brush… only; Eraser: Brush / Pencil / Block; Dodge and Burn: Edit Brush…, Shadows / Midtones / Highlights; Sponge: Edit Brush…, Desaturate / Saturate; Healing Brush: its blend modes; Gradient: the blend modes; Paint Bucket: the blend modes with Clear. Other tools (Spot Healing Brush, Magic Eraser, non-painting tools) keep their plain right-click route. `ui.inspect.brushModeMenu` reports its screen position, `tool`, current `mode` (the checked row's label), `choices` (the row labels, in order) and `items` (`{label, enabled, checked}` or `{separator: true}`); Behind and Clear are disabled on the Background layer. Pick a row with `ui.click`, or with `ui.context.choose {id}` where `id` is the row's English label from `choices` (an unknown or disabled row is an error that changes nothing). A row sets what the tool's options-bar control sets: a brush-based tool's blend mode goes through `tools.setBrush`; the Eraser, Range, Sponge, Gradient and Paint Bucket rows set the tool option. Clear has the same painting-only erase meaning as the options bar. Escape, an outside press or a tool change closes the menu without changing the brush or document. -- `ui.click {x, y, button?, count?}` / `ui.move {x, y}`: synthetic pointer input in screen points (`button`: `left` (default), `right` (or `secondary`) or `middle`). `count` (default 1, `2` for a double-click) is at most 256; a larger one is an error and queues nothing +- `ui.click {x, y, button?, count?}` / `ui.move {x, y}`: synthetic pointer input in screen points (`button`: `left` (default), `right` (or `secondary`) or `middle`). `count` (default 1, `2` for a double-click) is at most 256; a larger one is an error and queues nothing. `x` and `y` lie within ±1,000,000 points (off-window is fine); a larger magnitude is an error naming the field - `ui.key {key, command?, shift?, alt?, ctrl?}` (flags may also be grouped under `modifiers`): press and release a key, e.g. `{"key": "ArrowLeft", "shift": true}`. `{"key": "AltLeft"}` is a tap on Alt, which puts the keyboard on the in-window menu bar (then `ArrowRight`, `ArrowDown`, `Enter`, `Escape` or a menu's letter drive it); `{"key": "F", "alt": true}` opens the menu with that mnemonic (#4988) -- `ui.pointer`, `ui.click`, `ui.move`, `ui.key` and `ui.screenshot` validate every parameter before acting, as `ui.set` does: an unknown field (top-level, under `modifiers` or in an event), a value of the wrong JSON type (`"x": "abc"`, `"ctrl": "yes"`), a `button`, `kind`, `tool` or `key` outside the accepted set, or a number outside its range (`pressure`, tilt, `rotation`, `count`) is an error naming the parameter, and nothing is queued or applied. A `null` field counts as omitted and takes its default +- `ui.pointer`, `ui.click`, `ui.move`, `ui.key` and `ui.screenshot` validate every parameter before acting, as `ui.set` does: an unknown field (top-level, under `modifiers` or in an event), a value of the wrong JSON type (`"x": "abc"`, `"ctrl": "yes"`), a `button`, `kind`, `tool` or `key` outside the accepted set, or a number outside its range (`pressure`, tilt, `rotation`, `count`, the `ui.click`/`ui.move` `x`/`y`) is an error naming the parameter, and nothing is queued or applied. A `null` field counts as omitted and takes its default - Engine commands (`engine.execute`, `photocraft-cli run`, MCP `command_run`) reject a param key their `params` doc does not name for the commands listed in `STRICT` (`crates/engine/src/param_check.rs`, today `layer.hideLayers` and `layer.showLayers`): `{"ids":[4]}` is the error `unknown parameter \`ids\` (expected: layer)`, and nothing runs. Other commands still ignore unknown keys until their `params` doc is complete and they are added to that list (`coalesce` and `target` are always accepted). - `ui.type {text}`: type text (goes to the focused widget, or to the canvas while the Type tool is editing) - `ui.resize {width, height}`: resize the main window @@ -251,7 +252,7 @@ The shape is pinned by a test in `crates/automation/src/rpc.rs` (#3684). ### Background jobs (#210) -Long commands (every `filter.*`, `edit.contentAwareFill`, `edit.contentAwareScale`, `file.automate.photomerge`, `brush.presets.importAbr`), file opens, file places (`file.placeEmbedded` / `file.placeLinked`, File › Place and files dropped on the canvas: the file is read, decoded and resized on the worker, the layer is inserted when the job lands and Free Transform starts then) and interactive saves (File › Save, Save As and the TIFF Options continuation, #2017) run as background jobs in the desktop app: the window keeps drawing, the status bar shows progress with a Cancel button, and jobs that lock the active document show a modal progress dialog (Esc cancels; a place shows its progress in the status bar only, so the view stays free to pan and zoom). `engine.execute`, `ui.menu.invoke`, `ui.dialog.confirm` and `app.save` still wait for the result by default; pass `"wait": false` to get `{job, pending: true}` at once, then poll `jobs.list` (`state`: running, done, failed, cancelled; `progress` 0–1; the result or error) and stop it with `jobs.cancel {job}`. A cancelled or failed job leaves the document unchanged; a folder Batch can already have written earlier output files. A cancelled Batch has `state: "cancelled"` with its partial `result` in `jobs.list`; a waiting control request receives `{"ok":false,"error":"cancelled","result":…}`, and an MCP call through the app bridge gets the error `cancelled; partial result: {…}`. A Batch already asked to stop, or past its last input, is listed with `reason: "finishing"`. A save that has started replacing its file can no longer be cancelled: `jobs.cancel` leaves it running and lists it in `notCancelled: [{job, reason: "committing"}]` (next to `cancelled`, the number of jobs it did cancel); the save then ends as done or failed like any other. Closing its document doesn't stop it either. While a job runs, commands that would edit its document fail with "… is still running on this document". `ui.inspect` reports `jobs` (running jobs, opening files, saving files, the file being placed). Set `PHOTOCRAFT_INLINE_JOBS=1` to run everything inline. +Long commands (every `filter.*`, `edit.contentAwareFill`, `edit.contentAwareScale`, `file.automate.photomerge`, `brush.presets.importAbr`), file opens, file places (`file.placeEmbedded` / `file.placeLinked`, File › Place and files dropped on the canvas: the file is read, decoded and resized on the worker, the layer is inserted when the job lands and Free Transform starts then) and interactive saves (File › Save, Save As and the TIFF Options continuation, #2017) run as background jobs in the desktop app: the window keeps drawing, the status bar shows progress with a Cancel button, and jobs that lock the active document show a modal progress dialog (Esc cancels; a place shows its progress in the status bar only, so the view stays free to pan and zoom). `engine.execute`, `ui.menu.invoke`, `ui.dialog.confirm` and `app.save` still wait for the result by default; pass `"wait": false` to get `{job, pending: true}` at once, then poll `jobs.list` (`state`: running, done, failed, cancelled; `progress` 0–1; the result or error) and stop it with `jobs.cancel {job}`. A cancelled or failed job leaves the document unchanged; a folder Batch can already have written earlier output files. A cancelled Batch has `state: "cancelled"` with its partial `result` in `jobs.list`; a waiting control request receives `{"ok":false,"error":"cancelled","result":…}`, and an MCP call through the app bridge gets the error `cancelled; partial result: {…}`. A Batch already asked to stop, or past its last input, is listed with `reason: "finishing"`. A save that has started replacing its file can no longer be cancelled: `jobs.cancel` leaves it running and lists it in `notCancelled: [{job, reason: "committing"}]` (next to `cancelled`, the number of jobs it did cancel); the save then ends as done or failed like any other. Closing its document doesn't stop it either. While a job runs, commands that would edit its document fail with "… is still running on this document". `ui.inspect` reports `jobs` (running jobs, opening files, saving files, the file being placed). Set `PHOTOCRAFT_INLINE_JOBS=1` to run everything inline. The web build has no threads: there a file place is the only job, and it runs a few milliseconds per frame on the UI thread (the same progress, cancel and result); every other command is inline. ## Preferences diff --git a/docs/development.md b/docs/development.md index 18a7610ee0..1fa912575f 100644 --- a/docs/development.md +++ b/docs/development.md @@ -113,6 +113,8 @@ the opted-in test; an unset variable leaves the ordinary behavior tests availabl After review, remove only the two generated PNGs and their owned temporary directory. The same Rust test and variable work on Windows with the native shell's environment-variable syntax. +**GPU tests without a GPU.** Linux CI uses the shared `craft-common-actions` gate with Mesa's Vulkan driver installed. After the regular gate, `python3 scripts/ci-gpu-lavapipe.py` reruns the configured `gpu` group with `WGPU_BACKEND=vulkan` and the lavapipe ICD explicitly selected. It requires Vulkan parity evidence and rejects authored skips, except the documented software-adapter timing exceptions. It reads the filter from `.config/nextest.toml`, so no second filter needs maintaining. To run locally on Linux, install `mesa-vulkan-drivers libvulkan1` and run the same script. Windows uses WARP; this check does not certify Windows skip coverage. + ## Fonts (craft-fonts) Font assets shared by the Crafting Apps live in [storytold/craft-fonts](https://github.com/storytold/craft-fonts), never in this repo: don't commit font files here (Inter and JetBrains Mono in `assets/fonts/` are the only exceptions; new fonts go to craft-fonts). @@ -623,6 +625,39 @@ How the web shell (`apps/photocraft-web/src/web.rs`) differs from desktop: - **No control server:** browsers can't listen on TCP. To automate the web build, drive headless Chrome with `--remote-debugging-port`. `Page.setInterceptFileChooserDialog` plus `DOM.setFileInputFiles` covers Open, `Input.dispatchDragEvent` with `files` covers drops, and `Browser.setDownloadBehavior` captures downloads. - Headless Chrome on macOS (`--headless=new --enable-unsafe-webgpu`) gets a real WebGPU adapter. +### Jobs without threads (Place, #10031) + +wasm32-unknown-unknown has no threads, so on the web `Session::start` runs every command inline +except Place, which is a job that `poll_jobs` steps on the UI thread (a *cooperative* job): + +- `jobs::StepWork` is work that runs a slice at a time; `jobs::run_stepped` / `Session::start_job_stepped` + register it. With `Session::cooperative_jobs()` (always on for wasm, `set_cooperative_jobs(true)` + runs the same path on a desktop, for tests) each `poll_jobs` gives one such job about 8 ms + (`set_job_step_budget`; zero means one unit of work per poll, which tests use to count polls + without depending on the machine). Elsewhere the same work runs to the end on a worker thread, + or inline under `execute`, and gives the same result. +- `file_cmds::PlaceSteps` cuts a place into units: a plain PNG decodes a row at a time + (`photocraft_codecs::PngDecodeRows`, through `photocraft_io::PngImport`) and, when its rows come + in final order, each group of 256 rows becomes tiles at once and is dropped, as the one-shot import + does, so the decoded image never exists beside the layer (a 100 MP RGBA8 file would cost about 400 MB + more, too much for a browser tab). An interlaced, animated or oriented PNG is decoded whole, turned + upright in bands of 64 rows (`photocraft_codecs::OrientSteps`) and copied into tiles in bands; any + other format decodes in one unit. The flatten runs in bands of four tiles (`composite_to_surface`, + the tiles moved into the result), the resize in bands of 64 output rows + (`photocraft_algo::resample::ResizeSteps`, the code `resize_surface` runs), and moving the pixels to + where they land a tile at a time (`photocraft_raster::TranslateSteps`, the code + `Surface::translated` runs). Without a cooperative session each stage is one unit and a desktop + keeps its parallel flatten, resize and translate. +- The UI places through a job when `background_jobs || session.cooperative_jobs()` + (`jobs_ui::place_in_background`); `background_jobs` stays off on the web, since save, print and + the other commands gated on it need threads. The status bar shows the progress and Esc cancels. +- Measure it with `RAYON_NUM_THREADS=1 cargo test --release -p photocraft-engine --test + place_steps_measure -- --ignored --nocapture` (a synthetic 4096×4096 RGBA PNG into a + 3600×4200 document). 2026-10-29, one core: 4096 row units of 0.1 ms, flatten bands 5.3 ms, + resize bands 5.8 ms; the units that cannot be cut up are opening the PNG (6 ms), image to document + (10 ms) and translate, layer and apply (13 ms, once 23 ms); 95 polls, 950 ms in all, as long as the + inline place (1000 ms). Wasm is slower than a desktop core, so check a release web build too. + ## Indexed Color timings @@ -643,7 +678,8 @@ On native desktop sessions, Indexed Color live previews calculate and flatten on The last preview remains visible while dragging; intermediate settings are coalesced, and only a result matching the current document revision, active layer, dialog and parameters is uploaded. GPU upload/display conversion still run on the UI thread. Web and `PHOTOCRAFT_INLINE_JOBS=1` -sessions retain synchronous previews. Closing the dialog invalidates its result; an already +sessions retain synchronous previews (the web has no threads; only Place is stepped there, see +Jobs without threads). Closing the dialog invalidates its result; an already running calculation finishes without editing the session. ## Offscreen UI snapshots (no window) @@ -744,8 +780,20 @@ clipped. Native desktop platforms use an adaptive memory policy evaluated against currently available physical RAM (excluding swap) and, where measurable, system commit headroom: -- **Hard budget (H)** for known RAM: $\min(75\% \text{ RAM}, \text{RAM} - 1 \text{ GiB}, \text{commit headroom} - 512 \text{ MiB}, \text{aggregate address-space cap})$. -- **Soft budget (S)**: $\min(50\% \text{ RAM}, 8 \text{ GiB}, H)$. +- **Hard budget (H)** for known memory, with A the available RAM and C the commit headroom: + $\min(\lfloor 3A/4 \rfloor, A - 256 \text{ MiB}, C - r(C), \text{aggregate address-space cap})$, where the + commit reserve $r(C) = \min(\max(C/4, 256 \text{ MiB}), 512 \text{ MiB})$. An approved import therefore + always leaves at least `LOW_MEMORY_RESERVE` (256 MiB) free. +- **Soft budget (S)**: $\min(A/2, 8 \text{ GiB}, \max(A - 1 \text{ GiB}, A/4), \max(C - 512 \text{ MiB}, C/4), H)$ + (the commit term only where C is known). +- The low-memory band: with more than 4/3 GiB free, automatic opening is unchanged (it leaves + 1 GiB free). Below that, up to a quarter of the free RAM opens automatically and the rest goes + to approval, up to $\min(3A/4, A - 256 \text{ MiB})$. The commit reserve shrinks from a flat + 512 MiB to a quarter of the headroom with a 256 MiB floor. At or below 256 MiB of either + measurement there is no room and every file is refused. For example 1 GiB free gives S = 256 MiB + and H = 768 MiB; 512 MiB free gives S = 128 MiB and H = 256 MiB. +- Scratch-disk credit (see `docs/scratch-disks.md`) is added on top of these limits before a + caller's limit applies; non-spillable memory stays against RAM alone. - Files requiring $\le S$ are admitted automatically. - Files requiring $S < E \le H$ prompt for explicit one-shot user confirmation ("Open anyway") in the UI. Headless callers default to no interactive dialog and require explicit per-invocation opt-in: - Engine commands: `file.openAs` and `file.placeEmbedded` take `approveHighMemory: bool` (default `false`); `file.approveMemory` takes `{"id": u64, "approve": bool = true}`. @@ -756,8 +804,8 @@ physical RAM (excluding swap) and, where measurable, system commit headroom: - Files requiring $> H$ are refused and cannot be overridden. - When available RAM is unknown (an unsupported platform or a failed provider), native automatic admission is 2 GiB, not 8 GiB: - $S = \min(2 \text{ GiB}, H)$, where $H$ is the aggregate address-space cap - (`native_platform_cap`), reduced by known commit headroom. Estimates above $S$ need the same + $S = \min(2 \text{ GiB}, \max(C - 512 \text{ MiB}, C/4), H)$, where $H$ is the aggregate + address-space cap (`native_platform_cap`), reduced by known commit headroom as above. Estimates above $S$ need the same explicit, per-invocation approval as known-memory estimates above $S$, and approval is possible up to $H$. Estimates above 8 GiB remain approvable; `MemoryBudget::warning_threshold` and `MemoryBudget::requires_uncertainty_warning` let callers show the uncertain-capacity warning. @@ -804,7 +852,9 @@ physical RAM (excluding swap) and, where measurable, system commit headroom: is `memsw limit - memory limit - swap already used`, and those allowances are combined separately from RAM headroom. A memory cgroup whose mount, path, membership, limit or usage cannot be read, or whose membership file is malformed or empty, fails closed (available memory - is treated as zero) rather than falling back to unrestricted host RAM. + is treated as zero, `Some(0)`) rather than falling back to unrestricted host RAM. That reading + gives H = 0 from the formula, so it stays refused (only a credited tile share can pass), and + the refusal says PhotoCraft measured no free memory or could not read the system's memory limit. - Applications can lower the admission threshold with `ImportOptions::psd_max_pixel_bytes`; explicit caller limits may lower admission, never bypass the hard boundary. - Concurrent PSD decodes are serialized using a process-wide, cancellation-aware admission gate, with nested decodes sharing the enclosing allowance. - A pending high-memory approval is bound to one source and one estimate. The engine keeps at @@ -821,8 +871,13 @@ physical RAM (excluding swap) and, where measurable, system commit headroom: for approval. Windows has no stable file-index API in `std`, so its identity is the length and modification time (a different file with both preserved is not distinguished there). The `file.approveMemory` permission is one-shot and is not journaled or recorded in an action. A - refusal above the hard ceiling is the typed `PsdHardBudget` error (name, required, limit), not - a string, and it releases the queued source. + refusal above the hard ceiling is the typed `PsdHardBudget` error (name, required, limit, + `free_memory`), not a string, and it releases the queued source. Its message says where the + limit comes from: the computer's memory on 64-bit desktop; the web build names its fixed cap; + on 32-bit desktop the limit may be either, so the message mentions the 2 GiB cap and that the + 64-bit build may open the file. Those two also link the releases page. Sizes appear in GiB + or MiB next to the exact bytes. When measured memory set the limit, the message also gives + the free-memory reading and advises closing other apps. - A layered TIFF (Photoshop layer data in tags 37724/34377) is admitted by the same policy before its composite is decoded. The page's tags are read into the PSD model first, without pixels; then that model's layer/workspace estimate, the decoded composite and its @@ -847,15 +902,26 @@ physical RAM (excluding swap) and, where measurable, system commit headroom: opened without Photoshop layers. Headless RPC and MCP report approval-required memory errors with byte counts (`required`, -`softLimit`, `hardLimit`, and `availableRam` when known). A hard-budget refusal reports only -`required` and `hardLimit`: no approval can raise that ceiling, so there is no soft limit or -capacity to act on. This holds for `doc.open` and `doc.place` and for the MCP `doc_open` and +`softLimit`, `hardLimit`, and `availableRam` when known); here `availableRam` means available +physical RAM. A hard-budget refusal reports +`required` and `hardLimit`, plus `available` and `availableRam` when measured free memory set the +limit (the typed `free_memory` field). Both fields then contain the smaller of available RAM and +commit headroom (or the one measurement available), so `availableRam` can represent commit +headroom rather than physical RAM. There is never a soft limit, because no approval can raise +that ceiling. A limit set by the caller, the platform cap, or an unknown capacity carries no +free-memory figure. This holds for `doc.open` and `doc.place` and for the MCP `doc_open` and `doc_place` tools, including a refusal from `file.openAs`/`file.placeEmbedded` reached through a command. GUI automation imports currently cross a service boundary that returns string errors. +When measured free memory set the limit, the refusal message gives the free amount and ends with +"Close other apps and try again"; a reading of zero says PhotoCraft measured no free memory or +could not read the system's memory limit. The approval prompt warns that PhotoCraft may run out of +memory when opening the file would leave less than 1 GiB of the measured free RAM +(`LOW_MEMORY_WARNING_MARGIN`). + An import exceeding the hard budget returns `IoError::PsdImportBudget` with the estimated -and allowed byte counts; imports requiring confirmation return `IoError::PsdApprovalRequired` -when unapproved. Damaged-file recovery never bypasses these memory guards. The legacy +and allowed byte counts (and `free_memory` when measured memory set the limit); imports requiring +confirmation return `IoError::PsdApprovalRequired` when unapproved. Damaged-file recovery never bypasses these memory guards. The legacy `psd_to_document` conversion APIs cannot return an error, so they return an empty document and an explicit warning on preflight refusal. Layer and mask pixel allocation failures also fail ordinary imports instead of opening partial content. @@ -963,23 +1029,27 @@ cargo xtask psd-write-oracle xtask/psd-write-oracle/starter.json corpus/photosho ``` The output directory must not exist. It contains `report.json`, `manifest.json`, a -candidate PSD per successful export, and CLI stdout/stderr for diagnosis. A failed -case does not prevent the other cases from running, but the command exits nonzero. +candidate PSD per successful export, a `base.psd` copy of the hashed base bytes, and +CLI stdout/stderr for diagnosis. The CLI runs on that copy, so it never opens the corpus. +A failed case does not prevent the other cases from running, but the command exits nonzero. +Once an export succeeded, a failing case keeps its candidate in the manifest, with an +`exported file: ...` error if reopening or checking it failed. The manifest records the checkout revision, whether tracked files were modified, the CLI binary hash, recipe hash, corpus revision and candidate hashes (revision and dirty state are `unknown` outside a git checkout). The checkout revision does not establish where a supplied binary was built; use a binary built from that revision and preserve the CI run's provenance. Missing fonts and other warnings -are recorded. The runner never overwrites its input PSDs. +are recorded. The runner never overwrites or opens its input PSDs beyond hashing them. -Recipes are versioned JSON (`version` must be `1`; any other value is rejected). Unknown keys anywhere in a recipe are an error, so a typo never passes as "nothing to check". A case has a unique `id`, a relative `base` PSD path, +Recipes are versioned JSON (`version` must be `1`; any other value is rejected). Unknown keys anywhere in a recipe are an error, so a typo never passes as "nothing to check". A case has an `id` that is unique ignoring letter case (it names the case's output directory), a relative `base` PSD path, its `base_sha256`, a `target` with layer `kind` and optional `name`, and `checks`. An optional list of `commands` contains a `command` id and `params`; the runner supplies the resolved `layer` id. Targets that match zero or multiple layers fail. -Only `type.*` and `layer.layerStyle.*` commands are accepted. Checks use JSON pointers +Only `type.*` and `layer.layerStyle.*` commands are accepted, except `layer.layerStyle.contours.*`, +which edit the contour library rather than the document and can read or write any file. Checks use JSON pointers relative to the inspected layer: `unchanged` requires a present, equal value before and after; `equals` checks the exported value; `changed_to` requires the exported -value to match and differ from the base. Every edited case needs a `changed_to` check. +value to match and differ from the base. Numbers compare by exact value, so `17` equals `17.0`. Every edited case needs a `changed_to` check. Every check is run and reported (not only the first failure), each result naming the layer and the property path. See the starter recipes for examples. Regenerate hashes when deliberately changing the corpus pin, and review them against `xtask/photoshop-corpus.sha256`. diff --git a/docs/hardware-parity.md b/docs/hardware-parity.md index 0fe3e98549..7ed3d1e71e 100644 --- a/docs/hardware-parity.md +++ b/docs/hardware-parity.md @@ -1,6 +1,6 @@ # Hardware parity -> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-28 · **Change:** minor (GPU compositor startup builds in the background, measurements pending; Camera Raw's preview develops its per-pixel stages on the GPU) · **Target:** Adobe Photoshop 2026 +> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-05 · **Change:** minor (optional WinTab backend on Windows: pressure and the eraser end; tilt on devices with orientation axes; rotation only with a pen and driver that report twist, with Windows Ink off) · **Target:** Adobe Photoshop 2026 Each hardware feature Photoshop 2026 (27.11.0) uses, per platform, against PhotoCraft. Photoshop side: its bundle (Metal and OpenCL paths, "Precise Color Management for HDR Display" and EDR @@ -9,7 +9,9 @@ strings, Touch Bar resources, pen pressure/tilt strings) and Adobe's GPU FAQ. Ph `engine/src/display_color.rs`, `apps/photocraft/src/monitor_profile.rs`. **Summary (estimated):** ~50% ready. GPU compositing and colour-managed display are solid; pen -input is uneven by platform (Windows lacks tilt/rotation, Wayland is broken) and there is no HDR +input is uneven by platform (the default Windows Ink path lacks tilt and rotation, Wayland is +broken; the opt-in WinTab path on Windows supplies tilt only on devices that report orientation +axes, and rotation only when the pen and driver report twist) and there is no HDR output. Remaining: 80–150 h (gap G12). Human: tablets (Wacom, XP-Pen, Huion) on each OS and an HDR display to verify. @@ -31,12 +33,18 @@ HDR display to verify. | Feature | Photoshop | macOS | Windows | Linux X11 | Linux Wayland | Web | |---|---|---|---|---|---|---| | Pressure | yes | yes (AppKit monitor) | yes (WM_POINTER), jumpy (#2046) | yes (XInput2) | via Xwayland only; GNOME 50 pen doesn't click (#2622), KDE (#2297) | yes | -| Tilt | yes | yes | **no** | yes | no | yes | -| Barrel rotation | yes | yes (not applied to tip angle, #1301) | no | partial | no | yes (twist) | -| Eraser end | yes | yes | no (#2285) | partial | no | partial | -| WinTab driver mode | yes | – | no | – | – | – | +| Tilt | yes | yes | **no** (WinTab: with orientation axes, opt-in) | yes | no | yes | +| Barrel rotation | yes | yes (not applied to tip angle, #1301) | no (WinTab: with a twist-reporting pen and driver, opt-in) | partial | no | yes (twist) | +| Eraser end | yes | yes | no (#2285); WinTab: yes (opt-in) | partial | no | partial | +| WinTab driver mode | yes | – | yes (opt-in; Windows Ink off) | – | – | – | | Pressure curve | Windows Ink / driver | global curve in Preferences (#2195) | same | same | same | same | +Windows: the opt-in WinTab backend (`tools.tabletInput = "winTab"`, with Windows Ink turned off +in the tablet utility) supplies pressure and the eraser end, tilt only on devices that report +orientation axes, and rotation only when the pen and driver report twist (pressure-only devices +get neutral tilt and rotation). The default Windows Ink path is unchanged and still lacks tilt, +rotation and the eraser. + ## Displays and colour | Feature | Photoshop | PhotoCraft | Status | @@ -63,6 +71,7 @@ HDR display to verify. | Date | Change | Summary | |---|---|---| +| 2026-11-05 | minor | Optional WinTab driver mode on Windows: pressure and eraser; tilt with orientation axes; rotation with a twist-reporting pen, with Windows Ink off | | 2026-10-28 | minor | Build GPU compositor pipelines in the background; benchmark baseline pending (#9157) | | 2026-10-10 | major | First version | | 2026-10-17 | minor | GPU filters: Camera Raw's preview, per-pixel stages (#6916 step 1) | diff --git a/docs/localization-az.md b/docs/localization-az.md new file mode 100644 index 0000000000..2ff55fe0f2 --- /dev/null +++ b/docs/localization-az.md @@ -0,0 +1,106 @@ +# Azerbaijani UI catalog + +Azerbaijani (Latin script) is offered as **Azərbaycanca** (`az`). Regional preferences and +system locales such as `az-AZ`, `az_Latn_AZ.UTF-8` and `AZ-LATN-AZ` use the existing locale +matcher. English remains the source and fallback. The runtime registry has 29 languages +including English. + +The catalog contains 4,606 entries, including 32 plural messages, 118 contextual entries and +eight command-ID overrides. The 2026-11-05 merge added the 29 new OpenType menu keys from +current `main`. The follow-up also adds five frame conversion/tool labels; all menu labels and the eight intentional command-ID overrides are checked. +The 2026-11-01 source scan covered 2,204/2,204 keys. Catalog completeness does not establish linguistic +quality or include untranslated engine errors. + +## Terminology and provenance + +| English | Azerbaijani | +|---|---| +| Layer | Qat | +| Layer mask | Qat maskası | +| Stroke (outline) | Kontur | +| Brush stroke | Fırça izi | +| Crop | Kəsmə | +| Rulers | Xətkeşlər | +| Path | Yol | +| Artboard | İş lövhəsi | +| Preset | Hazır ayar | +| Light (Camera Raw) | İşıq | +| Light (font weight) | İncə | + +Google Translate supplied drafts of PhotoCraft's English labels. Core terminology, contexts +and plural messages were edited with OpenAI Codex. No proprietary localization resources were +used. The translations are MIT OR Apache-2.0, with attribution in `ATTRIBUTION.md` and +`crates/ui-egui/src/i18n/LICENSE-translations.txt`. + +**Native Azerbaijani speaker review is requested before merge and has not been received.** +Please check the terminology, long help text, contextual meanings, counted nouns and the +natural wording of the catalog. Automated checks and AI-assisted edits do not replace that review. + +## UI case-conversion audit (2026-11-06) + +The catalog and rendered labels retain their original spelling, including `ƏəĞğIıİiÖöŞşÜüÇç`. +Search and access-key comparisons use the selected UI language. Azerbaijani and Turkish use +ICU4X case mapping: `i` ↔ `İ` and `ı` ↔ `I`, including contextual combining-dot handling. +English command names, menu paths used as English aliases and machine IDs keep English casing. + +| UI path | Handling | +|---|---| +| Help menu search (`menus/search.rs`) | Localized labels and paths use their language; English aliases are ranked separately. | +| Command palette (`dialogs/palette.rs`) | Localized fuzzy and exact matches use their language; English aliases remain available. | +| Preferences and Keyboard Shortcuts (`prefs/prefs_ui/`) | Translated labels and section titles use localized casing; English schema paths, IDs and shortcut syntax stay invariant. | +| Dropdown typing (`widgets/type_ahead.rs`) | Labels and typed prefixes use localized casing; raw prefix text is retained so a following combining dot can complete an I. | +| Menu and dialog access keys (`menus/menu_keys.rs`, `dialogs/discard_ui.rs`) | Compare displayed letters using localized uppercase. Only ASCII key codes are assigned; an English key suffix is shown when required. Labels are not rewritten. | +| A menu key over the zoom field (`canvas/zoom_field.rs`) | Consume the text emitted by the logical I key for either Turkic keyboard letter, preventing it from leaking into the zoom field. | + +The audit searched `ui-egui` and the native/web app shells for lower/uppercase operations, +case-insensitive comparisons and mnemonic handling. English schema/command humanization runs +before translation and remains language-independent. Native macOS menu labels are passed through +verbatim (only the mnemonic escape character is escaped). Language-picker sort keys are a fixed +accent-folded ordering of native names. File extensions, color/format tokens, font metadata, +and user-provided document/layer/preset names are not catalog translations and retain their +existing matching/identity rules. This does not audit third-party widget internals or document-text casing. + +References: [Unicode special casing](https://www.unicode.org/faq/casemap_charprop.html), +[ICU4X case mapper](https://docs.rs/icu_casemap/2.3.0/icu_casemap/struct.CaseMapperBorrowed.html). +## Plurals + +The existing one/other integer rule selects `one` at 1 and `other` at all other `u64` counts. +Counted nouns remain singular in both forms: `1 qat`, `20 qat`. Tests include zero, teens, +hundreds, thousands and `u64::MAX`. + +## Validation + +Current catalog scan (2026-11-06, merged main `7904eee76`): 4,606 entries, all 669 canonical +menu keys and eight intentional command-ID overrides. Current source coverage is +2,268/2,358 keys (96.18%); 90 newer strings fall back to English. The merge added six current +menu labels so the existing menu coverage regression remains complete. + +Current case-conversion regressions exercise the actual shortcut grid and dropdown input, +menu underline layout, localized/English search, preference matching, combining dots and +the two distinct I pairs. Executed on Windows x64 with Rust 1.99.1/MSVC: + +- All 15 Azerbaijani-focused checks passed: the six original language checks plus nine + casing/input regressions. The Turkic helper and mnemonic layout also test Turkish. +- All eight additional regression groups passed: 40 i18n unit checks, 22 menu-key checks, + four Help-search checks, eight palette checks, four dropdown checks, 69 discard-dialog + checks, six zoom-field checks and one existing Preferences-search check (154 checks; + some overlap with the Azerbaijani-focused run). +- Formatting, Clippy (`--all-targets -- -D warnings`), 31-crate layering, wasm (24 crates + plus optional HEIF) and the offscreen snapshot build passed. +- Visually inspected before/after CPU captures at 1440 × 900 logical pixels and 1.5× scale. + Before the fix, `interfeys` found no Preferences section and `ŞƏKİL ÖLÇÜSÜ` found no + shortcut row. After the fix, they show Interface settings and Image Size respectively. +- The full UI gate was rerun with one test thread and is **not green**: unit and integration + processes again exited `0xc0000005` at `omitting_an_occluded_checker_preserves_cpu_canvas_pixels` + and `batch_and_processor_real_controls_write_the_chosen_webp_quality`, the same points + observed on 2026-11-05. The example test and doctest targets passed. + +### Earlier full-suite limitations + +On 2026-11-05 the six Azerbaijani regressions, 40 i18n unit checks, formatting, Clippy, +layering, wasm and snapshot build passed. Editor/preferences CPU captures were visually +inspected. The complete i18n subset had 61 passed and eight CJK/Arabic missing-glyph failures +without the optional craft-fonts input. The full UI unit/integration processes exited +`0xc0000005` (`STATUS_ACCESS_VIOLATION`) even with one test thread. These are historical +results, not a successful full-suite validation of the current revision. Native-speaker +review remains pending. CPU captures do not establish hardware-GPU or native window/input acceptance. diff --git a/docs/localization-parity.md b/docs/localization-parity.md index 88c720bb6d..555aff508f 100644 --- a/docs/localization-parity.md +++ b/docs/localization-parity.md @@ -1,6 +1,6 @@ # Localization parity -> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-30 · **Change:** minor (Bosnian UI catalog; previously minor: Swedish, Finnish, Danish and Norwegian Bokmål UI catalogs; previously minor: Arabic UI catalog) · **Target:** Adobe Photoshop 2026 +> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-11-06 · **Change:** minor (Azerbaijani UI catalog merged with current languages; native review pending; Bosnian UI catalog; previously minor: Swedish, Finnish, Danish and Norwegian Bokmål UI catalogs; previously minor: Arabic UI catalog) · **Target:** Adobe Photoshop 2026 Per-language status of PhotoCraft's UI. How catalogs work and how to add one: [`localization.md`](localization.md). Language notes: [Korean](localization-ko.md), [Spanish](localization-es.md), @@ -24,7 +24,7 @@ Vietnamese UI; Arabic and Hebrew users get English "Middle East" builds with the composer, and its text engine handles RTL, Devanagari and Indic scripts. **Summary.** 7 of the 12 key languages at 100% of measured keys (status `partial` because of the -engine messages), 2 absent (Hindi, Vietnamese), plus 8 other languages. Weighted by +engine messages), 2 absent (Hindi, Vietnamese), plus 17 other registered languages. Weighted by speakers, ~55% ready. Remaining: 80–140 h, plus native-speaker review (recorded only for Italian, 2026-10-12). @@ -47,11 +47,13 @@ speakers, ~55% ready. Remaining: 80–140 h, plus native-speaker review (recorde ## Other shipped languages -8 more, each at 1,608 / 1,608 measured keys, status `partial` for the same reason: Traditional +17 registered languages are outside the twelve-language table. The following eight have +1,608 / 1,608 measured keys, status `partial` for the same reason: Traditional Chinese `zh-hant` (2,329 rows), Russian `ru` (4,227 keys; also every dynamic label the other catalogs translate, [notes](localization-ru.md)), Ukrainian `uk` (3,375), Czech `cs` (3,522), Polish `pl` (3,366), Greek `el` (3,481), Dutch `nl` (3,568), Italian `it` (4,164; also every dynamic label the -other catalogs translate; reviewed by a native speaker, [notes](localization-it.md)). Turkish `tr` +other catalogs translate; reviewed by a native speaker, [notes](localization-it.md)). Hungarian +`hu` (4,347 rows) is also registered. Turkish `tr` (3,731 rows) also covers every measured key. Serbian `sr` (4,022 rows, Latin script, Ekavian, added 2026-10-12) covers every measured key and the union of the other catalogs' dynamic labels; its one/few/many plurals reuse the Russian rule. Swedish `sv` (4,552 rows, added 2026-10-28) covers every measured key and the @@ -65,6 +67,13 @@ Ijekavian, added 2026-10-30) covers the same keys; its one/few/other plurals reu rule, and Cyrillic `bs` locales read it too. It is AI-assisted, shares its wording with storytold/craft-i18n `locales/bs/`, and has not had a native-speaker review yet. +Azerbaijani `az` (Latin script) brings the runtime registry to 29 languages including +English. Its catalog has 4,606 entries, including the initial dynamic-label key union, current OpenType menus and five frame labels +and 32 plural messages. It uses one/other integer forms, with singular counted nouns. +Complete menu keys, regional locale matching and English fallback are covered by tests. +Native-speaker review remains pending; validation results and limits are recorded in the +[language notes](localization-az.md). Readiness estimates and G13 remain unchanged. + Czech UI follow-up (2026-10-11): status and notice wrappers, hardware labels, brush and transform accessibility names, rasterization prompts, profile mismatch messages and preset counts now translate at their render/assignment sites. Navigator's zoom level uses a context @@ -89,6 +98,9 @@ engine localization or native review is complete. | Date | Change | Summary | |---|---|---| +| 2026-11-06 | minor | Azerbaijani/Turkish UI search, dropdown prefixes and access keys use locale-aware I casing; 4,606 Azerbaijani entries and current menu coverage; native review requested and pending | +| 2026-11-05 | minor | Preserved Bosnian while merging current main; 29 registered languages, 17 outside the table; Azerbaijani has 4,606 entries, including 29 current OpenType menu keys and checks for all eight command-ID overrides; native review pending | +| 2026-11-01 | minor | Azerbaijani UI catalog, 4,566 entries; regional tags and one/other plurals; PR narrowed to Azerbaijani, 28 registered languages and 16 outside the table; native review pending; validation limits in the language notes; readiness estimates unchanged | | 2026-10-10 | major | First version, measured from the catalogs with the `i18n-coverage` rules | | 2026-10-10 | minor | Right-to-left shell layout (menu bar, title, options and status bars, toolbox and dock sides) | | 2026-10-11 | minor | Czech dynamic status/notice and hardware text, render labels and Navigator zoom context; engine messages remain English | diff --git a/docs/localization.md b/docs/localization.md index b846fcaa5b..be4122d3c2 100644 --- a/docs/localization.md +++ b/docs/localization.md @@ -27,6 +27,8 @@ contextual, command-ID and plural translations; missing entries fall back to Eng | Nederlands | `nl` | one / other | | Magyar | `hu` | one form | | Tiếng Việt | `vi` | one form | +| ไทย | `th` | one form | +| தமிழ் | `ta` | one / other | | Srpski | `sr` | one / few / many (teens use many) | | Bosanski | `bs` | one / few / other (teens use other) | | हिन्दी | `hi` | one / other | @@ -34,6 +36,16 @@ contextual, command-ID and plural translations; missing entries fall back to Eng | Suomi | `fi` | one / other (partitive after every count but 1) | | Dansk | `da` | one / other | | Norsk bokmål | `nb` | one / other | +| עברית | `he` | one / other | +| اردو | `ur` | one / other | +| Română | `ro` | one / few (0, 2–19, 101–119 …) / other (20–100, 120 …) | +| Azərbaycanca | `az` | one (1) / other (all other integer counts) | + +Azerbaijani (`az`, Latin script) is registered with a complete menu catalog. Regional tags +such as `az-AZ` and `az-Latn-AZ` select it. The catalog includes the existing catalogs' +dynamic labels, contextual translations and two integer plural forms. Machine-assisted +drafts have edited core terminology; native-speaker review is pending. See +[`localization-az.md`](localization-az.md) for terminology, provenance and validation limits. Languages registered with `complete_menus` cover the current menu labels, `tl!` literals, blend mode names, and generated preference labels. A string a catalog lacks shows in English: @@ -44,6 +56,10 @@ keys. `complete_menus` remains false while generated/dynamic long-tail labels ar review. This does not include every engine error or status message: those remain English, as do automation command IDs and user-provided document, layer and preset names. +UI search and access-key comparisons use locale-aware dotted/dotless I rules for Azerbaijani +and Turkish. English command aliases remain searchable using English casing. See the +[Azerbaijani case-conversion audit](localization-az.md#ui-case-conversion-audit-2026-11-06). + ## Switch without restarting Open **Edit > Preferences > Interface > Language** and choose a language. The Preferences diff --git a/docs/parity-checklist.md b/docs/parity-checklist.md index 2bf3a70644..60bdfcabd1 100644 --- a/docs/parity-checklist.md +++ b/docs/parity-checklist.md @@ -2,7 +2,7 @@ Generated by `cargo xtask parity` from `crates/ui-egui/src/menu_catalog.rs` (Photoshop's menu tree) and the live command registry. Do not edit by hand. -**660 of 660 menu items live (100.0%).** +**661 of 661 menu items live (100.0%).** | Menu | Live | Total | % | |---|---:|---:|---:| @@ -14,6 +14,6 @@ Generated by `cargo xtask parity` from `crates/ui-egui/src/menu_catalog.rs` (Pho | Select | 25 | 25 | 100% | | Filter | 75 | 75 | 100% | | View | 76 | 76 | 100% | -| Window | 61 | 61 | 100% | +| Window | 62 | 62 | 100% | ## Not yet implemented diff --git a/docs/scorecard.md b/docs/scorecard.md index dfba8d2e32..a3158616b2 100644 --- a/docs/scorecard.md +++ b/docs/scorecard.md @@ -11,7 +11,7 @@ Generated by `cargo xtask scorecard` from `perf/budgets.toml`, `perf/baseline.js | [Tools](#tools) | 36 | 9 | 0 | | | [Workspace and UI](#workspace-and-ui) | 15 | 6 | 2 | settings that do nothing: 10 of 192 (target 0) | | [Type](#type) | 5 | 5 | 0 | | -| [Automation](#automation) | 5 | 3 | 3 | 660 of 660 menu items live (100.0%) | +| [Automation](#automation) | 5 | 3 | 3 | 661 of 661 menu items live (100.0%) | | [Reliability](#reliability) | 5 | 2 | 0 | never-crash lints on 30 of 30 crates; panic_hunt present | | [Distribution](#distribution) | 5 | 5 | 1 | | | [Open bugs](#open-bugs) | 31 | 1 | 0 | | @@ -224,7 +224,7 @@ Unread: `general.color_picker`, `workspace.auto_show_hidden_panels`, `workspace. | UI-217-7 | Command palette shows recently run commands on an empty query | done | [#217](https://github.com/storytold/photocraft/issues/217) | palette.rs: note_recent from menus::invoke keeps the last 8 commands (dedup, newest first); an empty query lists them via recent_hits; the_palette_records_and_replays_recent_commands_on_an_empty_query covers record -> empty query -> replay | | UI-217-8 | Tool-specific canvas right-click menu; right-click spelling suggestions in text fields | partial | [#217](https://github.com/storytold/photocraft/issues/217) | paint_mouse.rs brush picker and canvas_tool_menu.rs selection actions; text_field_menu.rs gives every text field its right-click Undo/Cut/Copy/Paste/Delete/Select All menu (#2921); other tools missing; the Type tool's edit menu starts with spelling suggestions and Add to Dictionary over a misspelled word (#4370); over committed type the Type tool opens the type layer menu (#7324); Ignore / Ignore All, suggestions in the non-editing type menu and in generic text fields are not there yet | | UI-217-9 | UI scale presets 100/115/125/150/200 % through zoom_factor, remembered | done | [#217](https://github.com/storytold/photocraft/issues/217) | prefs::UiScale offers Auto plus 75 to 300 percent (17 presets: 75 to 125 in 5 % steps since #3222, then 150 to 300; more than the five this row lists); prefs_ui.rs display_scale resolves it (Auto follows the system scale, fractional and unscaled 4K included, #1072/#1278) and sync_display_scale applies it with ctx.set_zoom_factor. It is a preference, so it is remembered. The zoom_factor assert in input_tests.rs is about canvas zoom not scaling the interface, not about this setting | -| UI-217-10 | Appearance: animation toggle, canvas pattern toggle per theme, start-screen recents | partial | [#217](https://github.com/storytold/photocraft/issues/217) | interface.enableAnimations (prefs_ui.rs sync_animations, #3273) zeroes egui animation_time and scroll animation in both styles; the Home screen lists recent files (canvas.rs home_recent, #2691); the canvas dot pattern toggle is interface.showCanvasDots (#2264, global rather than per theme); interface.showHomeRecentFiles hides the Home screen recents (#4382) | +| UI-217-10 | Appearance: canvas pattern toggle per theme, start-screen recents | partial | [#217](https://github.com/storytold/photocraft/issues/217) | the Home screen lists recent files (canvas.rs home_recent, #2691); the canvas dot pattern toggle is interface.showCanvasDots (#2264, global rather than per theme); interface.showHomeRecentFiles hides the Home screen recents (#4382) | | UI-217-11 | Soft dark and soft light themes with picker previews; outlined knobs in light themes | done | [#217](https://github.com/storytold/photocraft/issues/217) | theme.rs ThemeKind has fourteen themes: the twelve earlier ones plus Soft Dark and Soft Light (low-contrast Studio-layout palettes, text at 4.5:1, selectable in Preferences with the existing theme-card previews, ui.set {theme}, Window > Theme); the light themes outline the slider knob with Tokens::knob_outline (dim text, at least 3:1 against dock, card and chrome; #7927) | | UI-217-12 | Save custom New Document presets; a real Recent category | done | [#217](https://github.com/storytold/photocraft/issues/217) | document_preset_cmds.rs and new_doc_ui.rs: named presets save/select/delete through preferences; Recent lists Clipboard, the last 20 documents created in the dialog (document.recent.*, persisted with the presets, newest first, deduplicated) and the uncovered defaults (#3131); created_documents_fill_the_recent_category | | UI-217-13 | Numeric fields accept arithmetic and units; scrubby labels; double-click resets a slider | done | [#217](https://github.com/storytold/photocraft/issues/217) | widgets::value_field: arithmetic plus units (1in, 5mm, 72pt, 50%) converted at the document resolution (#3099); widgets::scrub_label makes options-bar, slider-row and Character labels scrubby (Shift x10, Alt fine); slider rows with a known default reset on double-click | @@ -256,7 +256,7 @@ Unread: `general.color_picker`, `workspace.auto_show_hidden_panels`, `workspace. ## Automation -Menu wiring (`docs/parity-checklist.md`): 660 of 660 menu items live (100.0%). This counts dispatch, not behaviour. +Menu wiring (`docs/parity-checklist.md`): 661 of 661 menu items live (100.0%). This counts dispatch, not behaviour. | Id | Target | Status | Issue | Note | |---|---|---|---|---| diff --git a/docs/scratch-disks.md b/docs/scratch-disks.md index acc784d242..f61289d7dd 100644 --- a/docs/scratch-disks.md +++ b/docs/scratch-disks.md @@ -33,8 +33,8 @@ until the file is dropped or the next sweep. The engine owns a shared, stoppable residency supervisor and joins it when its last session is dropped. `photocraft-raster` only exposes synchronous measurement and bounded eviction operations; standalone callers work without a background thread. `sysinfo` is native-only -with its default features disabled and only the `system` (RAM) and `disk` (free space) -features enabled. +with its default features disabled and only the `system` (RAM) feature enabled, plus `disk` on +macOS only, for purgeable space. An unavailable or full scratch disk never loses pixels or turns spilling off for the session. A failed scratch write or file creation, or a volume about to run low (free space is checked @@ -46,6 +46,29 @@ spilling resumes on its own once the directory is usable and has room, and chang preferences retries at once. Preferences → Scratch Disks → Scratch Size Limit (`scratchDisks.sizeLimitMb`, 0 = no limit; `spill::set_size_cap`) caps the scratch file: reaching it pauses spilling the same way, and the free-space reserve applies regardless. +Free space is asked of the scratch folder itself (`GetDiskFreeSpaceEx` on Windows, `statvfs` on +Unix), so a network folder (UNC path, mapped drive, NFS or CIFS mount) reports its own volume's +numbers, for both the large-import allowance and the reserve. On macOS a volume sysinfo lists +also counts its purgeable space. A mount that doesn't report its space (the query fails, or the +total is zero, as with some FUSE and WebDAV mounts) counts as unknown: the free-space reserve +doesn't apply, imports earn a scratch allowance only up to the Scratch Size Limit, and +Preferences → Scratch Disks and the hard-limit refusal say so, with the hint to set a limit or +use a local disk; `spill::stats` exposes it as `freeSpaceUnmeasured`. With neither free space nor +a size limit known, imports get no scratch allowance. Opening and measuring the folder happen +off every lock, on a short-lived thread (at most one per folder and question, 16 overall), and +callers wait up to 2 s for the answer. A query that doesn't answer in time counts as unknown +(warned as above) and, when the scratch file couldn't be opened, pauses spilling with "not +responding" and retries later. A system call can't be cancelled, so a stuck query keeps its +thread until the mount answers and no second one starts; a late answer applies if that folder is +still the current one and is discarded otherwise. The free-space check every 64 MB of growth never +waits, and with an engine session tile allocation leaves retries to its supervisor. The wait is on +the calling thread: changing Scratch Disks preferences or checking room for an import may wait up +to those 2 s once for a newly hung folder. A whole folder change waits at most 2 s in total, the new +folder first, with closing the old scratch file getting what is left; old files close on at most +four background threads, so one stuck close doesn't hold up the others. On macOS the purgeable-space lookup asks every mounted volume, so it runs +separately for at most 0.5 s, and an unrelated dead mount only loses the purgeable figure, never +the folder's own numbers. Limit: reading or writing tile pixels already spilled +to a hung folder still blocks the thread doing it; only opening and measuring are bounded. A failed read retains its backing extent and blocks editing, saving and exporting of the document that holds the tile until it is readable again; other open documents keep working. Each commit checks the health of its own document (before and after an edit, the document a diff --git a/docs/ui-design.md b/docs/ui-design.md index 54bbb30e26..292d5f6d4a 100644 --- a/docs/ui-design.md +++ b/docs/ui-design.md @@ -218,6 +218,7 @@ Languages shipped (`complete_menus` marks a catalog that covers every menu strin - French (`fr`), complete, with two plural forms (0 and 1 use the singular). - Czech (`cs`), complete, with three plural forms. - Indonesian (`id`), complete, with one plural form. +- Azerbaijani (`az`, Latin script), complete, with two integer plural forms (1 / other). - `tr(lang, s)` plain strings; `tr_ctx` when one English word needs different translations; `tr_id(lang, command_id, label)` for menu items (keyed by command id, English label as the diff --git a/docs/ui-parity.md b/docs/ui-parity.md index 58a5a317be..b84fd81419 100644 --- a/docs/ui-parity.md +++ b/docs/ui-parity.md @@ -1,6 +1,6 @@ # UI parity: tools, handles, modifiers and feel -> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-06 · **Change:** minor (History Options snapshot options, #3634; Channels panel menu: New Channel…, Duplicate Channel, Delete Channel, New Spot Channel…, Merge Spot Channel, Channel Options…, Split Channels, Merge Channels…, #11451; a Color Picker for another dialog's colour or the Crop shield shows the picked colour there before OK, #9886; Edit › Transform › Distort side handles move their edge, Perspective side handles skew, #10085; Ctrl + Alt + wheel zooms the canvas like ⌥ + wheel on Windows and Linux, where winit reports a held Ctrl as both ctrl and command, #10488; Layers panel filter by Color, #5898; 11 of 183 preferences do nothing: startup reads Graphics Adapter through the typed Performance section, so the scorecard audit sees it; Shape Fill/Stroke popover as Photoshop's, every colour swatch opens the full Color Picker with a live preview; the text and gradient stop Color Pickers show the picked colour on the canvas before OK, #5530; selected colour sets edit drawing, tone and supported filters; geometry remains open; a paragraph box that can't hold its text enlarges its lower-right handle and shows a black + in it, as the reference application; Free Transform of several selected layers, #6501; Path Operations fixes: the first component keeps combining, a hidden component selection is left alone, a dragged live shape stays live, a refused Pen draft ends once; Pen, Freeform Pen, Curvature Pen and Path Selection Path Operations menu, which changes selected components, `+` / `-` keys, #1397; the Pen carries on an open shape or vector mask path; selection-aware font controls, pending caret fonts and focused commit, plus direct font-name editing with a compact no-match message, #9338; New Group dialog and button modifiers; new layers go into an open active group and join a clipping mask, except that type, shapes, pastes and placed files go above a group whose lock would refuse them; Color panel Hue and Brightness Cube show the out-of-gamut ⚠ and nearest printable colour when the field is at least 53 pt tall, #8672; Art History Brush in the History group of the Y flyout, partial, TOOL-213-20, #1610; Histogram panel: Compact / Expanded / All Channels views, Luminosity and Colors channels, Source, range statistics, Uncached Refresh, live adjustment overlay, Cache Levels preference; the font menu opens on the current family, marked in the recent group when it is a recent one, #9160; Type options bar alignment and direction follow the target paragraph; a swatch click recolours selected type and shape layers with any tool, #9238; UI scale presets done: 105–120% steps, #3222; ⇧⌥ blend mode letters; painting tool Mode menus; ⌥ + an adjustment's shortcut reopens it at its last settings, ⌥⌘L / ⌥⌘M, #8900; Crop default mode: moving the image under the box snaps the frame's edges and centre, #8580; View › Extras hides the Move transform controls, #6699; adjustment clipping stays visible in compact Properties, #5231; Color panel modes from its panel menu, the same in every theme, UI-217-17, #6000; a picked colour recolours the selected type and shapes; Hand tool ⌘ / ⌥ are Zoom In / Zoom Out while held, #6434; the wheel steps value fields, #5473; a dragged guide shows its X or Y beside the pointer, #7680; Type options bar "T" icon scrubs the font size, #6437; Move tool: dragged selected pixels take their own outline as the selection, #7538; artboard backgrounds remain below child Free Transform previews; ⌫/Delete removes the selected smart filter, #4751; Object Finder foreground/background discrimination (#6548); rounded triangle, polygon and star corners; shape Fill/Stroke popovers accept hex RGB values, #6176; a guide let go over either ruler is removed, #6286; Crop rows corrected: saved crop presets and Delete Cropped Pixels off are done, #6562; marching ants in device pixels, #7489; Animated Zoom: holding the Zoom tool zooms continuously, #6210; shape Density and Feather, TOOL-214-12, #5846; Pen Auto Add/Delete on the path being drawn, #6140; Show Transform Controls frames every selected layer; guide keys and clicks; menu bar from the keyboard, #4988; Crop tool Content-Aware Fill; on-canvas corner radius widgets, TOOL-214-12; Curvature Pen edits the active path; Clip Thumbnails to Layer Bounds; Pen ⇧ 45°; last selected tool restored at launch; Layers panel filter-type dropdown with Kind, Name and Mode, #5048; Free Transform box and marching ants follow the selection, #5297; History: the trash deletes the selected snapshot, rows drag onto the trash, #5324; smart filter reordering by drag; smart object perspective row corrected to done, #426; Free Transform H/V skew fields; toolbar tool shortcuts can be reassigned; ⇧-dragged guides land on ruler ticks; layer and selection keys; tool keys; spring-loaded tool letters; type formatting keys; Pen Auto Add/Delete, #4144; smart filter rows; stale missing-tool rows corrected: Color Replacement, Red Eye and the Add/Delete Anchor Point pair are live toolbar tools, Frame landed; no percentage changed; selection-modifier and ⌥-wheel rows match their tests; Properties › Transform shows a shape's path geometry, without its stroke) · **Target:** Adobe Photoshop 2026 +> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-06 · **Change:** minor (Image › Adjustments › Selective Color keeps each colour's own values and applies all nine, #11463; History Options snapshot options, #3634; Channels panel menu: New Channel…, Duplicate Channel, Delete Channel, New Spot Channel…, Merge Spot Channel, Channel Options…, Split Channels, Merge Channels…, #11451; a Color Picker for another dialog's colour or the Crop shield shows the picked colour there before OK, #9886; Edit › Transform › Distort side handles move their edge, Perspective side handles skew, #10085; Ctrl + Alt + wheel zooms the canvas like ⌥ + wheel on Windows and Linux, where winit reports a held Ctrl as both ctrl and command, #10488; Layers panel filter by Color, #5898; 11 of 183 preferences do nothing: startup reads Graphics Adapter through the typed Performance section, so the scorecard audit sees it; Shape Fill/Stroke popover as Photoshop's, every colour swatch opens the full Color Picker with a live preview; the text and gradient stop Color Pickers show the picked colour on the canvas before OK, #5530; selected colour sets edit drawing, tone and supported filters; geometry remains open; a paragraph box that can't hold its text enlarges its lower-right handle and shows a black + in it, as the reference application; Free Transform of several selected layers, #6501; Path Operations fixes: the first component keeps combining, a hidden component selection is left alone, a dragged live shape stays live, a refused Pen draft ends once; Pen, Freeform Pen, Curvature Pen and Path Selection Path Operations menu, which changes selected components, `+` / `-` keys, #1397; the Pen carries on an open shape or vector mask path; selection-aware font controls, pending caret fonts and focused commit, plus direct font-name editing with a compact no-match message, #9338; New Group dialog and button modifiers; new layers go into an open active group and join a clipping mask, except that type, shapes, pastes and placed files go above a group whose lock would refuse them; Color panel Hue and Brightness Cube show the out-of-gamut ⚠ and nearest printable colour when the field is at least 53 pt tall, #8672; Art History Brush in the History group of the Y flyout, partial, TOOL-213-20, #1610; Histogram panel: Compact / Expanded / All Channels views, Luminosity and Colors channels, Source, range statistics, Uncached Refresh, live adjustment overlay, Cache Levels preference; the font menu opens on the current family, marked in the recent group when it is a recent one, #9160; Type options bar alignment and direction follow the target paragraph; a swatch click recolours selected type and shape layers with any tool, #9238; UI scale presets done: 105–120% steps, #3222; ⇧⌥ blend mode letters; painting tool Mode menus; ⌥ + an adjustment's shortcut reopens it at its last settings, ⌥⌘L / ⌥⌘M, #8900; Crop default mode: moving the image under the box snaps the frame's edges and centre, #8580; View › Extras hides the Move transform controls, #6699; adjustment clipping stays visible in compact Properties, #5231; Color panel modes from its panel menu, the same in every theme, UI-217-17, #6000; a picked colour recolours the selected type and shapes; Hand tool ⌘ / ⌥ are Zoom In / Zoom Out while held, #6434; the wheel steps value fields, #5473; a dragged guide shows its X or Y beside the pointer, #7680; Type options bar "T" icon scrubs the font size, #6437; Move tool: dragged selected pixels take their own outline as the selection, #7538; artboard backgrounds remain below child Free Transform previews; ⌫/Delete removes the selected smart filter, #4751; Object Finder foreground/background discrimination (#6548); rounded triangle, polygon and star corners; shape Fill/Stroke popovers accept hex RGB values, #6176; a guide let go over either ruler is removed, #6286; Crop rows corrected: saved crop presets and Delete Cropped Pixels off are done, #6562; marching ants in device pixels, #7489; Animated Zoom: holding the Zoom tool zooms continuously, #6210; shape Density and Feather, TOOL-214-12, #5846; Pen Auto Add/Delete on the path being drawn, #6140; Show Transform Controls frames every selected layer; guide keys and clicks; menu bar from the keyboard, #4988; Crop tool Content-Aware Fill; on-canvas corner radius widgets, TOOL-214-12; Curvature Pen edits the active path; Clip Thumbnails to Layer Bounds; Pen ⇧ 45°; last selected tool restored at launch; Layers panel filter-type dropdown with Kind, Name and Mode, #5048; Free Transform box and marching ants follow the selection, #5297; History: the trash deletes the selected snapshot, rows drag onto the trash, #5324; smart filter reordering by drag; smart object perspective row corrected to done, #426; Free Transform H/V skew fields; toolbar tool shortcuts can be reassigned; ⇧-dragged guides land on ruler ticks; layer and selection keys; tool keys; spring-loaded tool letters; type formatting keys; Pen Auto Add/Delete, #4144; smart filter rows; stale missing-tool rows corrected: Color Replacement, Red Eye and the Add/Delete Anchor Point pair are live toolbar tools, Frame landed; no percentage changed; selection-modifier and ⌥-wheel rows match their tests; Properties › Transform shows a shape's path geometry, without its stroke) · **Target:** Adobe Photoshop 2026 How PhotoCraft's direct manipulation compares with Photoshop 2026 (27.11.0): the toolbox, the handles and modifier keys of each gesture, nudging, snapping, numeric precision, navigation, @@ -221,6 +221,7 @@ for partial sets; [scope, tests and visual evidence](multi-channel-editing.md). | Tool keys: ← / → turn the brush tip (1°, ⇧ 15°), ⇧-click with Type starts new text over old, Space+F / ⇧Space+F cycle the pasteboard colour | done (2026-10-11) | | | Type formatting keys while editing text | done: ⇧⌘K, U, B, I and / toggle All Caps, Underline, Faux Bold, Faux Italic, Strikethrough (off when every selected character has it, else on); ⌥↑/↓ leading ∓2 pt, ⇧⌥↑/↓ baseline shift ±2 pt (10 with ⌘); ⌥←/→ tracking ±20 over a selection (100 with ⌘; a collapsed caret still kerns); ⌥⇧⌘H toggles Hyphenate for the touched paragraphs. One `type.setStyle` step per press (new `leadingBy`/`baselineShiftBy`/`trackingBy`; auto leading starts from its laid-out value); the global ⇧⌘K/U/B/I never fire while typing. Differs: a collapsed caret in non-empty text changes nothing, since the model can't hold a pending style for the next characters typed (empty text takes it as its typing style) (`type_tool.rs`, `input_tests.rs` `type_tool_format_keys_*`) | | | Paragraph box overflow mark: text past the box shows a + in its lower-right handle | done (2026-10-29): text a box can't hold (dropped layout lines) enlarges the box's lower-right handle and shows a black + in it, as the reference application does; agents read `typeBoxOverflow` in `ui.inspect` (false once the edit session ends). Differs: shown while the inline edit session is on the box, and not while its transform handles are up | `text::TextLayout::overflows`, `canvas_tests.rs` `an_overflowing_box_shows_a_plus_in_its_enlarged_lower_right_handle` | +| Image › Adjustments › Selective Color: each of the nine colours keeps its own Cyan, Magenta, Yellow and Black; choosing another colour shows its values; OK and Preview apply all nine | done (#11463): one editor shared with the Properties panel (`adjust_editors/selective_color.rs`, `adjust_dialog/tests.rs`, 2026-11-05). Preset menu and `.asv` files not yet | | | ⌥ + an adjustment's shortcut opens it at its last settings (⌥⌘L Levels, ⌥⌘M Curves, and so ⌥⌘U, ⌥⌘B) | done (#8900): the settings of the last OK, kept in the preferences; Cancel and smart filter edits keep nothing; a key assigned to another command stays that command's. ⌥ while choosing the item from Image › Adjustments does the same | `shortcut_dispatch/tests.rs` `alt_adjustment_shortcut_reopens_the_last_confirmed_settings`, `alt_choosing_an_adjustment_from_the_menu_reopens_the_last_settings` | | Guides: click selects, Delete deletes, right-click menu, ⌥-click turns a guide, double-click opens Guides, Grid & Slices | done (2026-10-12) | a guide let go over either ruler is removed, not only off the canvas (#6286) | | Blend mode keys: ⇧⌥ + letter picks a mode (N Normal, I Dissolve, R Clear, P Pass Through, K M B A darken, G S D W lighten, O F H V J Z L contrast, E X difference, U T C Y component), ⇧+ / ⇧− step through them | done (2026-10-14): Brush, Pencil and Gradient take them as their own mode (Clear on Brush, Pencil and Paint Bucket only), any non-painting tool sets every selected layer in one undo step (Pass Through on groups only; the Background is skipped); the typed letter wins, the physical key is the fallback for ⌥ characters on a Mac. ⇧⌥ letters no longer switch tools. While a Free Transform box is open they, and the number keys, still reach the tool (or the layers) without closing it; Puppet Warp and Perspective Warp keep them to themselves. Clone Stamp, Pattern Stamp, History Brush, Healing (its own short list) and Paint Bucket (with Clear) take them as their own mode; tools without a blend mode (the Erasers, Mixer Brush) set the layers. Differs: Behind (⇧⌥Q) is not implemented; Spot Healing, Color Replacement, Blur, Sharpen and Smudge ignore the keys until their options bar has a Mode, and Dodge, Burn and Sponge ignore them until their Range and mode keys (⇧⌥S/M/H, ⇧⌥D/S) exist | `blend_keys.rs` | @@ -270,6 +271,7 @@ Paragraph; the rest open as in-app floating windows. | Date | Change | Summary | |---|---|---| | 2026-11-06 | minor | Channels panel menu (☰): the channel items, not only the rows' context menu; New Channel…, New Spot Channel…, Channel Options… and Merge Channels… open their dialogs (New Channel and Merge Channels are new), and Channel Options… in Quick Mask mode opens a targeted alpha channel's options (#11451). No percentage changed | +| 2026-11-05 | minor | Image › Adjustments › Selective Color keeps each colour's own Cyan, Magenta, Yellow and Black, and OK and Preview apply all nine colours; the dialog and the Properties panel share one editor (#11463) | | 2026-11-02 | minor | Edit › Transform › Distort: the side handles move their edge freely, both its corners by the drag, stopping before the box folds as a corner does; Perspective's side handles skew along their edge, as in Photoshop (#10085). Not a new command, so no percentage changed | | 2026-11-01 | minor | Every preference takes effect: 11 of 183 do nothing (was 12); Graphics Adapter always worked, but startup read it by raw JSON key, which the scorecard audit can't see | | 2026-10-31 | minor | Layers panel filter-type dropdown: Color filters by the layers' label colour (#5898); Kind, Name, Mode, Color, Smart Object and Artboard, the other three missing; no percentage changed | diff --git a/scorecard/ui.toml b/scorecard/ui.toml index cb73dd0c57..6f2e163eb7 100644 --- a/scorecard/ui.toml +++ b/scorecard/ui.toml @@ -70,10 +70,10 @@ note = "prefs::UiScale offers Auto plus 75 to 300 percent (17 presets: 75 to 125 [[item]] id = "UI-217-10" -target = "Appearance: animation toggle, canvas pattern toggle per theme, start-screen recents" +target = "Appearance: canvas pattern toggle per theme, start-screen recents" status = "partial" issue = 217 -note = "interface.enableAnimations (prefs_ui.rs sync_animations, #3273) zeroes egui animation_time and scroll animation in both styles; the Home screen lists recent files (canvas.rs home_recent, #2691); the canvas dot pattern toggle is interface.showCanvasDots (#2264, global rather than per theme); interface.showHomeRecentFiles hides the Home screen recents (#4382)" +note = "the Home screen lists recent files (canvas.rs home_recent, #2691); the canvas dot pattern toggle is interface.showCanvasDots (#2264, global rather than per theme); interface.showHomeRecentFiles hides the Home screen recents (#4382)" [[item]] id = "UI-217-11" diff --git a/scripts/ci-gpu-lavapipe.py b/scripts/ci-gpu-lavapipe.py new file mode 100644 index 0000000000..4d1fe78661 --- /dev/null +++ b/scripts/ci-gpu-lavapipe.py @@ -0,0 +1,67 @@ +#!/usr/bin/env python3 +"""Run the configured GPU group on lavapipe without silently losing comparisons.""" +import glob +import os +from pathlib import Path +import re +import subprocess +import sys +import tempfile +import tomllib + + +def gpu_filter(config): + filters = [row['filter'] for row in config['profile']['default']['overrides'] + if row.get('test-group') == 'gpu'] + if not filters: + raise ValueError('nextest GPU group has no filters') + return ' | '.join(f'({value})' for value in filters) + + +def validate_log(lines): + vulkan = False + rejected = [] + for line in lines: + vulkan |= 'GPU parity backend: Vulkan' in line + # Authored skips, not nextest's summary of ignored/filtered-out tests. + if re.search(r'\bskipping\b|\bno (?:GPU )?adapter\b', line): + rejected.append(line.rstrip()) + if 'SKIP ' in line and not ( + ('SKIP gpu timing:' in line and 'is a software adapter' in line) + or 'SKIP the comparison: this GPU finishes' in line + or 'SKIP the sum: this refresh still fit one command buffer' in line + ): + rejected.append(line.rstrip()) + if not vulkan: + rejected.append('GPU parity tests did not report the Vulkan backend') + return rejected + + +def main(): + root = Path(__file__).resolve().parents[1] + with (root / '.config/nextest.toml').open('rb') as source: + selected = gpu_filter(tomllib.load(source)) + icds = sorted(glob.glob('/usr/share/vulkan/icd.d/lvp_icd*.json')) + if not icds: + raise RuntimeError('Install mesa-vulkan-drivers and libvulkan1 before this check') + env = dict(os.environ, WGPU_BACKEND='vulkan', VK_ICD_FILENAMES=os.pathsep.join(icds)) + command = ['cargo', 'nextest', 'run', '--profile', 'ci', '--workspace', '--locked', + '--features', 'heif', '--lib', '--bins', '--tests', '-E', selected, + '--success-output', 'immediate', '--color', 'never'] + # Stream output and keep it on disk, rather than buffering every successful test in memory. + with tempfile.TemporaryFile(mode='w+t') as log: + with subprocess.Popen(command, cwd=root, env=env, stdout=subprocess.PIPE, + stderr=subprocess.STDOUT, text=True) as process: + for line in process.stdout: + sys.stdout.write(line) + log.write(line) + result = process.wait() + log.seek(0) + errors = validate_log(log) + for error in errors: + print(f'::error::{error}', file=sys.stderr) + return result if result else int(bool(errors)) + + +if __name__ == '__main__': + sys.exit(main()) diff --git a/scripts/test-ci-gpu-lavapipe.py b/scripts/test-ci-gpu-lavapipe.py new file mode 100644 index 0000000000..e2a21a96ad --- /dev/null +++ b/scripts/test-ci-gpu-lavapipe.py @@ -0,0 +1,44 @@ +import importlib.util +from pathlib import Path +import unittest + +spec = importlib.util.spec_from_file_location('gpu_check', Path(__file__).with_name('ci-gpu-lavapipe.py')) +check = importlib.util.module_from_spec(spec) +spec.loader.exec_module(check) + + +class LogChecks(unittest.TestCase): + def test_requires_vulkan_evidence(self): + self.assertTrue(check.validate_log(['GPU parity backend: Gl'])) + self.assertTrue(check.validate_log([])) + + def test_success_and_nextest_summary(self): + self.assertFalse(check.validate_log(['GPU parity backend: Vulkan (llvmpipe, Cpu)', + 'Summary 100 tests run: 100 passed, 3 skipped'])) + + def test_rejects_missing_comparisons(self): + for message in ['skipping GPU parity tests: no device', 'skipping: unsupported format', + 'no GPU adapter', 'SKIP gpu timing: no adapter', + 'SKIP gpu timing: no device with timestamp queries', 'SKIP unknown test']: + with self.subTest(message=message): + self.assertTrue(check.validate_log(['GPU parity backend: Vulkan', message])) + + def test_allows_only_known_timing_exceptions(self): + self.assertFalse(check.validate_log(['GPU parity backend: Vulkan', + 'SKIP gpu timing: llvmpipe is a software adapter, which cannot show a GPU/CPU split', + 'SKIP the comparison: this GPU finishes a 6 MP composite in 1 ms against 2 ms of encoding', + 'SKIP the sum: this refresh still fit one command buffer'])) + + def test_selects_all_gpu_filters_from_config(self): + config = {'profile': {'default': {'overrides': [ + {'filter': 'package(a)', 'test-group': 'gpu'}, + {'filter': 'package(b)', 'test-group': 'cpu'}, + {'filter': 'test(c)', 'test-group': 'gpu'}]}}} + self.assertEqual(check.gpu_filter(config), '(package(a)) | (test(c))') + config['profile']['default']['overrides'] = [] + with self.assertRaises(ValueError): + check.gpu_filter(config) + + +if __name__ == '__main__': + unittest.main() diff --git a/xtask/psd-write-oracle/starter.json b/xtask/psd-write-oracle/starter.json index ca4666a86e..7f6ca6b4ea 100644 --- a/xtask/psd-write-oracle/starter.json +++ b/xtask/psd-write-oracle/starter.json @@ -136,6 +136,30 @@ "op": "changed_to", "path": "/text/runs/1/style/tracking", "value": -60.0 + }, + { + "op": "unchanged", + "path": "/text/runs/0/style/tracking" + }, + { + "op": "equals", + "path": "/text/runs/2/style/tracking", + "value": 200.0 + }, + { + "op": "equals", + "path": "/text/runs/0/len", + "value": 1 + }, + { + "op": "equals", + "path": "/text/runs/1/len", + "value": 2 + }, + { + "op": "equals", + "path": "/text/runs/2/len", + "value": 5 } ] }, diff --git a/xtask/src/psd_write_oracle.rs b/xtask/src/psd_write_oracle.rs index 455b3999ae..8a8067b85d 100644 --- a/xtask/src/psd_write_oracle.rs +++ b/xtask/src/psd_write_oracle.rs @@ -91,7 +91,8 @@ fn validate(recipes: &Recipes) -> Result<(), String> { } let mut seen = HashSet::new(); for case in &recipes.cases { - if !valid_id(&case.id) || !seen.insert(&case.id) { + // An id names the case's output directory, and `A` and `a` are one directory on a case-insensitive filesystem. + if !valid_id(&case.id) || !seen.insert(case.id.to_ascii_lowercase()) { return Err(format!("invalid or duplicate case id: {}", case.id)); } let path = Path::new(&case.base); @@ -108,7 +109,9 @@ fn validate(recipes: &Recipes) -> Result<(), String> { return Err(format!("{}: an edit needs a changed_to assertion", case.id)); } for step in &case.commands { + // The contour library commands edit no document, and their `path` param reaches any file. if !(step.command.starts_with("type.") || step.command.starts_with("layer.layerStyle.")) + || step.command.starts_with("layer.layerStyle.contours.") || !step.params.is_object() || step.params.get("layer").is_some() || step.params.get("layers").is_some() @@ -162,6 +165,39 @@ fn target<'a>(doc: &'a Value, wanted: &Target) -> Result<&'a Value, String> { found.into_iter().next().ok_or_else(|| "missing target".into()) } +/// Compare two JSON numbers by exact value, with no tolerance: `17` equals `17.0`, and integers too +/// large for `f64` stay distinct. +fn numbers_equal(a: &serde_json::Number, b: &serde_json::Number) -> bool { + let int = |n: &serde_json::Number| n.as_i64().map(i128::from).or_else(|| n.as_u64().map(i128::from)); + let whole_float_is = |float: &serde_json::Number, i: i128| float.as_f64().is_some_and(|f| f.fract() == 0.0 && f as i128 == i); + match (int(a), int(b)) { + (Some(x), Some(y)) => x == y, + (Some(i), None) => whole_float_is(b, i), + (None, Some(i)) => whole_float_is(a, i), + (None, None) => a.as_f64() == b.as_f64(), + } +} + +/// Compare JSON by value: numbers as in `numbers_equal`; arrays and objects element-wise. Recursion is +/// bounded because serde_json's parser already limits nesting depth. +fn values_equal(a: &Value, b: &Value) -> bool { + match (a, b) { + (Value::Number(x), Value::Number(y)) => numbers_equal(x, y), + (Value::Array(x), Value::Array(y)) => x.len() == y.len() && x.iter().zip(y).all(|(x, y)| values_equal(x, y)), + (Value::Object(x), Value::Object(y)) => x.len() == y.len() && x.iter().all(|(k, v)| y.get(k).is_some_and(|w| values_equal(v, w))), + _ => a == b, + } +} + +/// `values_equal` over optional values: both absent are equal, one absent is not. +fn options_equal(a: Option<&Value>, b: Option<&Value>) -> bool { + match (a, b) { + (None, None) => true, + (Some(a), Some(b)) => values_equal(a, b), + _ => false, + } +} + fn verify(checks: &[Check], before: &Value, after: &Value) -> Vec { let mut results = Vec::new(); let layer = after.get("name").or_else(|| before.get("name")); @@ -174,9 +210,9 @@ fn verify(checks: &[Check], before: &Value, after: &Value) -> Vec { let old = before.pointer(path); let new = after.pointer(path); let pass = match check { - Check::ChangedTo { value, .. } => new == Some(value) && old != new, - Check::Equals { value, .. } => new == Some(value), - Check::Unchanged { .. } => old.is_some() && old == new, + Check::ChangedTo { value, .. } => new.is_some_and(|n| values_equal(n, value)) && !options_equal(old, new), + Check::Equals { value, .. } => new.is_some_and(|n| values_equal(n, value)), + Check::Unchanged { .. } => old.is_some() && options_equal(old, new), }; results.push( json!({"layer": layer, "path": path, "op": op, "expected": expected, "before": old, "after": new, "status": if pass { "pass" } else { "fail" }}), @@ -224,8 +260,34 @@ fn inspect(cli: &Path, file: &Path, dir: &Path, tag: &str) -> Result Value { + json!({"opens": "not_run", "meaning": "not_run", "rendering": "not_run"}) +} + +/// Reopen the exported candidate and check it against the recipe. +fn check_candidate( + case: &Recipe, + cli: &Path, + dir: &Path, + candidate_sha256: &str, + before: &Value, + layer: &Value, + export_warnings: &str, +) -> Result { + let candidate = dir.join("candidate.psd"); + let after = inspect(cli, &candidate, dir, "after")?; + let checks = verify(&case.checks, layer, target(&after, &case.target)?); + let passed = checks.iter().all(|v| v.get("status").and_then(Value::as_str) == Some("pass")); + Ok(json!({"id": case.id, "status": if passed { "pass" } else { "fail" }, "base": case.base, "base_sha256": case.base_sha256, + "candidate": format!("{}/candidate.psd", case.id), "candidate_sha256": candidate_sha256, "checks": checks, + "warnings": {"input": before.get("warnings"), "export": export_warnings, "output": after.get("warnings")}, + "photoshop": not_run()})) +} + /// Export and check one case, retaining candidate provenance after export succeeds. fn execute(case: &Recipe, corpus: &Path, cli: &Path, output: &Path) -> Result { + use std::io::Write; let input = input_path(corpus, &case.base)?; let input_bytes = read_limited(&input)?; if crate::sha256::hex(&input_bytes) != case.base_sha256 { @@ -233,11 +295,16 @@ fn execute(case: &Recipe, corpus: &Path, cli: &Path, output: &Path) -> Result Result Ok(record), + Err(e) => Ok(json!({"id": case.id, "status": "fail", "base": case.base, "base_sha256": case.base_sha256, + "candidate": format!("{}/candidate.psd", case.id), "candidate_sha256": candidate_sha256, + "error": format!("exported file: {e}"), + "warnings": {"input": before.get("warnings"), "export": warnings}, + "photoshop": not_run()})), + } } /// Create a report artifact without overwriting an existing file. @@ -294,7 +363,7 @@ pub fn run(root: &Path, args: &[&str]) -> Result<(), String> { for case in &recipes.cases { let result = execute(case, &corpus, &cli, output).unwrap_or_else(|e| { json!({"id": case.id, "status": "fail", "error": e, - "photoshop": {"opens": "not_run", "meaning": "not_run", "rendering": "not_run"}}) + "photoshop": not_run()}) }); cases.push(result); } @@ -389,6 +458,16 @@ mod tests { assert!(validate(&parsed).is_err()); let duplicate = json!({"version":1,"corpus_revision":"pin","cases":[{"id":"x","base":"x.psd","base_sha256":"a".repeat(64),"target":{"kind":"Text"},"checks":[{"op":"unchanged","path":"/name"}]},{"id":"x","base":"x.psd","base_sha256":"a".repeat(64),"target":{"kind":"Text"},"checks":[{"op":"unchanged","path":"/name"}]}]}); assert!(validate(&serde_json::from_value(duplicate).unwrap()).is_err()); + let case_only = json!({"version":1,"corpus_revision":"pin","cases":[{"id":"A","base":"x.psd","base_sha256":"a".repeat(64),"target":{"kind":"Text"},"checks":[{"op":"unchanged","path":"/name"}]},{"id":"a","base":"x.psd","base_sha256":"a".repeat(64),"target":{"kind":"Text"},"checks":[{"op":"unchanged","path":"/name"}]}]}); + assert!(validate(&serde_json::from_value(case_only).unwrap()).unwrap_err().contains("duplicate")); + let contour = |command: &str| { + json!({"version":1,"corpus_revision":"pin","cases":[{"id":"x","base":"x.psd","base_sha256":"a".repeat(64),"target":{"kind":"Text"}, + "commands":[{"command":command,"params":{"path":"base.psd"}}],"checks":[{"op":"changed_to","path":"/name","value":"y"}]}]}) + }; + for command in ["layer.layerStyle.contours.save", "layer.layerStyle.contours.load"] { + assert!(validate(&serde_json::from_value(contour(command)).unwrap()).unwrap_err().contains("invalid command")); + } + assert!(validate(&serde_json::from_value(contour("layer.layerStyle.dropShadow")).unwrap()).is_ok()); let edit = json!({"version":1,"corpus_revision":"pin","cases":[{"id":"x","base":"x.psd","base_sha256":"a".repeat(64),"target":{"kind":"Text"},"commands":[{"command":"type.setStyle"}],"checks":[{"op":"unchanged","path":"/name"}]}]}); assert!(validate(&serde_json::from_value(edit).unwrap()).is_err()); } @@ -443,4 +522,131 @@ exit 1 assert_eq!(good["photoshop"]["opens"], "not_run"); assert!(execute(&make_case("bad", "type.bad"), &corpus, &cli, &output).unwrap_err().contains("bad command")); } + + /// Fake CLI that logs its arguments, tampers with the file it is asked to run on, and reports + /// `candidate_info` for the exported file. + #[cfg(unix)] + fn fake_cli(root: &Path, log: &Path, candidate_info: &str, export_fails: bool) -> PathBuf { + use std::os::unix::fs::PermissionsExt; + let cli = root.join("fake-cli"); + let script = r##"#!/bin/sh +echo "$@" >> 'LOG' +if [ "$1" = info ]; then + case "$2" in + */candidate.psd) echo 'CANDIDATE' ;; + *) echo '{"layers":[{"kind":"Type","id":4,"text":{"antialias":"None"}}]}' ;; + esac + exit 0 +fi +if [ EXPORT_FAILS = 1 ]; then + echo 'export broke' >&2 + exit 1 +fi +input="$2" +cp "$input" "$input.received" +echo tamper >> "$input" +while [ "$#" -gt 0 ]; do + if [ "$1" = --out ]; then cp "$input" "$2"; exit 0; fi + shift +done +exit 1 +"## + .replace("LOG", &log.display().to_string()) + .replace("CANDIDATE", candidate_info) + .replace("EXPORT_FAILS", if export_fails { "1" } else { "0" }); + fs::write(&cli, script).unwrap(); + fs::set_permissions(&cli, fs::Permissions::from_mode(0o755)).unwrap(); + cli + } + + /// Run one recipe case through `run`; returns (temp dir guard, result, output dir, corpus dir, log path). + #[cfg(unix)] + fn run_case(id: &str, candidate_info: &str, export_fails: bool) -> (tempfile::TempDir, Result<(), String>, PathBuf, PathBuf, PathBuf) { + let tmp = tempfile::Builder::new().prefix("psd-write-oracle-").tempdir().unwrap(); + let root = tmp.path().canonicalize().unwrap(); + let corpus = root.join("corpus"); + fs::create_dir(&corpus).unwrap(); + fs::write(corpus.join("base.psd"), b"base").unwrap(); + let log = root.join("calls.log"); + let cli = fake_cli(&root, &log, candidate_info, export_fails); + let recipes = json!({"version":1,"corpus_revision":"pin","cases":[{"id":id,"base":"base.psd","base_sha256":crate::sha256::hex(b"base"), + "target":{"kind":"Type"},"commands":[{"command":"type.antiAlias.crisp","params":{}}], + "checks":[{"op":"changed_to","path":"/text/antialias","value":"Crisp"}]}]}); + let recipe_path = root.join("recipes.json"); + fs::write(&recipe_path, recipes.to_string()).unwrap(); + let out = root.join("out"); + let args = [recipe_path.to_str().unwrap(), corpus.to_str().unwrap(), cli.to_str().unwrap(), out.to_str().unwrap()]; + let result = run(&root, &args); + (tmp, result, out, corpus, log) + } + + #[cfg(unix)] + #[test] + fn target_lost_after_export_keeps_candidate_in_manifest() { + let (_tmp, result, out, _, _) = run_case("lost", r#"{"layers":[]}"#, false); + assert!(result.is_err()); + let report: Value = serde_json::from_slice(&fs::read(out.join("report.json")).unwrap()).unwrap(); + assert_eq!(report["cases"][0]["status"], "fail"); + assert!(report["cases"][0]["error"].as_str().unwrap().starts_with("exported file: ")); + let manifest: Value = serde_json::from_slice(&fs::read(out.join("manifest.json")).unwrap()).unwrap(); + let entry = &manifest["candidates"][0]; + assert_eq!(entry["id"], "lost"); + assert_eq!(entry["path"], "lost/candidate.psd"); + assert_eq!(entry["sha256"], crate::sha256::hex(&fs::read(out.join("lost/candidate.psd")).unwrap())); + } + + #[cfg(unix)] + #[test] + fn export_failure_has_no_manifest_entry() { + let (_tmp, result, out, _, _) = run_case("broken", r#"{"layers":[]}"#, true); + assert!(result.is_err()); + let report: Value = serde_json::from_slice(&fs::read(out.join("report.json")).unwrap()).unwrap(); + assert_eq!(report["cases"][0]["status"], "fail"); + assert!(report["cases"][0]["error"].as_str().unwrap().contains("export broke")); + let manifest: Value = serde_json::from_slice(&fs::read(out.join("manifest.json")).unwrap()).unwrap(); + assert!(manifest["candidates"].as_array().unwrap().is_empty()); + } + + #[cfg(unix)] + #[test] + fn cli_runs_on_pinned_base_never_on_corpus() { + let (_tmp, result, out, corpus, log) = run_case("pin", r#"{"layers":[{"kind":"Type","id":4,"text":{"antialias":"Crisp"}}]}"#, false); + assert!(result.is_ok(), "{result:?}"); + assert_eq!(fs::read(corpus.join("base.psd")).unwrap(), b"base"); + let pinned = out.join("pin/base.psd"); + assert!(pinned.exists()); + assert_eq!(fs::read(out.join("pin/base.psd.received")).unwrap(), b"base"); + let log = fs::read_to_string(log).unwrap(); + let corpus_path = corpus.join("base.psd").display().to_string(); + assert!(!log.contains(&corpus_path)); + let pinned = pinned.display().to_string(); + let base_calls: Vec<&str> = log.lines().filter(|l| !l.starts_with("info ") || !l.contains("candidate.psd")).collect(); + assert_eq!(base_calls.len(), 2); + assert!(base_calls.iter().all(|l| l.contains(&pinned))); + } + + #[test] + fn numbers_compare_by_value() { + assert!(values_equal(&json!(17), &json!(17.0))); + assert!(!values_equal(&json!(17), &json!(18.0))); + assert!(!values_equal(&json!(17), &json!(17.5))); + assert!(values_equal(&json!(0.5), &json!(0.5))); + assert!(values_equal(&json!(-3), &json!(-3.0))); + assert!(values_equal(&json!(u64::MAX), &json!(u64::MAX))); + assert!(!values_equal(&json!(9_007_199_254_740_993_u64), &json!(9_007_199_254_740_992_u64))); + assert!(!values_equal(&json!(9_007_199_254_740_993_u64), &json!(9_007_199_254_740_992.0))); + assert!(values_equal(&json!(9_007_199_254_740_992_u64), &json!(9_007_199_254_740_992.0))); + assert!(!values_equal(&json!(u64::MAX), &json!(1e300))); + assert!(values_equal(&json!({"a":[1,2.0,{"b":3}],"c":"x"}), &json!({"c":"x","a":[1.0,2,{"b":3.0}]}))); + assert!(!values_equal(&json!({"a":1}), &json!({"b":1}))); + assert!(!values_equal(&json!({"a":1}), &json!({"a":1,"b":1}))); + assert!(!values_equal(&json!([1, 2]), &json!([1]))); + let before = json!({"n":17}); + let after = json!({"n":17.0}); + assert_eq!(verify(&[Check::ChangedTo { path: "/n".into(), value: json!(17) }], &before, &after)[0]["status"], "fail"); + assert_eq!(verify(&[Check::Equals { path: "/n".into(), value: json!(17) }], &before, &after)[0]["status"], "pass"); + assert_eq!(verify(&[Check::Unchanged { path: "/n".into() }], &before, &after)[0]["status"], "pass"); + assert_eq!(verify(&[Check::ChangedTo { path: "/n".into(), value: json!(17) }], &json!({}), &after)[0]["status"], "pass"); + assert_eq!(verify(&[Check::Equals { path: "/m".into(), value: json!(1) }], &before, &after)[0]["status"], "fail"); + } }