I'm having trouble compressing image using compressor library(https://github.com/zetbaitsu/Compressor)
when I try compressing using Android-Image-Cropper(https://github.com/ArthurHub/Android-Image-Cropper) Everything works well,
but when I use
Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
photoPickerIntent.setType("image/*");
startActivityForResult(photoPickerIntent, RESULT_LOAD_IMG);
The error
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
occure