Only JPEG files contain EXIF data

pull/153/head
M66B 6 years ago
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…
Cancel
Save