ossappscollective / ossappscollective/OSS-DocumentScanner

[BUG] Camera defaults to 0.7x ultra-wide lens instead of 1x, causing blurry scans

Open
#693 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug done
Dominant language
C++
Stars
2.4k
Forks
121
Avg merge
1d 58m
Merged PRs (30d)
17

Description

Which app is your issue for

Document Scanner

Version

Google Play : Version 1.25.0

What platform are you using?

Android

OS Version

Android 16
Google Pixel 7 (Stock ROM)

What happened?
Description

On my Google Pixel 7, the scanner camera opens with the zoom level set to 0.7x (ultra-wide lens) by default instead of the standard 1x lens.

Because the app starts on the ultra-wide camera, the captured document appears noticeably blurrier than expected. At first I assumed there was an issue with my phone's camera or focus, but after some testing I realized that manually switching the zoom to 1x immediately produces sharp scans.

Expected behavior

The scanner should open using the device's primary camera (typically 1x) by default, or remember the last camera/lens selected by the user.

I noticed that after I manually switch to 1x, the app remembers that setting on subsequent launches, which is great. However, first-time users may not realize the scanner is using the ultra-wide lens by default and may assume the app's camera quality is poor.

On devices with a 0.5x ultra-wide lens, the effect can be even more noticeable because the document appears much smaller in the viewfinder. While on my Pixel 7 (0.7x) the difference isn't dramatic, it was still enough for me to spend time troubleshooting why scans looked blurrier than expected before realizing the default lens was the cause.

This would:

  • Prevent users from getting blurry scans on devices with an ultra-wide camera.
  • Match the standard camera lens that most users expect for document scanning.
  • Avoid confusion, since many users may not realize that 0.7x is being used by default.
Device
  • Device: Google Pixel 7
  • Android: 16
  • Default camera opens at: 0.7x
  • Manual switch to 1x fixes the issue.
  • App version : 1.25.0
Relevant log output
No relevant logs available.
Code of Conduct
  • I agree to follow this project's Code of Conduct

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the first-launch camera behavior on the reported Pixel 7 and locate the Android scanner camera implementation that initializes zoom and restores the user's lens choice. Check how the default lens is selected when no saved setting exists, then verify that new scans start at the primary 1x camera without breaking remembered selections.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, cpp
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.