[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-113461":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":12,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":14,"lastSyncTime":29,"discoverSource":30},113461,"Relyto.Maliang","wadereye\u002FRelyto.Maliang","wadereye","Fast, local-first photo management and editing with native AI · Rust + egui ","https:\u002F\u002Fwww.nicexm.com\u002Fmaliang",null,"Rust",51,4,2,0,1,42.7,"Apache License 2.0",false,"main",true,[23,24],"local-ai-tool","photography","2026-11-21 05:44:17","2026-11-22 04:30:29","| English | [简体中文](.\u002FREADME.zh-CN.md) |\n\n# Relyto.Maliang (神笔马良 \u002F Maliang)\n\n> Your local photo AI butler\n> Instant preview · Smart tags · Chat-to-search · One-click done\n\n**Official website & download**: \u003Chttps:\u002F\u002Fwww.nicexm.com\u002Fmaliang\u002F>\n\n**Why this project exists.** Google Picasa was a truly great photo management and editing app — fast, simple, and a joy to use. Sadly, Google discontinued it in 2016; many photo tools have appeared since, but I never found one I truly liked. That's why Maliang (神笔马良) was born: written independently in Rust and released as open source, to carry that classic experience forward and add the capabilities the old tool never had.\n\nMaliang (神笔马良) is a desktop-first local photo management tool that aims to modernize the classic Picasa 3 experience: smoother browsing, smarter organization, and native, offline, privacy-first AI capabilities. All of your data stays on your own machine — nothing is uploaded to the cloud, and your private photos are never scanned and sent anywhere.\n\nIf Maliang is useful to you, please consider giving the repo a [⭐ Star](https:\u002F\u002Fgithub.com\u002Fwadereye\u002FRelyto.Maliang\u002Fstargazers);\n\nIf something is missing or broken, feel free to open an [Issue](https:\u002F\u002Fgithub.com\u002Fwadereye\u002FRelyto.Maliang\u002Fissues).\n\nFor feature requests or to join the community group, you can email me, or scan my WeChat Official Account QR code at the bottom of this page, then tap the \"AI 交流\" (AI Chat) menu — or send the message \"加群\" (join group) — and I'll add you to the group. Let's build and improve it together.\n\n## [Changelog](.\u002FCHANGELOG.en.md)\n\n## Feature Overview (implemented)\n\n### Browsing & Organizing\n\n- **Full-disk scan & index**: once a folder is added to the library, a local index (SQLite) is built automatically; folders come first — your originals are never copied or moved.\n- **Multiple views**: timeline (grouped by capture date) \u002F folders \u002F albums (named collections that never touch files).\n- **Left sidebar directory tree**: a real, recursively expanded tree with a scan progress percentage.\n- **Multi-level thumbnails**: generated and cached on demand at four sizes — 96 \u002F 256 \u002F 512 \u002F 1024 — keeping browsing smooth.\n- **Automatic updates**: while running, changes are tracked live via file system events; files added or removed while the app was closed are reconciled automatically at the next launch.\n- **Slideshow**: play the selected photos or the entire current view.\n- **Sorting & thumbnail size**: by capture date \u002F filename, ascending or descending, normal \u002F small.\n- **Multi-format support**: common image formats including JPG, PNG, WebP, GIF, PSD and more.\n\n### Quick Search\n\n- **Whole-disk filename index**: the first use builds a name index for the entire disk (a few seconds for millions of files); afterwards, searching for photos, videos, or documents returns results in milliseconds.\n- **Filter by type**: all \u002F images (RAW included) \u002F videos \u002F audio \u002F archives \u002F executables \u002F documents.\n- **Global file search box**: type a filename anywhere to jump into quick search; results return in seconds even across millions of files.\n- **One-time authorization, silent background updates**: once registered as a scheduled task with administrator authorization, the index stays fresh automatically at boot; it can be revoked anytime under Options > General.\n- **Multiple quick-index fallbacks**: on Windows, NTFS drives use a fast scan; when NTFS is unavailable, an adjusted `walkdir` traversal serves as the fallback.\n\n### Editing & Effects\n\n- **Preview editing**: rotate, crop, zoom & pan, curves, exposure, contrast, color temperature, tint, sharpen, blur, grain, vignette, and more — all non-destructive; changes are only baked to disk via F2 save.\n- **One-click effects**: auto contrast \u002F auto color \u002F warm tone \u002F cool tone \u002F positive film \u002F LOMO \u002F backlight compensation and dozens more, aligned with the original Picasa's behavior.\n- **Style filters**: dozens of grouped recipes — film grain, toy camera, instant photo, cinemascope, sixties, pencil sketch, cross process, two-tone, neon, night vision, mat board, rounded corners…\n- **Shader effects**: hexagonal cells, block ripples, circular splatter, crystallize, waterfall, per-channel HSL.\n\n### AI Capabilities (the `ai` feature is enabled by default, can be trimmed off)\n\n- **OCR text recognition**: text inside photos becomes searchable (not fully complete as of v0.3).\n- **Face organizing**: detection, clustering, quality scoring, semi-automatic naming suggestions, ignored clusters (multiple schemes implemented; the user chooses which model to use).\n- **CLIP semantic search**: bilingual Chinese\u002FEnglish descriptive search such as \"find photos with cats\" (not fully complete as of v0.3).\n\n### Import & Export\n\n- **WiFi phone import**: visit the computer's address from a phone browser and send photos into Incoming.\n- **Device import**: import from USB-connected cameras, phones, and other portable devices via WPD \u002F WIA (Windows).\n- **Export & baking**: export by the current view range with edit parameters baked into the output; the original files are never touched.\n- **Video**: recognizes common formats, extracts thumbnails, and plays them with the system player.\n\n### Management & Interoperability\n\n- **Duplicate photo detection**: perceptual hashing finds visually similar photos (beyond the original's capabilities).\n- **Color labels \u002F star ratings**: reads and writes the classic `picasa.ini`, interoperable with the original Picasa.\n- **XMP mirroring**: edits and metadata are mirrored to XMP for interoperability with other tools.\n- **EXIF \u002F GPS**: reads capture parameters and coordinates, with KML geotag export.\n- **Folder manager**: add\u002Fremove watched directories, rescan each one, and clean up missing files.\n- **Index backup & compaction**; **relocatable data directory** (thumbnails \u002F index \u002F models all move together).\n\n### Interface & Experience\n\n- Dark \u002F light themes; built-in Alibaba PuHuiTi Chinese font; icons use the open-source Lucide set.\n- Classic five-menu layout (File \u002F Edit \u002F View \u002F Tools \u002F Help); native right-click menus on photos.\n- Right info drawer: properties \u002F tags \u002F people \u002F places.\n- **Fully local: no network access, no telemetry.**\n\n### Intentionally Not Planned (present in the original Picasa, but not planned for now)\n\nAdvanced retouching workflows (retouch \u002F picnik), collage \u002F poster \u002F CD burning, online sharing (Picasa Web \u002F social platforms \u002F email \u002F printing), TWAIN camera scanning, cloud album sync, and Picasa2 migration.\n\n## Preview-only formats\n\nGIF, PSD and PSB are indexed and shown as read-only quick previews. They are never re-encoded; batch export copies the original bytes unchanged.\n\n- **GIF**: first frame only. Animation playback, per-frame editing and GIF encoding are not provided.\n- **PSD \u002F PSB**: the merged composite image already stored in the file, parsed in-house from Adobe's public *Photoshop File Formats Specification*. Layers, blend modes, smart objects, CMYK \u002F Lab and 16\u002F32-bit documents are not rendered. A file saved without a merged composite has no preview on systems without a system thumbnail provider.\n- **WebP**: lossy and lossless decoding; animated WebP also shows its first frame. Export writes lossless WebP only.\n\nNo Adobe code is bundled; see [THIRD_PARTY_NOTICES.md](.\u002FTHIRD_PARTY_NOTICES.md).\n\n## Roadmap\n\n- Prioritize a stable Windows build, with instant photo search and instant preview across many image formats.\n- Improve launch stability and the stability of photo viewing\u002Fpreview; achieve instant search and instant viewing across one hundred thousand photos.\n- Improve simple photo effect processing.\n- Implement photo deduplication, cleanup, and similar needs.\n- Implement multi-channel photo backup, sync, and similar needs.\n- Implement local face recognition, improve accuracy, and make finding face photos fast.\n- Auto-tag photos to enable text-based image search (e.g., \"help me find where my ID card is stored\").\n- Support multiple operating systems, e.g., a usable Linux version.\n- Introduce natural-language conversational image processing.\n- Provide multi-scenario presets for image processing.\n\n## Tech Stack\n\n- **Language**: Rust 2021\n- **UI**: [egui](https:\u002F\u002Fgithub.com\u002Femilk\u002Fegui) \u002F [eframe](https:\u002F\u002Fgithub.com\u002Femilk\u002Fegui) 0.33 (wgpu rendering)\n- **Database**: [rusqlite](https:\u002F\u002Fgithub.com\u002Frusqlite\u002Frusqlite) (bundled SQLite)\n- **System integration**: the `windows` crate (WPD \u002F WIA \u002F COM on Windows)\n- **Imaging**: `image` 0.25 (JPEG \u002F PNG \u002F WebP \u002F TIFF \u002F BMP \u002F GIF); PSD \u002F PSB read-only composite preview implemented in-house (see [Preview-only formats](#preview-only-formats))\n\n## Building\n\n### Requirements\n\n- Windows 10\u002F11 (the project currently targets Windows only, relying on the `windows` crate for device import)\n- The [Rust toolchain](https:\u002F\u002Fwww.rust-lang.org\u002Ftools\u002Finstall) (stable; a recent version is recommended)\n- Network access is required during the build to fetch dependencies from crates.io\n\n### Standard Build\n\n```bash\n# Clone (if needed)\ngit clone https:\u002F\u002Fgithub.com\u002Fwadereye\u002FRelyto.Maliang\ncd Relyto.Maliang\n\n# Debug build\ncargo build\n\n# Release build (recommended; enables LTO and a single codegen unit)\ncargo build --release\n\n# Run\ncargo run            # or run target\u002Frelease\u002Fmaliang.exe\n```\n\n### Slim Build (without AI)\n\nThe `ai` feature pulls in ONNX Runtime and model files (OCR \u002F faces \u002F CLIP) and is **enabled by default**:\n\n```bash\ncargo build --release          # default = includes ai\n```\n\nIf you don't want the extra size and dependencies:\n\n```bash\ncargo build --release --no-default-features\n```\n\nIn a slim build, the \"People\" and \"Semantic Search\" views will indicate that they were not compiled in; everything else works as usual. Before enabling the feature, make sure the `onnxruntime` runtime and the corresponding model weights are in place.\n\n### Models (not bundled, place them yourself)\n\nModel files and weights are not distributed with the program (size and licensing reasons). At runtime they live in the `models\\` subfolder of the **data directory** (default `%APPDATA%\\Relyto\\Maliang\\models\\`; the data directory can be relocated under Options > General). When a model is missing, the corresponding feature shows placement guidance instead of failing; other features are unaffected.\n\nThe manifest URL is built into the program as a factory default, so a fresh install or a wiped local configuration keeps update checks working. Face-model downloads work **out of the box** — the program ships with built-in official direct URLs per scheme (the two files of the **default scheme (SFace)** point at OpenCV Zoo, Apache-2.0 covering the weights themselves, commercial use OK; the AdaFace recognition file is a community ONNX export of the official weights, whose training-data licensing chain needs to be reviewed by the user, see the \"Non-default scheme weight licensing\" below), and `ModelURL` ships pointing at a mirror directory that acts as a fallback whenever a built-in source lacks a file; the `antelopev2` scheme's weights may not be redistributed, so that scheme stays manual-placement only in every case. In the `[update]` section of the unified `maliang.ini`: `UpdateURL` (manifest URL) falls back to the built-in address when omitted, points at your own server to switch sources, and disables auto-update when set to an empty value; `ModelURL=https:\u002F\u002Fyour.host\u002Fmaliang\u002Fmodels\u002F` (a mirror models folder, trailing `\u002F`) serves as a fallback source besides the built-in official URLs: at startup the program checks the models folder and, if something is missing, asks — the download only starts once you confirm in that dialog or press 「下载模型」 (Download models) under Options > General (the recognition model is large, so traffic is never spent on the user's behalf by default). Downloading runs in the background in Range segments with progress in the status bar and the settings page; an interrupted transfer keeps its breakpoint and the next press resumes it, and when one source fails (unreachable, an HTTP error, or a file that fails verification) the next candidate source is tried automatically — only an explicit cancel stops right away. Before a file is put in place it is actually loaded through ONNX Runtime, and anything that fails to load is discarded. Leaving `ModelURL` empty or blank disables the mirror fallback; the `antelopev2` scheme's weights may not be redistributed, so that scheme stays manual-only in every case. If you operate a server and distribute models from it, confirm yourself that the redistribution complies with the relevant licenses. The copy next to `maliang.exe` wins if present (portable layout), otherwise `%APPDATA%\\Relyto\\Maliang\\maliang.ini`; the \"打开配置文件\" (Open config file) button, present both under Help > Check for updates and in the face-scheme block of Options > General, opens it directly.\n\n| File | Purpose | Source & license |\n|---|---|---|\n| `face_det.onnx` | Face detection (YuNet, 2023mar release) | [opencv\u002Fopencv_zoo](https:\u002F\u002Fgithub.com\u002Fopencv\u002Fopencv_zoo\u002Fblob\u002Fmain\u002Fmodels\u002Fface_detection_yunet\u002F), Apache-2.0 |\n| `face_rec_sface.onnx` | Face recognition, 128-d (**default scheme** SFace) | [opencv\u002Fopencv_zoo](https:\u002F\u002Fgithub.com\u002Fopencv\u002Fopencv_zoo\u002Fblob\u002Fmain\u002Fmodels\u002Fface_recognition_sface\u002F), Apache-2.0 (**weights included**, commercial use OK) |\n| `face_rec.onnx` | Optional: face recognition, 512-d (AdaFace IR-50 exported to ONNX) | [mk-minchul\u002FAdaFace](https:\u002F\u002Fgithub.com\u002Fmk-minchul\u002FAdaFace), code under MIT; weights trained on MS1MV2 (non-commercial), see the notice below |\n| `face_det_v2.onnx` \u002F `face_rec_v2.onnx` | Optional: insightface antelopev2 (SCRFD + ArcFace, **weights are not commercially usable**, bring your own) | [deepinsight\u002Finsightface](https:\u002F\u002Fgithub.com\u002Fdeepinsight\u002Finsightface), per the official weight license |\n| `ch_PP-OCRv4_det_infer.onnx` \u002F `ch_PP-OCRv4_rec_infer.onnx` \u002F `ppocr_keys_v1.txt` | Chinese OCR | PP-OCRv4 (PaddleOCR, Apache-2.0) |\n| `clip_vision.onnx` \u002F `clip_text.onnx` \u002F `clip_merges.txt` | Semantic search | OpenAI CLIP (MIT), exported to ONNX |\n\nThe program fetches by fixed file names only (`\u003CModelURL>face_det.onnx` + `\u003CModelURL>face_rec_sface.onnx` for the default scheme, see the table for the others), so placing files with those names on your own server is enough to switch sources. The official URLs below are for lining things up when you stage the files, and for manual placement: prefer the official links, and fall back to an accelerator mirror in China only when the official address is unreachable.\n\n#### Where each face model can actually be downloaded from (measured one by one, 2026-11-07)\n\n| File name in the program | Official URL | Accelerator mirror reachable in China | Measured result |\n|---|---|---|---|\n| `face_det.onnx` | \u003Chttps:\u002F\u002Fmedia.githubusercontent.com\u002Fmedia\u002Fopencv\u002Fopencv_zoo\u002Fmain\u002Fmodels\u002Fface_detection_yunet\u002Fface_detection_yunet_2023mar.onnx> | OpenCV's official HuggingFace repo \u003Chttps:\u002F\u002Fhuggingface.co\u002Fopencv\u002Fface_detection_yunet>, mirrored at \u003Chttps:\u002F\u002Fhf-mirror.com\u002Fopencv\u002Fface_detection_yunet\u002Fresolve\u002Fmain\u002Fface_detection_yunet_2023mar.onnx> | Official URL: 200 \u002F 232,589 bytes; `hf-mirror.com` gives the same 200 \u002F 232,589 (`huggingface.co` itself depends on your network — it was unreachable during this measurement). ⚠️ The same path on `raw.githubusercontent.com` returns only a 131-byte Git-LFS pointer — you must go through `media.githubusercontent.com`. opencv_zoo's GitHub Releases carry no model assets. The GitCode mirror of opencv_zoo **cannot serve as a direct source**: `...\u002Fraw\u002Fmain\u002F...onnx` answers 200 with a 6 KB HTML shell, `file.gitcode.com` answers 401, and the `raw.gitcode.com` path is 404. |\n| `face_rec_sface.onnx` | \u003Chttps:\u002F\u002Fmedia.githubusercontent.com\u002Fmedia\u002Fopencv\u002Fopencv_zoo\u002Fmain\u002Fmodels\u002Fface_recognition_sface\u002Fface_recognition_sface_2021dec.onnx> | OpenCV's official HuggingFace repo \u003Chttps:\u002F\u002Fhuggingface.co\u002Fopencv\u002Fface_recognition_sface>, mirrored at \u003Chttps:\u002F\u002Fhf-mirror.com\u002Fopencv\u002Fface_recognition_sface\u002Fresolve\u002Fmain\u002Fface_recognition_sface_2021dec.onnx> | Same repo, same rules as YuNet: fetch via `media.githubusercontent.com` or HuggingFace — `raw.githubusercontent.com` only gives an LFS pointer. Official URL: 200 \u002F 38,696,353 bytes (≈36.9 MiB, measured 2026-11-08). Apache-2.0 **covers the weights**, so the program may auto-download it once ModelURL is configured. |\n| `face_rec.onnx` | AdaFace publishes PyTorch weights only, hosted on Google Drive (IR-50 \u002F MS1MV2: \u003Chttps:\u002F\u002Fdrive.google.com\u002Ffile\u002Fd\u002F1eUaSHG4pGlIZK7hBkqjyp2fc2epKoBvI>) | No official mirror | The official repo has no ONNX asset at all (GitHub Releases are empty), and the author's later CVLFace repo on HuggingFace ships only `model.safetensors`. So this file is either converted with the script below or staged on your server once converted; AdaFace ONNX files circulating elsewhere are not official releases. ⚠️ These weights were trained on MS1MV2 (a research-only dataset) and their licensing chain is unresolved — read the AdaFace weight licensing notice before commercial use. |\n| `face_det_v2.onnx`, `face_rec_v2.onnx` | \u003Chttps:\u002F\u002Fgithub.com\u002Fdeepinsight\u002Finsightface\u002Freleases\u002Fdownload\u002Fv0.7\u002Fantelopev2.zip> (a release asset under tag `v0.7`; `buffalo_l.zip` sits on the same page) | ModelScope's `deepghs\u002Finsightface` is an automated community mirror, not official | Official package is 360,662,982 bytes (≈344 MiB; size measured through the GitHub API). After unpacking, rename the detector (SCRFD 10G, `scrfd_10g_bnkps.onnx` inside the package) to `face_det_v2.onnx` and the recognizer (ArcFace R100, `glintr100.onnx`, which is where the 512-d side comes from) to `face_rec_v2.onnx` — take the names actually present in the package as authoritative. The `det_10g.onnx` \u002F `w600k_r50.onnx` files inside `buffalo_l.zip` belong to a different scheme and are not what these names mean. **Redistribution is not permitted by the weight license, so the program never downloads this scheme.** |\n\nAll three face schemes are supported; pick one under **Options > General > Face recognition scheme**. The default is **YuNet + SFace** (both models Apache-2.0 with weights included — commercial use OK, and auto-downloadable via ModelURL). Vectors across schemes are incompatible — switching prompts a rescan, and clustering\u002Fsuggestion thresholds switch with the scheme automatically. The detection model type is auto-detected from its output tensor count, so just name the files per the chosen scheme.\n\n#### Non-default scheme weight licensing (read this before choosing AdaFace \u002F antelopev2)\n\n- **YuNet \u002F SFace (default scheme, listed for reference)**: both models come from OpenCV Zoo and are released under Apache-2.0 **with the license covering the weight files themselves** — commercial use and redistribution are permitted (keep the license and attribution notices, see THIRD_PARTY_NOTICES.md).\n- **AdaFace (optional, bring your own weights)**: the code is MIT (© 2022 Minchul Kim), but the official model card explicitly asks users to *follow the license of the training dataset*; the pretrained weights were trained on MS1MV2 (the cleaned MS-Celeb-1M) and CASIA-WebFace, whose terms are **non-commercial, research-only**. The code's MIT license does **not** cover the training data, and converting the weights to ONNX (or any other format) grants no new rights. Choosing this scheme means you supply the weights and carry the licensing review yourself.\n- **antelopev2 (optional, bring your own weights)**: insightface's official disclaimer for its published models reads *The pretrained models we provided with this library are available for non-commercial research purposes only*. These weights **may not be redistributed**; the program never downloads them and offers manual placement only.\n\nThis project therefore handles the non-default schemes as follows:\n\n- **Manual download is the recommended path**: obtain the weights yourself via the links below, convert them (AdaFace), and place the ONNX into the models folder — the licensing responsibility rests with the user.\n- If you run your own server and choose to redistribute the AdaFace weights, put its address in `ModelURL` — the redistribution and its licensing consequences are the server operator's responsibility, not this program's; antelopev2 never enters the download pipeline.\n- For stricter licensing needs, watch for weights re-released upstream under clearer terms, or use a model you trained yourself (AdaFace's network and conversion script are MIT-licensed too).\n\nFace model setup:\n\n- **Detection (YuNet, shared by the default and AdaFace schemes)**: download the `face_detection_yunet_2023mar.onnx` linked above, rename it to `face_det.onnx`, and drop it into the models folder. Fetch it through `media.githubusercontent.com` or HuggingFace — the same path on `raw.githubusercontent.com` gives you a 131-byte Git-LFS pointer instead of the model, which the load check rejects.\n- **Recognition (SFace, default scheme)**: download `face_recognition_sface_2021dec.onnx` (Apache-2.0, weights included), rename it to `face_rec_sface.onnx`, and place it in the models folder (128-d output). With `ModelURL` configured the program can fetch these two files for you.\n- **Recognition (AdaFace, optional)**: the official repository ships PyTorch weights, which must be converted to ONNX first. Download the IR-50 weights per its README (e.g. `adaface_ir50_ms1mv2.ckpt`) and run the following from the AdaFace repository root:\n\n  ```python\n  # pip install torch onnx\n  import torch\n  from net import build_model\n\n  model = build_model(\"ir_50\")\n  ckpt = torch.load(\"adaface_ir50_ms1mv2.ckpt\", map_location=\"cpu\")\n  state = ckpt.get(\"state_dict\", ckpt)\n  model.load_state_dict({k.replace(\"module.\", \"\"): v for k, v in state.items()})\n  model.eval()\n  torch.onnx.export(\n      model, torch.randn(1, 3, 112, 112), \"face_rec.onnx\",\n      input_names=[\"input\"], output_names=[\"embedding\"], opset_version=17,\n  )\n  ```\n\n  Put the resulting `face_rec.onnx` into the models folder (512-d output, matching the vector dimension stored in the library).\n- **Optional scheme (antelopev2)**: unpack the official `antelopev2.zip` and rename `scrfd_10g_bnkps.onnx` to `face_det_v2.onnx`, `glintr100.onnx` to `face_rec_v2.onnx` (the 512-d side is the latter) before placing them. `det_10g.onnx` \u002F `w600k_r50.onnx` come from the buffalo_l scheme and are not the files this scheme expects — do not rename those instead. The weight license forbids redistribution, so this scheme stays manual: the program never downloads it.\n\nModel files remain the property of their respective owners; see [THIRD_PARTY_NOTICES.md](.\u002FTHIRD_PARTY_NOTICES.md) for attribution and license texts.\n\n### Common Commands\n\n```bash\ncargo check          # type checking only (fast)\ncargo test           # run tests (includes AI module tests by default)\ncargo test --no-default-features   # tests for the slim build\n```\n\n### Build Troubleshooting (Windows)\n\n- The project depends on the `windows` crate and COM, so use the native MSVC toolchain provided by the official Rust installer.\n- If the C drive is short on space and `cargo`'s temporary files cause errors, point the temp directory elsewhere:\n  ```powershell\n  $env:TMP = \"D:\\\\build-tmp\"; $env:TEMP = \"D:\\\\build-tmp\"\n  cargo build --release\n  ```\n- If resource compilation fails with \"Can not find Windows SDK\", put the full path of `rc.exe` into `RC_PATH` and retry (with the Windows SDK installed it usually lives under `C:\\Program Files (x86)\\Windows Kits\\10\\bin\\\u003Cversion>\\x64\\`):\n  ```powershell\n  $env:RC_PATH = \"C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.26100.0\\x64\\rc.exe\"\n  cargo build --release\n  ```\n- The first build compiles a large number of dependencies and takes a while — please be patient.\n\n## Project Layout\n\n```\nRelyto.Maliang\u002F\n├── Cargo.toml          # package definition and dependencies\n├── Cargo.lock\n├── assets\u002F\n│   └── presets.dat     # built-in effect parameter pack (embedded at compile time, overridable via CLI)\n├── src\u002F\n│   ├── main.rs         # entry point (UI thread DPI awareness, index store, eframe startup)\n│   ├── app.rs          # main UI (views \u002F sorting \u002F folder manager)\n│   ├── scan.rs         # directory scanning and indexing\n│   ├── thumbs.rs       # thumbnail generation and caching\n│   ├── timeline.rs     # timeline aggregation\n│   ├── watch.rs        # directory change monitoring\n│   ├── db.rs           # SQLite storage layer\n│   ├── pool.rs         # string pools (columnar storage)\n│   ├── effects.rs \u002F curves.rs \u002F oneclick.rs  # editing and enhancement\n│   ├── recipes.rs                            # grouped filter recipes and pixel primitives\n│   ├── assets.rs \u002F assets_format.rs           # reading and format of the built-in parameter pack\n│   ├── faces.rs \u002F clip.rs \u002F ai.rs            # AI capabilities (ai feature)\n│   ├── device.rs \u002F wpd.rs \u002F win.rs           # device import and system integration\n│   ├── video.rs \u002F xmp.rs \u002F export.rs \u002F save.rs\n│   └── ...\n└── target\u002F             # build artifacts (gitignored)\n```\n\n## Built-in Effect Parameters (Asset Pack)\n\nTunable values — curve presets, luma weights, the default parameters for black-and-white \u002F two-tone \u002F grain, blur shape coefficients, scroll damping constants, and so on — do not live in the source code. They are centralized in `assets\u002Fpresets.dat`, a little-endian binary container with a magic header and version number (section names + f64 value lists). This way, adjusting the look only requires changing data, not code.\n\nResolution order at startup:\n\n1. `%APPDATA%\\Maliang\\presets.dat` in the user directory (if present and well-formed) — overridable;\n2. the compile-time-embedded `assets\u002Fpresets.dat` (always available, as the fallback).\n\nThe pack can be converted between text and binary:\n\n```bash\n# Export the currently active pack as readable text\ncargo run -- --export-assets my-presets.txt\n\n# Write an edited pack back to the user directory (takes effect on next launch)\ncargo run -- --import-assets my-presets.txt\n```\n\nIf the pack is corrupted, the app automatically falls back to the embedded copy and still starts normally.\n\n## Trademark & Disclaimer\n\nPicasa is a trademark of Google LLC. This project is an **independent open source implementation** with no affiliation to, and no authorization, sponsorship, or endorsement from, Google LLC.\n\nMaliang is an independently written implementation in Rust; this repository contains and distributes no Google source code, binaries, or asset files. Similarities in interface and interaction design are intended to preserve a familiar experience and to support data interoperability with Picasa (such as the classic `picasa.ini` file format).\n\nAdobe and Photoshop are trademarks or registered trademarks of Adobe Inc. Mentioning PSD \u002F PSB here describes file-format compatibility only and implies no affiliation, authorization, sponsorship, or endorsement, and makes no claim of Adobe compatibility certification.\n\n## Third-Party Notices\n\nThe project's own code is released under the Apache License 2.0, and the project additionally includes or references the following third-party content. Full attribution and license texts are collected in [THIRD_PARTY_NOTICES.md](.\u002FTHIRD_PARTY_NOTICES.md); all third-party components are used and distributed under their original license terms, which the licensing of this project neither replaces nor overrides.\n\n- **OpenAI CLIP** (MIT license): the BPE tokenizer implementation in `src\u002Fclip.rs` is written with reference to its code;\n- **Cargo dependencies** (egui \u002F eframe \u002F wgpu \u002F image \u002F rusqlite \u002F windows and others): all under MIT, Apache-2.0, or BSD-family licenses, compatible with this project's release license;\n- **Models & weights**: the repository distributes no model or weight files; runtime resources are obtained by the user and placed into the local model directory, and all rights remain with their respective owners.\n\n## License\n\nThe project's own code is released under the [Apache License 2.0](.\u002FLICENSE); third-party components follow their respective original license terms — see [Third-Party Notices](#third-party-notices) and [THIRD_PARTY_NOTICES.md](.\u002FTHIRD_PARTY_NOTICES.md).\n\n## WeChat Official Account QR Code\n\nScan the code, then tap \"AI 交流\" (AI Chat) to add my WeChat, and I'll pull you into the group.\n\n![WeChat Official Account QR code](assets\u002Fimages\u002Fcontact_gzh.jpg)\n","Relyto.Maliang 是一款面向本地照片管理与编辑的桌面应用，主打快速响应、离线优先与隐私保护。它采用 Rust 编写，基于 egui 构建跨平台界面，内置原生运行的轻量 AI 模型，支持智能打标、自然语言搜索（Chat-to-search）、即时预览和一键式批量处理。所有数据完全保留在用户本地，不上传云端；通过 SQLite 本地索引实现毫秒级文件检索与实时目录同步，并支持多尺寸缩略图缓存、时间线\u002F文件夹\u002F相册多视图浏览及主流图像格式（含 RAW、PSD）。适用于注重隐私、追求高效本地化工作流的摄影爱好者与专业摄影师。","2026-11-25 04:50:54","CREATED_QUERY"]