This is problematic if you are in machine learning. Different tools and frameworks handle EXIF rotation differently. Some ignore it (Hasty, among others). To be on the safe side, we recommend that you convert your images to use the EXIF rotation, then rotate the image to the correct orientation natively, and then remove the EXIF rotation metadata.