Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No drag cropping does not work #15

Closed
AndroidJohnsonWang opened this issue Mar 30, 2023 · 4 comments
Closed

No drag cropping does not work #15

AndroidJohnsonWang opened this issue Mar 30, 2023 · 4 comments

Comments

@AndroidJohnsonWang
Copy link

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
Copy link

jlasic commented May 11, 2023

+1 I'm experiancing the same issue

@SmartToolFactory
Copy link
Owner

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
Copy link

jlasic commented May 19, 2023

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

@DSrhoj
Copy link

DSrhoj commented May 31, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants