1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 01:36:55 +00:00

Added logging

This commit is contained in:
M66B 2019-11-16 09:42:30 +01:00
parent d1c2a688df
commit 124987438b

View file

@ -2113,14 +2113,14 @@ public class FragmentCompose extends FragmentBase {
Matrix rotation = ("image/jpeg".equals(attachment.type) ? ImageHelper.getImageRotation(file) : null); Matrix rotation = ("image/jpeg".equals(attachment.type) ? ImageHelper.getImageRotation(file) : null);
Log.i("Image type=" + attachment.type + " rotation=" + rotation); Log.i("Image type=" + attachment.type + " rotation=" + rotation);
if (factor > 1 || rotation != null) { if (factor > 1 || rotation != null) {
options.inJustDecodeBounds = false; options.inJustDecodeBounds = false;
options.inSampleSize = factor; options.inSampleSize = factor;
Log.i("Image target size=" + resize + " factor=" + factor + " source=" + options.outWidth + "x" + options.outHeight);
Bitmap resized = BitmapFactory.decodeFile(file.getAbsolutePath(), options); Bitmap resized = BitmapFactory.decodeFile(file.getAbsolutePath(), options);
if (resized != null) { if (resized != null) {
Log.i("Image target size=" + resized.getWidth() + "x" + resized.getHeight() + " rotation=" + rotation); Log.i("Image result size=" + resized.getWidth() + "x" + resized.getHeight() + " rotation=" + rotation);
if (rotation != null) { if (rotation != null) {
Bitmap rotated = Bitmap.createBitmap(resized, 0, 0, resized.getWidth(), resized.getHeight(), rotation, true); Bitmap rotated = Bitmap.createBitmap(resized, 0, 0, resized.getWidth(), resized.getHeight(), rotation, true);