Repository navigation
feat(ui): redesigned interface, automatic GPU/CPU, in-app updates, macOS icon - #189
Merged
Merged
Conversation
Layout - Frames and Results sidebar with HiDPI thumbnails (Delete removes, right-click: Remove, Show in Finder/Explorer), the viewer, and an inspector: methods as option cards with a one-line description, one plain-language Alignment choice (Off = stack without aligning), Output, and Advanced showing only the parameters the chosen method uses. - Activity bar for progress (time left, Pause/Resume, Stop) and a status bar with image info and the compute device. - Settings window (Cmd+, / Ctrl+,): theme and GPU. - Light and dark themes that follow the system (live) or a user choice; Fusion on every platform with the system font; theme-aware SVG icons rendered at the screen's pixel density. Viewer - Mouse wheel zooms at the cursor, trackpad scroll pans, pinch zooms (macOS native gesture, Windows precision touchpads, touchscreens), Ctrl/Cmd+scroll zooms; drag pans, double-click/double-tap toggles Fit and 100 %. Zoom is the real pixel scale; pixels are crisp above 200 %. - Compare is part of the viewer: before/after divider at any zoom, the before frame cropped like the result. - Arrow keys step through frames; drop files/folders anywhere. Workflow - Actions are enabled only when they can run instead of error popups; standard shortcuts (Cmd+A selects, Cmd+W closes, Cmd+Q quits, Cmd+Return stacks, Cmd+. / Esc stops) and menu roles (About, Settings, Quit in the macOS app menu); native file dialogs; Open Recent; files opened with the app or dropped on the Dock icon; window layout restored. - Adding images appends (New Stack starts over); results of the session are kept; quitting with unexported results asks first. - Export: one dialog for format, bit depth and quality (remembered), the native save panel, then "Show in Finder"; writes non-ASCII paths on Windows. - Stacking errors are shown instead of failing silently; RAW frames preview; "Shift only" alignment now really runs translation-only (a saved alignment mode used to override the Rotation + Scale switch). macOS icon - The .icns is rebuilt on Apple's grid (824 px body on 1024, shadow), so the Dock no longer masks it into a circle; the bundled app keeps that icon instead of replacing it with the full-bleed PNG at runtime (packaging/icons/make_macos_icon.py regenerates it). Removed the retouch viewer, which was never reachable in the UI, and the old comparison widget. Tests: tests/test_gui.py (offscreen). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Settings → Updates: "Automatically check for updates" (on by default, at most once a day, only api.github.com is contacted), "Include pre-releases", and Check Now; "Check for Updates…" in the app menu on macOS and the Help menu elsewhere. - The update window shows the release notes and offers Install Update, Remind Me Later or Skip This Version. Installing downloads this platform's release asset with progress, verifies it against the SHA-256 GitHub publishes for it (no digest, no automatic install), stages it next to the installed copy, and after the app quits a helper swaps it in and relaunches: the .app from the DMG on macOS, the zip's folder on Windows, the AppImage on Linux. "Install on Quit" defers it. Copies that can't update themselves (source checkouts, read-only locations) link to the release page instead. - About and Settings show dev builds as "0.4.0 (dev build 3578d8c)". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…popups Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…… in the macOS app menu; no duplicate Enter Full Screen; long progress titles elide Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… Qt GUI libs; readable error when OpenEXR is unavailable Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Processing device is now Automatic (default), Always GPU or Always CPU (Settings → Processing; CLI: no flag, --gpu, --cpu). src/compute.py decides per stack: - no usable GPU, or a stack that doesn't fit in the GPU's memory (peak use measured per method on 24 MP stacks): CPU; - otherwise a one-time measurement on this computer: synthetic frames, aligned and stacked like a real stack, at 1 and 6 MP and 2 and 5 frames on both devices; stack time is modelled as setup + frames * per_frame (linear in megapixels) and compared for the real frame size and count; - not measured yet: GPU (small frames under 1 MP: CPU, without measuring). The app measures in the background while idle, ~15 s per method, the method in use first, and stops as soon as a stack starts; the CLI uses the same cache and measures with --measure. Measurements are cached per GPU, driver and app version (~/Library/Caches/ChimpStackr, %LOCALAPPDATA%, ~/.cache/chimpstackr); Settings shows them, Measure Again forgets them. The status bar and result info show where a stack ran and why; the CLI prints "Device: Auto: GPU · Apple M4 (measured 2.4× faster)". Existing "Use GPU" on becomes Automatic, off stays CPU. Checked against 20 real aligned stacks on an M4 MacBook Air (24/6/2/0.4 MP): 16 right picks (always-GPU: 15), total time +6 % over the best choice per stack (always-GPU +7 %, always-CPU +112 %); the CPU really wins Pyramid and Hybrid at 6 MP there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ns; no App Nap A background measurement on a loaded Mac (load 14 on 10 cores, screen locked) came out wrong (Hybrid 24 MP "16× faster", Depth Map 6 MP "CPU faster"). Background measuring now waits while other programs use more than 30 % of the cores (checked before and between steps; a disturbed measurement is discarded), times GPU and CPU back to back per frame count so drifting load hits both, and the app sets NSAppSleepDisabled so macOS doesn't throttle stacks or measurements while its window is hidden. Re-checked against the 20 real aligned stacks: 17 right picks (always-GPU 15), +6 % total time over the best choice per stack (always-GPU +7 %). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…with an Applications link
- Aligned GPU-vs-CPU pipeline tests failed on Apple Silicon by small
margins: GPU and CPU each estimate their own transforms, which differ by
float rounding (a few thousandths of a pixel per pair, more along a
breathing chain), and sharp edges / Depth Map's per-pixel frame choice
turn that into image differences. Now:
- test_same_result_with_the_same_alignment: GPU stacking with the CPU's
transforms must match as tightly as unaligned stacks;
- test_alignment_matches_cpu: GPU and CPU breathing transforms agree
within 0.1 px;
- aligned end-to-end runs use limits that allow the rounding (mean 0.5,
2 % of pixels > 2 levels; Depth Map 0.6 / 5 %; slabbed 0.5 / 0.75).
- The release DMG has an Applications shortcut next to the app.
- GUI test: the viewer stays in View mode after a stack.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a busy computer single timings swing a lot (two builds' background measurements disagreed by up to 4x). Now every timing is the best of two runs, a measurement where 5 frames come out quicker than 2 is discarded as disturbed, and Automatic leaves the GPU only when the test finds the CPU at least 1.5x faster (near-ties stay on the GPU), as Capture One's and darktable's automatic modes are meant to catch clearly slower GPUs. Two independent measurements on a heavily loaded M4 now give identical choices. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A rebuilt interface (still PySide6 Qt Widgets, same packaging) that behaves like a current desktop app on macOS, Windows and Linux.
Layout
Viewer
QPinchGesture); Cmd/Ctrl+scroll zooms with any device.Workflow
imencode, so non-ASCII paths work on Windows.Updates
.appfrom the DMG on macOS, the zip's folder on Windows, the AppImage on Linux. "Install on Quit" defers it. Copies that can't update themselves (source checkouts, read-only locations) link to the release page instead.src/updater.pyhas no Qt dependency;tests/test_updater.pycovers version ordering, release parsing, verified/tampered/cancelled downloads, a real DMG stage (macOS) and the swap-and-relaunch helper.Automatic GPU/CPU choice
--gpu,--cpu. "Use GPU" on becomes Automatic; off stays CPU.src/compute.pydecides per stack:--measure. The cache is keyed by GPU, driver and app version; Settings shows the results, and Measure Again forgets them.Device: Auto: GPU · Apple M4 (measured 2.4× faster); the app shows the choice in the status bar and result info.NSAppSleepDisabled: App Nap was throttling stacks, and speed tests, while the window was hidden.Fixes found along the way
_resolve_alignment_modeonly reads it inautomode). Shift only now passestranslation.errorsignal wasn't connected). They are shown now.cv2.imread). It uses the RAW loader now.QPixmapthere.macOS icon
The
.icnsis rebuilt on Apple's icon grid (an 824 px superellipse body on a 1024 canvas, with a shadow), so the Dock no longer masks it into a circle. The bundled app keeps that icon instead of replacing it at runtime with the edge-to-edge PNG.packaging/icons/make_macos_icon.pyregenerates it fromchimpstackr_icon.png.Removed
The retouch viewer (never reachable in the UI), the old comparison tab,
QActions.py,ProgressBar.pyandstyle.py(replaced bytheme.py).Tests
tests/test_compute.py: device rules, the time model, frame count, memory limits, caching and re-measuring per driver/app version, background measuring stopped by a stack or by load, the API and the CLI flags.tests/test_gui.py(offscreen): action states, adding/removing frames, previews and thumbnails, a full stack → compare → export, cancel, zoom/pan for mouse wheel, trackpad and Ctrl+scroll, zoom anchoring, the alignment settings round trip, theme switching, and every export format (non-ASCII path).Checked on macOS 27 / Apple M4 with a local PyInstaller build installed to /Applications: open-with a 50-frame 24 MP folder, Hybrid stack (51 s on the GPU), Pause/Resume, Compare, Export through the native save panel, the app menu (About, Settings…, Check for Updates…, Quit), and the Dock icon now shows as a rounded square. Windows and Linux use the same Qt code paths, but I haven't run them on those systems.
🤖 Generated with Claude Code
Also in this PR
test_same_result_with_the_same_alignmentchecks GPU stacking with the CPU's transforms against the strict limits, andtest_alignment_matches_cpuchecks the two sets of transforms agree within 0.1 px. End-to-end aligned runs allow for the float rounding between GPU and CPU ECC, which is larger on ARM. All GPU tests pass on Apple M4.