@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {
CropImage.ActivityResult result = CropImage.getActivityResult(data);
if (resultCode == RESULT_OK) {
imageUri = result.getUri();
storageReference.putFile(imageUri);
}
}
}
如何从Uri
压缩图像?我不想将其压缩到Bitmap
或存储在设备上并从那里检索。还有其他办法吗?