CamerAwesome icon indicating copy to clipboard operation
CamerAwesome copied to clipboard

[iOS] front camera mirror error

Open ChokShen opened this issue 4 years ago • 2 comments

Steps to Reproduce

Camera mirror is wrong when I open front camera by default.But when I opened back camera firstly and then switched to front camera, everything is OK.

About your device

Brand Model OS
Apple iPhone X 14.2

ChokShen avatar Jun 24 '21 10:06 ChokShen

I've found the solution, you have to change this line [_captureConnection setVideoMirrored:(_cameraSensor == Back)]; to [_captureConnection setVideoMirrored:(sensor == Front)]; in file CameraPreview.m on line 91

@dim-apparence @ChokShen please fix the bug

SmirnovM91 avatar Dec 27 '21 12:12 SmirnovM91

Another bug with photo, change in file CameraPictureController.m on line 59 from UIImageOrientationRight to UIImageOrientationLeftMirrored

SmirnovM91 avatar Dec 27 '21 15:12 SmirnovM91

https://github.com/Apparence-io/camera_awesome/issues/62 I tried this way and success, tested on Android + iOS.

bauloc avatar Sep 03 '22 17:09 bauloc