Settling on a different-aspect neighbor (e.g. landscape → portrait) stretched: vimg kept the OLD image's width/height styles while showing the new thumbnail, so the new pixels rendered in the old box until full-res landed and fitViewer() reset the dimensions — a visible vertical stretch then snap-back. At the commit swap, adopt the incoming image's dimensions from the drag preview (nav already knows w/h/scale from its loaded thumb): base/vScale/width/height/transform are all set consistently in the same task as the src swap, so the first settled frame is correct. Fallback: if the preview never loaded (keyboard nav / slow thumb), use the plain openViewer path where the thumb round-trip sets the dimensions before first paint. Verified on the emulator with a 4:3 landscape + 3:4 portrait pair: settled content box 1439x1921 (0.749 = exact 3:4) from the first settled frame, unchanged after the full-res swap. |
||
|---|---|---|
| docs/BUGS | ||
| harnesses | ||
| scripts | ||
| shim/out | ||
| src | ||
| tools | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| HANDOFF.md | ||
| LICENSE | ||
| README.md | ||
gallery
A high-performance image gallery for Android (primary), Linux and macOS —
Rust + egui 0.31 (egui_glow / winit 0.30 / glow 0.16).
Ported from Slint 1.18 after the zero-jank campaign showed Slint-on-Mali
janky at its base level while egui measured 3–7× cleaner (HANDOFF.md
§8.11–8.12). The Slint tree is preserved in git history and
docs/BUGS/.
Status: M0–M4 ported to egui, zero-jank tuning in progress. See HANDOFF.md — the development hand-off: architecture, thumbnail pipeline, milestones M1–M7, the Slint jank campaign, the egui port, and the sltest/egtest/tttest harnesses (A/B/C: Slint/egui/WebView).
Build
./scripts/build.sh debug # debug x86_64 APK + install on emulator
./scripts/build.sh # release x86_64 (emulator)
./scripts/build.sh aarch64 # release aarch64 (device)
cargo run # desktop (Linux needs libfontconfig1 + pkg-config)
Requires: Rust (rustup), cargo-apk2, Android SDK + NDK 27 (see HANDOFF.md §3
for exact paths/env).
License
GPL-3.0 (see LICENSE). Built on egui (MIT/Apache-2.0).