Overview
PeaBox Photo Lab (current release v0.2.30) is a privacy-first, local photo editor for creators, bloggers, small businesses and everyday users. It runs in a browser while Python, Streamlit, Pillow and NumPy do the editing — your images are processed on your computer and are not intentionally persisted; exports are freshly encoded and original EXIF metadata is never copied.
It exists for people who want real editing power — tone, colour, creative grades, social crops — without handing originals to a cloud service or learning a pro tool. Non-destructive adjustments with live before/after preview mean experimentation is free.
Honest privacy note: local use keeps bytes on your machine; a remote deployment necessarily receives uploads on that server, so operators must secure it themselves.
Use cases
- Bloggers and content creators. Batch-prep hero images with smart auto optimization, the Blog Optimized WebP preset and a consistent look via saved creative styles.
- Small business owners. Product shots cleaned up with clarity, white balance and dehaze, exported at Square Profile or Marketplace JPEG sizes for listings.
- Social media managers. One source image exported as square, portrait, landscape and story crops via the social format pack, plus Story Portrait and Social High Quality presets.
- Photographers sending client proofs. Watermark with date/caption stamping, add borders, export Client Review or Proof JPEG presets.
- Privacy-conscious households. Family photos edited locally — no upload, and EXIF (location, camera serial) is stripped on export.
- Print preparation. Photo Print and Archive PNG presets, custom dimensions with aspect-ratio preservation, and megapixel reporting to sanity-check output size.
- Before/after marketing. Smart auto optimization plus style proof sheets to show clients the correction applied.
- Quick fixes. Exposure ±2 EV, gamma, auto levels with adjustable cutoff, auto white balance (Gray World) and defringe for color-edge artifacts.
A day in the life with Photo Lab
A food blogger shoots Sunday’s brunch spread. She double-clicks run_windows.bat, drags in the RAW-adjacent JPEGs, and hits smart auto optimization — shadows lift, highlights recover. One image is hazy, so she reaches for Dehaze; another has a green cast, fixed with Tint and Color Cast Analysis guidance. She applies the “Portrait Soft” style to the portrait shots, runs selective colour to pop the berries, then exports three sizes: Social 1080 for Instagram, Blog Optimized WebP for the post, Archive PNG for her records. The style proof sheet goes into the client delivery email. Zero images left her laptop, and the exports carry no EXIF.
Features
- Core editing — non-destructive adjustments with live before/after preview; light, colour, crop, rotate, mirror, borders, watermark; smart auto optimization and five creative presets.
- Creative effects — selective colour, duotone, dreamy glow, pencil sketch, pixel art, vignette, sepia, posterize, solarize, matte/fade, film grain, split toning, tilt-shift, radial focus, Orton glow, bloom, dehaze, color wash, edge fade, corner tint, gradient toning.
- Colour grading — RGB channel mixer (independent 50–150%), monochrome channel mixer, split toning with shadow/highlight hues, luminance-mask preview, chromatic pop, adaptive vibrance, targeted hue saturation.
- Tone & exposure — exposure ±2 EV, gamma 0.50–2.00, auto levels with 0–10% cutoff, black/white point, auto white balance, highlight fade, highlight/shadow colour grading.
- Analysis tools — Image Inspector (exposure analysis, clipping check, dynamic range, tonal entropy, color neutrality, noise analysis), dominant palette extraction, composition advisors (rule-of-thirds grid, safe-area overlay, horizon guide, aspect-ratio advisor).
- Export — JPEG, PNG, WebP; Web High Quality, Social 1080, Archive PNG, Email Compact, 4K Display, Blog Optimized, plus 25+ presets; custom dimensions with aspect lock; live file-size and megapixel preview; Compression Advisor and Smart Export Recommendation.
- Quality engineering (v0.2.29–v0.2.30) —
app.py/peabox_core.py separation, pytest coverage, validate_release.py gate, GitHub Actions CI, and a Streamlit AppTest UI suite with 284 action/state checks.
Installation
Windows: double-click run_windows.bat. Linux/macOS:
chmod +x run_linux_mac.sh
./run_linux_mac.sh
Manual setup:
python -m venv .venv
# Windows: .venv\Scripts\activate
# Linux/macOS: source .venv/bin/activate
python -m pip install -r requirements.txt
streamlit run app.py
Quickstart (30 seconds)
run_windows.bat
:: browser opens automatically
1. Upload a photo.
2. Click Smart Auto Optimize.
3. Pick an export preset (e.g. Social 1080).
4. Click Export — EXIF is stripped.
Workflow & architecture
Photo Lab is a Streamlit front end (app.py) over a pure image-processing core (peabox_core.py, Pillow + NumPy). Every edit is non-destructive until export: parameters are applied to in-memory arrays, previews render before/after, and export re-encodes a fresh file — which is also why original EXIF never rides along. The decoupled core is what makes the pytest suite and validate_release.py gate possible, and the AppTest suite (run with PEABOX_TEST_MODE=1) drives every menu option, slider and export path. Contributors: read CONTRIBUTING.md; security issues go via SECURITY.md, not public issues.
Troubleshooting
- Launcher does nothing. Extract the full release ZIP first; ensure Python is installed and on PATH for manual runs.
- Browser doesn’t open.
streamlit run app.py prints a Local URL (usually http://localhost:8501) — open it manually. - Export looks washed out / over-sharpened. Check the Image Inspector warnings for excessive shadows/highlights; reduce Clarity or Noise Reduction and re-export.
- Custom dimensions won’t apply. Enable aspect-ratio preservation or supply both width and height; v0.2.4 corrected the custom-dimension export flow.
- File size too big for email. Use the Compression Advisor or Email Small / Messaging JPEG presets, or WebP for the smallest footprint.
- EXIF still present. Exports are freshly encoded without EXIF by design — if you see metadata, you may be looking at the original file, not the export.
Release & license
Current release: v0.2.30 (ZIPs are named peabox-photo-lab-v<version>.zip). Licensed under MIT. See GitHub and releases, plus validate_release.py and the Actions quality workflow for the release gate. More help: Knowledge Base.