camerakit-ios icon indicating copy to clipboard operation
camerakit-ios copied to clipboard

Landscape photo taken with iOS orientation lock enabled is taken as portrait

Open igorkulman opened this issue 5 years ago • 2 comments

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

(Please include the following information along with any other relevant environment details.)

CameraKit Version: 1.2.0

iOS Device: iPhone 6S

iOS Version: 12.1.4

Steps to Reproduce

(Write your steps here:)

  1. Enable orientation lock in iOS
  2. Run the sample app
  3. Rotate the device to lansdscape
  4. Take a photo
  5. Save the photo
  6. See the photo taken and saved as portrait (rotated 90 degrees)

Expected Behavior

Photo taken in lanscape should be saved as landscape even if orientation lock is enabled in iOS (same as the default camera app)

Actual Behavior

Photo taken in lanscape is save rotated 90 degrees when iOS orientation lock is enabled.

Reproducible Demo

Sample app in this repo.

Fix idea: use CoreMotion to detect "real" device orientation instead of UIDeviceOrientation

igorkulman avatar Mar 01 '19 16:03 igorkulman

Thanks for these detailed tickets @igorkulman - we will get a patch release out for this soon!

austinkettner avatar Mar 01 '19 16:03 austinkettner

any update for this? or maybe a workaround on how to solve this at the moment?

rad182 avatar Nov 22 '19 05:11 rad182