# Repository Briefing: phil-haderer/pxc
> Source: https://repoforai.com/repo/phil-haderer/pxc (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/phil-haderer/pxc
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: Python
- **License**: Apache-2.0
- **Engineering Health**: A (86/100 · Maintenance 35/35 · Adoption 11/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v1.2.0 (2026-11-29) — https://github.com/phil-haderer/pxc/releases
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: Self-Hosted, Local AI, GPU
- **Momentum**: 234 ★ total (+5 24h / +157 7d) · 18 forks
- **Topics**: `ai`, `ai-art`, `comfyui`, `flux`, `generative-ai`, `image-editing`, `image-generation`, `inpainting`, `linux`, `local-ai`, `outpainting`, `photocraft`
- **When to Use**: Best for: PhotoCraft users and studios with a supported NVIDIA setup who want to fill, extend, edit, or upscale images locally and keep the results on separate layers. Skip if: You need arbitrary node-graph authoring in the companion UI, a managed backend, verified non-NVIDIA support, or a generation path that preserves CMYK, Lab, or 16-bit precision end to end.

## Overview
```text
### Architecture & Core Mechanics
PxC is a Python/Tk desktop companion that bridges PhotoCraft and a separately running ComfyUI backend. PhotoCraft owns the document and selection, PxC maps the chosen operation and settings to a workflow, and ComfyUI runs inference on the GPU. Results return to PhotoCraft as new layers in a group, with a soft mask where appropriate. The repository contains the `pccomfy/` package and a `workflows/` directory; the installed `pccomfy` command enters through `pccomfy.__main__:main`.

The package requires Python 3.10+, Pillow 12.3+, and NumPy 2.2+, with Tomli on Python 3.10 for TOML configuration. `websocket-client` and `tkinterdnd2` are optional package extras for progress reporting and reference-image drag-and-drop; both are listed in the setup scripts' shared `requirements.txt`. `config.toml` can point PxC to another ComfyUI address or port. Backend extensions remain ComfyUI dependencies: GGUF needs ComfyUI-GGUF, and Flux 2, Flux 3 upscaling, and Fibo's tiled upscale path need ComfyUI-KJNodes.

### Key Capabilities & Differentiators
PxC covers text-to-image, canvas expansion, selection fill and removal, prompt-driven and reference-guided edits, refinement, and upscaling. The seven model families are Flux 3 Klein, Flux 2 Klein, Qwen Image 2.1, Fibo 2.0 Edit Turbo, Krea 2 Turbo, MOSS Image, and MiniMax H3 Image. Coverage varies by model: MOSS and Krea are text-to-image only, while Flux 3 supports reference insertion into a rectangular selection. In v1.2.0, Text to Image exposes denoise for image-to-image across all supported models, but the same setting does not preserve the source equally across families.

Local prompt writers can rewrite prompts using the canvas and references, build prompts from sketches, and identify what to remove on supported models. v1.2.0 adds SAM 3 object selection and remembers custom LoRAs per model. Model packs place files in the expected ComfyUI directories; Model Links can reuse bf16, fp8, nvfp4, or GGUF weights, with the GGUF extension installed for the latter. Most model packs take 13–19 GB on disk; MiniMax H3 takes about 38 GB, or about 30 GB for its smaller variant.

### Trade-offs & Limitations
Compared with direct ComfyUI use, PxC saves the work of moving images, selections, and results between a node graph and the editor. Its model-specific presets are useful for repeated retouching, but the companion UI is not a substitute for building arbitrary workflows in ComfyUI. Compared with Photoshop-style integrated generative editing, PxC runs inference on your GPU and leaves you responsible for weights, optional nodes, and backend compatibility.

Treat the PhotoCraft session as occupied while a run is active: it briefly opens a temporary document, operations produce multiple history entries, and changing the document or selection mid-run is discouraged. CMYK, Lab, and 16-bit content passes through 8-bit RGB, so this is not a precision-preserving round trip for those documents. On Linux, X11 offers tighter window coupling than Wayland. PxC's MIT-or-Apache-2.0 license does not extend to model weights or third-party nodes; check their terms separately before commercial use or redistribution.

### Hardware & Deployment Guide
Run PxC on Windows 10/11 or Linux with PhotoCraft 0.23.1 or later, a running ComfyUI instance, and a GPU with at least 8 GB of VRAM. Only NVIDIA GPUs have been tested; the 8 GB baseline is not a sizing guarantee for every model and workflow. Inference is local, but first-time setup may require downloading model weights and custom nodes. Start with the pack for the model you need, restart ComfyUI after adding its files, and check node dependencies for the specific function you intend to use.

Windows offers a portable ZIP with bundled Python or a source setup via `setup-windows.bat`. On Linux, `setup-linux.sh` uses Python 3.10+ with Tk and venv, creates a private environment and menu entry, and leaves system package installation to the user; `pxc.sh` is the direct launcher. Windows 11 and Linux Mint are tested targets. v1.1.0 introduced same-function queuing for selected operations; v1.1.1 added per-function settings save and reset plus run-stop handling on close. v1.2.0 adds Windows portability, PhotoCraft 0.24 compatibility, and one-button updates for Git installs.
```

## Key Capabilities
```text
- Editor integration: ComfyUI outputs return to PhotoCraft as new layers in a group, with soft masks where applicable.
- Selection tooling: v1.2.0 adds click-to-select via SAM 3; Flux 3 can insert a reference into a rectangular selection.
- Prompt assistance: Local prompt writers can inspect the canvas or references, turn sketches into prompts, and name subjects for removal on supported paths.
- Model management: Per-model packs install files into ComfyUI's expected folders; Model Links can reuse existing weights, with ComfyUI-GGUF required for GGUF.
- Generation queue: Text to Image, Edit, Refine Image, and Upscale can queue same-function jobs, capturing the image and settings at submission.
- Color fidelity: CMYK, Lab, and 16-bit sources pass through 8-bit RGB during processing.
```

## Quick Start / Clone
```bash
# Debian/Ubuntu
   sudo apt install python3 python3-tk python3-venv
   # Fedora
   sudo dnf install python3 python3-tkinter
   # Arch
   sudo pacman -S python tk
   # optional, to paste pictures from the clipboard: wl-clipboard (Wayland) or xclip (X11)
   sudo apt install wl-clipboard xclip
   # only if setup-linux.sh says libXcursor is missing (needed to drag pictures onto the reference slots)
   sudo apt install libxcursor1      # Fedora: libXcursor, Arch: libxcursor
```
