@ORIENTATION static fun getImageRotation(fileStream: java.io.InputStream): int
Get the orientation of the image file base on the exif information.
fileStream
- java.io.InputStream: image stream.
Return
int: angle in degree.
@ORIENTATION static fun getImageRotation(filename: java.lang.String): int
Get the orientation of the image file base on the exif information.
filename
- java.lang.String: image file path.
Return
int: angle in degree.