Commit Graph

2 Commits

Author SHA1 Message Date
Jeff Emmett f3684c1467 fix: downscale images to 1024px max before dithering
Full-res images (1743x1786) took 45s for error diffusion, hitting
Cloudflare's timeout. Downscaling to 1024px max keeps it under 10s.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 17:01:42 -07:00
Jeff Emmett 94fd3ad4d3 feat: add dithering API with 12 algorithms and screen-print color separations
Adds on-demand dithering endpoint (Floyd-Steinberg, Atkinson, Bayer, etc.)
and screen-print color separation workflow with per-channel PNG exports.
Uses hitherdither library with in-memory LRU cache (max 200 entries).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 17:01:42 -07:00