I am implementing an image upload function to use the mobile phone camera. It is working fine, but the photos are always rotated wrong.
I did read about using the php function exif_read_data. I found codes how to use it and how to change the orientation and how to save it again. Now my problem is (using Android) that the exif_read_data array does not contain any "Orientation", so I am not able to change the orientation. I can not find any hints or posts about this problem. Why is my orientation not stored in this array?
Thanks for any help