ExifInterfaceImageHeaderParser
Uses ExifInterface to parse orientation data.
ExifInterface supports the HEIF format on OMR1+. Glide's DefaultImageHeaderParser doesn't currently support HEIF. In the future we should reconcile these two classes, but for now this is a simple way to ensure that HEIF files are oriented correctly on platforms where they're supported.
Functions
Link copied to clipboard
Parse the orientation from the image header.
open fun getOrientation(byteBuffer: ByteBuffer, byteArrayPool: ArrayPool): Int
Content copied to clipboard
Link copied to clipboard