Comfy Apps: 12-workflow image-gen web GUI + payment frontend

- Flask frontend + serialized GPU worker + BTCPay invoice/webhook
- 12 example images rendered from the real ComfyUI workflows
- fix: ipadapter workflow uses modern IPAdapter node (was broken IPAdapterApply)
- helper scripts: generate/optimize examples
- README with deploy recipe
This commit is contained in:
drjones
2026-08-27 20:37:11 -07:00
commit 55bea5757c
23 changed files with 800 additions and 0 deletions

15
optimize_examples.py Normal file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env python3
"""Optimize generated example PNGs into web-friendly JPEGs (<=1024px)."""
import os, glob
from PIL import Image
EXAMPLES = os.path.expanduser("~/comfy-web/static/examples")
for png in sorted(glob.glob(os.path.join(EXAMPLES, "*.png"))):
im = Image.open(png).convert("RGB")
im.thumbnail((1024, 1024), Image.LANCZOS)
jpg = os.path.splitext(png)[0] + ".jpg"
im.save(jpg, "JPEG", quality=87, optimize=True, progressive=True)
kb = os.path.getsize(jpg) // 1024
os.remove(png) # drop the giant full-res png
print(f"{os.path.basename(jpg):22s} {im.size} {kb}KB")