Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance photo size retrieval by combining high-resolution and standard resolutions #3393

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ismaelsousa
Copy link
Contributor

What

This PR exposes all possible photo resolutions for Android devices. Some Android devices do not expose all resolutions

When we check the sizes coming only from getSupportedResolutions the highest resolution ("4080x3072") is not there

  • Example:
cameraInfoInternal.getSupportedResolutions(ImageFormat.JPEG)
Screenshot 2025-01-31 at 14 32 53



But when we use the getSupportedHighResolutions we can get it

  • Example:
cameraInfoInternal.getSupportedHighResolutions(ImageFormat.JPEG)
Screenshot 2025-01-31 at 14 32 33



So if we combine and remove the duplicates we can the all sizes possible

  • Example:
combined
Screenshot 2025-01-31 at 14 31 49

Changes

This PR combines the highest and standard photo resolutions

Tested on

Moto G52, Android 13

Copy link

vercel bot commented Jan 31, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-vision-camera ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 31, 2025 6:03pm

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.

1 participant