Doesn't work if i choose second image after the first image has been cropped
See original GitHub issueI am using the activity flow of cropping an image. I start the cropper activity by using
CropImage.activity(uri)
.setGuidelines(CropImageView.Guidelines.ON)
.setOutputUri(outputUri)
.start(this);
and gets the cropped image which i then passes on to another which renders it perfectly.
but when i get back to the previous activity which is responsible for using the image, i again starts the cropper activity using the above code. The cropper activity launches but it shows a blank screen with a loader in the center which keeps on loading for like infinity.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Photos doesn't register/save crop changes, but will save other
When I open a photo in Microsoft Photos and crop it and save it, then Photos just doesn't register/save these changes. I can...
Read more >Troubleshooting cropping issues - Squarespace Help Center
In site styles, use the Product Image Auto Crop tweak to choose whether the images crop to the same shape, or display at...
Read more >Crop images in Photoshop Elements - Adobe Support
Displays the original aspect ratio of the photo when you crop. The Width and Height fields show the values that are used for...
Read more >Image Cropping 101: The Basics | The TechSmith Blog
Probably the first thing is that when you crop an image and save it, you've destroyed the original image. For that reason, I...
Read more >Your Complete Guide to Instagram Image Sizes (Updated 2022)
Instagram accepts images between 320px and 1080px, but there are specific guidelines for images added to Stories, posts, and IGTV. If your image ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In my case, I didn’t use
AsyncTask
by myself, I used facebook ad sdk to show an ad in previous page of cropper, the loading of the ad was slow, and it blocked the cropper’s loading, so I guess it usedAsyncTask
too, I can’t control it.I suggest you can call
AsyncTask
’sexecuteOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR)
which can simply execute tasks in parallel.This is because
BitmapLoadingWorkerTask
is extendAsyncTask
, and every instance ofAsyncTask
is using the same serial executor by default. When our app useAsyncTask
first in other place, then open crop page,BitmapLoadingWorkerTask
has to wait to execute until other instance ofAsyncTask
’s execution finished. I think the author should executeBitmapLoadingWorkerTask
on a custom non-serial executor.