RubberStamp
RubberStamp copied to clipboard
OutOfMemoryError
When I use RubberStamp to add a watermark to a 3120x4160 6.62MB image,I got the following crash log。 =========================== crash log start ============================== --------- beginning of crash 01-29 17:54:17.570 23085-23085/org.highway E/AndroidRuntime: FATAL EXCEPTION: main Process: org.highway, PID: 23085 java.lang.OutOfMemoryError: Failed to allocate a 51916812 byte allocation with 16777120 free bytes and 19MB until OOM at dalvik.system.VMRuntime.newNonMovableArray(Native Method) at android.graphics.Bitmap.nativeCreate(Native Method) at android.graphics.Bitmap.createBitmap(Bitmap.java:812) at android.graphics.Bitmap.createBitmap(Bitmap.java:789) at android.graphics.Bitmap.createBitmap(Bitmap.java:756) at com.vinaygaba.rubberstamp.RubberStamp.addStamp(RubberStamp.java:55) =========================== crash log end ==============================
Do I have to reduce the size of the picture?