Camera Xiaomi doesn’t work

after taking the photo it rotates 90 ° left alone, this happens only on xiaomi phones, any other device that test my apk the camera takes the photo and shows correctly.

Can someone help me ?
The problem occurs in all xiaomi.

![Captura%20de%20Tela%20(15)|690x426](upload://vVJpImym6YfFoDNz3RpxLEBH19I.png) ![camera|250x500](upload://vNBcvNTXrRx8iKe4uA4PmYzUGIk.png) ![camera|250x500](upload://xoaLmZzsE6OXzV4C89XUmLcVZKC.png) ![companion|250x500](upload://i27GqFHh6Rg4FDokdIc5MIxJchO.png)

Make sure you opened the rotation lock and use the device without rotation to left or right. Did you tested in other Xiaomi phones?

yes on two phones, and I also tested the issue of their rotation

Mi MIX 2S and Mi 8 Lite

How can I put it in the block after the photo for it to turn 90 °?
I even managed to rotate but it saves in the firabase the same way it was taken, ie it is only rotating the frame of the image on the screen of the cell phone and not rotating the photo after it is taken.

You can use this block:


From this extension:

Note that the rotation is only in one direction. So depend on on the orientation your angle will either be 90 or 270.

sorted out !

the camera blocks after the photo - when taifunimage1 - and the procedure xaomi, were the solution of the problem.

resolvido !

os blocos camera.depois da foto - quando taifunimage1 - e a procedure xaomi, foram a solução do problema.

1 Like

thanks u very much, now i could solve the problem with xiaomi, but i have other problem, when i use the photo selector, the problem is the following:
-When y select a photo that was taken by the xioami device te rotation works fine, but when i select a photo for example received from whats app, and was taken by another deviced not xiaomi, the photo that was normal rotated 90 degree and stay laid down.
i dont know why xiaomi take de pictures rotated.
can u understand my problem?
thanks you very much.