When a photo is taken with a smartphone, the sensor always captures the image in the same physical orientation.
Then, the camera adds information like this to the EXIF metadata:
Orientation = 0°
Orientation = 90°
Orientation = 180°
Orientation = 270°
Many image viewers (Gallery, Google Photos, etc.) automatically read this EXIF orientation and display the image correctly.
But B4A doesn't automatically correct the EXIF orientation when you load a bitmap.
The result: you see the "raw" image, without rotation, so it's often rotated 90°.
This library contains an ExifData object that allows you to read and write the EXIF data in a Jpeg file. It is a very thin wrapper over the Android ExifInterface class.
www.b4x.com