ArthurHub / ArthurHub/Android-Image-Cropper

Rotation with rotated crop rect not working.

Open
#604 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.4k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

I want to set rotation of the image and also the crop rect. with fixed X&Y ratio. but whenever I try setting the rect it doesn't show properly.

cropView.setImageBitmap(bitmap);
cropView.setCropRect(initCropRect);
cropView.setAspectRatio(xRatio,yRatio);
cropView.setRotatedDegrees(rotationAngle);

If I remove the aspectRatio constrain then it show the rect. but only on first load.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported call sequence: setImageBitmap, setCropRect, setAspectRatio, then setRotatedDegrees. Compare the crop rect with and without the aspect-ratio constraint, including after the initial load. Done means the rotated crop rect displays correctly while the fixed X/Y ratio is enabled and remains correct after rotation.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.