Commit Graph

3 Commits

Author SHA1 Message Date
a1b653efb7 perf: cache post-geometry pixels for faster adjustments
Split processing into geometry phase (crop/resize) and adjustment phase.
Cache the post-geometry pixels keyed by image fingerprint + crop/resize config.
When only adjustments change, skip expensive decode/crop/resize operations.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-05-14 07:09:51 -04:00
62a218f0cb feat: add manual crop mode
- CropOverlay component with draggable/resizable region
- Maintains target device aspect ratio
- Rule of thirds grid overlay
- Dark mask outside crop area
- Updates ImagePreview to show overlay in manual mode
- Updates photonWorker to handle manual crop regions
- Also fixes top/bottom crop modes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-14 06:14:47 -04:00
c06a51cad9 feat: add web worker for image processing
- Full pipeline processing off main thread
- Image decoding via createImageBitmap + OffscreenCanvas
- All adjustments and dithering algorithms
- Blob output with data URL conversion

Co-Authored-By: Claude <noreply@anthropic.com>
2026-05-13 18:10:16 -04:00