Closed malikbilal1997 closed 4 years ago
A bitmap of size 1024*1024 will take 32 MB. So a bigger image will obviously cause a jank in the screen.
What you should do:
CropInfo
You can also try ScaledCropper - https://github.com/jayrambhia/CropperNoCropper#how-to-use-it
ScaledCropper
Thanks for your reply. Is there any way to integrate Picasso or Glide with your library so that they can handle the scaling stuff?
A bitmap of size 1024*1024 will take 32 MB. So a bigger image will obviously cause a jank in the screen.
What you should do:
CropInfo
and use it to crop the original Bitmap. https://github.com/jayrambhia/CropperNoCropper#cropinfoYou can also try
ScaledCropper
- https://github.com/jayrambhia/CropperNoCropper#how-to-use-it