mirror of https://github.com/M66B/FairEmail.git
Only JPEG files contain EXIF data
This commit is contained in:
parent
e96e9e2db6
commit
0c5ad351d7
|
@ -1551,7 +1551,7 @@ public class FragmentCompose extends FragmentBase {
|
||||||
options.outHeight / factor > REDUCED_IMAGE_SIZE)
|
options.outHeight / factor > REDUCED_IMAGE_SIZE)
|
||||||
factor *= 2;
|
factor *= 2;
|
||||||
|
|
||||||
Matrix rotation = getImageRotation(file);
|
Matrix rotation = ("image/jpeg".equals(attachment.type) ? getImageRotation(file) : null);
|
||||||
|
|
||||||
if (factor > 1 || rotation != null) {
|
if (factor > 1 || rotation != null) {
|
||||||
options.inJustDecodeBounds = false;
|
options.inJustDecodeBounds = false;
|
||||||
|
|
Loading…
Reference in New Issue