I will update src/types.ts to add a rotation property (in degrees: 0, 90, 180, 270) to both ScanFile and CaptureItem, and add crop?: { x: number; y: number; w: number; h: number } to CaptureItem so that crop and rotation can be adjusted for every captured photo before saving.
I will add an applyCropAndRotation function to src/utils/image.ts to crop and rotate scanned document images cleanly on canvas.
I will update src/components/Scanner.tsx to provide a fullscreen camera with no auto-enhance toggle, a post-capture review screen with Retake, + Add new click, and a dedicated Crop & Rotate step featuring dynamic edge/corner/center cropping and 90° rotation.
I will now update src/components/Editor.tsx so that editing any scan in the library also provides exclusively the dynamic Crop and 90° Rotate experience.
I have updated the camera and editing workflow to meet all of your requirements:
✨ What Changed
-
Fullscreen Camera View (Scanner.tsx)
- Removed Auto Enhance, Save Page, and side panels from the live camera view.
- The camera now runs in full view edge-to-edge.
- At the bottom: you have the upload button, shutter button, and a badge button showing how many clicks you have taken so far (
Crop & Rotate (N) →).
-
Retake & Add New Click Workflow
- After clicking the shutter, a Full View Review Screen appears immediately.
- At the bottom of the review screen:
Retake: Discards the shot and returns to the live camera.
+ Add new click: Keeps the shot in your batch and returns to the live camera so you can continue clicking as many pages as you need.
Done (N) → Crop & Rotate: Keeps the shot and proceeds immediately to cropping and rotating.
-
Exclusively Dynamic Cropping & Rotating (Scanner.tsx & Editor.tsx)
- Removed all brightness, contrast, saturation sliders and filter tabs from the post-capture and editing experience.
- Dynamic Cropping Option (the best one):
- 4 Corner handles for free resizing.
- 4 Edge handles (top, bottom, left, right) for aligning edges.
- Draggable center to reposition the entire crop box smoothly.
- Instant CSS clipping preview with rule-of-thirds grid lines.
- Rotation controls:
Rotate Left (90° counter-clockwise) and Rotate Right (90° clockwise).
Reset and Auto Crop buttons.
- Multi-page switching: When scanning multiple clicks, you can switch between pages at the top (
< Page 1 of N >) or tap the thumbnails at the bottom.
- Save All: Clicking
Save All (N pages) permanently crops and rotates each image via canvas processing and saves the clean results into your library.
Files built: src/types.ts, src/utils/image.ts, src/components/Scanner.tsx, src/components/Editor.tsx