mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 23:12:55 +00:00
Resize webp images too
This commit is contained in:
parent
08dbfb2e09
commit
99d078f490
1 changed files with 3 additions and 1 deletions
|
@ -5176,7 +5176,9 @@ public class FragmentCompose extends FragmentBase {
|
|||
private static void resizeAttachment(Context context, EntityAttachment attachment, int resize) throws IOException {
|
||||
File file = attachment.getFile(context);
|
||||
if (file.exists() /* upload cancelled */ &&
|
||||
("image/jpeg".equals(attachment.type) || "image/png".equals(attachment.type))) {
|
||||
("image/jpeg".equals(attachment.type) ||
|
||||
"image/png".equals(attachment.type) ||
|
||||
"image/webp".equals(attachment.type))) {
|
||||
ExifInterface exifSaved;
|
||||
try {
|
||||
exifSaved = new ExifInterface(file);
|
||||
|
|
Loading…
Reference in a new issue