Camera Capture Saving Photos in Wrong Orientation

With iOS 13 Beta, when a photo is captured, photos are saved in the wrong orientation. They seem to be rotated 90 degrees counter-clockwise.

We use all the native API methods and everything worked properly before iOS 13.


Before each capture capture, we run:

self.photoOutput.connection(with: AVMediaType.video)!.videoOrientation = self.stillImageOrientation


This happens if I run an iOS 12 targeted build or iOS 13 Beta targeted build.

Newly updated sample code for iOS 13, AVCAM, also saves photos in wrong orientation as described above.

Camera Capture Saving Photos in Wrong Orientation
 
 
Q