Skip to content

LG-16793 Uncropped Images on LN TrueID#12545

Merged
Mawar2 merged 2 commits intomainfrom
mwarren-lg-16793-uncrop-images-trueid
Oct 6, 2025
Merged

LG-16793 Uncropped Images on LN TrueID#12545
Mawar2 merged 2 commits intomainfrom
mwarren-lg-16793-uncrop-images-trueid

Conversation

@Mawar2
Copy link
Copy Markdown
Contributor

@Mawar2 Mawar2 commented Oct 1, 2025

🎫 Ticket

Link to the relevant ticket:
LG-16793

🛠 Summary of changes

TrueID needs the full uncropped images from the camera, but Acuant was auto-cropping them and cutting off the edges. This was breaking TrueID's fraud detection since they need to see the document borders.

Added logic to grab the raw image data before Acuant crops it:

  • Pull ImageData from onCaptured callback and convert to base64
  • Store it in a ref so we have it when onCropped fires
  • Pass the uncropped image to the success handler
  • Falls back to cropped if something goes wrong

📜 Testing Plan

This documentation was used for Mobile testing

  • Run the test suite - should see 911 passing
  • Test document capture on a mobile device
  • Confirm uncropped images make it to TrueID

@Mawar2 Mawar2 force-pushed the mwarren-lg-16793-uncrop-images-trueid branch from a039d06 to b910678 Compare October 1, 2025 18:18
@solipet solipet changed the title LG-16793 Uncrossed Images on LN TrueID LG-16793 Uncropped Images on LN TrueID Oct 3, 2025
Copy link
Copy Markdown
Contributor

@solipet solipet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got my testing env working! LGTM!

Copy link
Copy Markdown
Contributor

@shanechesnutt-ft shanechesnutt-ft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested this out locally and everything worked. LGTM! 👍🏻

Mawar2 added 2 commits October 6, 2025 11:33
changelog: Internal, TrueID Integration, Capture uncropped document images for improved verification accuracy
@Mawar2 Mawar2 force-pushed the mwarren-lg-16793-uncrop-images-trueid branch from b910678 to a0322a2 Compare October 6, 2025 15:33
@Mawar2 Mawar2 merged commit d5bb3ba into main Oct 6, 2025
1 check passed
@Mawar2 Mawar2 deleted the mwarren-lg-16793-uncrop-images-trueid branch October 6, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants