def _get_orientation(exif):
    """Get Orientation from EXIF.

    Args:
        exif (dict):

    Returns:
        int or None: Orientation
    """
    if not exif:
        return None
    orientation = exif.get(274)
    return orientation
