Lamelynx / GodotGetImagePlugin-Android

Godot plugin to select image from gallery or camera on Android device.
MIT License
71 stars 4 forks source link

camera orientation and setting front/back camera #12

Closed Swaraj-cs closed 8 months ago

Swaraj-cs commented 1 year ago

Hi, is there any fix for this? In some devices its not working.

Lamelynx commented 1 year ago

Do you know which devices are not working?

Both camera orientation and setting front camera is highly manufacture dependent. The solution in this plugin works on most devices but not all.

To solve the problem with setting front for some devices this part needs to be updated.

To fix camera orientation, this function: rotateImageIfRequired() needs to be updated with the problematic devices.

You are welcome to try to solve this if you think you can.

Swaraj-cs commented 1 year ago

Hi, I was trying in moto g71 and samsung m42. In some other devices also its doing the same. In same devices, even if we are trying to set to front camera, its not setting .

It will be a great help if you could update it.

Swaraj-cs commented 1 year ago

Hi, is there a fix to this? also cant fix to portrait view.

Lamelynx commented 1 year ago

I have not found any solution to this problem. I would suggest to add a rotation button so the user can rotate the image to correct orientation.