CameraKit / camerakit-ios

Library for iOS Camera API. Massively increase performance and ease of use within your next iOS Project.
Apache License 2.0
692 stars 82 forks source link

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

Open igorkulman opened 5 years ago

igorkulman commented 5 years ago

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

austinkettner commented 5 years ago

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

rad182 commented 4 years ago

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