概要
Generative AI for PhotoCraft: text to image, expand, fill, remove, edit and upscale with local AI models through ComfyUI. Results arrive as new layers. Windows and Linux (tested on Linux Mint).
デザイン・メディアできること
- Seven SOTA models: Flux 3 Klein, Flux 2 Klein, Qwen Image 2.1, Fibo 2.0 Edit Turbo, Krea 2 Turbo, MOSS Image and the newly released MiniMax H3 Image. Local only: of course the models run in ComfyUI on your GPU.
- Fill Selection, with Insert reference for Flux 3
- Remove Selection
- Edit, with five modes in a list: Edit canvas · Multi image edit · Sketch to image · Scribble on photo · Scribble with reference
計測したスター増加
- 24時間
- +10
- 7日間
- +125
- 15日間
- 履歴を収集中
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルA companion app that brings Photoshop-style generative AI to PhotoCraft, running on your own PC. Pick a function, type a prompt, press Generate: the result arrives as a new layer in your document.
Tested: Windows 11 · Linux Mint (X11, Cinnamon Wayland) · PhotoCraft 0.24.0 and 0.23.1 · ComfyUI 0.45.0

Examples · Features · Before you start · Install on Windows · Install on Linux · Update · Model downloads · Functions · Help · Manual install
Many test rounds went into PxC, written with the help of Claude Code. Coming from graphic design, I built it for real work: it is already in professional use as a local stand-in for Photoshop's generative functions. I use PxC every day and keep developing it, so bug reports and ideas go straight into the next versions.
New in 1.2.0
- Portable Windows version: unzip and start, no Python, no setup.
- Pick object: click a thing in your picture and it becomes the selection (SAM 3).
- Image to image: a Denoise slider in Text to Image, for every model.
- Custom LoRAs per model: each model keeps and remembers its own list.
- PhotoCraft 0.24 works, and git installs update with one button.
- Shortcuts: A opens the Advanced settings, Ctrl+C copies the canvas.
Examples
Features
Seven SOTA models: Flux 3 Klein, Flux 2 Klein, Qwen Image 2.1, Fibo 2.0 Edit Turbo, Krea 2 Turbo, MOSS Image and the newly released MiniMax H3 Image. Local only: of course the models run in ComfyUI on your GPU.
Seven generation modes:
Text to Image
Expand Image
Fill Selection, with Insert reference for Flux 3
Remove Selection
Edit, with five modes in a list: Edit canvas · Multi image edit · Sketch to image · Scribble on photo · Scribble with reference
Refine Image
Upscale
Not every model offers every function or mode: MOSS and Krea, for example, only do Text to Image. Every function and model starts with its tested settings; change them under Advanced settings if you like.
LLMs included: tick “Enhance my Prompt with LLM” in Text to Image, Fill Selection, Edit canvas or Multi image edit, and a text model rewrites your prompt in detail; for edits it looks at the canvas and reference images first, and Reroll prompt has it write a new one. In Sketch to image, Scribble on photo and Scribble with reference it reads your drawing and writes the full prompt itself, so you only draw. In Remove Selection it names what to remove when you leave the prompt empty.
Your own prompts: save any prompt under a name; it waits in Style prompts ▸ Custom prompts and brings back the function and model you made it with.
Model files made easy:
- Download missing files gets each model as one pack, every file in the right ComfyUI folder.
- Already have a model? Pick your own file in the gear window ▸ Model Links: bf16, fp8, nvfp4, or GGUF with ComfyUI-GGUF.
- Six other versions (Qwen Image 2.1 Turbo, MOSS Image Base, Kromoss, Fibo 2.0 Dev, Krea 2 Turbo fp8, MiniMax H3 w4a8) are recognised and run with their model-card settings.
Window too small or too big? Gear
window ▸ Other settings ▸ Interface scale.
More features
Results
- Variants: several results as layers in one group; a live preview shows the picture while it is made.
- MiniMax size: MiniMax draws at 4 to 20 MP (best at about 16 MP). With Downsize to canvas the result lands on your canvas as a layer, otherwise it opens as a new document.
Undo / Redo in the header take back or bring back the last AI result.
History (⋯ menu, bottom right) brings back earlier settings.
Prompts
Style prompts add a ready-made style (examples below).
Describe Canvas: an LLM describes your picture, so you can reuse the description as a prompt for Text to Image.
Selection, reference pictures and cut-out
Pick object (bottom right): click an object in your picture, or type what it is, and PxC selects it in PhotoCraft, ready for Fill or Remove. Needs the optional SAM 3 file under Model downloads.Drop, paste (Ctrl+V) or add pictures to the reference slots; name a slot in the prompt with @ or a click on its tag.
Cut out (scissors, bottom right, and on every slot): removes the background with BiRefNet or RMBG-2.0 as a new layer with a mask. Needs the optional files under Model downloads.
Queue, batch and team use
- While a run is on, Generate becomes Add to queue (Text to Image, Edit canvas, Refine Image, Upscale).
Batch runs Refine Image, Upscale or Edit canvas on all open pictures or a whole folder.
The queue window (Q, or the list symbol at the bottom right) shows every waiting and running job with its progress.- Team use: run ComfyUI on one strong PC or server and point several PxC installations at it (gear window ▸ Other settings ▸ ComfyUI address). The queue lists your own jobs and, read-only, the jobs of the others, and the progress bar shows how many jobs are ahead of yours.
Settings and files
- Save settings / Load defaults at the bottom of Advanced settings; a blue dot marks a changed value.
- Custom LoRAs (Advanced settings ▸ Add): each model keeps its own list, so switching models no longer means switching LoRAs by hand.
- Hide this model for models you do not use; Check files (Model Links ▸ ⋯) finds damaged downloads.
The shortcuts work only while the PxC window is active: click into it first.
| Shortcut | Does |
|---|---|
| Ctrl+Enter | Generate |
| Ctrl+Alt+Enter | Stop the run |
| Ctrl+Shift+S | Save image |
| Ctrl+C | Copy canvas (in a text field it copies the text) |
| Q | Open the queue |
| A | Open or close the Advanced settings |
| Esc | Close the queue or the settings |
Unofficial community project, not affiliated with PhotoCraft, ArtCraft or Storyteller. PhotoCraft is in early alpha.
Style prompt examples
The Style prompts button beside the prompt adds a ready-made style text. A few of the built-in styles:
Text to Image (83 styles in 13 groups)
- Photo: Tilt-shift, miniature look · Golden hour travel photo · Drone shot from above · Night light trails, long exposure
- Studio & product: Studio portrait · Business headshot · Product photo, glass on white · Food photography
- Film look: Film look, warm dusk · Neon city night, bokeh · 1970s film, muted greens
- Black & white: Black and white, hard light and shadows · Double exposure, black and white
- Painting: Oil painting, 19th-century realism · Impressionist painting, sunny · Watercolor storybook · Japanese ink wash
- Drawing & print: Pencil gesture sketch · Etching, cross-hatched · Linocut print
- Graphic & poster: Mid-century travel poster · Risograph, blue and yellow · Clear-line comic · Vintage paper collage
- Anime & comic: Modern anime, clean lines · Anime, golden sky · Manga, bold ink · 1930s rubber-hose cartoon
- 3D & craft: 3D clay render · Claymation, stop-motion · Low-poly game look · Voxel diorama, pastel
- Pixel & glitch: Pixel art · VHS glitch
- Retro & vintage: Technicolor, 1950s print · Synthwave, neon retro
- Fantasy & sci-fi: Dark fantasy, glowing neon · Cyberpunk neon, rain · Cosmic glow
- Surreal: Floating objects, blue sky · Surreal reflections, pastel
Edit (34 styles in 7 groups; a style that Text to Image has too carries the same name and look)
- Photo: Realistic photo · Studio portrait · Vintage black-and-white photo · Cyanotype blue print, glowing
- Film look: Film look, warm dusk · Film look, cool blue night
- Painting: Watercolor storybook · Oil painting, 19th-century realism · Impressionist painting, sunny · Japanese ink wash
- Drawing & print: Pencil gesture sketch · Linocut print · Etching, cross-hatched
- Anime & comic: Animated film · Modern anime, clean lines · Clear-line comic
- Graphic & poster: Flat vector, sunny · Mid-century travel poster · Risograph, blue and yellow
- Retro & vintage: Pixel art · Technicolor, 1950s print · Synthwave, neon retro
Sketch to image (38 styles in 8 groups): the same looks for your drawings, e.g. Realistic photo · Animated film · Watercolor storybook · Clear-line comic
Before you start
You need:
- Windows 10/11 or Linux with a GPU with at least 8 GB VRAM (only tested on NVIDIA).
- PhotoCraft 0.23.1 or newer: the image editor where you work.
- ComfyUI: runs the AI models; leave it running while you work. Flux 2, Upscale with Flux 3 and the tiles option of Upscale with Fibo also need the add-on ComfyUI-KJNodes (ComfyUI Easy Install recommended, it includes that).
- Python 3.10 or newer. No Python yet? On Windows the setup offers to install it for you, or take the portable ZIP, which brings its own.
- About 13 to 19 GB of free disk space per model you want to use, MiniMax about 38 GB, or about 30 GB with its smaller variant.
Then follow Install on Windows or Install on Linux.
Install on Windows
There are three ways to get PxC. They differ in what you need and in how you update later:
| Way | You need | Update later |
|---|---|---|
| A. Portable ZIP (easiest) | nothing else: it brings its own Python | copy the new portable ZIP over it |
| B. ZIP and setup | Python 3.10 or newer (the setup offers to install it) | copy the new ZIP over it |
| C. git and setup (best for updates) | Python 3.10 or newer and Git | one button: Update now |
Get PxC, one of:
- A. Portable: download
pxc-<version>-windows-portable.zipfrom the newest release on the Releases page of this repository (right side of the page) and unpack it to a folder you keep. Skip step 2. Settings stay in the folderdatabeside it, so you can move or copy the whole folder. The ZIP is not signed, so Windows SmartScreen may ask once (More info ▸ Run anyway). - B. ZIP: click Code ▸ Download ZIP (green button at the top of this page) and unpack it to a folder you keep, for example
C:\programs\pxc. - C. git: open a terminal in the folder where PxC should go and run
git clone https://github.com/phil-haderer/pxc.git.
- A. Portable: download
Set up (only B and C): double-click
setup-windows.batin the PxC folder. It sets everything up and puts PxC on your desktop; it findsphotocraft.exeitself and asks once if it can't. No Python yet? It offers to install Python 3.13 with one key press. Otherwise it opens the download page: install Python 3.13 with the default options, then runsetup-windows.batagain.Start: start ComfyUI, close PhotoCraft if it is open, then double-click PxC on your desktop (portable:
Start PxC.batin the folderPxC). PhotoCraft opens and the PxC window appears next to it. The portable version finds PhotoCraft by itself; if not:Start PxC.bat --photocraft "C:\path\to\photocraft.exe".Tip: add
--use-ck-attentionat the end of themain.pyline in your ComfyUI start file (.bat). The prompt writers (Enhance my Prompt with LLM) then run 2 to 5 times faster, with the same quality, and Qwen Image pictures about 25 % faster. Nothing to install: ComfyUI brings it along, you only add the flag. If ComfyUI then does not start, update ComfyUI or remove the flag again.Get a model: in the PxC window click the gear
▸ pick a model ▸ Download missing files, then restart ComfyUI (it reads its model folders only when it starts). Qwen Image 2.1 and Fibo 2.0 need no login at external websites; Flux 3 Klein needs a free Hugging Face account once (the button opens the page; log in and accept the licence there). You can also download the files by hand: see Model downloads.Generate: pick a function and a model, type a prompt and press Generate (Ctrl+Enter). The status line at the bottom tells you what is happening.
Install on Linux
System packages (Python 3.10+ with tkinter and venv):
# 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: libxcursorGet PxC: best with git, so you can update later with one button (Update now):
git clone https://github.com/phil-haderer/pxc.git. Without git: click Code ▸ Download ZIP (green button at the top of this page) and unpack it.Set up: open a terminal in the PxC folder and run
./setup-linux.sh. It makes a private Python environment, installs the packages and adds PxC to your application menu. It never installs system packages itself; if something is missing it prints the command for your distribution. (./setup-linux.sh --checkonly looks and changes nothing.)Start: start ComfyUI, close PhotoCraft if it is open, then start PxC from the menu (or run
./pxc.sh). PhotoCraft is found inPATH,/opt,~/Applications,~/.local/binor as a Flatpak. If it is somewhere else:PHOTOCRAFT=/path/to/photocraft ./pxc.sh.Tip: start ComfyUI with
python main.py --use-ck-attention. The prompt writers then run up to 5 times faster, with the same quality. Nothing to install: ComfyUI brings it along, you only add the flag. If ComfyUI then does not start, update ComfyUI or remove the flag again.Get a model and generate: as in steps 4 and 5 of Install on Windows.
Update
- Once a day at the start PxC asks GitHub for a newer version (GitHub sees your IP address and the PxC version, nothing else). Untick Check for updates in gear
▸ Other settings to stop it; Check now asks at once. - A newer version shows as a blue dot on the gear
, with Open release page and Skip this version at the top of Other settings. - To install it, by the way you installed PxC:
- git: press Update now there, then restart PxC.
- ZIP: download Source code (zip) on the release page and copy what is in its folder
pxc-<version>over your PxC folder (replace the files), then restart PxC. Unpacking the ZIP into your folder only adds a new folder and keeps the old version. - Portable: download the new portable ZIP and copy what is in its folder
PxCover your PxC folder, then restart PxC.
- Your settings in
data\(Linux:~/.config/pccomfy/) stay as they are. Run the setup script again only if PxC or the release notes say so.
Model downloads
You do not have to sort anything yourself. Each model is one pack: the Download missing files button (gear window ▸ the model) downloads all missing files of that model and puts each one into the right ComfyUI folder automatically, sub-folders included; then restart ComfyUI. The list below is the same pack for downloading by hand: put each file into the folder named below it, inside your ComfyUI folder, then restart ComfyUI. You only need the files of the models you want. "Optional" files switch extra features on; without them the model still works.
Flux 3 Klein: about 18.2 GB needed
| File and its ComfyUI folder | Needed for | Size | Download |
|---|---|---|---|
flux3-image-klein-int8-convrot.safetensorsmodels/diffusion_models |
all functions | 5.8 GB | Hugging Face: black-forest-labs/flux-3-image-klein-comfy (needs a free Hugging Face login and acceptance of the licence) |
qwen3.5_9b_flux3_prompt_upsampler_w4a8.safetensorsmodels/text_encoders |
all functions | 6.7 GB | Hugging Face: black-forest-labs/flux-3-image-klein-comfy (needs a free Hugging Face login and acceptance of the licence) |
qwen3vl_4b_int8_convrot.safetensorsmodels/text_encoders |
all functions | 4.9 GB | Hugging Face: Comfy-Org/Krea-2 |
flux2-vae.safetensorsmodels/vae |
all functions | 336 MB | Hugging Face: Comfy-Org/Flux-2-Dev |
flux-3-image-klein-outpaint.safetensorsmodels/loras/Flux 3 |
Expand Image | 161 MB | Hugging Face: ausboss/FLUX-3-Image-Klein-Outpaint-LoRA |
flux-3-image-klein-restore.safetensorsmodels/loras/Flux 3 |
Upscale, Refine Image | 161 MB | Hugging Face: ausboss/FLUX-3-Image-Klein-Restore-LoRA |
4x-UltraSharpV2.safetensorsmodels/upscale_models |
Upscale | 140 MB | Hugging Face: Kim2091/UltraSharpV2 |
Optional (the model works without them, the named feature is greyed out):
| File and its ComfyUI folder | Feature | Size | Download |
|---|---|---|---|
seedvr2_3b_int8_convrot.safetensorsmodels/diffusion_models |
SeedVR2 pre-cleaning in Upscale | 3.5 GB | Hugging Face: Comfy-Org/SeedVR2 |
seedvr2_ema_vae_fp16.safetensorsmodels/vae |
SeedVR2 pre-cleaning in Upscale | 501 MB | Hugging Face: Comfy-Org/SeedVR2 |
taef2_decoder.pthmodels/vae_approx |
live preview | 3 MB | GitHub: madebyollin/taesd |
Custom node: Upscale also needs the custom node pack ComfyUI-KJNodes (Color Match). Install it from the ComfyUI Manager or the link, then restart ComfyUI.
Flux 2 Klein: about 18.6 GB needed
| File and its ComfyUI folder | Needed for | Size | Download |
|---|---|---|---|
flux-2-klein-9b_int8_convrot.safetensorsmodels/diffusion_models |
all functions | 9.4 GB | Hugging Face: obsxrver/ComfyUI-Native-INT8_ConvRot |
qwen_3_8b_fp8mixed.safetensorsmodels/text_encoders |
all functions | 8.7 GB | Hugging Face: Comfy-Org/Flux-2-Klein-9B |
flux2-vae.safetensorsmodels/vae |
all functions | 336 MB | Hugging Face: Comfy-Org/Flux-2-Dev |
ultra_real_v4.safetensorsmodels/loras/Flux 2 |
Upscale, Refine Image | 166 MB | Civitai (Civitai may ask you to log in) |
Optional (the model works without them, the named feature is greyed out):
| File and its ComfyUI folder | Feature | Size | Download |
|---|---|---|---|
qwen3vl_4b_int8_convrot.safetensorsmodels/text_encoders |
Enhance my Prompt with LLM, Describe Canvas, Describe Multi Image Slot, Sketch to image, Scribble on photo, Scribble with reference | 4.9 GB | Hugging Face: Comfy-Org/Krea-2 |
taef2_decoder.pthmodels/vae_approx |
live preview | 3 MB | GitHub: madebyollin/taesd |
Custom node: Upscale (always in tiles) also needs the custom node pack ComfyUI-KJNodes (Color Match). Install it from the ComfyUI Manager or the link, then restart ComfyUI. Without it Flux 2 is locked.
Qwen Image 2.1: about 17.3 GB needed
| File and its ComfyUI folder | Needed for | Size | Download |
|---|---|---|---|
qwen_image_2.1_int8_convrot.safetensorsmodels/diffusion_models |
all functions | 7.3 GB | Hugging Face: Comfy-Org/Qwen-Image-2.1 |
qwen3vl_8b_int8_convrot.safetensorsmodels/text_encoders |
all functions | 9.4 GB | Hugging Face: Comfy-Org/Qwen-Image-2.1 |
qwen_image_2.1_vae_bf16.safetensorsmodels/vae |
all functions | 676 MB | Hugging Face: Comfy-Org/Qwen-Image-2.1 |
Optional (the model works without them, the named feature is greyed out):
| File and its ComfyUI folder | Feature | Size | Download |
|---|---|---|---|
qwen3.5_9b_w4a8_gptq.safetensorsmodels/text_encoders |
Enhance my Prompt with LLM, Describe Canvas, Describe Multi Image Slot, Sketch to image, Scribble on photo, Scribble with reference | 7.3 GB | Hugging Face: Comfy-Org/MOSS-Image |
qwen_image_2.1_turbo_lora_avg_rank_178_bf16.safetensorsmodels/loras/qwen |
Turbo LoRA | 913 MB | Hugging Face: Comfy-Org/Qwen-Image-2.1 |
taeqi2_1_decoder.pthmodels/vae_approx |
live preview | 15 MB | GitHub: madebyollin/taesd |
Fibo 2.0: about 13.7 GB needed
| File and its ComfyUI folder | Needed for | Size | Download |
|---|---|---|---|
fibo2_edit_turbo_int8_convrot.safetensorsmodels/diffusion_models |
all functions | 8.4 GB | Hugging Face: Comfy-Org/Fibo-2.0 |
qwen3vl_4b_int8_convrot.safetensorsmodels/text_encoders |
all functions | 4.9 GB | Hugging Face: Comfy-Org/Krea-2 |
flux2-vae.safetensorsmodels/vae |
all functions | 336 MB | Hugging Face: Comfy-Org/Flux-2-Dev |
4x-UltraSharpV2.safetensorsmodels/upscale_models |
Upscale | 140 MB | Hugging Face: Kim2091/UltraSharpV2 |
Optional (the model works without them, the named feature is greyed out):
| File and its ComfyUI folder | Feature | Size | Download |
|---|---|---|---|
taef2_decoder.pthmodels/vae_approx |
live preview | 3 MB | GitHub: madebyollin/taesd |
Custom node: The tiles option of Upscale also needs the custom node pack ComfyUI-KJNodes (Color Match). Install it from the ComfyUI Manager or the link, then restart ComfyUI.
Krea 2 Turbo: about 18.6 GB needed
| File and its ComfyUI folder | Needed for | Size | Download |
|---|---|---|---|
krea2_turbo_int8_convrot.safetensorsmodels/diffusion_models |
all functions | 13.5 GB | Hugging Face: Comfy-Org/Krea-2 |
qwen3vl_4b_int8_convrot.safetensorsmodels/text_encoders |
all functions | 4.9 GB | Hugging Face: Comfy-Org/Krea-2 |
qwen_image_vae.safetensorsmodels/vae |
all functions | 254 MB | Hugging Face: Comfy-Org/Krea-2 |
Optional (the model works without them, the named feature is greyed out):
| File and its ComfyUI folder | Feature | Size | Download |
|---|---|---|---|
lighttaew2_1.safetensorsmodels/vae_approx |
live preview | 45 MB | Hugging Face: lightx2v/Autoencoders |
MOSS Image: about 13.1 GB needed
| File and its ComfyUI folder | Needed for | Size | Download |
|---|---|---|---|
moss_image_sft_int8_convrot.safetensorsmodels/diffusion_models |
all functions | 5.4 GB | Hugging Face: Comfy-Org/MOSS-Image |
qwen3.5_9b_w4a8_gptq.safetensorsmodels/text_encoders |
all functions | 7.3 GB | Hugging Face: Comfy-Org/MOSS-Image |
flux2-vae_small.safetensorsmodels/vae |
all functions | 250 MB | Hugging Face: Comfy-Org/MOSS-Image |
lenovo_moss.safetensorsmodels/loras/Moss |
Text to Image | 65 MB | Hugging Face: Danrisi/lenovo_moss |
Optional (the model works without them, the named feature is greyed out):
| File and its ComfyUI folder | Feature | Size | Download |
|---|---|---|---|
lora_dmd2.safetensorsmodels/loras/Moss |
Turbo LoRA | 1.2 GB | Hugging Face: lodestones/MOSS-Image-Base-8-steps-dmd |
taef2_decoder.pthmodels/vae_approx |
live preview | 3 MB | GitHub: madebyollin/taesd |
MiniMax H3 Image: about 37.8 GB needed (about 29.4 GB with the smaller variant)
| File and its ComfyUI folder | Needed for | Size | Download |
|---|---|---|---|
minimax_h3_image_pruned_int8_convrot.safetensorsmodels/diffusion_models |
all functions | 21.0 GB | Hugging Face: Comfy-Org/MiniMax-H3-Image |
qwen3vl_32b_minimax_h3_nvfp4_awq.safetensorsmodels/text_encoders |
all functions | 15.7 GB | Hugging Face: Comfy-Org/MiniMax-H3-Image |
minimax_h3_image_vae_fp16.safetensorsmodels/vae |
all functions | 1.2 GB | Hugging Face: Comfy-Org/MiniMax-H3-Image |
Smaller variant (less disk space and VRAM; in our test about as good and as fast). Take it instead of the file it names; when both are in the folder, PxC uses the larger one:
| File and its ComfyUI folder | Use | Size | Download |
|---|---|---|---|
minimax_h3_image_pruned_w4a8.safetensorsmodels/diffusion_models |
instead of minimax_h3_image_pruned_int8_convrot.safetensors |
12.5 GB | Hugging Face: Comfy-Org/MiniMax-H3-Image |
Optional (the model works without them, the named feature is greyed out):
| File and its ComfyUI folder | Feature | Size | Download |
|---|---|---|---|
qwen3.5_9b_w4a8_gptq.safetensorsmodels/text_encoders |
Enhance my Prompt with LLM, Describe Canvas, Describe Multi Image Slot | 7.3 GB | Hugging Face: Comfy-Org/MOSS-Image |
Remove background (scissors button, optional)
| File and its ComfyUI folder | Feature | Size | Download |
|---|---|---|---|
birefnet.safetensorsmodels/background_removal |
Cut out, remove background | 444 MB | Hugging Face: Comfy-Org/BiRefNet |
rmbg-2.0.safetensorsmodels/background_removal |
Remove background (second model) | 885 MB | Hugging Face: chflame163/ComfyUI_LayerStyle |
RMBG-2.0 is a community copy of the official file, which needs a Hugging Face login (official page).
Pick object (select a thing by clicking it, optional)
| File and its ComfyUI folder | Feature | Size | Download |
|---|---|---|---|
sam3.1_multiplex_fp16.safetensorsmodels/checkpoints |
Pick object (select by click) | 1.7 GB | Hugging Face: Comfy-Org/sam3.1 |
It needs a recent ComfyUI with the SAM 3 nodes (tested with 0.43 and 0.45).
Functions at a glance
You pick a function at the top, type a prompt and press Generate. PxC sends the picture (or the selection) to ComfyUI and puts the result back into PhotoCraft as a new layer in a group, with a soft layer mask where that makes sense.
| Function | What it does |
|---|---|
| A new picture from text only, as a new layer. With Denoise below 1.0 it starts from the picture open in PhotoCraft and keeps more of it the lower you go (image to image). | |
| Extend the canvas with the Crop tool, fill the new area white; PxC paints it. | |
| Select an area and type what should appear there. With Flux 3, the tab Insert reference puts a reference image into your rectangular selection (using Flux 3's bounding-box feature). | |
| Draw a selection around any object, with a little margin, and name it in the prompt field ("car"). It is removed and the background is filled in. With Flux 3 Klein, Flux 2 Klein and Fibo you can leave the prompt empty: their text model names the subject itself. | |
| Changes the whole picture based on your prompt, or use one of the many Style prompts (painting, comic, film look …). | |
| Edits the picture with reference images (drop or paste images into the slots). Type @ in the prompt to pick a reference image, or click the tag on a slot to put it where your cursor is. | |
Turns a sketch on a white canvas into a picture in the style you choose under Style prompts (photo, painting, comic …). Simply replace SUBJECT in the prompt box with the subject. Needs the model's prompt writer file (see Model downloads); without it this entry of the Edit list is greyed out. MiniMax runs it without a prompt writer. |
|
Turns scribbles on a photo into real objects: scribble in bright red or green, or on a layer of its own; only that place changes. Replace SUBJECT in the prompt with what goes there. |
|
Like Scribble on photo, but with a reference image: what it shows is placed where you scribbled. Replace SUBJECT with what it shows ("a beagle dog"). |
|
| The picture is cleaned up at the same size, as a new layer. Each model has one ready-made prompt for it in the prompt field (Flux 2: neutral light, Flux 3: restore old photos, Qwen Image 2.1: keep the colours; Fibo and MiniMax use the Flux 2 text); you can edit it. | |
| Pick a factor (1.5x to 4x) in the row "Upscale factor": the whole picture is enlarged into a new document, up to 16 MP. |
Which model offers which function
| Flux 3 | Flux 2 | Qwen Image 2.1 | Fibo | Krea 2 | MOSS | MiniMax | |
|---|---|---|---|---|---|---|---|
| Fill Selection | ✓ | ✓ | ✓ | ✓ | |||
| Fill › Insert reference | ✓ | ||||||
| Remove Selection | ✓ | ✓ | ✓ | ✓ | |||
| Expand Image | ✓ | ✓ | ✓ | ✓ | |||
| Edit › Edit canvas | ✓ | ✓ | ✓ | ✓ | ✓ | ||
| Edit › Multi image edit | ✓ | ✓ | ✓ | ✓ | ✓ | ||
| Upscale (new file) | ✓ | ✓ | ✓ | ✓ (up to 3x) | |||
| Refine Image (same size) | ✓ | ✓ | ✓ | ✓ | ✓ | ||
| Edit › Sketch to image | ✓ | ✓ | ✓ | ✓ | ✓ | ||
| Edit › Scribble on photo | ✓ | ✓ | ✓ | ✓ | ✓ | ||
| Edit › Scribble with reference | ✓ | ✓ | ✓ | ||||
| Text to Image | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
Help
| You see | What to do |
|---|---|
| The dot next to ComfyUI (bottom left) is red, or "ComfyUI not connected" | Start ComfyUI. If it runs on another address or port: gear ▸ Other settings ▸ ComfyUI address, then Refresh. |
| "PhotoCraft not found" when you start | Windows: run .venv\Scripts\python.exe -m pccomfy shortcut --photocraft "C:\path\to\photocraft.exe" in the PxC folder (type powershell into Explorer's address bar). Linux: PHOTOCRAFT=/path/to/photocraft ./pxc.sh. |
| "PhotoCraft did not open the control port" | Another PhotoCraft is already running: close all of them and start through the shortcut or menu entry. Or another program uses port 7878. |
| "No control-channel token" or "rejected the token" | PhotoCraft was started without PxC's start options. Close it and start through the shortcut or menu entry. Flatpak: see Manual install and known limitations. |
| "You need to download …" | Open the gear window and download the missing file, then restart ComfyUI (it reads its model folders only at start). |
| A Flux 3 download is refused | Log in to Hugging Face and accept the licence on the model page first. |
| On Linux nothing appears | Run ./pxc.sh in a terminal; the message tells you what is missing. |
| Enhance my Prompt with LLM is slow | Start ComfyUI with --use-ck-attention (at the end of the main.py line in your start file). The prompt writers ran 2 to 5 times faster, with the same quality. |
Report a problem. Open an issue on this repository's Issues page and tell us:
- what you did, what you expected and what happened (the status line at the bottom of the window is useful);
- the report of PxC: gear window ▸ Other settings ▸ Copy report, then paste it into the issue. It lists the PxC version, Python, your settings and what ComfyUI and PhotoCraft answered; it contains no prompts and no access tokens.
If we ask for more: the last lines of data\exchange\runs.jsonl (Linux: ~/.cache/pccomfy/exchange/runs.jsonl) have one line per run, and last-graph.json in the same folder is the exact request sent to ComfyUI. Both can contain your prompts, so look through them before you post.
Manual install and known limitations
Windows, by hand (what setup-windows.bat does):
py -3.13 -m venv .venv
.venv\Scripts\python.exe -m pip install -r requirements.txt
:: desktop shortcut (optional)
.venv\Scripts\python.exe -m pccomfy shortcut --photocraft "C:\path\to\photocraft.exe"
:: start without the shortcut (ComfyUI running, PhotoCraft closed)
.venv\Scripts\python.exe pxc.pyw --photocraft "C:\path\to\photocraft.exe"
The shortcut starts PhotoCraft with a control channel for PxC (local only, protected by a token, file access limited to data\exchange) and then PxC, without a console window.
Linux, by hand (what setup-linux.sh does):
# create the venv with the system Python: a Python from uv or pyenv brings a Tk that does not draw the Inter font
/usr/bin/python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
./pxc.sh
# menu entry (optional)
.venv/bin/python -m pccomfy shortcut --photocraft /path/to/photocraft
Settings and the PhotoCraft token live in ~/.config/pccomfy/. A different ComfyUI address or port goes into ~/.config/pccomfy/config.toml (see config.example.toml). .venv/bin/python -m pccomfy scale shows how PxC detected the display scale.
PhotoCraft as a Flatpak. It is found by itself; to name it: PHOTOCRAFT=flatpak:ai.storyteller.photocraft ./pxc.sh. The Flatpak sandbox sees only Pictures and Documents, so PxC opens ~/.config/pccomfy and ~/.cache/pccomfy for the Flatpak run; that lets PhotoCraft write its token file there.
Model files. All files with sizes, folders and links are listed under Model downloads. The gear window lists the same files with a download button; PxC enables a model when it finds all the files for its standard settings. To keep the memory use low, PxC uses int8 ConvRot files for most models; the exceptions are the text encoders of MiniMax (nvfp4) and Flux 2 (fp8mixed) and the prompt writers (w4a8). Some files are gated: log in to Hugging Face and accept the licence on the model page first. Flux 3 is one of them.
Known limitations.
- Tested with NVIDIA cards only. On Linux it was run on Linux Mint (X11 and Cinnamon Wayland); the setup scripts are also checked automatically on Ubuntu, Debian, Fedora and Arch, but daily use there is not tested yet.
- Linux: under X11 the window stays above PhotoCraft and minimises with it; under Wayland it is a normal window that stays on top.
- During a run, PhotoCraft briefly opens a temporary document. Please don't switch documents or change the selection while a run is going.
- A run consists of several PhotoCraft steps (history entries).
- CMYK, Lab and 16-bit documents go through 8-bit RGB.
- Denoise in Text to image works differently per model: at the same value Qwen Image keeps much more of your picture than the other models.
License
PxC's code is free to use under your choice of MIT or Apache-2.0. The AI models are not included; each has its own licence on its model page.
Credits
PxC started as a fork of photocraft-comfyui-bridge by Przemysław Kudaka (Peszemeszek), MIT or Apache-2.0. Parts of its code for the PhotoCraft and ComfyUI connection are still in PxC.
Also uses ComfyUI, the Inter font (SIL OFL 1.1), Lucide icons (ISC), style texts from Krea2-Style-Explorer by ThetaCursed (MIT) and name matching adapted from ComfyUI Model Linker by kianxyzw (MIT).
Photos: Magnific, Freepik, Pexels
関連プロジェクトを探す
読み込み中…



