Skip to content

[Issue-204] feat(image-tools): add drop target named output and merge backgrounds - #205

Merged
CYoJkoY merged 5 commits into
mainfrom
feat/image-tools-gui
Nov 8, 2026
Merged

CYoJkoY merged 5 commits into
mainfrom
feat/image-tools-gui

Conversation

@CYoJkoY

@CYoJkoY CYoJkoY commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Linked Issue

Closes #204: The image tools panel cannot accept dropped files, cannot name its output, lacks horizontal and grid merges, and offers no merge background colour with independent transparency.

  • Stacked Branch Dependencies: None (Directly branched from main)

Change summary

Staged breakdown of all diffs against main by commit:

  • 8a6e8e4: Adds merge_horizontal and merge_grid plus an optional options object to Core/ImageTools.ahk. Execute accepts Name, Background and GridColumns, builds rows through GridGroups and GridRowSizes, sanitizes typed names through SanitizeOutputName, normalizes #RRGGBB and #RRGGBBAA through NormalizeBackground, and drops alpha for JPEG output. Named batch runs gain _1, _2 suffixes; name collisions keep the existing unique-name suffix.
  • 6eea02f: Extends UI/ImageToolsGui.ahk with WS_EX_ACCEPTFILES and a DropFiles handler, output name and grid column fields, a background swatch, a native ChooseColorW picker and an alpha slider. Merge controls are enabled only for merge operations, and _ComposeBackground converts the slider percentage to the exact alpha byte.
  • 8f6f149: Adds CheckImageToolsExtended to scripts/HotkeyRegression.ahk, covering the new operation names, name sanitizing, background validation, grid row sizing, background placement before the append operators, JPEG flattening, and the drop, name, picker and alpha wiring in the panel.
  • 989e719: Adds the 13 language columns for the new labels in lang.csv and rewrites the README ImageMagick row and section to describe dropped files, the optional output name, the three merge modes and the background colour with opacity.
  • d4d82cf: Merge commit that brings main (the Window Hole mouse passthrough fix from [Issue-202] fix(hotkeys): restore mouse click-through during window hole #203) into the branch; the only conflict was in scripts/HotkeyRegression.ahk, where both suites were appended at the same spot, so both checks are kept and both are invoked.
  • Behavioral Guarantees: Calling Execute without an options object keeps the previous signature and behaviour, so compress, vertical merge and convert outputs are unchanged. Existing operation names, default output naming, output folder autofill, configuration keys and default values are untouched. The panel keeps its original control order, and the merge background and opacity survive a close while the operation, output name and grid count reset.

Verification & Dependencies

  • Status of Assertions:
    • Command-line checks: scripts/ci/Check-DllPaths.ps1 (PASS, 82 files scanned, every DLL name uses a single backslash). Invoke-Ahk.ps1 .\CapsLock-.ahk -Validate (PASS, exit code 0). Invoke-Ahk.ps1 .\scripts\HotkeyRegression.ahk (PASS, 271 run, 0 failed). Invoke-Ahk.ps1 .\scripts\HistoryGuiPaging.ahk (PASS). git diff --check (PASS, no whitespace errors). lang.csv (PASS, new keys carry all 13 columns and the removed colour title key has no remaining reference).
    • Runtime & Visual assertions: The panel probe confirmed the output name, grid columns, background swatch, colour button, alpha slider, alpha label and operation controls exist with the expected enabled states. Slider values produce #00FFFF80 at 50 percent, #00FFFF00 at 0 and #00FFFFFF at 100. The native color dialog accepted RGB 255/128/0 and returned #FF8000; the swatch updated to #FF8000 and the panel remained open. Geometry at 100 percent scaling: grid edit 84x24 at 16,431, swatch 96x26 at 116,431, slider 180x33 at 368,431, alpha label 44x16 at 556,439, output name 590x24 at 16,492, client 778x904. ImageMagick runs produced horizontal 300x60, vertical 100x120 and grid 200x180 output with translucent padding, full transparency at alpha 0, three-channel JPEG output, named single and batch files, a _2 collision suffix, a timestamped fallback name and rejection of a zero column count.
    • Unverified external facts: A physical drag gesture from Explorer onto the window was not replayed (the DropFiles wiring and the shared add path were verified separately).
  • Dependency Pinning:
    • No dependency, toolchain or version change. The project keeps AutoHotkey v2 with no floating tags, and lang.csv remains the single localization source with 13 fixed language columns.

Review conclusion

Evaluation across the four engineering dimensions:

  • Correctness & Regression: PASS (Operation dispatch guards every new mode, grid columns reject values outside 1 to 20, background input fails loudly on malformed values, and the extended regression checks confirm the original three operations still resolve to their previous names and defaults.)
  • Performance Gain: PASS (Merge and grid runs issue a single ImageMagick command; the panel adds no timers, no polling and a fixed number of controls.)
  • Compatibility & Architecture: PASS (Native AutoHotkey v2 and Win32 calls only, with no new dependency, and the core keeps its previous signature through an optional options object.)
  • Readability & Commit Completeness: PASS (Four atomic Conventional Commits, each matching its diff, all text pure ASCII.)

Overall Verdict: PASS

Permission Notice

AI has completed staged development and review loops. Merging is an exclusive user privilege. Awaiting manual merge.

@CYoJkoY
CYoJkoY merged commit 4371ae9 into main Nov 8, 2026
1 check passed
@CYoJkoY
CYoJkoY deleted the feat/image-tools-gui branch November 8, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Image tools: drag-and-drop named output horizontal and grid merge with background color

1 participant