解决方法:
public static int calculateInSampleSize(BitmapFactory.Options options,
int reqWidth, int reqHeight, String filePath) {
int height = options.outHeight;
int width = options.outWidth;
int inSampleSize = 1;
if (options.outHeight == -1 || options.outWidth == -1) {
try {
ExifInterface exifInterface =