In my tests, a Bitmap
created by BitmapFactory.decodeFile()
doesn\'t respect EXIF header.
For example, with portrait images taken by a devices
You can do this with Glide now. See the "Background Threads" section here:
https://bumptech.github.io/glide/doc/getting-started.html
Bitmap bitmap = Glide.with(context).asBitmap().load(new File(fileName)).skipMemoryCache(true).submit().get();
Glide takes into consideration EXIF. You'll need to load it on a background thread. I was using Glide 4.9.0