capacitor-community / camera-preview

Capacitor plugin that allows camera interaction from HTML code
MIT License
189 stars 160 forks source link

Don't have auto rotation #129

Open ManjorStreep opened 3 years ago

ManjorStreep commented 3 years ago

Describe the bug If you lock a device rotation and capture one image in different rotation, the image won't rotate. This is shown with wrong orientation.

To Reproduce Steps to reproduce the behavior:

  1. Lock rotation android.
  2. Open the camera
  3. Capture image
  4. Move the device with another position o rotation
  5. See the image with wrong orientation.

Screenshots Image with 90 degrees of rotation in device 381-95 Expected image 381-95 - copia

Smartphone (please complete the following information):

riderx commented 2 years ago

got the same issue. if you go to Preview.java and comment setCameraDisplayOrientation(); it fix the issue on my side