In my app I'm using external camera app to make photo and save it to sdcard, and I need a square thumbnail of this photo. I've managed to crop to square the thumbnail sent back by camera in the intent, but since i'm saving photo to disk, the intent is empty, and my old method to make picture square Bitmap cropped = Bitmap.createBitmap(source, 0, 0, min, min)
throws an OutOutMemory exception.
Bitmap ThumbImage = ThumbnailUtils.extractThumbnail(BitmapFactory.decodeFile(imagePath), THUMBSIZE, THUMBSIZE);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With