Q: Crop image poor quality when retrieved I'm trying to crop an image from the gallery, and it's working fine.
My only problem is that when I retrieve the image from the intent, its quality is really poor.
I've tried searching around the web, but can't seem to find a solution. 
I think I'm getting the thumbnail version of the picture that's cropped and not the full-sized one.
This is my code:
 ....
 Intent photoPickerIntent = new Intent(Intent.ACTION_PICK, 
        android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
 photoPickerIntent.setType("image/*");
 photoPickerIntent.putExtra("crop", "true");
 photoPickerIntent.putExtra("aspectY", 1);
 photoPickerIntent.putExtra("aspectX", 1);
 photoPickerIntent.putExtra("scale", "false");
 photoPickerIntent.putExtra("return-data", true);
 photoPickerIntent.putExtra("outputFormat", Bitmap.CompressFormat.PNG.toString());
 startActivityForResult(photoPickerIntent, REQ_CODE_PICK_IMAGE);
 .....

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent imageReturnedIntent) {
    super.onActivityResult(requestCode, resultCode, imageReturnedIntent);
    switch (requestCode) {
        case REQ_CODE_PICK_IMAGE:
            if (resultCode == RESULT_OK) {
                if (imageReturnedIntent != null) {
                    Bundle extras = imageReturnedIntent.getExtras();
                    Bitmap profilePicture = extras.getParcelable("data");
                    ByteArrayOutputStream stream = new ByteArrayOutputStream();
                    profilePicture.compress(Bitmap.CompressFormat.PNG, 100, stream);
                    byte[] galleryImgArray = stream.toByteArray();
                    Intent int1 = new Intent(FeedActivity.this, PostActivity.class);
                    int1.putExtra("galleryImgArray", galleryImgArray);
                    startActivity(int1);
                }
            }
            break;
    }
}

How do I go about getting the full-sized version of the cropped image?
Thanks in advance.
