Skip to content

Conversation

basveenema
Copy link
Contributor

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.

@CaiJingLong CaiJingLong merged commit 5f1fdf5 into fluttercandies:main Jul 20, 2023
CaiJingLong pushed a commit that referenced this pull request Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants