Guest Documents: High-res camera capture + crop before upload #5

Open
opened 2026-02-08 20:28:01 +05:30 by androidlover5842 · 0 comments

Goal

  • Replace low-res TakePicturePreview() capture with a high-res capture-to-Uri flow and add crop before upload.

UX requirements

  • In "Add document":
    • Camera: take photo (high-res), then crop, then upload.
    • Upload: pick image, then crop, then upload.
  • Crop should be optional (skip allowed).
  • Maintain existing non-image support if desired (or split: image-only for docs).

Engineering notes

  • Use ActivityResultContracts.TakePicture() with a FileProvider Uri (no bitmap-only preview).
  • Cropping options:
    • Use a small, well-known cropper lib, or
    • Implement a minimal in-app crop screen (more work).

Acceptance

  • Camera uploads are crisp (not preview-quality) and cropped output matches selection.
Goal - Replace low-res `TakePicturePreview()` capture with a high-res capture-to-Uri flow and add crop before upload. UX requirements - In "Add document": - Camera: take photo (high-res), then crop, then upload. - Upload: pick image, then crop, then upload. - Crop should be optional (skip allowed). - Maintain existing non-image support if desired (or split: image-only for docs). Engineering notes - Use `ActivityResultContracts.TakePicture()` with a `FileProvider` Uri (no bitmap-only preview). - Cropping options: - Use a small, well-known cropper lib, or - Implement a minimal in-app crop screen (more work). Acceptance - Camera uploads are crisp (not preview-quality) and cropped output matches selection.
androidlover5842 added the featureguest-docsux labels 2026-02-08 20:28:01 +05:30
androidlover5842 added this to the TrisolarisPMS Roadmap project 2026-02-09 00:55:57 +05:30
Sign in to join this conversation.