diff options
author | steckbrief <steckbrief@chefmail.de> | 2016-01-15 12:58:58 +0100 |
---|---|---|
committer | steckbrief <steckbrief@chefmail.de> | 2016-01-15 12:58:58 +0100 |
commit | 63a40ed65fb16ead440de52fb8bd26c523b75b82 (patch) | |
tree | e89b2ffd2ba9536cb2e946a4b5be223516a10444 /src/main/java/eu | |
parent | 732de65479850776b995b1f1f913505b3c0d4cd9 (diff) | |
parent | 34cd66e8e08e965eace131fd2e5ef485f61a59fe (diff) |
Merge remote-tracking branch 'remotes/origin/trz/rename' into trz/rebase
Diffstat (limited to 'src/main/java/eu')
-rw-r--r-- | src/main/java/eu/siacs/conversations/persistance/FileBackend.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/eu/siacs/conversations/persistance/FileBackend.java b/src/main/java/eu/siacs/conversations/persistance/FileBackend.java index 32de18e9..aba4c090 100644 --- a/src/main/java/eu/siacs/conversations/persistance/FileBackend.java +++ b/src/main/java/eu/siacs/conversations/persistance/FileBackend.java @@ -46,7 +46,7 @@ public final class FileBackend { extension = "."+parts[parts.length - 1]; } else { if (message.getType() == Message.TYPE_IMAGE || message.getType() == Message.TYPE_TEXT) { - extension = ".webp"; + extension = ".png"; } else { extension = ""; } @@ -119,7 +119,7 @@ public final class FileBackend { } public static DownloadableFile compressImageAndCopyToPrivateStorage(Message message, Bitmap scaledBitmap) throws FileCopyException { - message.setRelativeFilePath(FileBackend.getPrivateImageDirectoryPath() + message.getUuid() + ".webp"); + message.setRelativeFilePath(FileBackend.getPrivateImageDirectoryPath() + message.getUuid() + ".png"); DownloadableFile file = getFile(message); file.getParentFile().mkdirs(); OutputStream os = null; @@ -127,7 +127,7 @@ public final class FileBackend { file.createNewFile(); os = new FileOutputStream(file); - boolean success = scaledBitmap.compress(Bitmap.CompressFormat.WEBP, 75, os); + boolean success = scaledBitmap.compress(Bitmap.CompressFormat.PNG, 75, os); if (!success) { throw new FileCopyException(R.string.error_compressing_image); } |