Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leads to OOM(Out of memory) Exceptions if we apply filters to original bitmaps(Image size >5mb) without scaling. #25

Open
rajeshshetty opened this issue Feb 17, 2018 · 1 comment

Comments

@rajeshshetty
Copy link

I want to apply selected filter to the original image (size > 5mb 8000x5224) and save it in jpeg format. But it leads to Out of Memory exceptions.

@hoanganhtuan95ptit
Copy link

Why don't you resize bitmap?

This library uses a pixel array with the following formula to calculate the size:

        int width = bitmap.getWidth();
        int height = bitmap.getHeight();
        int[] pixels = new int[width * height];  // this out of memory

So, please resize the bitmap.

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

No branches or pull requests

2 participants