Skip to content
karma-gitPublic

About

Turn photo edits described in words into a repeatable style for your entire photo series.

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Ekphrasis

A Rust photo editor with a native macOS app, a CLI, and an MCP server. Describe an edit in words, refine it with local tools, and keep every result in a branching version history.

Ekphrasis (ἔκφρασις) means a verbal description of a work of art. The project was previously called Photo Codex.

Status: experimental. The Mac app targets Apple Silicon and macOS 13+. Build from source; the bundle is locally signed and is not Apple-notarized. There is no web UI or built-in HTTP server.

What it does

  • Natural-language editing: runs your installed Codex CLI with a prompt and selected images. Precise edits can use Rust-rendered recipes; generative edits can change backgrounds, objects, and style.
  • Local tools: crop, rotate, straighten, resize, exposure and color adjustments, automatic adjustments, and smart crop.
  • Masks: brush/eraser, person selection, local LaMa inpainting, and background removal, recoloring, or blur using downloaded ONNX models.
  • Reusable styles: compile an edit history or written brief into a recipe or use generative processing; apply a style to a batch and optionally export a LUT.
  • Version history: continue from an earlier version without overwriting the original. Export JPEG, WebP, or PNG separately.
  • Mac workflow: Russian/English UI, HEIC/HEIF import through macOS, and Instagram carousel drafts with image and caption export. Publishing is manual.
  • Automation: CLI and stdio MCP tools share the editor's Rust services.

Local tools do not invoke Codex. Codex edits, style compilation, generative batches, QA, and caption generation use your configured Codex account and its limits. Image-generation availability depends on your Codex installation and account. Ekphrasis does not require a separate API key configuration.

Build and try it

Install Rust (stable), Xcode Command Line Tools on macOS, and optionally Codex CLI for AI features. Authenticate Codex independently before using those features.

git clone https://github.com/karma-git/ekphrasis.git
cd ekphrasis
cargo build --release --locked -p ekphrasis
export PATH="$PWD/target/release:$PATH"
mkdir -p "$HOME/Pictures/Ekphrasis"
ekphrasis --root "$HOME/Pictures/Ekphrasis" photos import /absolute/path/photo.jpg
ekphrasis --root "$HOME/Pictures/Ekphrasis" photos list

Use an ID from the list:

export EKPHRASIS_ROOT="$HOME/Pictures/Ekphrasis"
ekphrasis tools auto PHOTO_ID
ekphrasis edit PHOTO_ID "Make the light warmer"
ekphrasis export PHOTO_ID --format jpeg -o "$HOME/Desktop/edited.jpg"

For the native Mac app, run from the repository root:

bash scripts/bundle-mac.sh
open target/bundle/Ekphrasis.app

Choose a separate library folder for your photos. See installation for signing, dependency checks, and troubleshooting.

Documentation

The user documentation site covers installation and editor features. Repository-only development and agent documents are excluded from its build.

Guide Contents
Installation CLI, Mac bundle, Codex, models, troubleshooting
User guide Import, tools, masks, versions, styles, batches, export
CLI reference Commands, examples, root selection, exit codes
MCP reference Client configuration, tool names, asynchronous jobs
Style recipes Recipe schema, operations, LUTs, legacy styles
Architecture Crates, processing flow, storage, limitations
Privacy and data Local files, external calls, backups
Contributing Development, isolated tests, pull requests
Security Reporting vulnerabilities
Third-party notices Dependencies, models, assets
Public release checklist Maintainer checks before changing visibility

Limits

Jobs and batches are in memory and do not survive process exit. One photo can have one running edit; different photos can run concurrently. Generative results are nondeterministic and can alter small details or text. Local models require a first network download and can take time to initialize. Keep backups of valuable photos.

License

Project-authored code and documentation are available under the MIT License. Third-party dependencies, model weights, and user images retain their own terms; see third-party notices.

About

Turn photo edits described in words into a repeatable style for your entire photo series.

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages