We're experiencing an Out Of Memory exception on android for large image files when compressing an image by calling compressAndGetFile and autoCorrectionAngle = true.
It is caused by val bytes = File(file).readBytes().
Exif.getRotationDegrees also has a method for files which fixes the OOM.
We're experiencing an Out Of Memory exception on android for large image files when compressing an image by calling compressAndGetFile and autoCorrectionAngle = true. It is caused by val bytes = File(file).readBytes(). Exif.getRotationDegrees also has a method for files which fixes the OOM.