Get the image orientation
The image orientation is given in Exif format. The function is guaranteed to only return values from 1 to 8.
If [method@Loader.set_apply_transformations] is set to `FALSE`, the orientation has to be corrected manually to display the image correctly.