when i want to crop the image from the very bottom, without zoom, just selecting the very bottom with the specified maxheight and maxwidth I get an error. This doesnt happen if I dont specify the maxheight and maxwidth.
Error:
D/ForceDarkHelper( 2074): updateByCheckExcludeList: pkg: myapp.com activity: com.yalantis.ucrop.UCropActivity@fcf8296
V/PhoneWindow( 2074): DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@f03d2c4, this = DecorView@670a5ad[MainActivity]
I/flutter ( 2074): ERROR_CROPPING_IMAGE: PlatformException(crop_error, y + height must be <= bitmap.height(), java.lang.IllegalArgumentException: y + height must be <= bitmap.height()
I/flutter ( 2074): at android.graphics.Bitmap.createBitmap(Bitmap.java:879)
I/flutter ( 2074): at android.graphics.Bitmap.createBitmap(Bitmap.java:836)
I/flutter ( 2074): at com.yalantis.ucrop.task.BitmapCropTask.crop(BitmapCropTask.java:165)
I/flutter ( 2074): at com.yalantis.ucrop.task.BitmapCropTask.doInBackground(BitmapCropTask.java:105)
I/flutter ( 2074): at com.yalantis.ucrop.task.BitmapCropTask.doInBackground(BitmapCropTask.java:37)
I/flutter ( 2074): at android.os.AsyncTask$3.call(AsyncTask.java:378)
I/flutter ( 2074): at java.util.concurrent.FutureTask.run(FutureTask.java:266)
I/flutter ( 2074): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
I/flutter ( 2074): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
I/flutter ( 2074): at java.lang.Thread.run(Thread.java:919)
I/flutter ( 2074): , null)
when i want to crop the image from the very bottom, without zoom, just selecting the very bottom with the specified maxheight and maxwidth I get an error. This doesnt happen if I dont specify the maxheight and maxwidth. Error:
D/ForceDarkHelper( 2074): updateByCheckExcludeList: pkg: myapp.com activity: com.yalantis.ucrop.UCropActivity@fcf8296 V/PhoneWindow( 2074): DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@f03d2c4, this = DecorView@670a5ad[MainActivity] I/flutter ( 2074): ERROR_CROPPING_IMAGE: PlatformException(crop_error, y + height must be <= bitmap.height(), java.lang.IllegalArgumentException: y + height must be <= bitmap.height() I/flutter ( 2074): at android.graphics.Bitmap.createBitmap(Bitmap.java:879) I/flutter ( 2074): at android.graphics.Bitmap.createBitmap(Bitmap.java:836) I/flutter ( 2074): at com.yalantis.ucrop.task.BitmapCropTask.crop(BitmapCropTask.java:165) I/flutter ( 2074): at com.yalantis.ucrop.task.BitmapCropTask.doInBackground(BitmapCropTask.java:105) I/flutter ( 2074): at com.yalantis.ucrop.task.BitmapCropTask.doInBackground(BitmapCropTask.java:37) I/flutter ( 2074): at android.os.AsyncTask$3.call(AsyncTask.java:378) I/flutter ( 2074): at java.util.concurrent.FutureTask.run(FutureTask.java:266) I/flutter ( 2074): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) I/flutter ( 2074): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) I/flutter ( 2074): at java.lang.Thread.run(Thread.java:919) I/flutter ( 2074): , null)