AndroidPhotoFilters
AndroidPhotoFilters copied to clipboard
Leads to OOM(Out of memory) Exceptions if we apply filters to original bitmaps(Image size >5mb) without scaling.
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.
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.