ImageCropView
ImageCropView copied to clipboard
Jetpack-Compose Image Crop View library.
Hi There isn't any image cropper library for compose multiplatform (jvm, android, ios, ...). You created base of compose code and just need to change some code for compose multiplatform....
I am having this error java.lang.IllegalArgumentException: width and height must be > 0 at android.graphics.Bitmap.createBitmap(Bitmap.java:1102) at android.graphics.Bitmap.createBitmap(Bitmap.java:941) at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:796) at com.image.cropview.CropUtil.cropImage(CropUtil.kt:705) at com.image.cropview.ImageCrop.onCrop(ImageCropView.kt:161) at br.com.havan.logistica.produtoai.ui.home.TelaHomeKt$TelaHome$2$invoke$$inlined$ConstraintLayout$2.invoke(ConstraintLayout.kt:1572) at br.com.havan.logistica.produtoai.ui.home.TelaHomeKt$TelaHome$2$invoke$$inlined$ConstraintLayout$2.invoke(ConstraintLayout.kt:89) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:109) at...
Do I need to calculate the height of the control myself? If not, the height of the photo will be stretched