Skip to content

About

Local-first AI image studio for macOS and Windows: text-to-image, editing, background removal, and 4x upscaling. 本地优先的 AI 图像工作台:文生图、图片编辑、去背景与 4 倍放大。

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Image Studio

English | 简体中文

Quality License: Apache-2.0

Image Studio is a local-first desktop image creation studio for macOS arm64 and Windows x64, built with Rust, Tauri 2, and React. It provides text-to-image, instruction-based image editing, background removal with RGBA/mask output, and exact 4× upscaling while keeping model execution and project data on the local machine.

Image Studio generation workspace

Highlights

  • Seven certified models / eight capabilities on both macOS and Windows.
  • Local execution: no hosted image API or cloud project storage.
  • Conversation workspace: drafts, prompts, parameters, progress, results, retries, and cancellation remain grouped by conversation.
  • Deterministic model identities: pinned revisions, per-file SHA-256, fixed runtimes, recipes, and worker protocol identities.
  • Durable local library: SQLite-backed drafts, jobs, attempts, assets, task history, and provenance.
  • Strict process supervision: bounded worker output, cancellation, descendant cleanup, execution leases, and crash recovery.
  • Cross-platform releases: Windows NSIS and macOS arm64 .app artifacts are built and verified by GitHub Actions.

Supported Models

Model Capabilities Fixed recipe
Z-Image Turbo Text to image 4-bit loading, 9 steps, 1:1 / 4:3 / 3:4
FLUX.2 Klein 4B distilled Text to image, single-image edit 4-bit loading, 4 steps, guidance 1.0
BiRefNet general epoch_244 Remove background, RGBA + mask ONNX Runtime CPU, float32
Real-ESRGAN x4plus Exact 4× upscale ncnn Vulkan, tile 128
Qwen-Image 2.1 Text to image 8-bit, 40 steps, guidance 1.0
Qwen-Image 2.1 Turbo Text to image 8-bit, 8 steps, official Turbo sampling
MOSS-Image-SFT Text to image 8-bit, 50 steps, guidance 3.0

The authoritative model catalog is resources/model-catalog/catalog.json. Windows uses separately frozen NF4/ONNX/ncnn profiles; macOS uses the verified MFLUX/MLX and ONNX runtimes.

Download

Use the latest published GitHub Release and verify the downloaded file against its SHA256SUMS-*.txt:

  • Windows x64: Image.Studio_<version>_x64-setup.exe
  • macOS arm64: Image-Studio-<version>-macos-arm64.zip
sha256sum -c SHA256SUMS-windows.txt
sha256sum -c SHA256SUMS-macos.txt

The release is unsigned and not notarized:

  • Windows may show SmartScreen. Verify the checksum, then use More info → Run anyway only if the digest matches.
  • macOS may block first launch in Gatekeeper. Verify the checksum, then Control-click the app and choose Open, or run:
xattr -dr com.apple.quarantine "Image Studio.app"

macOS builds require Apple Silicon and macOS 11 or newer. Model weights and private Python runtimes are downloaded separately and are not included in the installer or .app archive.

Product Areas

  • Create: multi-conversation image generation, source-image workflows, immediate placeholders, real worker progress, cancellation, and retry.
  • Inspiration: a searchable prompt library with source attribution.
  • Features: only capabilities backed by an installed, executable model are exposed as startable.
  • Models: installation, runtime, device eligibility, hardware thresholds, and license information from the host catalog.
  • Works: immutable formal assets across conversations, filters, preview, provenance, and native PNG/RGBA/mask export.
  • Tasks: host-side filtering, search, stable pagination, attempt history, errors, stages, logs, and recovery instructions.
  • Settings: persistent appearance, explicit new-conversation defaults, storage inspection, diagnostic status, and runtime inventory.

Build From Source

Prerequisites:

  • Rust 1.99.1 from rust-toolchain.toml
  • Node.js 24.19.0 and npm 11.17.0
  • Tauri system prerequisites for the target platform
npm --prefix apps/frontend ci
npm --prefix apps/frontend run build
cargo build --workspace --locked
cargo run -p image-studio-desktop --locked

macOS development bundle

python3 scripts/prepare-macos-dev-app.py
open "target/dev/Image Studio.app"

Windows sidecars

cargo clippy, tests, and Tauri builds require the Windows sidecars to be present in apps/desktop/binaries/. The CI workflow and scripts/build-windows-internal.ps1 construct and copy them automatically.

Frontend-only preview

npm --prefix apps/frontend run dev

Browser preview does not provide native installation, local generation, persistence, or process supervision. Rebuild the frontend and desktop app after UI changes to refresh the embedded production assets.

Local-First Architecture

React UI
  ↓ restricted Tauri IPC
Desktop host / StudioService
  ├─ exact model installation and integrity checks
  ├─ SQLite library, drafts, jobs, attempts, and assets
  ├─ generation controller and hardware gates
  └─ inference supervisor
       ↓ bounded JSON protocol
     Python / ONNX / native workers
Workspace area Responsibility
apps/desktop Tauri host, constrained IPC, installers, storage, diagnostics, and process adapters
apps/frontend React workspace, libraries, settings, task views, and canvas
crates/studio-core Typed identities, plans, recipes, attempt state, and validation
crates/worker-protocol Framing, handshakes, identity checks, and generation protocol
tools/inference-supervisor Host EOF, execution leases, worker/descendant supervision
tools/*worker* MFLUX, ONNX, Diffusers/CUDA, and Real-ESRGAN execution

The core and protocol crates do not depend on the GUI or inference frameworks. Worker stdout carries bounded protocol frames; stderr carries bounded logs. Product processes are launched with argument arrays and never through a shell.

Local Data and Safety

On macOS, default paths are:

  • Data: ~/Library/Application Support/ImageStudio
  • Cache: ~/Library/Caches/ImageStudio
  • Logs: ~/Library/Logs/ImageStudio

Use --data-dir PATH for an isolated root. One host owns a data root at a time. SQLite schema v5 stores projects, conversations, draft revisions, turns, jobs, attempts, formal assets, and provenance. Model installation and worker activation bind fixed manifests, runtime inventories, and SHA-256 contents.

Image generation succeeds only after output validation and an atomic database commit. Restart marks unfinished work as interrupted; retry creates a new Attempt only after explicit user action. Missing or externally modified assets remain visible as unavailable without deleting their historical records.

Diagnostics and Verification

Development builds can open Development → Communication diagnostics or run:

cargo run -p image-studio-desktop --locked -- --diagnostics

Diagnostics validate the constrained worker channel only. They do not prove GPU, model, or image-generation success.

cargo fmt --all -- --check
cargo clippy --workspace --all-targets --locked -- -D warnings
cargo test --workspace --locked
npm --prefix apps/frontend test
npm --prefix apps/frontend run check
npm --prefix apps/frontend run build
openspec validate --all --strict
python3 scripts/ci/validate-workflows.py
actionlint -no-color

Real model acceptance evidence is stored in verification/. The installed Windows all-model acceptance record is verification/windows-parity-app/README.md; macOS seven-model evidence is summarized in verification/qwen-moss-20261101/moss-stage-report.md.

CI and Releases

The public repository uses three pinned GitHub Actions workflows:

  • quality.yml: Windows x64 and macOS arm64 formatting, Clippy, workspace tests, frontend tests/build, and OpenSpec.
  • build.yml: Windows NSIS and macOS arm64 app artifacts with checksums and package identity checks.
  • release.yml: version/main provenance checks and a draft GitHub Release.

See CI and release documentation and verification/ci-release/ for the current runs and artifact digests.

Contributing and Security

  • Report vulnerabilities through SECURITY.md, not a public issue.
  • Functional changes follow OpenSpec and Beads workflows used by the project.
  • Keep model/runtime identities pinned; do not substitute a different snapshot under an existing install id.

License

Project source and original distributable assets are licensed under Apache-2.0. Third-party libraries, fonts, example prompts/images, and model materials retain their own licenses. See NOTICE and THIRD_PARTY_NOTICES.md.

About

Local-first AI image studio for macOS and Windows: text-to-image, editing, background removal, and 4x upscaling. 本地优先的 AI 图像工作台:文生图、图片编辑、去背景与 4 倍放大。

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages