getImageRotation

Get the orientation of the image file base on the exif information.

Return

angle in degree.

Parameters

fileStream

image stream.

open fun getImageRotation(fileStream: InputStream): Int

Get the orientation of the image file base on the exif information.

Return

angle in degree.

Parameters

filename

image file path.

open fun getImageRotation(filename: String): Int