In some devices, when you take a photo or pick it from gallery, if the image's orientation is landscape, but Titanium shows it in portrait.
I know that a workaround has been implemented to prevent Titanium to ignore the image's default orientation, described here:
This is good for displaying the image (if you let the height or the width auto), but still, there is no way to get the image's default orientation, or knowing if it was rotated or not.
I need to display every image in a 3:4 view, for uploading the image.
If the image is taken in portrait mode, no problem, I can just display it, and let the user choose to retake or upload.
But if the image is landscape, what should I do is cut the sides to make it fit in the area. The "autorotate" attribute solves the problem of displaying it right, but since there is no way to know the image's orientation, the image appears shrinked.
Code to reproduce:
To sum up:
There should be a way not only to display the image on it's default oritation, but also to know the default orientation.