You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on your beautiful library but I do have some challenges to reset the cropRect and rotation correctly. The use case is that user can select multiple images at once. Then our own activity is loaded and we added the image cropper view to it. And from each image they can update the rotation and change the crop. So, we are saving the cropRect we do receive at the setOnSetCropOverlayReleasedListener. After selecting the image (we use the setImageUriAsync for this), the cropRect function will be called within the setOnSetImageUriCompleteListener. After setting the cropRect we are rotating the image. This does work for landscape images, but with portrait images the cropRect isn't on the right place.
What should I do to restore the rotation and cropRect. I did try several things but it doesn't work to have it on the exact same place.
@rbuiten@vanniktech Looking closely to the rect values , I have found that it is giving wrong values for photo in portrait mode. Might be some problem with the code
hello,
I am working on your beautiful library but I do have some challenges to reset the cropRect and rotation correctly. The use case is that user can select multiple images at once. Then our own activity is loaded and we added the image cropper view to it. And from each image they can update the rotation and change the crop. So, we are saving the cropRect we do receive at the setOnSetCropOverlayReleasedListener. After selecting the image (we use the setImageUriAsync for this), the cropRect function will be called within the setOnSetImageUriCompleteListener. After setting the cropRect we are rotating the image. This does work for landscape images, but with portrait images the cropRect isn't on the right place.
What should I do to restore the rotation and cropRect. I did try several things but it doesn't work to have it on the exact same place.
To have it more clear, here is the code
we do load the image with
The text was updated successfully, but these errors were encountered: