Skip to content

Conversation

@jlapp9
Copy link
Contributor

@jlapp9 jlapp9 commented Mar 11, 2025

Summary

Currently the aspect ratio of the photo is determined by the size of the device's screen. This assumes that the preview / view finder covers the whole screen, but that is not necessarily the case - for example in our use case, in portrait mode we have an app header above and UI elements below the view finder, intentionally resulting in a view finder with a 4:3 aspect ratio. In this case, a photo captured at 16:9 would not match what was displayed in the view finder. It seems to me that the aspect ratio of the captured photo should be driven by the view finder dimensions rather than the device's screen size.

This seems similar to the issue logged in #576 but not quite the same.

How did you test this change?

Tested on a few different Android devices.

4:3 view finder:

16:9 view finder:

@jlapp9 jlapp9 marked this pull request as ready for review March 11, 2025 20:56
Copy link
Collaborator

@scarlac scarlac left a comment

Choose a reason for hiding this comment

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

Great contribution. Thank you!

@scarlac scarlac merged commit bce9be1 into teslamotors:master Mar 31, 2025
4 checks passed
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.

2 participants