SmartToolFactory / Compose-Cropper

🚀🏞✂️ Image cropper that can crop with static, dynamic crop behavior, can use customizable shapes, vectors, and other png files as mask to crop with various customizations
MIT License
331 stars 47 forks source link

No drag cropping does not work #15

Closed AndroidJohnsonWang closed 1 year ago

AndroidJohnsonWang commented 1 year ago

When I don't drag the crop, for example, I select 1:1 square and then click crop directly, the resulting image is the original rectangle without the crop. If I move the image or crop box slightly, it works fine. demo can also reproduce this problem.

jlasic commented 1 year ago

+1 I'm experiancing the same issue

SmartToolFactory commented 1 year ago

Would you mind testing with version 0.3.0, i don't get this issue but if you still do i will check it out this weekend hopefully.

jlasic commented 1 year ago

It's fixed for my case, static cropping. Thank you :)

DSrhoj commented 1 year ago

This issue is still persistent for me. I reproduced it from demo like AndroidJohnsonWang wrote in his comment. I also reproduced it with the following configuration in my project:

CropDefaults.properties( cropOutlineProperty = CropOutlineProperty( OutlineType.Rect, RectCropShape(0, "Rect") ), contentScale = ContentScale.Fit, aspectRatio = AspectRatio(1f), overlayRatio = 1f, cropType = CropType.Static, handleSize = 0f )

Cropping without any actions returns whole image instead of 1:1 rectangle portion of image. I tried 0.3.0 and 0.3.4 versions in my project with the same result.