这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@tstein
Copy link
Contributor

@tstein tstein commented Nov 29, 2015

On a Nexus 5X, the old code would take pictures that were upside-down.
Apparently, the Android device standards require that the long edge of the
sensor must align with the long edge of the device, but doesn't say which of the
two ways to satisfy this manufacturers should pick. This change makes PhotoAPI
generate right-side-up pictures in both conditions.

Tested on a Nexus 7 (second-gen) and a Nexus 5X.

On a Nexus 5X, the old code would take pictures that were upside-down.
Apparently, the Android device standards require that the long edge of the
sensor must align with the long edge of the device, but doesn't say which of the
two ways to satisfy this manufacturers should pick. This change makes PhotoAPI
generate right-side-up pictures in both conditions.

Tested on a Nexus 7 (second-gen) and a Nexus 5X.
fornwall added a commit that referenced this pull request Nov 29, 2015
PhotoAPI: Take sensor orientation into account
@fornwall fornwall merged commit 4a70231 into termux:master Nov 29, 2015
@fornwall
Copy link
Member

Nice work! Will test it later, but your testing seems to be enough so will release an updated version (0.7) of Termux:API which will be available in Google Play in a couple of hours.

@tstein
Copy link
Contributor Author

tstein commented Dec 22, 2015

I'm sorry; I never thanked you for merging this. Thank you for accepting my change, and thank you for making this awesome project open-source. :)

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