phil-haderer/pxc
A local ComfyUI bridge for layer-based generative editing in PhotoCraft
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
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.
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.
Quick Start & Installation
# 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
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| pxc ★ | 234 | +157 | Python | Apache-2.0 | A local ComfyUI bridge for layer-based generative editing in PhotoCraft |
| InvokeAI | 29.2k | +65 | TypeScript | Apache-2.0 | Self-hosted canvas and node workflows for AI image generation and editing |
| OpenMontage | 85.4k | +1.5k | Python | AGPL-3.0 | Agent-led video production from brief to finished edit |
| stable-diffusion-webui | 165.4k | +65 | Python | AGPL-3.0 | Gradio WebUI for local Stable Diffusion generation, editing, and parameter sweep |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/phil-haderer/pxc.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about pxc
How does PxC connect PhotoCraft to ComfyUI without overwriting the original image?
What GPU and disk capacity should I budget for?
Can a studio self-host PxC for commercial work?
When is PxC a better fit than using ComfyUI directly or an integrated editor?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy