getOrientation

open fun getOrientation(is: InputStream, byteArrayPool: ArrayPool): Int

Parse the orientation from the image header. If it doesn't handle this image type (or this is not an image) it will return a default value rather than throwing an exception.

Return

The exif orientation if present or -1 if the header couldn't be parsed or doesn't contain an orientation


open fun getOrientation(byteBuffer: ByteBuffer, byteArrayPool: ArrayPool): Int