@TargetApi(Build.VERSION_CODES.ECLAIR)
    @Deprecated
    public static int getOrientation(String pathToOriginal) {
        int degreesToRotate = 0;
        try {
            ExifInterface exif = new ExifInterface(pathToOriginal);
            int orientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_UNDEFINED);
            return getExifOrientationDegrees(orientation);
        } catch (Exception e) {
            if (Log.isLoggable(TAG, Log.ERROR)) {
                Log.e(TAG, "Unable to get orientation for image with path=" + pathToOriginal, e);
            }
        }
        return degreesToRotate;
    }
Returns a matrix with rotation set based on Exif orientation tag.
If the orientation is undefined or 0 null is returned.

@deprecated No longer used by Glide, scheduled to be removed in Glide 4.0
@param pathToOriginal Path to original image file that may have exif data.
@return  A rotation in degrees based on exif orientation
core/src/main/java/com/bumptech/glide/load/resource/bitmap/TransformationUtils.java