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

Improve support for 4:3 aspect ratio cameras and higher resolution cameras #86

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hoovercj
Copy link

Problem: Some devices have 4:3 aspect ratio cameras. The current constraints don't allow those cameras to capture near their full quality because the provided constraints are too far above or below the full width of those cameras.

The issue we encountered specifically was that an 8MP webcam with a 4:3 aspect ratio (3264 x 2448) was falling all the way back to 2560 which was a very large dropoff in quality.

Proposed Solution: Add some additional constraints to better target more devices.

Alternatives: An alternative would be to allow passing constraints in so that we as consumers could make the list as comprehensive as we want, but that would require more work both here and in react-html5-camera-photo which uses this library as a dependency.

Add additional resolution steps to support higher resolution cameras in the future and to support more cameras today, specifically 4:3 aspect ratio cameras.
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