jayrambhia / CropperNoCropper

Instagram Style Image Cropper for Android (Library)
http://www.jayrambhia.com/project/nocropper-library
Apache License 2.0
475 stars 99 forks source link

Can't pinch smoothly if image size is large. (Performance) #49

Closed malikbilal1997 closed 4 years ago

jayrambhia commented 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:

  1. Scale down the image before loading in the CropperView
    1. Use CropInfoand use it to crop the original Bitmap. https://github.com/jayrambhia/CropperNoCropper#cropinfo

You can also try ScaledCropper - https://github.com/jayrambhia/CropperNoCropper#how-to-use-it

malikbilal1997 commented 4 years ago

Thanks for your reply. Is there any way to integrate Picasso or Glide with your library so that they can handle the scaling stuff?