I want to decode an image from the SD card with BitmapFactory.decodeFile(path, options). I also want images that are larger than 2048x2048 pixels to be scaled down to at
You can try something like this:
int imageWidth, imageHeight; Bitmap result = Bitmap.createScaledBitmap(bitmapPicture, imageWidth, imageHeight, false);
Here you can add your own width and height. bitmapPicture is the object of Bitmap. Let me know if this is of any help to you.
bitmapPicture
Bitmap