From 124987438bab442cf8f785477a87173a41b57f50 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 16 Nov 2019 09:42:30 +0100 Subject: [PATCH] Added logging --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index e9a2d5c905..b04b6ea106 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -2113,14 +2113,14 @@ public class FragmentCompose extends FragmentBase { Matrix rotation = ("image/jpeg".equals(attachment.type) ? ImageHelper.getImageRotation(file) : null); Log.i("Image type=" + attachment.type + " rotation=" + rotation); - if (factor > 1 || rotation != null) { options.inJustDecodeBounds = false; options.inSampleSize = factor; + Log.i("Image target size=" + resize + " factor=" + factor + " source=" + options.outWidth + "x" + options.outHeight); Bitmap resized = BitmapFactory.decodeFile(file.getAbsolutePath(), options); 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) { Bitmap rotated = Bitmap.createBitmap(resized, 0, 0, resized.getWidth(), resized.getHeight(), rotation, true);