Only JPEG files contain EXIF data

This commit is contained in:
M66B 2019-03-27 14:00:11 +00:00
parent e96e9e2db6
commit 0c5ad351d7
1 changed files with 1 additions and 1 deletions

View File

@ -1551,7 +1551,7 @@ public class FragmentCompose extends FragmentBase {
options.outHeight / factor > REDUCED_IMAGE_SIZE)
factor *= 2;
Matrix rotation = getImageRotation(file);
Matrix rotation = ("image/jpeg".equals(attachment.type) ? getImageRotation(file) : null);
if (factor > 1 || rotation != null) {
options.inJustDecodeBounds = false;