Skip to content

Commit 8dace55

Browse files
committed
allow higher sampling size fallback
1 parent 729e4d1 commit 8dace55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cropper/src/main/java/com/theartofdev/edmodo/cropper/BitmapUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public static BitmapSampled cropBitmap(Context context, Uri loadedImageUri, floa
191191
} catch (OutOfMemoryError e) {
192192
// if OOM try to increase the sampling to lower the memory usage
193193
sampleMulti *= 2;
194-
if (sampleMulti > 8) {
194+
if (sampleMulti > 16) {
195195
throw new RuntimeException("Failed to handle OOM by sampling (" + sampleMulti + "): " + loadedImageUri + "\r\n" + e.getMessage(), e);
196196
}
197197
}

0 commit comments

Comments
 (0)