Class ExifInterfaceImageHeaderParser

java.lang.Object
com.bumptech.glide.load.resource.bitmap.ExifInterfaceImageHeaderParser
All Implemented Interfaces:
ImageHeaderParser

@RequiresApi(27) public final class ExifInterfaceImageHeaderParser extends Object implements ImageHeaderParser
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.