react-native-camera icon indicating copy to clipboard operation
react-native-camera copied to clipboard

What is the mapping between integer pictureOrientation value and "portrait", "landscape", etc?

Open nekapoor opened this issue 6 years ago • 5 comments

What is the mapping between integer orientation value and "protrait", "landscape", etc?

For example, what does "1" represent? Is "1" portrait"? What about "2" and "3" and "4"?

Are these the same for deviceOrientation?

I'm looking at the exif data passed back from the takePicture method and seeing the integer values for deviceOrientation and pictureOrientation.

Thanks so much

nekapoor avatar Feb 24 '20 19:02 nekapoor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and i will leave this open.

stale[bot] avatar Apr 25 '20 04:04 stale[bot]

Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.

stale[bot] avatar May 02 '20 05:05 stale[bot]

For example, what does "1" represent? Is "1" portrait"? What about "2" and "3" and "4"?

Basing this on nothing more than logging the value after turning the phone and taking a picture, and not from any insight into the code:

1 - Portrait 2 - Portrait upside down 3 - Landscape left 4 - Landsape right

apalmer0 avatar Jun 24 '20 18:06 apalmer0

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and i will leave this open.

stale[bot] avatar Aug 23 '20 18:08 stale[bot]

Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.

stale[bot] avatar Aug 30 '20 22:08 stale[bot]