1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-04 18:48:31 +00:00

Only JPEG files contain EXIF data

This commit is contained in:
M66B 2019-03-27 14:00:11 +00:00
parent e96e9e2db6
commit 0c5ad351d7

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;