AndroidPhotoFilters icon indicating copy to clipboard operation
AndroidPhotoFilters copied to clipboard

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

Open rajeshshetty opened this issue 7 years ago • 1 comments

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.

rajeshshetty avatar Feb 17 '18 09:02 rajeshshetty

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.

hoanganhtuan95ptit avatar May 04 '19 09:05 hoanganhtuan95ptit